32756216aa1ca4549d2a4723e6f6fff9cf51e8e2
[gnulib.git] / ChangeLog
1 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
2
3         acl: include quote.h
4         * lib/copy-acl.c: Include quote.h.
5         * lib/set-acl.c: Likewise.
6
7 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
8
9         fchownat, renameat, unlinkat: update statat dependencies
10         These modules use statat and lstatat, not fstatat; so depend on
11         the statat module, which was split out recently from fstatat.
12         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
13         * modules/renameat: Likewise.  Also delete fstat.
14         URL: http://bugs.gentoo.org/468790
15
16 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
17
18         Assume gnulib is checked out from Git, not CVS
19
20         In fact, access to the gnulib repository through CVS has been
21         disabled, or more precisely, got broken and was never restored; see:
22         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
23
24         Note that support for CVS is not removed completely and unthinkingly
25         by this change: only support for CVS checkouts of gnulib itself is
26         removed.  For example, the 'bootstrap' script still cater to .cvsingore
27         files and CVS directories, for the benefit of those poor gnulib clients
28         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
29
30         * gnulib-tool: Simplify accordingly.
31         * posix-modules: Likewise.
32         * MODULES.html.sh: Likewise.
33         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34         repository.
35         * doc/gnulib-intro.texi: Likewise.
36         * doc/gnulib-readme.texi: Likewise.
37         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
38         sample '.gitignore' file rather than a sample '.cvsignore'.
39         * NEWS: Update.
40         * m4/extensions.m4: While at it, remove a comment mistakenly referring
41         to "CVS Autoconf" rather than "git Autoconf".
42
43 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
44
45         utimensat-tests, etc.: try to fix some races
46         Problem reported by Bernhard Voelker in
47         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
48         I don't know whether this patch fixes that race condition, but it
49         fixes *some* race conditions, so it should be a win.
50         * modules/chown-tests (Depends-on):
51         * modules/fchownat-tests (Depends-on):
52         * modules/fdutimensat-tests (Depends-on):
53         * modules/futimens-tests (Depends-on):
54         * modules/lchown-tests (Depends-on):
55         * modules/stat-time-tests (Depends-on):
56         * modules/utimens-tests (Depends-on):
57         * modules/utimensat-tests (Depends-on):
58         Depend on nanosleep, not usleep.
59         * modules/chown-tests (test_chown_LDADD):
60         * modules/lchown-tests (test_lchown_LDADD):
61         * modules/stat-time-tests (test_stat_time_LDADD):
62         New macro.
63         * modules/fchownat-tests (test_fchownat_LDADD):
64         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
65         * modules/futimens-tests (test_futimens_LDADD):
66         * modules/utimens-tests (test_utimens_LDADD):
67         * modules/utimensat-tests (test_utimensat_LDADD):
68         Add $(LIB_NANOSLEEP).
69         * modules/stat-time-tests (Files): Add tests/nap.h.
70         * tests/nap.h: Include <limits.h>, for INT_MAX.
71         (lt_mtime): Remove.
72         (diff_timespec): New function.
73         (get_stat): Rename from get_mtime.  All callers changed.
74         (nap_works): Determine the needed delay by inspecting the
75         file system's timestamp jumps; this should be more reliable.
76         Look at both mtime and ctime, and take the maximum of the two jumps.
77         (nap_works, guess_delay):
78         Return a nanosecond cound, not a microsecond count.
79         All callers changed.
80         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
81         failure.
82         (nap): Multiply the guess by 1.125, to accommodate the case where
83         the file system's clock is a bit slower than nanosleep's clock.
84         * tests/test-stat-time.c (BASE): New macro.
85         Include nap.h.
86         (nap): Remove; nap.h now defines this.  This removes a duplicate
87         implementation of 'nap'.
88
89         utimens, utimensat: work around Solaris UTIME_OMIT bug
90         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
91         Linux kernel 2.6.32 does.  Work around it in the same way.
92         * doc/posix-functions/futimens.texi (futimens):
93         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
94         * lib/utimens.c (fdutimens, lutimens):
95         * lib/utimensat.c (rpl_utimensat): Work around the bug.
96
97         gettext: now it's your responsibility to add -I$(top_builddir)/intl
98         Formerly, it was your responsibility to do this for all Makefile.ams
99         other than Gnulib's.  Now it's your responsibility to do it for
100         Gnulib's Makefile.am, too.
101         * NEWS: Document this.
102         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
103
104         acl: include errno.h to get errno
105         Reported by Daiki Ueno in
106         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
107         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
108
109 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
110
111         tests: don't assume getdtablesize () <= 10000000
112         * modules/cloexec-tests:
113         * modules/dup2-tests:
114         * modules/dup3-tests:
115         * modules/nonblocking-tests:
116         * modules/posix_spawn_file_actions_addclose-tests:
117         * modules/posix_spawn_file_actions_adddup2-tests:
118         * modules/posix_spawn_file_actions_addopen-tests:
119         * modules/unistd-safer-tests:
120         Depend on the getdtablesize module.
121         * tests/test-cloexec.c:
122         * tests/test-dup-safer.c:
123         * tests/test-dup2.c:
124         * tests/test-dup3.c:
125         * tests/test-fcntl.c:
126         * tests/test-nonblocking.c:
127         * tests/test-posix_spawn_file_actions_addclose.c:
128         * tests/test-posix_spawn_file_actions_adddup2.c:
129         * tests/test-posix_spawn_file_actions_addopen.c:
130         Don't assume getdtablesize () <= 10000000.
131
132 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
133
134         extern-inline: work around bug in Sun c99
135         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
136         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
137
138 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
139
140         qacl: new module, broken out from the acl module
141         This is for GNU Emacs, which wants the acl functions but does
142         not want 'error' invoked when they fail.
143         * lib/acl-internal.h: Do not include error.h, quote.h.
144         (ENOSYS, ENOTSUP): Remove; no longer needed.
145         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
146         * lib/acl.h: Include <stdbool.h>.
147         (acl_errno_valid): New function.
148         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
149         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
150         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
151         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
152         (ACL_INTERNAL_INLINE): Remove; no longer needed.
153         * lib/file-has-acl.c (file_has_acl):
154         * lib/qcopy-acl.c (qcopy_acl):
155         * lib/qset-acl.c (qset_acl):
156         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
157         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
158         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
159         lib/file-has-acl.c, m4/acl.m4 to qacl module.
160         Add lib/set-acl.c.
161         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
162         Add qacl.
163         (configure.ac): Move gl_FUNC_ACL to qacl module.
164         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
165         Rename set-mode-acl.c to set-acl.c.
166         * lib/acl-errno-valid.c: New file.
167         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
168         copy_acl function remains in copy-acl.c.
169         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
170         (_): Remove; not needed.
171         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
172         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
173         * modules/qacl: New file, moved from the old modules/acl.
174         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
175         Remove set-mode-acl.c, copy-acl.c.
176         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
177
178         alignof, intprops, malloca: port better to IBM's C compiler
179         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
180         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
181         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
182
183 2013-04-25  Daiki Ueno  <ueno@gnu.org>
184
185         wctype-h: fix gettext link error on mingw
186         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
187         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
188         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
189         rpl_towupper and rpl_towupper.
190
191 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
192
193         regex-tests, regex: allow glibc re_search behavior
194         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
195         re_search input data to make the multi-character collating element
196         in it clearly visible, and treat re_search return code 0 as valid.
197         * m4/regex.m4 (gl_REGEX): Likewise.
198
199 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
200
201         stdalign: doc fix
202         * doc/posix-headers/stdalign.texi (stdalign.h):
203         Gnulib doesn't support '_Alignof expr'.
204
205 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
206
207         stdalign: port to stricter ISO C11
208         ISO C11 says that _Alignof's operand must be a parenthesized type.
209         Problem reported by Eli Zaretskii in
210         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
211         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
212         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
213
214 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
215
216         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
217         Problem reported by Marco Atzeri in
218         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
219         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
220         Simply delegate to the system <sys/select.h> in this case too.
221         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
222         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
223         be needed on Solaris either.
224         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
225         Simply delgate to the system <sys/time.h> in this case.
226
227 2013-03-19  Karl Berry  <karl@gnu.org>
228
229         * build-aux/gnupload: check for erroneous (with gnupload) use of
230         ftp-upload.gnu.org, tweak help.
231
232 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
233
234         copy-file, rpmatch: fix problems found by cppcheck
235         Reported by Arno Onken in
236         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
237         * lib/rpmatch.c (try): Fix memory leak.
238         * lib/copy-file.c: Include "ignore-value.h".
239         (qcopy_file_preserving): Ignore chown value.
240         * modules/copy-file (Depends-on): Add ignore-value.
241
242 2013-01-27  Jim Meyering  <jim@meyering.net>
243
244         prefix-gnulib-mk: give better diagnostics
245         * build-aux/prefix-gnulib-mk: Don't just "die".
246         Give better diagnostics upon failure.
247
248 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
249
250         putenv: port to Solaris 10
251         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
252         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
253         is not what is wanted here.
254         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
255         declaration, not for its existence.
256
257 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
258
259         mktime: fix configure typo
260         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
261
262 2013-03-12  Eric Blake  <eblake@redhat.com>
263
264         regex-tests: skip UTF-8 test on mingw
265         * modules/regex-tests (Depends-on): Add localcharset.
266         * tests/test-regex.c (main): Use it to skip test on mingw.
267
268 2013-03-11  Eric Blake  <eblake@redhat.com>
269
270         tests: make it easier to bypass alarm time in debugger
271         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
272         * tests/test-memmem.c (main): Likewise.
273         * tests/test-passfd.c (main): Likewise.
274         * tests/test-ptsname.c (main): Likewise.
275         * tests/test-ptsname_r.c (main): Likewise.
276         * tests/test-strcasestr.c (main): Likewise.
277         * tests/test-strstr.c (main): Likewise.
278
279         regex: port to mingw's recent addition of undeclared alarm
280         * doc/posix-functions/alarm.texi (alarm): Document that alarm
281         exists but still doesn't work in newer mingw.
282         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
283         not existence.  Ensure SIGALRM is not trapped.
284         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
285         * m4/regex.m4 (gl_REGEX): Likewise.
286         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
287         * tests/test-regex.c (main): Use correct probe for alarm.
288
289         putenv: avoid compilation warning on mingw
290         * lib/putenv.c (_unsetenv): Protect variable declaration.
291         (putenv): Fix indentation.
292
293 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
294
295         unistd: don't prevent Tru64 Unix from using gnulib strtod.
296         * lib/unistd.in.h: be careful not to include un-needed system
297         stdlib.h from here, because that prevents gnulib stdlib.h from
298         defining rpl_strtod correctly.
299
300 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
301
302         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
303         changesets, but for the 'precision 0' test.
304         * tests/test-vasprintf-posix.c (test_function): Don't insist on
305         round-to-even, since POSIX says rounding is implementation-defined
306         and OS X 10.8.2 rounds 1.51 to 1 here.
307
308         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
309         changeset.
310         * tests/test-vasprintf-posix.c (test_function): Don't insist on
311         round-to-even, since POSIX says rounding is implementation-defined
312         and OS X 10.8.2 rounds 1.5 to 1 here.
313
314 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
315
316         vasnprintf-posix-tests: allow rounding 1.5 to 1
317         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
318         round-to-even, since POSIX says rounding is implementation-defined
319         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
320         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
321
322         bootstrap: port to FreeBSD
323         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
324         that treat '--' differently.  Reported by Mats Erik Andersson in
325         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
326
327 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
328
329         regex: rename remaining __attribute calls to __attribute__.
330         2012-02-25 changed definition of __attribute, but left some uses
331         unchanged, preventing compilation of regex module on most non-gcc
332         environments.
333         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
334         (lookup_collation_sequence_value, build_range_exp)
335         (build_collating_symbol): Set attributes with newly renamed
336         __attribute__ decorator.
337         * lib/regex_internal.c (re_string_peek_byte_case)
338         (re_node_set_compare, re_node_set_contains): Likewise.
339         * lib/regexec.c (acquire_init_state_context): Likewise.
340
341 2013-03-06  Bruno Haible  <bruno@clisp.org>
342
343         execute: Revert last change, but use a different condition.
344         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
345         on Windows.
346
347 2013-03-05  Eric Blake  <eblake@redhat.com>
348
349         execute: drop dead code
350         * lib/execute.c (nonintr_close, nonintr_open): Delete.
351
352 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
353
354         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
355         * m4/non-recursive-gnulib-prefix-hack.m4
356         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
357         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
358         <http://bugs.gnu.org/10305#237>.
359
360 2013-03-04  Eric Blake  <eblake@redhat.com>
361
362         test-getsockopt: avoid compiler warning
363         * tests/test-getsockopt.c (includes): Ensure close is declared.
364
365 2013-03-02  Bruno Haible  <bruno@clisp.org>
366
367         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
368         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
369
370 2013-03-02  Bruno Haible  <bruno@clisp.org>
371
372         gettext: Update to version 0.18.2.
373         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
374         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
375                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
376
377 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
378
379         regex: merge patches from libc
380
381         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
382         * lib/regex_internal.h (__attribute__): Rename from __attribute.
383         All uses changed.
384         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
385         (re_string_wchar_at, re_string_elem_size_at):
386         Mark function as possibly unused.
387
388         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
389         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
390         elements compare against the byte sequence of it, not its name.
391
392 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
393
394         putenv: port better to native Windows
395         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
396         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
397         (_unsetenv): Use _putenv if available.
398         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
399         a bit less likely to cause damage.
400         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
401         Fix the wrong value with SetEnvironmentVariable.
402         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
403         code better.
404
405 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
406
407         regex: ignore old-style-definition warnings
408         * lib/regex.c: Add pragma to ignore these warnings.
409         Problem reported for GNU tar by Pavel Raiskup.
410
411 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
412
413         getcwd: support coreutils better
414         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
415         but this might not be correct in coreutils, which disables
416         the raw decl checks.  Problem reported by Nagendra in
417         <http://bugs.gnu.org/10305#192>.
418         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
420         Test the getcwd function, not any macro, since getcwd.c wants the
421         function.
422         * m4/getcwd.m4 (gl_FUNC_GETCWD):
423         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
424         compile, as might happen if there's a macro but no function.
425
426         strtod: support coreutils better
427         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
428         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
429         disables the raw decl checks.  This assumes there is an underlying
430         strtod, but that's a safe assumption these days.
431         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
432
433         mountlist: port to HP NonStop
434         Reported by Joachim Schmitz in
435         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
436         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
437         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
438
439 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
440
441         extern-inline: avoid compilation error with HP-UX cc
442         Reported by Richard Lloyd in
443         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
444         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
445         Suppress extern inline with HP-UX cc.  This should be safe,
446         though it may hurt performance.  Perhaps someone with some HP-UX
447         experience can come up with a higher-performance fix.
448
449 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
450
451         putenv: fix heap corruption with mixed putenv/_putenv
452         Problem reported by Michael Goffioul in
453         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
454         * lib/putenv.c (putenv) [HAVE__PUTENV]:
455         Rely on _putenv to allocate the new environment.
456         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
457         * modules/putenv (configure.ac): Use it.
458
459 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
460
461         unsetenv etc.: port to Solaris 11 + GNU Emacs
462         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
463         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
464         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
465         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
466         idea but is too painful to fix right now), and without this gnulib
467         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
468         compiling unsetenv.c on Solaris 11.  Fix the problem for
469         unsetenv.c, and fix other similar occurrences.
470
471 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
472
473         secure_getenv: fix C++ declaration typo
474         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
475         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
476         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
477
478 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
479
480         careadlinkat: stop exporting careadlinkatcwd
481         Only Emacs used it directly, and Emacs no longer needs it.
482         * NEWS: Document this simplification.
483         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
484         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
485         for readlink.
486         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
487         Don't include stdlib.h; no longer needed.
488         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
489         * lib/relocwrapper.c: Adjust comment to match new dependencies.
490         * modules/areadlink (Depends-on): Add readlink.
491         (Maintainer): Add self.
492         * modules/careadlinkat (Depends-on): Remove readlink.
493
494         extensions: port better to HP-UX
495         This is merged from git Autoconf.
496         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
497         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
498         so that it's compatible with the value used when compiling.
499
500         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
501         Problem reported by Mats Erik Andersson in
502         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
503         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
504         openpty function exists, not merely when we intend to replace it.
505         This corrects the 2013-01-31 patch, which mistakenly defined
506         HAVE_OPENPTY even on hosts that lacked it.
507
508 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
509
510         secure_getenv: fix include typo
511         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
512
513         secure_getenv: port better to FreeBSD and Solaris
514         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
515         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
516         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
517         This works better on BSDish platforms.
518         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
519         Test for issetugid if __secure_getenv is missing.
520
521 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
522
523         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
524         Some of these changes are merged in from git Autoconf.
525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
526         When deciding whether to define _XOPEN_SOURCE, inspect the
527         preprocessor macro __hpux instead of the more-heavyweight
528         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
529         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
530         as the key for __EXTENSIONS__.
531
532         unistd: avoid namespace pollution on non-glibc systems
533         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
534         This avoids namespace pollution on non-glibc systems, by causing
535         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
536         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
537         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
538
539 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
540
541         tmpdir: use secure_getenv
542         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
543         Define to secure_getenv, not getenv.
544         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
545         as that's now secure_getenv's job.
546         * modules/tmpdir (Depends-on): Add secure_getenv.
547
548         tempname: use secure_getenv
549         * lib/tempname.c (__secure_getenv) [!_LIBC]:
550         Define to secure_getenv, not getenv.
551         * modules/tempname (Depends-on):
552         Add secure_getenv.
553
554         secure_getenv: new module
555         * MODULES.html.sh (Extra functions based on ANSI C 89):
556         Add secure_getenv.
557         * doc/glibc-functions/secure_getenv.texi: New file.
558         * doc/gnulib.texi: Include it.
559         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
560         New files.
561         * lib/stdlib.in.h (secure_getenv): New decl.
562         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
563         * modules/stdlib (stdlib.h):
564         Add secure_getenv checks.
565
566 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
567
568         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
569         Reported for OS X 10.8.2 by Assaf Gordon in
570         <http://bugs.gnu.org/13516>.
571         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
572         !HAVE_OPENAT && !HAVE_FDOPENDIR.
573         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
574         so that they can be kept in sync more easily.  Avoid PATH_MAX
575         test on the Hurd.  Sync from test-getcwd.c for errno tests after
576         mkdir or chdir failure.
577         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
578         lib/getcwd.c.
579         (test_abort_bug): Do not test for the deep directory bug unless we
580         have openat support.  Avoid PATH_MAX test on the Hurd.
581
582         regex-tests, regex: fix bug: memset undeclared
583         * tests/test-regex.c: Don't include regex.h twice.  Include
584         string.h, to declare memset.  Christensen's report also mentioned
585         this issue.
586         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
587         test-regex.c, to avoid future problems like this.  Remove
588         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
589         twice.
590
591         regex-tests: fix link errors on older Solaris
592         These need to link with @LIBINTL@ to get libintl_gettext.
593         Problem reported by Tom G. Christensen in
594         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
595         * modules/regex-tests (test_regex_LDADD): New macro.
596
597 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
598
599         regex-tests: new module
600         * modules/regex-tests, tests/test-regex.c: New files.
601
602         regex: fix off-by-one error in configure test
603         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
604
605 2013-01-31  Eric Blake  <eblake@redhat.com>
606
607         regex: avoid infinite configure test
608         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
609
610 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
611
612         openpty: fix bug where HAVE_OPENPTY wasn't defined
613         See the thread starting at:
614         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
615         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
616         openpty function exists, not merely when we intend to replace it.
617
618 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
619
620         sys_time: port to Solaris 2.6
621         There is a circularity problem on Solaris 2.6, where <time.h> includes
622         <sys/time.h> for struct timespec.  The include nesting is gnulib
623         <time.h>, system <time.h>, gnulib <sys/time.h>, system
624         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
625         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
626         <sys/siginfo.h>; the last, innermost file needs struct
627         timestruc_t, which is defined in <sys/time.h>, which has not been
628         fully parsed.  Problem reported by Tom G. Christensen in
629         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
630         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
631         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
632         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
633         uses split double-inclusion guards.
634
635 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
636
637         regex: test for buffer overrun
638         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
639         for the just-fixed regex bug.
640
641 2013-01-29  Andreas Schwab  <schwab@suse.de>
642
643         regex: fix buffer overrun in regexp matcher [BZ #15078]
644         * lib/regexec.c (extend_buffers): Add parameter min_len.
645         (check_matching): Pass minimum needed length.
646         (clean_state_log_if_needed): Likewise.
647         (get_subexp): Likewise.
648
649 2013-01-28  Pádraig Brady  <P@draigBrady.com>
650
651         mountlist: don't consider "devtmpfs" as dummy
652         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
653         as there is storage associcated with it.
654
655 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
656
657         futimens-tests, utimens-tests: Depend on gettext.
658         This works around a problem introduced in my 2013-01-12 patch,
659         which added @LIBINTL@ to these modules.
660         * modules/futimens-tests (Depends-on):
661         * modules/utimens-tests (Depends-on): Add gettext.
662
663 2013-01-26  Eric Blake  <eblake@redhat.com>
664
665         test-getpeername: fix typo
666         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
667
668 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
669
670         bootstrap: remove the need for a sorted .gitignore file
671         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
672         rename to insert_if_absent(), so that we don't need or generate
673         a sorted .gitignore file.  We do require a .gitignore with no
674         existing duplicate entries and enforce that.
675         (sort_patterns): Remove this function as we now use the simpler
676         technigue of inserting blacklist entries at the top of the file,
677         assuming gnulib won't be inserting !whitelist entries.
678
679 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
680
681         readlinkat: don't depend on gl_FUNC_OPENAT
682         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
683         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
684         renameat.m4, symlinkat.m4; but one thing at a time.
685
686         statat: new module, split out from fstatat
687         GNU Emacs needs the POSIX-specified fstatat, but not the
688         gnulib-specified statat and lstat.  Split the latter two into a
689         new module 'statat'.
690         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
691         * lib/openat.h, lib/statat.c (STATAT_INLINE):
692         Rename from FSTATAT_INLINE. All uses changed.
693         * modules/fstatat (Files): Remove lib/statat.c.
694         (gl_MODULE_INDICATOR([fstatat])): Remove.
695         (lib_SOURCES): Remove.
696         (Maintainer): Add self.
697         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
698         * tests/test-fstatat.c (BASE): Don't define if already defined.
699         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
700
701 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
702
703         tests: don't assume fd 99 is closed
704         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
705         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
706         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
707         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
708         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
709         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
710         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
711         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
712         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
713         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
714         * tests/test-fwrite.c, tests/test-getpeername.c:
715         * tests/test-getsockname.c, tests/test-getsockopt.c:
716         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
717         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
718         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
719         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
720         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
721         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
722         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
723         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
724         * tests/test-unlinkat.c, tests/test-unlockpt.c:
725         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
726         Close file descriptor 99, instead of assuming it's already closed.
727
728 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
729
730         stpncpy: port to OS X 10.8
731         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
732         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
733
734 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
735
736         unistd: port to recent mingw
737         * lib/unistd.in.h: Remove special invocation convention for mingw,
738         which breaks for the latest mingw version.  See John W. Eaton in
739         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
740
741         largefile: port better to Mac OS X 10.5
742         This patch is backported from Autoconf git.
743         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
744         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
745         with ino_t size being different for configuration time versus
746         build/run time.  Problem reported by PHO in
747         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
748
749 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
750
751         doc: clarify -Werror
752         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
753         clarify that it's intended for developers, not for ordinary builds,
754         and mention --enable-gcc-warnings as one possible use.
755
756 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
757
758         stdint: fix build with Android's Bionic fox x86
759         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
760         was already included as _SSIZE_T_DEFINED_ might also be defined
761         in include/machine/_types.h, which is included by stdio.h
762
763 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
764
765         net_if-tests: port to Solaris 7 + GCC 3.4.6
766         Problem reported by Tom G. Christensen in
767         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
768         * tests/test-net_if.c (ni): Move to next the code that uses it,
769         so that it's declared only if needed.
770
771 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
772
773         net_if-tests: port to older Solaris
774         Problem reported by Tom G. Christensen in
775         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
776         * modules/net_if-tests (NET_IF_LIB): New substitution.
777         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
778         (HAVE_IF_NAMEINDEX): New C macro.
779         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
780
781         system-quote-tests: port to older Solaris
782         Problem reported by Tom G. Christensen in
783         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
784         * tests/test-system-quote-child.c (fopen, fread): Undef.
785
786         c-xvasprintf etc.: fix link errors on older Solaris
787         These need to link with @LIBINTL@ to get libintl_gettext.
788         Problem reported by Tom G. Christensen in
789         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
790         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
791         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
792         * modules/futimens-tests (test_futimens_LDADD):
793         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
794
795 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
796
797         locale: port to Solaris 2.6 and 7 + GNU gettext
798         * lib/locale.in.h: Just include_next <locale.h> when
799         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
800         when combining the localename module with GNU gettext 0.18.2.
801         Problem reported by Tom G. Christensen in
802         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
803
804 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
805
806         stdlib: port to Solaris 2.6
807         Also, the code worked on Solaris 7 through 9 only by accident.
808         Problem reported by Tom G. Christensen in
809         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
810         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
811         simply include the system stdlib.h.
812         * lib/getopt.in.h (__need_system_stdlib_h):
813         * lib/pthread.in.h (__need_system_stdlib_h):
814         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
815         Define when including <stdlib.h>, to avoid problems at least for
816         the pthread case on Solaris 2.6 and 7.  These .h files can get by
817         with the system stdlib.h.
818
819 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
820
821         doc: update main copyright year
822         * doc/gnulib.texi: Update copyright date.
823
824         doc: improve ISO 8601 discussion
825         * doc/parse-datetime.texi (Combined date and time of day items):
826         Specify more carefully what formats are supported and what is
827         done with excess precision.
828
829 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
830
831         doc: avoid small caps
832         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
833         they're more trouble than they're worth.  Suggested by Karl Berry
834         in <http://bugs.gnu.org/13360>.
835
836         regex: conform to strict C
837         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
838         From Aharon Robbins.
839
840         gnulib-tool: fix incompatibility with autopoint 0.18.2
841         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
842         Problem reported by Tom G. Christensen in
843         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
844
845 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
846
847         fprintftime: bring back and reword fwrite comment
848         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
849
850         stdio: remove now-unnecessary stdio.c
851         Since stdio.in.h no longer uses inline functions, we no longer
852         need to compile the extern versions.
853         * lib/stdio.c: Remove.
854         * modules/stdio (Files): Remove lib/stdio.c.
855         (lib_SOURCES): Remove.
856
857         unicodeio: depend on stdio, not ignore-value
858         * lib/unicodeio.c: Do not include ignore-value.h.
859         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
860         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
861
862         fprintftime: depend on stdio, not ignore-value
863         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
864         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
865         since the stdio module arranges to silence that warning now.
866         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
867
868 2012-10-04  Simon Josefsson  <simon@josefsson.org>
869
870         stdint-tests: Fix expanded-before-required-warning.
871         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
872
873 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
874
875         fwrite: silence __wur only for older glibc versions
876         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
877         This will help us remove this workaround some time in the far future.
878
879 2013-01-03  Eric Blake  <eblake@redhat.com>
880
881         fwrite: silence __wur without using inline
882         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
883         just gcc, and in a way that avoids inline issues.
884         * modules/stdio (Depends-on): Drop extern-inline.
885
886 2013-01-03  Jim Meyering  <jim@meyering.net>
887
888         update-copyright: avoid copyright notice date corruption
889         Given a sequence of copyright year numbers in which the final
890         one was a two-digit number that happened to be a substring of
891         a preceding four-digit year number, we would mistakenly update
892         the substring (from two- to four-digit) rather than the two-digit
893         number at the end, which, combined with the addition of the current
894         4-digit year number would yield two 5-digit year numbers, e.g.,
895         here, it would convert the first "99" to "1999, 2013" rather than
896         the final one:
897           1991, 99
898           11999, 20131, 1999
899         * build-aux/update-copyright: Tighten a regexp.
900         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
901         Reported by Joseph Myers in
902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
903
904 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
905
906         regex: omit needless signed-pointer casts
907         * lib/regcomp.c (build_charclass, build_charclass_op):
908         Use char *, not unsigned char *, for class name and extra.
909         The char values are always nonnegative so there's no need to
910         insist on unsigned char * here, and using char * removes the need
911         for casts.  Reported by Aharon Robbins in
912         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
913
914         regex: support Gawk, which never uses alloca
915         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
916         Do not include in this case.  Gawk doesn't supply a substitute
917         alloca.h and doesn't need one.
918
919         regex: port __libc_lock_define usage to C89
920         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
921         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
922         does not conform to C89, as it has an empty macro argument.
923         Reported by Aharon Robbins in
924         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
925
926 2013-01-01  Eric Blake  <eblake@redhat.com>
927
928         maint: update all copyright year number ranges
929         Run "make update-copyright".
930
931         version-etc: bump copyright year reported in --version
932         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
933
934 2012-12-31  Eric Blake  <eblake@redhat.com>
935
936         sigprocmask-tests: skip test if pid is unexpectedly large
937         * tests/test-sigprocmask.c (main): Add range check.
938
939         git-version-gen: avoid test -z portability glitch
940         * build-aux/git-version-gen: Prefer portable test spelling, since
941         git-version-gen is run on more than just developer machines.
942
943 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
944
945         git-version-gen: add --fallback option to use if git is not present
946         * build-aux/git-version-gen: Add support for the new option --fallback,
947         which comes into play when there is no $tarball_version_file and
948         git is not working.
949         (scriptversion): Update.
950
951         maint.mk: handle missing git with more grace
952         * top/maint.mk (no-submodule-changes, public-submodule-commit):
953         Quietly proceed if git is not present.
954
955 2012-12-31  Eric Blake  <eblake@redhat.com>
956
957         dup2: work around cygwin bug
958         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
959         * lib/dup2.c (rpl_dup2): Work around it.
960         * doc/posix-functions/dup2.texi (dup2): Document it.
961
962 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
963
964         regex: remove unnecessary dependency on localcharset.h
965         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
966         hasn't been needed for years.
967         * modules/regex (Depends-on): Remove localcharset.
968
969         regex: revert single-byte change
970         * lib/regexec.c (check_node_accept_bytes): Revert previous change
971         to this function.  This was alredy fixed in a different way, at
972         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
973         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
974         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
975
976         regex: simplify based on Gawk version
977         * lib/regex_internal.c (re_dfa_add_node): Simplify.
978         Reported by Aharon Robbins in
979         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
980
981 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
982
983         regex: check that pattern char is single-byte
984         Reported by Aharon Robbins in
985         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
986         * lib/regexec.c (check_node_accept_bytes):
987         Return 0 if the pattern string has a multibyte character here.
988
989         regex: implement rational ranges
990         Reported by Aharon Robbins in
991         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
992         * lib/regcomp.c (build_range_exp) [!_LIBC]:
993         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
994         Implement rational ranges.
995
996         regex: avoid redefining __wctype
997         Reported by Aharon Robbins in
998         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
999         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1000         #undef before defining.
1001
1002         regex: port to hosts where malloc (0) == NULL
1003         Reported by Aharon Robbins in
1004         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1005         * lib/regex_internal.c (re_node_set_alloc):
1006         Don't assume that malloc (0) yields nonnull.
1007         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1008         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1009         * modules/regex (Files): Add m4/eealloc.m4.
1010
1011         regex: port to C89
1012         Reported by Aharon Robbins in
1013         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1014         * lib/regcomp.c (init_word_char): Declaration before statement.
1015
1016         regex: merge glibc changes
1017         Also, copy the license wording from glibc.  This simplifies
1018         merging changes.  gnulib-tool will change the wording to GPL as
1019         appropriate, when importing it to other packages.  The only
1020         glibc change made since the last merge, which needs merging, is:
1021         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1022         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1023
1024         * users.txt: Add Emacs.
1025
1026         doc: omit mention of version when not needed
1027         * doc/gnulib-intro.texi (Portability and Application Code):
1028         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1029         Don't mention particular dates or versions when not necessary, so
1030         that the documentation won't go out of date so quickly.
1031
1032         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1033
1034 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1035
1036         bootstrap: pass --force to autoreconf.
1037         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1038         Add "--force" so that Automake's ylwrap and other such tools
1039         be updated at each bootstrap invocation.
1040         Use it.
1041
1042 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1045         The earlier patch forgot to update one of the #if conditions, causing
1046         a problem on Debian testing i386 reported by Mats Erik Andersson
1047         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1048         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1049         (__argp_fmtstream_puts, argp_fmtstream_puts)
1050         (__argp_fmtstream_write, argp_fmtstream_write)
1051         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1052
1053         * doc/gnulib-readme.texi: Minor fixups.
1054         (Portability guidelines): Modernize URLs.  Remove some repetition.
1055         (Indent with spaces not TABs): Reword to avoid too-long lines.
1056         Remove some '@ifset standalone' stuff that isn't used.
1057
1058         * doc/gnulib-readme.texi (Portability guidelines):
1059         ctype.h, not ctime.h.
1060
1061         Correct name of POSIX.1-2001.
1062         * doc/posix-functions/fgetc.texi (fgetc):
1063         * doc/posix-functions/fgets.texi (fgets):
1064         * doc/posix-functions/fread.texi (fread):
1065         * doc/posix-functions/fscanf.texi (fscanf):
1066         * doc/posix-functions/getc.texi (getc):
1067         * doc/posix-functions/getchar.texi (getchar):
1068         * doc/posix-functions/scanf.texi (scanf):
1069         POSIX.1-2001, not POSIX-2001.
1070
1071         doc: move README into manual
1072         * README: Move contents to new file doc/gnulib-readme.texi.
1073         Replace with a one-line summary.
1074         * doc/gnulib.texi (Brief Overview): New section,
1075         with old intro preface.  Include gnulib-readme.texi for contents.
1076         (Philosophy): Rename from "Introduction", since this
1077         section no longer introduces the rest.  Write a new preface.
1078         * doc/gnulib-readme.texi: New file, with the old contents of
1079         README texinfo-ized.  This way, the README info appears
1080         in the online and printed manual.
1081
1082 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1083
1084         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1085         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1086         c_vasprintf() prototype.
1087
1088 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1089
1090         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1091         * lib/c-vasprintf.h: Remove stray semicolon.
1092
1093 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1094
1095         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1096         It is obsolete and is planned to be removed from Automake 1.14; see
1097         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1098         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1099         (installdirs-data, installdirs-data-yes):
1100         Use $(MKDIR_P), not $(mkdir_p).
1101         * m4/intl.m4 (AM_INTL_SUBDIR):
1102         * m4/po.m4 (AM_PO_SUBDIRS):
1103         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1104
1105 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1106
1107         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1108         On this platform, we are not optimizing but we are using
1109         the substitute for extern inlines, so compile as if
1110         C99-style extern inline, or a substitute, is available.
1111         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1112         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1113         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1114         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1115         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1116         Declare as ARGP_FS_EI, not as extern.
1117         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1118         (__option_is_short, _option_is_end, __option_is_end)
1119         [!_LIBC && __USE_EXTERN_INLINES]:
1120         Declare as ARGP_EI, not as extern.
1121
1122 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1125         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1126         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1127         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1128         ...), as the latter is fatal with older Autoconfs.
1129         Problem reported and fix suggested by Eric Blake in thread starting at
1130         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1131
1132 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         AC_PROG_MKDIR_P: don't workaround if not buggy
1135         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1136         Define only for Autoconf versions before 2.62.
1137         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1138         undocumented m4_PACKAGE_VERSION, for consistency with the
1139         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1140         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1141         was introduced in 2.62.
1142
1143 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1144
1145         New 'c-*printf' modules for formatted output in C locale.
1146
1147         New module 'c-vasnprintf'.
1148         * modules/c-vasnprintf: New file.
1149         * lib/c-vasnprintf.c: New file.
1150         * lib/c-vasnprintf.h: New file.
1151
1152         New module 'c-snprintf'.
1153         * modules/c-snprintf: New file.
1154         * modules/c-snprintf-tests: New file.
1155         * lib/c-snprintf.c: New file.
1156         * lib/c-snprintf.h: New file.
1157         * tests/test-c-snprintf.c: New file.
1158         * tests/test-c-snprintf.sh: New file.
1159
1160         New module 'c-vsnprintf'.
1161         * modules/c-vsnprintf: New file.
1162         * modules/c-vsnprintf-tests: New file.
1163         * lib/c-vsnprintf.c: New file.
1164         * lib/c-vsnprintf.h: New file.
1165         * tests/test-c-vsnprintf.c: New file.
1166         * tests/test-c-vsnprintf.sh: New file.
1167
1168         New module 'c-vasprintf'.
1169         * modules/c-vasprintf: New file.
1170         * modules/c-vasprintf-tests: New file.
1171         * lib/c-asprintf.c: New file.
1172         * lib/c-vasprintf.c: New file.
1173         * lib/c-vasprintf.h: New file.
1174         * tests/test-c-vasprintf.c  +: New file.
1175         * tests/test-c-vasprintf.sh: New file.
1176
1177         New module 'c-xvasprintf'.
1178         * modules/c-xvasprintf: New file.
1179         * modules/c-xvasprintf-tests: New file.
1180         * lib/c-xasprintf.c: New file.
1181         * lib/c-xvasprintf.c: New file.
1182         * lib/c-xvasprintf.h: New file.
1183         * tests/test-c-xvasprintf.c: New file.
1184         * tests/test-c-xvasprintf.sh: New file.
1185
1186 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         argp: better 'inline'
1189         Use extern-inline module to declare extern inline functions.
1190         This avoids some bogus warning diagnostics.  Problem discovered
1191         when modifying GNU tar to use the manywarnings module.
1192         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1193         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1194         Define based on extern-inline.
1195         * modules/argp (Depends-on): Add extern-inline.
1196
1197 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1198
1199         filemode, sys_stat: Handle MPX files a la AIX.
1200         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1201         * lib/sys_stat.in.h (S_ISMPX): New macro.
1202         * tests/test-sys_stat.c: Add tests for MPX files.
1203
1204 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1205
1206         x-to-1: honor $PERL
1207         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1208         a chance to use his preferred version of Perl.  This is typically
1209         required by Darwin users whose default /usr/bin/perl does not have all
1210         the libraries required by help2man, and who need to use their MacPorts
1211         installation of Perl instead.
1212
1213 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1214
1215         gnu-web-doc-update: add all the new files, even in new directories
1216         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1217         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1218         Use it.
1219         (main): Don't use cvsutils to get the list of unknown files,
1220         just add all the existing files and directories.
1221
1222 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1223
1224         gnu-web-doc-update: improve --help
1225         * build-aux/gnu-web-doc-update: Move comments into --help.
1226
1227 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1228
1229         mountlist: recognize more "dummy" file systems
1230         * lib/mountlist.c (ME_DUMMY_0):
1231         Add these dummy FS names to the list:
1232         - "debugfs" virtual filesystem for kernel debugging
1233         - "devpts" PTY slave filesystem
1234         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1235         - "fusectl" control filesystem for FUSE
1236         - "mqueue" enumerates POSIX message queues
1237         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1238         - "sysfs" is for exporting kernel objects
1239         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1240
1241 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1242
1243         extern-inline: avoid incompatibility with Darwin Libc
1244         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1245         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1246         Problem reported by Akim Demaille in
1247         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1248
1249 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1250
1251         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1252         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1253         let it handle password prompting.
1254
1255 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1256
1257         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1258         * lib/canonicalize.c (canonicalize_filename_mode):
1259         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1260         fetching the current directory.  Don't overrun the beginning of
1261         rpath if there's no slashes after the MS-Windows drive letter.
1262
1263 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1264
1265         maint.mk: avoid extra forks
1266         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1267         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1268         So use that instead of "$(shell test -f FILE && echo FILE)".
1269
1270 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1271
1272         vasnprintf: fix ASCII_ONLY typo
1273         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1274         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1275         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1276         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1277         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1278
1279 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         list, oset, xlist, xoset: fix extern inline issue with C99
1282         This was introduced by my recent changes for 'inline'.
1283         Problem reported for gettext by Daiki Ueno in
1284         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1285         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1286         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1287         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1288         (gl_list_previous_node, gl_list_get_at)
1289         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1290         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1291         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1292         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1293         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1294         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1295         (gl_list_iterator_free, gl_sortedlist_search)
1296         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1297         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1298         (gl_sortedlist_remove):
1299         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1300         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1301         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1302         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1303         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1304         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1305         (gl_list_add_at, gl_sortedlist_add):
1306         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1307         Wrap these extern decls inside "#if 0", because they are implemented
1308         as inline functions, and extern inline is not what's wanted here.
1309         It would simplify these .h files to remove the extern decls entirely,
1310         although a downside would be less-clear separation between
1311         specification and implementation.
1312
1313 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1314
1315         sys_stat: no 'static inline'
1316         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1318
1319         extern-inline: no 'static inline'
1320         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1321         Do not require AC_C_INLINE.
1322         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1323         'static inline', for older compilers.
1324
1325         snippet/warn-on-use: no 'static inline'
1326         * build-aux/snippet/warn-on-use.h:
1327         Remove unnecessary 'inline' in comment.
1328
1329         rbtree-list, rbtreehash-list: no 'static inline'
1330         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1331         * lib/gl_anytree_list2.h (node_at):
1332         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1333         (gl_oset_first, add_nodes_to_buckets):
1334         Now static, not static inline.
1335
1336         regex: no 'static inline'
1337         * lib/regex_internal.c (calc_state_hash):
1338         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1339         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1340         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1341         Now static, not static inline.
1342         (inline) [__GNUC__ < 3 && _LIBC]:
1343         Remove macro; no longer needed.
1344
1345         xvasprintf: no 'static inline'
1346         * lib/xvasprintf.c (xstrcat):
1347         Now static, not static inline.
1348         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1349         Do not require AC_C_INLINE.
1350
1351         parse-datetime, parse-duration: no 'static inline'
1352         * lib/parse-datetime.y (to_uchar):
1353         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1354         (scale_n_add):
1355         Now static, not static inline.
1356         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1357         * modules/parse-duration (configure.ac):
1358         Do not require AC_C_INLINE.
1359
1360         getaddrinfo: no 'static inline'
1361         * lib/getaddrinfo.c (validate_family):
1362         Now static, not static inline.
1363         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1364         Do not require AC_C_INLINE.
1365
1366         ftruncate, fts, lstat, openat, raise: no 'static inline'
1367         * lib/ftruncate.c (chsize_nothrow):
1368         * lib/fts.c (opendirat, diropen):
1369         * lib/lstat.c (orig_lstat):
1370         * lib/openat.c (orig_openat):
1371         * lib/raise.c (raise_nothrow):
1372         Now static, not static inline.
1373         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1374         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1375         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1376         * m4/openat.m4 (gl_PREREQ_OPENAT):
1377         * m4/raise.m4 (gl_PREREQ_RAISE):
1378         Do not require AC_C_INLINE.
1379
1380         fflush, stat: no 'static inline'
1381         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1382         (clear_ungetc_buffer, disable_seek_optimization)
1383         (restore_seek_optimization, update_fpos_cache):
1384         * lib/stat.c (orig_stat):
1385         Now static, not static inline.
1386         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1387         (update_fpos_cache):
1388         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1389         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1390         * m4/stat.m4 (gl_PREREQ_STAT):
1391         Do not require AC_C_INLINE.
1392
1393         error, filevercmp: no 'static inline'
1394         * lib/error.c (is_open, flush_stdout):
1395         * lib/filevercmp.c (order):
1396         Now static, not static inline.
1397         * m4/error.m4 (gl_PREREQ_ERROR):
1398         * modules/filevercmp (configure.ac):
1399         Do not require AC_C_INLINE.
1400
1401         dup, execute, fatal-signal, etc.: no 'static inline'
1402         * lib/dup.c (dup_nothrow):
1403         * lib/execute.c (nonintr_close, nonintr_open):
1404         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1405         * lib/fopen.c (orig_fopen):
1406         * lib/freadseek.c (freadptrinc):
1407         * lib/freopen.c (orig_freopen):
1408         * lib/fstat.c (orig_fstat, fstat_nothrow):
1409         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1410         (get_rusage_as_via_iterator):
1411         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1412         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1413         * lib/isatty.c (_isatty_nothrow):
1414         * lib/open.c (orig_open):
1415         * lib/read.c (read_nothrow):
1416         * lib/sigprocmask.c (signal_nothrow):
1417         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1418         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1419         * lib/wait-process.c (unregister_slave_subprocess):
1420         * lib/write.c (write_nothrow):
1421         Now static, not static inline.
1422         * lib/spawn-pipe.c (nonintr_open): Define only if
1423         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1424         * m4/dup.m4 (gl_PREREQ_DUP):
1425         * m4/execute.m4 (gl_EXECUTE):
1426         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1427         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1428         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1429         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1430         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1431         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1432         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1433         * m4/open.m4 (gl_PREREQ_OPEN):
1434         * m4/read.m4 (gl_PREREQ_READ):
1435         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1436         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1438         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1439         * m4/write.m4 (gl_PREREQ_WRITE):
1440         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1441         Do not require AC_C_INLINE.
1442
1443         c-strtod, memcoll, readutmp: no 'static inline'
1444         * lib/c-strtod.c (c_locale):
1445         * lib/memcoll.c (strcoll_loop):
1446         * lib/readutmp.c (desirable_utmp_entry):
1447         Now static, not static inline.
1448         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1449         * m4/memcoll.m4 (gl_MEMCOLL):
1450         * m4/readutmp.m4 (gl_READUTMP):
1451         Do not require AC_C_INLINE.
1452
1453         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1454         * lib/arctwo.c (to_uchar):
1455         * lib/md4.c (set_uint32):
1456         * lib/md5.c (set_uint32):
1457         * lib/sha1.c (set_uint32):
1458         * lib/sha256.c (set_uint32):
1459         * lib/sha512.c (set_uint64):
1460         Now static, not static inline.  This is a bit simpler, and doesn't
1461         affect performance with GCC and default optimization.
1462         * m4/arctwo.m4 (gl_ARCTWO):
1463         * m4/md4.m4 (gl_MD4):
1464         * m4/md5.m4 (gl_MD5):
1465         * m4/sha1.m4 (gl_SHA1):
1466         * m4/sha256.m4 (gl_SHA256):
1467         * m4/sha512.m4 (gl_SHA512):
1468         Do not require AC_C_INLINE.
1469
1470         cond, lock, thread: better 'inline'
1471         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1472         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1473         New macros.  Use them instead of static inline, for header functions.
1474         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1475         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1476         * lib/glthread/lock.c (gl_waitqueue_init)
1477         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1478         * lib/glthread/thread.c (get_current_thread_handle):
1479         Change 'static inline' to 'inline'.
1480         * lib/glthread/cond.h, lib/glthread/thread.h:
1481         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1482         * m4/cond.m4 (gl_COND):
1483         * m4/lock.m4 (gl_PREREQ_LOCK):
1484         * m4/thread.m4 (gl_THREAD):
1485         Do not require AC_C_INLINE.
1486         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1487
1488         chdir-long, cycle-check, savewd: better 'inline'
1489         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1490         (find_non_slash):
1491         * lib/cycle-check.c (is_zero_or_power_of_two):
1492         * lib/savewd.c (savewd_delegating):
1493         Change 'static inline' to 'inline'.
1494         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1495         Replace all remaining uses of 'static inline' with it.
1496         * lib/savewd.h:
1497         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1498         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1499         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1500         * m4/savewd.m4 (gl_SAVEWD):
1501         Do not require AC_C_INLINE.
1502         * modules/savewd (Depends-on): Add extern-inline.
1503
1504         base32, base64: no need for 'inline'
1505         * lib/base32.c (to_uchar, get_8, decode_8):
1506         * lib/base64.c (to_uchar, get_4, decode_4):
1507         Change 'static inline' to 'inline'.
1508         * m4/base32.m4 (gl_PREREQ_BASE32):
1509         * m4/base64.m4 (gl_PREREQ_BASE64):
1510         Do not require AC_C_INLINE.
1511
1512         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1513         * lib/gl_array_oset.c (gl_array_nx_add_at):
1514         (gl_array_remove_at):
1515         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1516         (add_to_bucket, remove_from_bucket):
1517         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1518         Change 'static inline' to 'static', as it's simpler to omit
1519         'inline' unless there's a significant performance advantage.
1520
1521         list, oset, xlist, xoset, xsublist: simplify via extern inline
1522         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1523         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1524         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1525         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1526         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1527         New macro.  Replace all uses of 'static inline' with it.
1528         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1529         instead of as macros FOO that are defined to static inline
1530         functions FOO_inline.
1531         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1532         * lib/gl_xsublist.c:
1533         Reimplement from scratch, by defining the corresponding *_INLINE
1534         macro and including the corresponding .h file.  This is simpler.
1535         * modules/list, modules/oset, modules/xlist, modules/xoset:
1536         (Files): Remove m4/gl_list.m4.
1537         (configure.ac): Remove gl_LIST.
1538         * m4/gl_list.m4: Remove.
1539         * modules/list, modules/oset, modules/xlist, modules/xoset:
1540         * modules/xsublist:
1541         (Depends-on): Depend on extern-inline, not inline.
1542
1543         xalloc: better 'inline'
1544         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1545         New macro.  Replace all uses of 'static inline' with it.
1546         (static_inline): Remove.
1547         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1548         Let 'extern inline' do the work automatically, instead of doing
1549         it by hand.
1550         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1551         Remove.  All uses removed.
1552         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1553
1554         gethrxtime: better 'inline'
1555         * lib/xtime.c: New file.
1556         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1557         * lib/xtime.h (XTIME_INCLUDE):
1558         New macros.  Replace all uses of 'static inline' with them.
1559         * lib/gethrxtime.c (gethrxtime): Define only if
1560         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1561         this source file is now always compiled, because of the extern inline.
1562         * lib/gethrxtime.h, lib/xtime.h:
1563         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1564         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1565         if gethrtime works, as they're not needed in that case.
1566         (gl_XTIME): Do not require AC_C_INLINE.
1567         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1568         compiled now.  Move the check into gl_GETHRXTIME.
1569         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1570         (Depends-on): Add extern-inline.
1571         (configure.ac): gethrxtime is always compiled now.
1572         (lib_SOURCES): Add gethrxtime.c.
1573
1574         wctype-h: better 'inline'
1575         * lib/wctype-h.c: New file.
1576         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1577         New macro.  Replace all uses of 'static inline' with it.
1578         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1579         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1580         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1581         (Depends-on): Add extern-inline.
1582
1583         unistd: better 'inline'
1584         * lib/unistd.c: New file.
1585         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1586         New macro.  Replace all uses of 'static inline' with it.
1587         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1588         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1589         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1590         (Depends-on): Add extern-inline.
1591
1592         sys_socket: better 'inline'
1593         * lib/sys_socket.c: New file.
1594         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1595         New macro.  Replace all uses of 'static inline' with it.
1596         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1598         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1599         (Depends-on): Add extern-inline.
1600
1601         stdio: better 'inline'
1602         * lib/stdio.c: New file.
1603         * lib/stdio.in.h (_GL_STDIO_INLINE):
1604         New macro.  Replace all uses of 'static inline' with it.
1605         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1606         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1607         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1608         (Depends-on): Add extern-inline.
1609
1610         sigaction: better 'inline'
1611         * lib/sig-handler.c: New file.
1612         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1613         New macro.  Replace all uses of 'static inline' with it.
1614         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1615         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1616         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1617         (Depends-on): Add extern-inline.
1618
1619         selinux-h: better 'inline'
1620         * lib/se-context.c, lib/se-selinux.c: New files.
1621         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1622         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1623         New macro.  Replace all uses of 'static inline' with it.
1624         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1625         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1626         New macro.  Replace all uses of 'static inline' with it.
1627         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1628         * modules/selinux-h (Files, lib_SOURCES):
1629         Add lib/se-context.c, lib/se-selinux.c.
1630         (Depends-on): Add extern-inline.
1631         (configure.ac): Do not require AC_C_INLINE.
1632
1633         pthread: better 'inline'
1634         * lib/pthread.c: New file.
1635         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1636         New macro.  Replace all uses of 'static inline' with it.
1637         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1638         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1639         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1640         * modules/pthread (Files): Add lib/pthread.c.
1641         (Depends-on): Add extern-inline.
1642
1643         math: better 'inline'
1644         * lib/math.c: New file.
1645         * lib/math.in.h (_GL_MATH_INLINE):
1646         New macro.  Replace all uses of 'static inline' with it.
1647         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1648         * m4/math_h.m4 (gl_MATH_H):
1649         Do not require AC_C_INLINE.
1650         * modules/math (Files, lib_SOURCES):
1651         Add lib/math.c.
1652         (Depends-on): Add extern-inline.
1653
1654         count-one-bits: better 'inline'
1655         * lib/count-one-bits.c: New file.
1656         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1657         New macro.  Replace all uses of 'static inline' with it.
1658         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1659         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1660         Do not require AC_C_INLINE.
1661         * modules/count-one-bits (Files, lib_SOURCES):
1662         Add lib/count-one-bits.c.
1663         (Depends-on): Add extern-inline.
1664
1665         count-leading-zeros: better 'inline'
1666         * lib/count-leading-zeros.c: New file.
1667         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1668         New macro.  Replace all uses of 'static inline' with it.
1669         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1670         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1671         Do not require AC_C_INLINE.
1672         * modules/count-leading-zeros (Files, lib_SOURCES):
1673         Add lib/count-leading-zeros.c.
1674         (Depends-on): Add extern-inline.
1675
1676         bitrotate: better 'inline'
1677         * lib/bitrotate.c: New file.
1678         * lib/bitrotate.h (BITROTATE_INLINE):
1679         New macros.
1680         Replace all uses of 'static inline' with them.
1681         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1682         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1683         (Depends-on): Add extern-inline.
1684         (configure.ac): Do not require AC_C_INLINE.
1685
1686 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1687
1688         maint.mk: avoid gratuitous failure
1689         Reported by Stefano Lattarini in
1690         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1691         * top/maint.mk (public-submodule-commit): Quote more safely.
1692
1693 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1694
1695         canonicalize, canonicalize-lgpl: support MS-Windows file names
1696         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1697         for test cases, which it'd be nice to add at some point.
1698         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1699         * lib/canonicalize.c (canonicalize_filename_mode):
1700         * lib/canonicalize-lgpl.c (__realpath):
1701         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1702         slash is at the beginning of the file name.  Use ISSLASH, instead
1703         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1704         the first character with '/'.  Test for
1705         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1706         with a drive letter.
1707         * lib/canonicalize.c (SLASHES): New macro.
1708         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1709
1710 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1711
1712         fts: introduce FTS_VERBATIM
1713         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1714         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1715         * lib/fts.c (fts_open): Honor it.
1716
1717 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1718
1719         getlogin-tests: allow errno == ENXIO
1720         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1721         with errno == ENXIO (No controlling tty).
1722         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1723         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1724         with errno == ENOENT.  This was reported to happen in various
1725         situations on GNU/Linux.
1726
1727 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         getlogin-tests: allow errno == ENOENT
1730         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1731         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1732         when running a test in an Emacs shell buffer.
1733
1734 2012-11-08  Jim Meyering  <jim@meyering.net>
1735
1736         tests/nap.h: avoid warning about unused variable
1737         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1738
1739         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1740         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1741         white space before each of the special-cased file names, to avoid
1742         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1743         in http://bugs.gnu.org/12830.
1744
1745 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1746
1747         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1748         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1749         fails with errno == EBADF when fd is opened with O_PATH.
1750         Reported by Jim Meyering in
1751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1752         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1753         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1754
1755 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         test-utimens: speed up by taking shorter naps
1758         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1759         New functions.
1760         (nap): Use them, to do a better job of guessing the delay.
1761         On Fedora 17 with ext4 atop md atop hard disks, this made
1762         test-utimens run 10x faster, because the test napped for
1763         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1764         <http://bugs.gnu.org/12820#11>.
1765
1766 2012-11-07  Jim Meyering  <jim@meyering.net>
1767
1768         mountlist.c: fix a compilation failure
1769         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1770         I introduced while transforming commit v0.0-7683-g613bcb6
1771
1772 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1773
1774         errno: port to LynxOS 178 2.2.2
1775         Problem reported by Joel Brobecker in
1776         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1777         * doc/posix-headers/errno.texi (errno.h): Document this.
1778         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1779         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1780         Supply a string for EILSEQ.
1781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1782
1783 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1786         Linux kernel 2.6.39 introduced O_PATH (see
1787         <http://lwn.net/Articles/433854/>) and this is a better fallback
1788         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1789         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1790         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1791         * lib/fcntl.in.h (O_ACCMODE):
1792         * tests/test-fcntl-h.c (main):
1793         Do not reject O_ACCMODE merely because it has more than the
1794         minimal number of bits, as POSIX allows extensions here.
1795
1796 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1797
1798         mountlist: do not classify a bind-mounted dir entry as "dummy"
1799         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1800         the "none"-testing clause.
1801         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1802         exception for bind-mounted directories.
1803
1804 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1805
1806         quote: provide a means to escape strings with nul characters
1807         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1808         (quote, quote_n): Rename formal arguments for consistency with
1809         quotearg.
1810
1811 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1812
1813         test-raise: don't assume 199 is an invalid signal
1814         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1815
1816         sh-quote-tests: port to Solaris 9
1817         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1818         Problem reported by Dagobert Michelsen in
1819         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1820
1821 2012-10-28  Jim Meyering  <jim@meyering.net>
1822
1823         maint.mk: rename a new configurable variable
1824         * top/maint.mk (_gl_translatable_string_re): Rename from
1825         translation-markers: _gl_ prefix to insulate from user Makefile code,
1826         and the _re suffix to inform that it's a regular expression.
1827
1828 2012-10-26  Eric Blake  <eblake@redhat.com>
1829
1830         maint.mk: let packages tweak sc_po_check pattern
1831         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1832         finding files with other translation markers.
1833
1834 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         euidaccess: speed up 'configure' on GNU hosts
1837         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1838         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1839         it's needed only in this case.  Use AC_CHECK_DECLS, not
1840         AC_CHECK_DECLS_ONCE.
1841         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1842         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1843
1844         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1845
1846 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1847
1848         fchmodat, fchownat, fstatat: port to non-inlining compilers
1849         Problem reported for FreeBSD 9 by Jim Meyering in
1850         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1851         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1852         New files, which define FCHMODAT_INLINE etc.
1853         * lib/fchmodat.c (FCHMODAT_INLINE):
1854         * lib/fchownat.c (FCHOWNAT_INLINE):
1855         * lib/fstatat.c (FSTATAT_INLINE):
1856         Remove, as chmodat.c etc. now do this.
1857         * modules/fchmodat (Files): Add lib/chmodat.c.
1858         * modules/fchownat (Files): Add lib/chownat.c.
1859         * modules/fstatat (Files): Add lib/statat.c.
1860
1861 2012-10-15  Jim Meyering  <jim@meyering.net>
1862
1863         fchmodat.c, fchownat.c: compile-impeding typos
1864         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1865         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1866         Introduced in commit v0.0-7636-gd202279.
1867
1868 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         fcntl-h: support GNU flags like O_IGNORE_CTTY
1871         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1872         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1873         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1874         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1875         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1876         Define to 0 if not already defined.
1877         * tests/test-fcntl-h.c: Test these new flags.
1878
1879 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1880
1881         faccessat, etc.: support AT_FDCWD-only use
1882         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1883         this function only if its first argument is AT_FDCWD.
1884         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1885         values other than AT_FDCWD, so it doesn't want all the openat
1886         machinery with fchdir etc.
1887         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1888         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1889         * modules/unlinkat (Files):
1890         Remove lib/openat-priv.h, as at-internal supplies this file.
1891         Removing this file here allows us to support programs like Emacs
1892         that avoid at-internal.
1893
1894         faccessat: speed up 'configure' on mainstream hosts
1895         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1896         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1897         since it's only on unusual platforms that we need to check for
1898         'access', and it's better not to slow 'configure' down on all
1899         platforms.
1900
1901         faccessat: port to Solaris 10
1902         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1903         Needed on Solaris 10, which doesn't have AT_EACCESS,
1904         so we need the Gnulib fcntl.h, which defines it.
1905
1906 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1907         canonicalize: fix C89 compilation
1908         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1909         declarations so C89 is supported.  Also remove the comment
1910         referencing memorty allocation as the suggested feature could
1911         not be implemented as suggested.
1912         Reported by Michael Goffioul.
1913
1914 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         group-member: omit unnecessary dependencies
1917         This is for Emacs, which has its own allocator and where we
1918         don't want to use xalloc.
1919         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1920         since we no longer use xmalloc.  Do not include stdbool.h, since
1921         the changes below happen to remove the only use of bool.
1922         (GROUPBUF_SIZE): New constant.
1923         (struct group_info): Remove n_groups member.  Add groupbuf member.
1924         This lets us get the groups without using malloc, usually.
1925         (free_group_info, get_group_info): Adjust to this.
1926         (get_group_info): Return the number of groups found, or -1 on error.
1927         Use plain malloc not xmalloc, and treat its failure as if there
1928         are no groups, as the user already loses in case of error.
1929         (group_member): Simplify, based on changes to get_group_info.
1930         * modules/group-member (Depends-on): Remove dependencies on
1931         xalloc and stdbool.  Add dependency on xalloc-oversized.
1932
1933 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1934
1935         gethrxtime: port to C++
1936         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1937
1938 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1939
1940         ptsname: fix macro-name typo
1941         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1942
1943 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1944
1945         inttostr: Relax license.
1946         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1947
1948 2012-10-03  Eric Blake  <eblake@redhat.com>
1949
1950         ptsname_r: support ptys returned by FreeBSD posix_openpt
1951         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1952         lives in /dev/pts/.
1953
1954 2012-10-02  Eric Blake  <eblake@redhat.com>
1955
1956         pselect: reject invalid file descriptors
1957         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1958         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1959         * modules/pselect (Depends-on): Add dup2.
1960         * doc/posix-functions/pselect.texi (pselect): Document this.
1961
1962         select: reject invalid file descriptors
1963         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1964         * lib/select.c (rpl_select) [!win32]: Work around it.
1965         * modules/select (Depends-on): Add dup2.
1966         * doc/posix-functions/select.texi (select): Document this.
1967
1968         select: enhance test
1969         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1970         New functions.
1971         (test_function): Enhance test.
1972         (do_select_bad_fd): Avoid any stale errno values.
1973
1974         ptsname: reject invalid file descriptors
1975         http://www.austingroupbugs.net/view.php?id=503
1976         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1978         * modules/stdlib (Makefile.am): Replace witness.
1979         * lib/stdlib.in.h (ptsname): Allow for replacement.
1980         * modules/ptsname (configure.ac): Trigger replacement.
1981         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1982
1983 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1984
1985         hash-pjw-bare: new module
1986         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1987         * lib/hash-pjw-bare.h: Likewise.
1988         * modules/hash-pjw-bare: New file.
1989         * MODULES.html.sh (Misc): Add it.
1990
1991 2012-10-02  Eric Blake  <eblake@redhat.com>
1992
1993         manywarnings: cater to more gcc infelicities
1994         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1995         -Wuninitialized without -O.
1996
1997 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1998
1999         select, poll tests: Make setsockopt invocation effective.
2000         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2001         the bind() call.
2002         * tests/test-select.h (open_server_socket): Likewise.
2003
2004 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         sockets, sys_stat: restore AC_C_INLINE
2007         This undoes the 2012-09-22 patch.
2008         * m4/sockets.m4 (gl_SOCKETS):
2009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2010         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2011         and does not support plain 'inline'.  Reported by Bruno Haible in
2012         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2013
2014 2012-09-30  Bruno Haible  <bruno@clisp.org>
2015
2016         localeconv tests: Avoid test failure on OpenIndiana.
2017         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2018         skip the 'grouping' and 'mon_grouping' tests.
2019         Reported by Jim Meyering.
2020
2021 2012-09-30  Bruno Haible  <bruno@clisp.org>
2022
2023         havelib: Follow libtool developments.
2024         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2025         Suggested by Simon Josefsson.
2026
2027 2012-09-29  Jim Meyering  <meyering@redhat.com>
2028
2029         fstatat.c: fix a compile-impeding typo
2030         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2031         Introduced in commit v0.0-7636-gd202279.
2032         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2033
2034 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2035
2036         extern-inline: provide a -Wundef safe config.h
2037         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2038         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2039         to produce a -Wundef warning free config.h.
2040
2041 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         hash-pjw: relax license to LGPLv2+
2044         * modules/hash-pjw (License): Relax, with consent of author.
2045
2046 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2047
2048         maint.mk: fix strict vs. lazy variable issues with RELEASE
2049         * top/maint.mk (_equal): New function.
2050         (member_check): Strip the result to avoid spurious spaces.
2051         (url_dir_list): Do not use ifeq, which is strict, as it will
2052         require RELEASE_TYPE to be defined.
2053         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2054         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2055         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2056         (announcement_Cc_beta,announcement_mail_headers_beta)
2057         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2058         (release): Do not depend on $(release-type), as it forces its
2059         evaluation.  Bounce to it.
2060
2061 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2062
2063         maint.mk: formatting changes
2064         * top/maint.mk: Indent bodies of if's.
2065
2066 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2067
2068         maint.mk: factor the validation of RELEASE_TYPE
2069         With help from Jim Meyering.
2070         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2071         * top/maint.mk (_empty, _sp): Move their definition earlier.
2072         (member-check, release-type): New.
2073         Use the latter instead of $(RELEASE_TYPE).
2074         Remove now useless local checks.
2075
2076 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2077
2078         maint.mk: provide "make upload" to ease uploading
2079         See
2080         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2081         Do not depend simply on the current $(VERSION), as there may have been
2082         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2083         as "make release-commit" already does.
2084
2085         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2086         "make TYPE".
2087
2088         * top/maint.mk (upload_command, upload, release): New.
2089         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2090         (VERSION): first word of $(RELEASE) is always right.
2091         (emit_upload_commands): Adjust.
2092         * top/README-release: Update.
2093
2094 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2095
2096         maint.mk: silent rules
2097         With help from Stefano Lattarini.
2098         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2099         (announcement): Use $(AM_V_at).
2100
2101 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2102
2103         localename: port gl_locale_name_thread_unsafe to FreeBSD
2104         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2105         and use the simpler FreeBSD implementation on Mac OS X as well.
2106         Original idea suggested by Ed Maste in
2107         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2108
2109 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2110
2111         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2112         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2113         * lib/mbuiter.c, lib/xsize.c: New files.
2114         * lib/binary-io.h (BINARY_IO_INLINE):
2115         * lib/eealloc.h (EEALLOC_INLINE):
2116         * lib/mbfile.h (MBFILE_INLINE):
2117         * lib/mbiter.h (MBITER_INLINE):
2118         * lib/mbuiter.h (MBUITER_INLINE):
2119         * lib/xsize.h (XSIZE_INLINE):
2120         New macros.
2121         Replace all uses of 'static inline' with them.
2122         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2123         * m4/eealloc.m4 (gl_EEALLOC):
2124         * m4/mbfile.m4 (gl_MBFILE):
2125         * m4/mbiter.m4 (gl_MBITER):
2126         * m4/xsize.m4 (gl_XSIZE):
2127         Do not require AC_C_INLINE.
2128         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2129         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2130         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2131         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2132         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2133         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2134         * modules/binary-io, modules/eealloc, modules/mbfile:
2135         * modules/mbiter, modules/mbuiter:
2136         (Depends-on): Add extern-inline.
2137
2138         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2139         * lib/pipe-filter-aux.c: New file.
2140         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2141         Replace all uses of 'static inline' with it.
2142         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2143         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2144         (filter_retcode): No real need for inline here.
2145         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2146         (Files): Add lib/pipe-filter-aux.c.
2147         (Depends-on): Add extern-inline.
2148         (configure.ac): Do not require AC_C_INLINE.
2149         (lib_SOURCES): Add pipe-filter-aux.c.
2150
2151         fdutimensat: omit unnecessary AC_C_INLINE
2152         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2153
2154         fchmodat, fchownat, fstatat: use extern-inline
2155         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2156         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2157         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2158         New macros.
2159         * lib/openat.h:
2160         Replace all uses of 'static inline' with them.
2161         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2162         * modules/fchmodat, modules/fchownat, modules/fstatat:
2163         * modules/openat-h:
2164         (Depends-on):
2165         Add extern-inline.
2166         (configure.ac): Remove AC_C_INLINE.
2167
2168         acl, mbchar, priv-set: use extern-inline
2169         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2170         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2171         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2172         New macros.
2173         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2174         Replace all uses of 'static inline' with it.
2175         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2176         * m4/acl.m4 (gl_FUNC_ACL):
2177         * m4/mbchar.m4 (gl_MBCHAR):
2178         * m4/priv-set.m4 (gl_PRIV_SET):
2179         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2180         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2181         Add extern-inline.
2182
2183         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2184         * m4/sockets.m4 (gl_SOCKETS):
2185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2186         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2187         environments where it's already guaranteed to work, so we needn't
2188         check for it at 'configure'-time.
2189
2190         tls-tests: omit unnecessary 'inline'
2191         * tests/test-tls.c (perhaps_yield): No longer inline.
2192         Simplicity and portability trump efficiency in test cases.
2193
2194         utimens-tests: avoid unnecessary 'inline'
2195         * modules/fdutimensat-tests (configure.ac):
2196         * modules/futimens-tests (configure.ac):
2197         * modules/utimens-tests (configure.ac):
2198         * modules/utimensat-tests (configure.ac):
2199         Remove AC_C_INLINE.
2200         * tests/test-utimens-common.h (ctime_compare):
2201         No longer inline.  Simplicity and portability trump efficiency here.
2202
2203         misc: don't limit commentary to inline functions
2204         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2205         * lib/xalloc-oversized.h, lib/xsize.h:
2206         Contrast macros to functions in general, not just to inline functions,
2207         when the commentary does not apply only to inline functions.
2208
2209 2012-09-20  Jim Meyering  <meyering@redhat.com>
2210
2211         non-recursive-gnulib-prefix-hack: new module
2212         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2213         the file that originated in Bison.
2214         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2215         largely copied from a snippet that resided in bison's configure.ac.
2216         * modules/non-recursive-gnulib-prefix-hack: New file.
2217         * MODULES.html.sh (Support for maintaining and releasing projects):
2218         Add it.
2219
2220 2012-09-18  Jim Meyering  <meyering@redhat.com>
2221
2222         maint.mk: generalize _gl_tight_scope for non-recursive make
2223         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2224         that *.h would describe additional .h files in the directory
2225         specified by $(_gl_TS_dir).  I.e., add this...
2226         (_gl_TS_other_headers): New variable.
2227
2228         maint.mk: exempt trailing blanks found in "binary" files
2229         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2230         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2231         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2232
2233 2012-09-17  Jim Meyering  <meyering@redhat.com>
2234
2235         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2236         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2237         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2238         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2239
2240 2012-09-17  Jim Meyering  <meyering@redhat.com>
2241
2242         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2243         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2244         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2245         It is not in the same category as "exit (0)" or "exit (1)", and
2246         besides, I know of no symbolic name for that 77.  Reported by
2247         Richard W.M. Jones in
2248         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2249
2250 2012-09-17  Jim Meyering  <meyering@redhat.com>
2251
2252         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2253         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2254         all uses of #define, not just those that start in column 1.
2255         Richard W.M. Jones reported a false positive in
2256         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2257
2258 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2261         * lib/localcharset.c (locale_charset) [DARWIN7]:
2262         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2263         as these two values are incompatible.  Problem reported by Max Horn.
2264         For more discussion, please see
2265         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2266
2267         doc: document sticky-EOF issue
2268         * doc/posix-functions/fgetc.texi (fgetc):
2269         * doc/posix-functions/fgets.texi (fgets):
2270         * doc/posix-functions/fread.texi (fread):
2271         * doc/posix-functions/fscanf.texi (fscanf):
2272         * doc/posix-functions/getc.texi (getc):
2273         * doc/posix-functions/getchar.texi (getchar):
2274         * doc/posix-functions/scanf.texi (scanf):
2275         Mention that glibc and default Solaris do not conform to
2276         C99 and POSIX-2001 or later, with respect to how getchar
2277         etc. behave when feof reports nonzero.
2278
2279 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2280
2281         poll: fix poll(0, NULL, msec)
2282         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2283         but nfd is 0.  In that case poll should behave like select.
2284
2285 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2286             Paolo Bonzini <bonzini@gnu.org>
2287
2288         poll: fix for systems that can't recv() on a non-socket
2289         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2290         is readable.  In this case POLLHUP will not be supported.
2291         * doc/posix-functions/poll.texi: Document this.
2292
2293 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2294
2295         poll/select: document portability problems not fixed by Gnulib.
2296         * doc/posix-functions/poll.texi: poll does not work well on
2297         pipes under Windows.  It has the same limitations as select on
2298         BeOS.
2299         * doc/posix-functions/select.texi: select does not work well
2300         on pipes under Windows.
2301
2302 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2303
2304         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2305         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2306         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2307         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2308
2309 2012-09-06  Eric Blake  <eblake@redhat.com>
2310
2311         net_if: give more details about the bug being fixed
2312         * doc/posix-headers/net_if.texi: Add clarification.
2313
2314 2012-09-05  Eric Blake  <eblake@redhat.com>
2315
2316         net_if: new module
2317         * modules/net_if: New module, borrowing ideas from netinet_in.
2318         * m4/net_if_h.m4: New file.
2319         * lib/net_if.in.h: Likewise.
2320         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2321         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2322         * tests/test-net_if.c: Make function checks conditional.
2323         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2324
2325 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2326
2327         readutmp: fix non-portable UT_PID use
2328         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2329         Use `UT_PID (u) > 0' as absolute condition.
2330
2331 2012-09-04  Jim Meyering  <meyering@redhat.com>
2332
2333         fts: reduce two or more trailing spaces to just one, usually
2334         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2335         or more slashes, trim all but the final one.  But if a name consists
2336         solely of two slashes, don't modify it.  If it consists solely of
2337         three or more slashes, strip all but one.
2338
2339         This is part of the solution to a minor problem with rm:
2340         it would print a bogus ELOOP diagnostic when failing to remove
2341         the slash-decorated name of a symlink-to-directory:
2342
2343             $ mkdir d && ln -s d s && env rm -r s/
2344             rm: cannot remove 's': Too many levels of symbolic links
2345
2346         With the change below and a trivial don't-trim-trailing-slashes
2347         adjustment to remove.c, it does this:
2348
2349             $ env rm -r s/
2350             rm: cannot remove 's/': Not a directory
2351
2352         Improved by: Eric Blake
2353
2354         fts: when there is no risk of overlap, use memcpy, not memmove
2355         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2356
2357 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2358
2359         stdbool: be more compatible with mixed C/C++ compiles
2360         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2361         Define to bool, true, false, respectively, as GCC's builtin
2362         stdbool.h does.  Problem reported by Michael Goffioul in
2363         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2364
2365 2012-08-28  Jim Meyering  <meyering@redhat.com>
2366
2367         revert last change: it was not needed
2368         * tests/test-vc-list-files-git.sh: There's already a test for
2369         a working git, just below.
2370
2371 2012-08-28  Jim Meyering  <meyering@redhat.com>
2372
2373         tests: test-vc-list-files-git.sh: skip if git is not available
2374         * tests/test-vc-list-files-git.sh: Skip this test when git is
2375         not available.
2376
2377 2012-08-26  Bruno Haible  <bruno@clisp.org>
2378
2379         gnulib-tool: Remove no-op option --no-changelog.
2380         * gnulib-tool (func_usage): Don't mention --no-changelog.
2381         (do_changelog): Remove variable.
2382         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2383
2384 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2385
2386         doc: remove fdl-1.2.texi
2387         It is no longer used or maintained, and its use of @acronym
2388         is problematic.  See the thread containing
2389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2390         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2391         * doc/old-licenses/fdl-1.2.texi: Remove.
2392
2393         execinfo: port to FreeBSD
2394         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2395         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2396         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2397         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2398
2399 2012-08-23  Jim Meyering  <meyering@redhat.com>
2400
2401         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2402         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2403         to placate gcc's -Wold-style-declaration.
2404
2405 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2406
2407         doc: do not use @acronym
2408         * doc/inet_ntoa.texi (inet_ntoa):
2409         * doc/parse-datetime.texi (Seconds since the Epoch)
2410         (Specifying time zone rules):
2411         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2412         Don't use @acronym.  Problem reported by John Darlington in
2413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2414
2415 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2416
2417         stdnoreturn: port to newer GCCs
2418         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2419         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2420         Problem reported by Jim Meyering in
2421         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2422         Also, rename the 'test' function to a void a clash with the
2423         already-supplied 'main' function; this fixes a bug that incorrectly
2424         rejected GCC 4.7.1's <stdnoreturn.h>.
2425         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2426         Document GCC problem.
2427
2428 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2429
2430         pipe-filter: fix comment typo
2431         * lib/pipe-filter.h: Mention correct function.
2432
2433 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2434
2435         execinfo: new module
2436         This is for Emacs.  Currently, it provides a no-effect stub
2437         on all platforms where it does not already work.
2438         It already works on glibc-based systems, and on Solaris 11.
2439         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2440         New files.
2441         * doc/glibc-headers/execinfo.texi (execinfo.h):
2442         * MODULES.html.sh (Misc): Document it.
2443
2444 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2445
2446         extern-inline: support old GCC 'inline'
2447         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2448         if available.  This applies to GCC versions 2.7 through 4.2, or
2449         when newer GCC is using -fgnu89-inline.  The goal is to address
2450         some of the performance issues mentioned by Bruno Haible in
2451         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2452
2453 2012-08-20  Eric Blake  <eblake@redhat.com>
2454
2455         maint.mk: avoid redundant file name in message
2456         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2457         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2458         (sc_makefile_path_separator_check): Remove bogus $(ME).
2459
2460 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2461
2462         timer-time: fix link order when static linking on glibc
2463         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2464         _after_ -lrt so that it's significant.
2465
2466 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2467
2468         timespec: omit unnecessary AC_C_INLINE
2469         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2470
2471         stat-time: omit unnecessary AC_C_INLINE
2472         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2473         Do not require AC_C_INLINE.
2474
2475         ignore-value: omit unnecessary AC_C_INLINE
2476         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2477
2478         sys_select: avoid 'static inline'
2479         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2480
2481         mktime: avoid 'static inline'
2482         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2483         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2484
2485 2012-08-19  Bruno Haible  <bruno@clisp.org>
2486
2487         gnulib-tool: Improve coding style.
2488         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2489         func_emit_lib_Makefile_am.
2490         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2491
2492 2012-08-19  Bruno Haible  <bruno@clisp.org>
2493
2494         gnulib-tool: Fix indentation.
2495         * gnulib-tool (func_import): Fix indentation.
2496
2497 2012-08-19  Bruno Haible  <bruno@clisp.org>
2498
2499         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2500         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2501         on the list of removed files.
2502
2503 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2504
2505         test-parse-datetime: avoid glibc leap-second glitch
2506         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2507         with the 2012 rules.  Problem reported by Bruce Dubbs in
2508         <http://bugs.gnu.org/12206>.
2509
2510 2012-08-14  Bruno Haible  <bruno@clisp.org>
2511
2512         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2513         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2514         from argument.
2515         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2516
2517 2012-08-14  Eric Blake  <eblake@redhat.com>
2518
2519         ldexp: relax license
2520         * modules/ldexp (License): Trivial relax, since the module only
2521         provides a permissively licensed m4 file.
2522
2523 2012-08-13  Bruno Haible  <bruno@clisp.org>
2524
2525         gnulib-tool: Fix persistence of --witness-c-macro option.
2526         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2527         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2528
2529 2012-08-11  Eric Blake  <eblake@redhat.com>
2530
2531         count-leading-zeros: use a lookup table on non-gcc compilers
2532         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2533         alternate implementation, suggested by Jim Meyering.
2534
2535 2012-08-10  Eric Blake  <eblake@redhat.com>
2536
2537         count-leading-zeros: new module
2538         * modules/count-leading-zeros: New module.
2539         * m4/count-leading-zeros.m4: New file.
2540         * lib/count-leading-zeros.h: Likewise.
2541         * modules/count-leading-zeros-tests: New test.
2542         * tests/test-count-leading-zeros.c: New file.
2543         * MODULES.html.sh (Integer arithmetic functions): Document it.
2544
2545 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2546             Jim Meyering  <meyering@redhat.com>
2547
2548         maintainer-makefile: Fix syntax error with dash.
2549         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2550         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2551
2552 2012-08-05  Jim Meyering  <meyering@redhat.com>
2553
2554         extern-inline: also ignore -Wmissing-declarations
2555         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2556         required with gcc-4.8.0-to-be.
2557
2558         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2559         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2560         for /error ?([^,]*)/.  This avoids false-positives for strings like
2561         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2562
2563 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2564
2565         gnumakefile: better interaction with Automake-NG
2566         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2567         Automake-NG always contain a definition of VPATH, even in non-VPATH
2568         builds (its value being simply '.' in that case).  So, in the
2569         'clean-GNUmakefile' rule, to determine whether running under a
2570         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2571         '$(VPATH)' expands to the empty string.
2572
2573 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2574
2575         base64: Use extern C scope in header file, for C++.
2576         * lib/base64.h: Add C++ namespace protection.
2577
2578 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2579
2580         stat-time, timespec, u64: support naive out-of-dir builds
2581         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2582         Use '#include "foo.h"', not '#include <foo.h>', when including
2583         one's own interface.  This works better when configuring with
2584         out-of-directory builds, since packages need not add an
2585         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2586
2587 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         utimens: use extern-inline
2590         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2591         * lib/utimens.h: Add copyright notice, since this is now large enough
2592         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2593         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2594         * modules/utimens (Depends-on): Add extern-inline.
2595
2596         u64: use extern-inline
2597         * lib/u64.c: New file.
2598         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2599         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2600         * modules/u64 (Files): Add lib/u64.c.
2601         (Depends-on): Add extern-inline.
2602         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2603         does that now.
2604         (lib_SOURCES): Add u64.c.
2605
2606         timespec: use extern-inline
2607         * lib/timespec.c: New file.
2608         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2609         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2610         * modules/timespec (Files): Add lib/timespec.c.
2611         (Depends-on): Add extern-inline.
2612         (lib_SOURCES): Add timespec.c.
2613
2614         stat-time: use extern-inline
2615         * lib/stat-time.c: New file.
2616         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2617         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2618         * modules/stat-time (Files): Add lib/stat-time.c.
2619         (Depends-on): Add extern-inline.
2620         (lib_SOURCES): Add stat-time.c.
2621
2622         extern-inline: new module
2623         * modules/extern-inline, m4/extern-inline.m4: New files.
2624         This is for better support of 'extern inline' a la ISO C99,
2625         with a portable alternative on compilers that do not support
2626         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2627         of the Emacs executable, when compiled with debugging disabled,
2628         which is a typical way that Emacs is built while developing.
2629
2630 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2631
2632         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2633         * build-aux/do-release-commit-and-tag: Move variable definitions
2634         together.
2635         ($branch): Instead of defaulting to "master", default to the current
2636         branch (as gnu-web-doc-update does).
2637         (help): Display the current values of the option arguments.
2638         * top/maint.mk (release-commit): New.
2639         * top/README-release: Simplify the corresponding step.
2640
2641 2012-07-30  Eric Blake  <eblake@redhat.com>
2642
2643         passfd: fix comment on recvfd
2644         * lib/passfd.c (recvfd): Fix comment.
2645         Reported by Jann Horn <jannhorn@googlemail.com>.
2646
2647 2012-07-30  Jim Meyering  <meyering@redhat.com>
2648
2649         maint.mk: avoid a sub-shell
2650         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2651
2652 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2653
2654         maint.mk: use silent-rules support from Automake
2655         * top/maint.mk (news-check, vc-diff-check, announcement)
2656         (no-submodule-changes, alpha beta stable, release-prep)
2657         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2658
2659 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2660
2661         maint.mk: provide a web-manual-update target
2662         * top/maint.mk: here.
2663         * top/README-release: Use it to simplify the web manual update step.
2664
2665 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2666
2667         README-release: shorten the circuit to post a news
2668         * top/README-release: Point directly to the news submission form.
2669
2670 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2671
2672         gnu-web-doc-update: fix --help
2673         * build-aux/gnu-web-doc-update: The information "top level" was written
2674         twice.
2675
2676 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2677
2678         maint.mk: absolute VPATH issue
2679         * top/maint.mk (release-prep): Help Git find .git/.
2680         From Jim Meyering.
2681
2682 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2683
2684         gitlog-to-changelog: fix previous change
2685         * build-aux/gitlog-to-changelog: Fix condition.
2686         Add missing ";".
2687
2688 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2689
2690         gitlog-to-changelog: don't expect .git to be in $srcdir
2691         Reported by Bruno Haible.
2692         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2693         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2694         Use it.
2695
2696 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2697
2698         maint.mk: absolute VPATH build fix
2699         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2700         $(srcdir) is not a parent of $(builddir).
2701
2702 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2703
2704         clean-temp: Fix memory leak.
2705         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2706         'files' members of tmpdir.
2707
2708 2012-07-27  Jim Meyering  <meyering@redhat.com>
2709
2710         maint.mk: new rule: refresh-gnulib-patches
2711         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2712         Use this rule to refresh them.
2713         * top/maint.mk (refresh-gnulib-patches): New rule.
2714
2715 2012-07-24  Bruno Haible  <bruno@clisp.org>
2716
2717         gnulib-tool: Fix handling of inctests variable.
2718         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2719         Reported by Nick Bowler <nbowler@elliptictech.com>.
2720
2721 2012-07-22  Bruno Haible  <bruno@clisp.org>
2722
2723         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2724         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2725         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2726         Remove exemption for getpass.h.
2727         Suggested by Eric Blake.
2728
2729 2012-07-20  Eric Blake  <eblake@redhat.com>
2730
2731         verify: document conflict with -Wnested-externs
2732         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2733
2734         maint.mk: forbid exit(-1)
2735         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2736
2737 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2738
2739         fsusage: port back to Solaris
2740         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2741         error (fsd not declared) on Solaris 10.  Reported privately by
2742         Andrew Borodin.
2743
2744 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2745
2746         gnu-web-doc-update: fix error messages
2747         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2748
2749         gnu-web-doc-update: check the requirements.
2750         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2751         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2752         * build-aux/bootstrap (find_tool): Comment change.
2753
2754 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2755
2756         maint.mk: minor simplication.
2757         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2758         for default values.
2759
2760 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2761
2762         gitlog-to-changelog: VPATH build issues
2763         If builddir is not a subdirectory of srcdir, running git from it will
2764         fail.
2765         * build-aux/gitlog-to-changelog (--srcdir): New option.
2766
2767 2012-07-15  Bruno Haible  <bruno@clisp.org>
2768
2769         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2770         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2771         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2772         Remove exemption for fpending.h.
2773         Suggested by Eric Blake.
2774
2775 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         pthread_sigmask: fix bug on FreeBSD 9
2778         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2779         Include string.h.
2780         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2781         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2782         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2783         but pthread_sigmask (1729, NULL, NULL) returns zero.
2784         See <http://bugs.gnu.org/11884>.
2785         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2786         by inspecting whether the main call changed the old mask.
2787
2788 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2789
2790         README-release: make it more legible
2791         * top/README-release: Improve typography slightly.
2792
2793 2012-07-15  Jim Meyering  <meyering@redhat.com>
2794
2795         maint: require that each sc_... command start with "@"
2796         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2797         "make sc_maint" helps us avoid this nit.
2798
2799 2012-07-15  Jim Meyering  <meyering@redhat.com>
2800
2801         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2802         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2803
2804 2012-07-13  Eric Blake  <eblake@redhat.com>
2805
2806         maint.mk: new syntax check for HAVE_DECL checks
2807         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2808         * cfg.mk
2809         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2810         Exempt some false positives.
2811         Based on a report by Karel Zak.
2812
2813         argp: make HAVE_DECL usage consistent
2814         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2815         macros, not whether they are defined.
2816         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2817         convention with other declaration checks.
2818         Reported by Karel Zak, with suggestions from Paul Eggert.
2819
2820         stat-time: relax license to LGPLv2+
2821         * modules/stat-time (License): Relax, with consent of all authors.
2822
2823         strndup: fix m4 usage error
2824         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2825         defined, to either 0 or 1.
2826         Reported by Karel Zak.
2827
2828 2012-07-11  Jim Meyering  <meyering@redhat.com>
2829
2830         maint: enable the sc_avoid_if_before_free syntax-check rule
2831         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2832         (if_before_free_offenders_): Define.
2833         (if_before_free_basename_re_): Define.
2834         Exempt current files with useless if-before-free.
2835
2836 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2837
2838         gettext: do not assume '#define ... defined ...' behavior
2839         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2840         Do not use '#define FOO ... defined BAR ...', as the C standard says
2841         it's not portable to expect that this works after macro expansion.
2842         Problem reported for gzip by Steven M. Schweda in
2843         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2844
2845 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2846
2847         getloadavg: clean out old Emacs and Autoconf cruft
2848         See Glenn Morris in <http://bugs.gnu.org/11905>.
2849         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2850         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2851         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2852         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2853
2854 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2855
2856         bootstrap: let warn be like tests/init.sh's warn_
2857         Reported by Jim Meyering.
2858         * build-aux/bootstrap (warn): Remove, replaced by...
2859         (warnf_, warn_): these.
2860         Adjust callers.
2861         Shorten messages that no longer fit in 80 columns.
2862
2863 2012-07-09  Bruno Haible  <bruno@clisp.org>
2864
2865         getopt: Simplify after Emacs changed.
2866         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2867         (gl_GETOPT_IFELSE): Remove macro.
2868
2869 2012-07-09  Jim Meyering  <meyering@redhat.com>
2870
2871         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2872         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2873
2874         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2875         Bugs in both of those conspired to make the
2876         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2877         _sc_search_regexp's handling of non-empty $in_files would filter
2878         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2879         choice of in_files value meant there would be no match in most
2880         projects, due to the presence of two or more Makefile.in files.
2881         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2882         Fix a bug in how a non-empty $$in_files was processed:
2883         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2884         in spite of the name, it's a regexp, not a list of file names.
2885
2886 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2887
2888         getloadavg, getopt: fix commentary re configure.in
2889         Autoconf is deprecating the name 'configure.in', so change it to
2890         to the new name 'configure.ac' in a couple of places.
2891         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2892         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2893         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2894         Emacs has renamed it to configure.ac, and it no longer refers
2895         to these macros anyway.
2896
2897         timespec: mark functions with const attributes
2898         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2899         Mark with _GL_ATTRIBUTE_CONST.
2900
2901 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2902
2903         canonicalize[-lgpl]: handle "guessing" values when cross-building
2904         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2905         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2906         matches "*yes" instead of just "yes".  Regression introduced in commit
2907         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2908
2909 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2910             Bruno Haible  <bruno@clisp.org>
2911
2912         canonicalize: make the right guess when cross-compiling to GNU
2913         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2914         determine whether cross-compiling to glibc systems, so as to
2915         include GNU/Hurd.
2916
2917 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2918
2919         timespec-sub: avoid duplicate include
2920         * lib/timespec-sub.c: Do not include <config.h> twice.
2921         Reported by Juanma Barranquero.
2922
2923 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2924
2925         bootstrap: use a more consistent error reporting scheme
2926         * build-aux/bootstrap (warn, die): New.
2927         Use them.
2928
2929 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2930
2931         sys_time: allow too-wide tv_sec
2932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2933         timeval even if tv_sec is wider than time_t.  This allows
2934         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2935         as without this patch gnulib replaces struct timeval
2936         and OpenBSD futimes therefore has a type mismatch.
2937         * doc/posix-headers/sys_time.texi: Mention this.
2938
2939         pthread: check for both pthread_create and pthread_join
2940         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2941         alter the check so that it tests for both pthread_create and
2942         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2943         Suggested by Bruno Haible and Richard Yao in
2944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2945
2946         parse-datetime: doc tuneup
2947         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2948         spacing issues.
2949
2950 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2951
2952         do-release-commit-and-tag: fix the previous commit
2953         * build-aux/do-release-commit-and-tag: Actually the test was right,
2954         but the comment and the error message were misleading.
2955         Fix comment, and improve error message.
2956         Perform check first, so that NEWS is not modified uselessly.
2957
2958         do-release-commit-and-tag: fix typo
2959         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2960         _not_ start with a stub.
2961
2962 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2963
2964         pthread: check for pthread_create, not pthread_join
2965         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2966         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2967         pthread_join in libc.  I hope this removes the need for all the
2968         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2969         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2970
2971 2012-07-04  Jim Meyering  <meyering@redhat.com>
2972
2973         parse-datetime: fix failure to diagnose invalid input
2974         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2975         rather than diagnosing the invalid input.  Now it reports this:
2976         date: invalid date '\260'
2977         * lib/parse-datetime.y (to_uchar): Define.
2978         (yylex): Don't sign-extend "other" bytes.
2979         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2980         Thanks to Bruno Haible for the patch to this file.
2981         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2982         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2983
2984 2012-07-03  Jim Meyering  <meyering@redhat.com>
2985
2986         bootstrap: do not require now-removed build-aux/missing
2987         Now that build-aux/missing is, er, missing, bootstrap would
2988         silently fail.
2989         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2990         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2991         no longer part of gnulib.
2992         Diagnose the failure.
2993
2994 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2995
2996         alloca: add support for HP NonStop TNS/E native
2997         * lib/alloca.in.h (alloca): Support the new host.
2998         From a suggestion by Joachim Schmitz in
2999         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3000
3001 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3002
3003         fsusage: remove code not needed on non GNU/Linux systems.
3004
3005         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3006         Don't include headers no longer needed in this case.
3007         * lib/fsusage.c [STAT_STATVFS &&
3008         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3009         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3010
3011 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3012
3013         fsusage: include files needed for glibc 2.6 fallback
3014         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3015         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3016         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3017         Problem reported by Ludovic Courtès in
3018         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3019
3020         fsusage: avoid needless check on GNU/Linux
3021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3022         on GNU/Linux systems, since it can't possibly work.
3023
3024 2012-07-01  Bruno Haible  <bruno@clisp.org>
3025
3026         log: Fix an autoconf >= 2.64 warning.
3027         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3028         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3029
3030 2012-06-28  Bruno Haible  <bruno@clisp.org>
3031
3032         log10f: Fix possible configuration problem.
3033         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3034         $LOGF_LIBM.
3035         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3036
3037 2012-06-28  Bruno Haible  <bruno@clisp.org>
3038
3039         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3040         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3041         not gl_cv_func_unlink_works.
3042         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3043
3044 2012-06-27  Eric Blake  <eblake@redhat.com>
3045
3046         config: drop scripts that automake says are not independent
3047         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3048         * build-aux/elisp-comp: Delete.
3049         * build-aux/missing: Likewise.
3050         * build-aux/ylwrap: Likewise.
3051         * modules/elisp-comp: Likewise.
3052         * MODULES.html.sh: Drop mention of elisp-comp.
3053         * NEWS: Mention this.
3054
3055 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3056
3057         root-uid: new module
3058         This is for portability to Tandem's NonStop Kernel.
3059         * lib/root-uid.h, modules/root-uid: New files.
3060         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3061         * lib/write-any-file.c, tests/test-sethostname2.c:
3062         Include "root-uid.h".
3063         * lib/euidaccess.c (euidaccess):
3064         * lib/pt_chown.c (main):
3065         * lib/unlinkdir.c (cannot_unlink_dir):
3066         * lib/write-any-file.c (can_write_any_file):
3067         * m4/mknod.m4 (gl_FUNC_MKNOD):
3068         * tests/test-sethostname2.c (geteuid, main):
3069         Don't assume ROOT_UID == 0.
3070         * modules/euidaccess (Depends-on):
3071         * modules/pt_chown (Depends-on):
3072         * modules/sethostname-tests (Depends-on):
3073         * modules/unlinkdir (Depends-on):
3074         * modules/write-any-file (Depends-on):
3075         Add root-uid.
3076
3077         regex: use locale-independent comparison for codeset name
3078         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3079         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3080         for codeset name.
3081         * lib/regex_internal.h: Do not include <strings.h>, since we
3082         no longer use strcasecmp.
3083         * modules/regex (Depends-on): Remove strcase.
3084
3085 2012-06-23  Bruno Haible  <bruno@clisp.org>
3086
3087         getopt-posix: No longer guarantee that option processing is resettable.
3088         * doc/posix-functions/getopt.texi: Drop description of problem with
3089         internal state. Fix info about mingw and msvc9.
3090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3091         option processing by getopt(). Run three test programs instead of one.
3092         Simplify cross-compilation guess.
3093         * NEWS: Mention the change.
3094         Reported by Rich Felker <dalias@aerifal.cx>.
3095
3096 2012-06-26  Bruno Haible  <bruno@clisp.org>
3097
3098         argp, regex: Ensure strcasecmp gets declared.
3099         * lib/argp-help.c: Include <strings.h>.
3100         * lib/regex_internal.h: Likewise.
3101         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3102
3103 2012-06-24  Bruno Haible  <bruno@clisp.org>
3104
3105         ptsname_r: Make it consistent with ptsname on AIX.
3106         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3107         implementation as for OSF/1.
3108         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3109         a pty master.
3110
3111         ptsname_r: Make it consistent with ptsname on OSF/1.
3112         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3113         OSF/1.
3114
3115 2012-06-24  Bruno Haible  <bruno@clisp.org>
3116
3117         ttyname_r: Fix result on OSF/1, Solaris.
3118         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3119
3120 2012-06-24  Bruno Haible  <bruno@clisp.org>
3121
3122         ptsname_r: Add support for Solaris.
3123         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3124         Solaris.
3125
3126         ptsname_r: Fix test failure on native Windows.
3127         * modules/ptsname_r (Depends-on): Add isatty.
3128
3129         ptsname_r: Fix test failures on IRIX, Solaris.
3130         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3131         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3132         accordingly.
3133         * lib/ptsname_r.c: Include <fcntl.h>.
3134         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3135         set errno if fd is invalid.
3136         * tests/test-isatty.c (main): Update comments.
3137
3138 2012-06-24  Bruno Haible  <bruno@clisp.org>
3139
3140         ptsname test: Extend test.
3141         * tests/test-ptsname.c: Include <errno.h>.
3142         (main): Test behaviour with invalid file descriptor.
3143
3144 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3145
3146         time: fix obsolete comment
3147         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3148         reference to HAVE_STRUCT_TIMESPEC in comment.
3149
3150 2012-06-23  Bruno Haible  <bruno@clisp.org>
3151
3152         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3154         does not handle abbreviated long options with equivalent
3155         disambiguations, set gl_replace_getopt to yes.
3156         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3157
3158 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         time_r: fix typo that always overrode localtime_r decl
3161         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3162         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3163         not in a standard include.
3164
3165 2012-06-22  Bruno Haible  <bruno@clisp.org>
3166
3167         Write "Mac OS X" instead of "MacOS X".
3168         * README: Write "Mac OS X" instead of "MacOS X".
3169         * build-aux/bootstrap: Likewise.
3170         * build-aux/install-reloc: Likewise.
3171         * lib/acl-internal.h: Likewise.
3172         * lib/acl_entries.c: Likewise.
3173         * lib/argp-ba.c: Likewise.
3174         * lib/argp-pv.c: Likewise.
3175         * lib/config.charset: Likewise.
3176         * lib/copy-acl.c: Likewise.
3177         * lib/csharpexec.c: Likewise.
3178         * lib/euidaccess.c: Likewise.
3179         * lib/fbufmode.c: Likewise.
3180         * lib/fflush.c: Likewise.
3181         * lib/file-has-acl.c: Likewise.
3182         * lib/filemode.h: Likewise.
3183         * lib/fpurge.c: Likewise.
3184         * lib/freadable.c: Likewise.
3185         * lib/freadahead.c: Likewise.
3186         * lib/freading.c: Likewise.
3187         * lib/freadptr.c: Likewise.
3188         * lib/freadseek.c: Likewise.
3189         * lib/fseeko.c: Likewise.
3190         * lib/fseterr.c: Likewise.
3191         * lib/fsusage.c: Likewise.
3192         * lib/fwritable.c: Likewise.
3193         * lib/fwriting.c: Likewise.
3194         * lib/get-rusage-as.c: Likewise.
3195         * lib/get-rusage-data.c: Likewise.
3196         * lib/getdomainname.c: Likewise.
3197         * lib/idpriv-drop.c: Likewise.
3198         * lib/idpriv-droptemp.c: Likewise.
3199         * lib/localcharset.c: Likewise.
3200         * lib/locale.in.h: Likewise.
3201         * lib/localename.c: Likewise.
3202         * lib/mbsrtowcs-state.c: Likewise.
3203         * lib/nproc.c: Likewise.
3204         * lib/passfd.c: Likewise.
3205         * lib/posix_openpt.c: Likewise.
3206         * lib/printf-parse.c: Likewise.
3207         * lib/progreloc.c: Likewise.
3208         * lib/safe-read.h: Likewise.
3209         * lib/safe-write.h: Likewise.
3210         * lib/sched.in.h: Likewise.
3211         * lib/set-mode-acl.c: Likewise.
3212         * lib/signal.in.h: Likewise.
3213         * lib/stdint.in.h: Likewise.
3214         * lib/stdio-impl.h: Likewise.
3215         * lib/stdlib.in.h: Likewise.
3216         * lib/strtod.c: Likewise.
3217         * lib/sys_select.in.h: Likewise.
3218         * lib/tcgetsid.c: Likewise.
3219         * lib/unistd.in.h: Likewise.
3220         * lib/unlockpt.c: Likewise.
3221         * lib/vasnprintf.c: Likewise.
3222         * lib/vma-iter.c: Likewise.
3223         * lib/wcsrtombs-state.c: Likewise.
3224         * m4/acl.m4: Likewise.
3225         * m4/acosl.m4: Likewise.
3226         * m4/asinl.m4: Likewise.
3227         * m4/atanl.m4: Likewise.
3228         * m4/c-stack.m4: Likewise.
3229         * m4/cosl.m4: Likewise.
3230         * m4/expl.m4: Likewise.
3231         * m4/extensions.m4: Likewise.
3232         * m4/fdatasync.m4: Likewise.
3233         * m4/fmal.m4: Likewise.
3234         * m4/frexp.m4: Likewise.
3235         * m4/frexpf.m4: Likewise.
3236         * m4/frexpl.m4: Likewise.
3237         * m4/fsusage.m4: Likewise.
3238         * m4/getdomainname.m4: Likewise.
3239         * m4/getloadavg.m4: Likewise.
3240         * m4/getopt.m4: Likewise.
3241         * m4/gettext.m4: Likewise.
3242         * m4/gnulib-common.m4: Likewise.
3243         * m4/intdiv0.m4: Likewise.
3244         * m4/intlmacosx.m4: Likewise.
3245         * m4/largefile.m4: Likewise.
3246         * m4/ldexpl.m4: Likewise.
3247         * m4/link-follow.m4: Likewise.
3248         * m4/locale-ar.m4: Likewise.
3249         * m4/locale-fr.m4: Likewise.
3250         * m4/locale-ja.m4: Likewise.
3251         * m4/locale-tr.m4: Likewise.
3252         * m4/locale-zh.m4: Likewise.
3253         * m4/locale_h.m4: Likewise.
3254         * m4/lock.m4: Likewise.
3255         * m4/logl.m4: Likewise.
3256         * m4/mathfunc.m4: Likewise.
3257         * m4/minus-zero.m4: Likewise.
3258         * m4/mktime.m4: Likewise.
3259         * m4/mmap-anon.m4: Likewise.
3260         * m4/multiarch.m4: Likewise.
3261         * m4/nanosleep.m4: Likewise.
3262         * m4/nocrash.m4: Likewise.
3263         * m4/poll.m4: Likewise.
3264         * m4/printf-frexpl.m4: Likewise.
3265         * m4/printf.m4: Likewise.
3266         * m4/signbit.m4: Likewise.
3267         * m4/sinl.m4: Likewise.
3268         * m4/sqrtl.m4: Likewise.
3269         * m4/strerror_r.m4: Likewise.
3270         * m4/tanl.m4: Likewise.
3271         * m4/threadlib.m4: Likewise.
3272         * m4/ttyname_r.m4: Likewise.
3273         * m4/unlink.m4: Likewise.
3274         * m4/visibility.m4: Likewise.
3275         * m4/wcwidth.m4: Likewise.
3276         * tests/minus-zero.h: Likewise.
3277         * tests/test-alloca-opt.c: Likewise.
3278         * tests/test-copy-acl.sh: Likewise.
3279         * tests/test-copy-file.sh: Likewise.
3280         * tests/test-fdatasync.c: Likewise.
3281         * tests/test-file-has-acl.sh: Likewise.
3282         * tests/test-flock.c: Likewise.
3283         * tests/test-fsync.c: Likewise.
3284         * tests/test-localename.c: Likewise.
3285         * tests/test-malloca.c: Likewise.
3286         * tests/test-nonblocking-pipe.h: Likewise.
3287         * tests/test-nonblocking-socket.h: Likewise.
3288         * tests/test-openpty.c: Likewise.
3289         * tests/test-posix_openpt.c: Likewise.
3290         * tests/test-ptsname.c: Likewise.
3291         * tests/test-ptsname_r.c: Likewise.
3292         * tests/test-sameacls.c: Likewise.
3293         * tests/test-select.h: Likewise.
3294         * tests/test-set-mode-acl.sh: Likewise.
3295         * tests/test-snprintf-posix.h: Likewise.
3296         * tests/test-sprintf-posix.h: Likewise.
3297         * tests/test-strtod.c: Likewise.
3298         * tests/test-time.c: Likewise.
3299         * tests/test-vasnprintf-posix.c: Likewise.
3300         * tests/test-vasprintf-posix.c: Likewise.
3301         * doc/acl-resources.txt: Likewise.
3302         * doc/**/*.texi: Likewise.
3303         Reported by Max Horn <max@quendi.de>.
3304
3305 2012-06-22  Bruno Haible  <bruno@clisp.org>
3306
3307         grantpt: Relax requirement regarding invalid file descriptors.
3308         * lib/grantpt.c: Don't include <fcntl.h>.
3309         (grantpt): Don't verify the validity of the file descriptor.
3310         * modules/grantpt (Depends-on): Remove fcntl-h.
3311         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3312         file descriptors.
3313         * doc/posix-functions/grantpt.texi: Document more platforms on which
3314         grantpt succeeds for invalid file descriptors.
3315         Reported by Rich Felker <dalias@aerifal.cx>.
3316
3317 2012-06-22  Bruno Haible  <bruno@clisp.org>
3318
3319         fbufmode test: Don't test unportable behaviour.
3320         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3321         (main): Invoke it three times.
3322         Reported by Szabolcs Nagy <nsz@port70.net>
3323         and Rich Felker <dalias@aerifal.cx>.
3324
3325 2012-06-21  Bruno Haible  <bruno@clisp.org>
3326
3327         gnulib-tool: Refactor inctests variable.
3328         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3329         (func_modules_transitive_closure,
3330         func_modules_transitive_closure_separately,
3331         func_import, func_create_testdir): Update.
3332
3333         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3334         * gnulib-tool: Accept option --without-tests.
3335         (func_usage): Document --without-tests option. Rearrange.
3336         (inctests): Normalize according to the mode.
3337         * NEWS: Mention the change.
3338         Suggested by Simon Josefsson.
3339
3340 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3341
3342         parse-duration test: Avoid spurious output.
3343         * tests/test-parse-duration.sh: Reindent with leading tabs.
3344
3345 2012-06-21  Jim Meyering  <meyering@redhat.com>
3346
3347         maint: disable the strncpy prohibition
3348         * cfg.mk: Do not prohibit strncpy here.
3349
3350 2012-06-21  Bruno Haible  <bruno@clisp.org>
3351
3352         nonblocking: Avoid compilation error on mingw64.
3353         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3354         fscanf.
3355         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3356         * modules/vfscanf (configure.ac): Likewise.
3357         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3358         definition only if stdio.h has prepared it.
3359         Reported by Daniel P. Berrange <berrange@redhat.com>.
3360
3361 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3362
3363         gnulib-tool: Use readlink if it is available.
3364         * gnulib-tool (func_readlink): Choose function more appropriately.
3365
3366 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3367
3368         posixtm-tests: port to buggy compiler
3369         Problem reported by Simon Josefsson in
3370         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3371         * modules/posixtm-tests (Depends-on): Add stdint.
3372         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3373         Now of type int_least64_t, not int64_t, both because that's
3374         what INT64_C returns and because int_least64_t works even
3375         on 72-bit hosts.
3376         (T): Use INT64_C on constants outside the traditional int range,
3377         to work around compiler bug noted by Simon.
3378
3379         mktime: fix integer overflow in 'configure'-time test
3380         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3381         after integer overflow.  Problem reported by Rich Felker in
3382         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3383         Also, don't look for further instances of a bug if we've already
3384         found one instance; this helps 'configure' run faster.
3385
3386 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3387
3388         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3389         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3390         GetVersionEx correctly.
3391         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3392
3393 2012-06-20  Bruno Haible  <bruno@clisp.org>
3394
3395         fdopen: Allow implementations that don't reject invalid fd arguments.
3396         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3397         succeeds.
3398         Reported by Rich Felker <dalias@aerifal.cx>.
3399
3400 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3401
3402         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3403         bring in LIBINTL.
3404
3405 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3406
3407         init.sh: do not rely on autoupated PWD
3408         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3409         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3410         Although Nelson's bug was not necessarily fixed by this patch,
3411         it seems wise to make the change for safety.
3412         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3413         automagically after 'cd'; this is not reliable on older shells.
3414         (setup_): Fail if we cannot cd to temporary directory.
3415
3416 2012-06-19  Bruno Haible  <bruno@clisp.org>
3417
3418         stat, fstat: Avoid warnings on mingw64.
3419         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3420         redefining.
3421         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3422         Reported by Daniel P. Berrange <berrange@redhat.com>.
3423
3424 2012-06-19  Bruno Haible  <bruno@clisp.org>
3425
3426         stdioext: Add support for musl libc.
3427
3428         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3429         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3430
3431         * m4/fseterr.m4: New file.
3432         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3433         function exists.
3434         * modules/fseterr (Files): Add m4/fseterr.m4.
3435         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3436         __fseterr does not exist.
3437         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3438
3439         * lib/freadable.h: Update comment.
3440
3441         * lib/fwritable.h: Update comment.
3442
3443         * lib/freading.h: Update comment.
3444
3445         * lib/fwriting.h: Update comment.
3446
3447         * m4/freadahead.m4: New file.
3448         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3449         that function exists.
3450         * modules/freadahead (Files): Add m4/freadahead.m4.
3451         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3452         __freadahead does not exist.
3453         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3454
3455         * m4/freadptr.m4: New file.
3456         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3457         function exists.
3458         * modules/freadptr (Files): Add m4/freadptr.m4.
3459         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3460         __freadptr does not exist.
3461         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3462
3463         * m4/freadseek.m4: New file.
3464         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3465         exists.
3466         * modules/freadseek (Files): Add m4/freadseek.m4.
3467         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3468
3469         * lib/fpurge.c (fpurge): Update comment.
3470
3471         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3472
3473 2012-06-19  Bruno Haible  <bruno@clisp.org>
3474
3475         *printf-posix: Put more info into config.log.
3476         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3477         exit code into config.log.
3478
3479 2012-06-19  Bruno Haible  <bruno@clisp.org>
3480
3481         getopt-gnu: Fix exit code overflow in autoconf test.
3482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3483         to keep them below < 128.
3484
3485 2012-06-17  Jim Meyering  <meyering@redhat.com>
3486
3487         maint.mk: fix typo in code to derive GPG key at release time
3488         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3489
3490 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         regex: avoid warning when pointers are not long
3493         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3494         and uintptr_t, not long, for portability to hosts where pointers and
3495         long have different sizes.  Issue noted by Daniel P. Berrange in
3496         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3497         and fix suggested by Bruno Haible in
3498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3499
3500 2012-06-17  Bruno Haible  <bruno@clisp.org>
3501
3502         dummy: Relicense into the public domain.
3503         * modules/dummy (License): Set to "public domain".
3504         Suggested by Reuben Thomas.
3505
3506 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3507
3508         announce-gen: VPATH issues
3509         * build-aux/announce-gen (--srcdir): New option, used to trim the
3510         $srcdir part of the path from $builddir to NEWS.
3511         * top/maint.mk (announcement): Adjust.
3512
3513 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3514
3515         gnu-web-doc-update: VPATH builds
3516         * build-aux/gnu-web-doc-update (--builddir): New option.
3517         Revamp the handling of options.
3518         Prefer $(...) to `...`.
3519         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3520         the template, and it is GNU mktemp specific.
3521         Prefer set -e to long series of &&.
3522         Restore the initial git branch, not "master".
3523         Properly initialize submodules (don't rely only on bootstrap).
3524         Do not reconfigure blindly, use config.status.
3525         * top/README-release: Update instructions for gnu-web-doc-update.
3526
3527 2012-06-11  Jim Meyering  <meyering@redhat.com>
3528
3529         maint.mk: revert most of the previous change re "all these"
3530         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3531         For rationale, see the discussion at
3532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3533
3534 2012-06-10  Karl Berry  <karl@gnu.org>
3535
3536         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3537
3538         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3539
3540 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3541
3542         parse-duration: Relicense under LGPLv2+.
3543         * modules/parse-duration (License): Change to LGPLv2+.
3544
3545 2012-06-10  Jim Meyering  <meyering@redhat.com>
3546
3547         maint.mk: prohibit common grammar error: "all these"
3548         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3549         the list of prohibited word sequences.  It should be "all of these".
3550         * lib/tempname.c (__gen_tempname): Fix one of them.
3551
3552 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3553
3554         do-release-commit-and-tag: support VPATH builds
3555         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3556         (noteworthy): Defined earlier to factor its value.
3557         (noteworthy_stub): New.
3558         Use it to factor.
3559         (help_version): Split into...
3560         (help, version): these.
3561         Adjust the option processing part.
3562         Support "--option=value" in addition to "--option value".
3563         (builddir): New.
3564         (--builddir): New option.
3565         * top/README-release: Document this.
3566         Reword slightly so that the reader cannot understand that he
3567         has to do these steps before calling do-release-commit-and-tag.
3568
3569 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3570
3571         readme-release: also require announce-gen and maintainer-makefile
3572         * modules/readme-release (Depends-on): here.
3573         * modules/announce-gen, modules/do-release-commit-and-tag,
3574         modules/gnu-web-doc-update, modules/maintainer-makefile
3575         (Description): Point to readme-release.
3576
3577 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3578
3579         maint.mk: fix VPATH issues.
3580         * top/maint.mk (news-check): GNU Make understand $< very well.
3581         (release-prep): NEWS is in $(srcdir).
3582
3583 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3584
3585         readme-release: require the promoted modules.
3586         * modules/readme-release (Depends-on): Add
3587         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3588         in this text.
3589
3590 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3591             Bruno Haible  <bruno@clisp.org>
3592
3593         error, strerror-override: Support mingw64 from Fedora 17.
3594         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3595         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3596         EINPROGRESS.
3597         * lib/strerror-override.h (strerror_override): Test it.
3598         * lib/strerror-override.c (strerror_override): Likewise.
3599         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3600
3601 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3602             Bruno Haible  <bruno@clisp.org>
3603
3604         error, strerror-override: Support mingw64 from Fedora 17.
3605         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3606         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3607         * lib/strerror-override.h (strerror_override): Test it.
3608         * lib/strerror-override.c (strerror_override): Likewise.
3609
3610 2012-06-03  Bruno Haible  <bruno@clisp.org>
3611
3612         error, strerror-override: Support new errno values from POSIX:2008.
3613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3614         ENOTRECOVERABLE.
3615         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3616         platforms.
3617         * lib/strerror-override.c (strerror_override): Conditionalize the
3618         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3619         * lib/strerror-override.h (strerror_override): Declare also if
3620         GNULIB_defined_EOWNERDEAD is defined.
3621         * tests/test-errno.c (e130, e131): New variables.
3622         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3623         ENOTRECOVERABLE.
3624         Reported by Paolo Bonzini.
3625
3626 2012-05-31  Jim Meyering  <meyering@redhat.com>
3627
3628         savewd: add missing dependency on sys_wait module
3629         * modules/savewd (Depends-on): Add sys_wait, needed at least
3630         for MSVC.  Report and suggested change by Michael Goffioul.
3631
3632 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3633
3634         system-quote-tests: port to CentOS 5
3635         Problem reported by Tom G. Christensen in
3636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3637         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3638
3639 2012-05-29  Jim Meyering  <meyering@redhat.com>
3640
3641         maint: fix typos in comments and ChangeLog
3642         Culprits identified and fixed mostly automatically using these commands:
3643         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3644         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3645         using http://github.com/lyda/misspell-check
3646         * ChangeLog: Fix typos.
3647         * doc/solaris-versions: Likewise.
3648         * lib/regexec.c (re_search_stub): Likewise.
3649         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3650
3651 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3652
3653         manywarnings: remove duplicate -Wmultichar entry
3654         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3655         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3656         so keep the entry marked as documented.
3657
3658 2012-05-27  Karl Berry  <karl@gnu.org>
3659
3660         * config/srclist.txt (mktime.c): remove last libc sync,
3661         perhaps just temporarily.
3662
3663 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3664
3665         regex: don't assume uint64_t or uint32_t
3666         * lib/regcomp.c (init_word_char): Don't assume that the types
3667         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3668         them, and on some 32-bit compilers there is no uint64_t.
3669         Problem reported by Gianluigi Tiesi in
3670         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3671
3672 2012-05-25  Jim Meyering  <meyering@redhat.com>
3673
3674         maint.mk: add strncpy-prohibiting syntax-check rule
3675         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3676
3677 2012-05-24  Jim Meyering  <meyering@redhat.com>
3678
3679         maint.mk: compute $(gpg_key_ID) more portably
3680         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3681         That use of sed is not portable to some fringe systems.
3682         Reported by Paul Eggert in
3683         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3684
3685 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3686
3687         mktime: sync from glibc
3688         * config/srclist.txt: Uncomment mktime.c.
3689         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3690         First, indent with tabs, since glibc uses tabs and doesn't want to
3691         change and we'd rather be identical to glibc.  Also, two small
3692         coding changes:
3693         (isdst_differ): Use &&, not &, as && is the usual style.
3694         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3695         for clarity.
3696
3697 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3698
3699         announce-gen: du -h is more portable than du --human
3700         * build-aux/announce-gen (sizes): Invoke du with -h instead
3701         of --human.  Accept leading white space in its output.
3702
3703 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3704
3705         announce-gen: Improve diagnostics.
3706         * build-aux/announce-gen: When parsing command line options,
3707         prefer "announce-gen: option --release-type requires an argument"
3708         to "Option release-type requires an argument".
3709
3710 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3711
3712         maint.mk: gpg_key_ID: use sed more portably
3713         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3714         the closing brace.
3715         (refresh-po): Fuse two sed invocations into one.
3716
3717 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3718
3719         gitlog-to-changelog: support the log message format used in Bison.
3720         * build-aux/gitlog-to-changelog: Support --strip-tab and
3721         --strip-cherry-picked.
3722
3723 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3724
3725         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3726         the rest of the current time slice to another thread in the current
3727         process. So if the thread that feeds the file decscriptor we're
3728         polling is not in the current process, we get busy-waiting.
3729         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3730         Patch from Theodore Leblond.
3731         * lib/select.c: Split polling out of the loop that sets the output
3732         fd_sets.  Check for zero result and loop if the wait timeout is
3733         infinite.
3734
3735 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3736
3737         select: Fix build error on IRIX 6.5.
3738         * lib/select.c: Include stddef.h for NULL.
3739
3740 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3741
3742         gc: fix libgcrypt detection on older machines.
3743         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3744         copyright years because the file has been distributed every year
3745         since it was created.
3746
3747 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3748
3749         crypto: fix bug in large buffer handling
3750         Problem reported by Serge Belyshev for glibc in
3751         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3752         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3753         * lib/md4.c (md4_process_block):
3754         * lib/md5.c (md5_process_block):
3755         * lib/sha1.c (sha1_process_block):
3756         * lib/sha256.c (sha256_process_block):
3757         Don't assume the buffer length is less than 2**32.
3758         * lib/sha512.c (sha512_process_block): Likewise.
3759         Here, the bug is present only in the rare case where the host does
3760         not support uint64_t or where size_t is wider than 64 bits.
3761         Use u64size to work around the problems.
3762         * lib/u64.h (u64size): New macro.
3763
3764 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3765
3766         fsusage: fix block size returned on older Linux 2.6
3767
3768         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3769         which is available since Linux 2.6.
3770         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3771         when the member is available so it can be used as a fallback.
3772         * doc/posix-functions/statvfs.texi: Mention the hang issue
3773         on Linux < 2.6.36.
3774
3775 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3776
3777         bootstrap: suppress stderr chatter
3778         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3779         Omit unnecessary chatter to stderr.  The main program chatter
3780         was there only inadvertantly.
3781
3782         bootstrap: .gitignore files created by autopoint, libtool
3783         I ran into this problem when bootstrapping the latest diffutils.
3784         After './bootstrap', 'git status' reported lots of untracked files
3785         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3786         autopoint and do not need to be version-controlled.
3787         * build-aux/bootstrap: Put into .gitignore the files that
3788         autopoint and libtool create, by keeping track of files that exist
3789         after but not before these programs are run.
3790         (version_controlled_file): Move up.  2nd arg is now full file
3791         name, not base name; this is more convenient.  Put CVS at the end,
3792         as it's now somewhat deprecated.
3793
3794 2012-05-14  Jim Meyering  <meyering@redhat.com>
3795
3796         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3797         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3798         definition.  Reported by Bruno Haible.
3799
3800 2012-05-13  Bruno Haible  <bruno@clisp.org>
3801             Paul Eggert  <eggert@cs.ucla.edu>
3802
3803         binary-io: Define set_binary_mode function.
3804         * lib/binary-io.h (set_binary_mode): New function.
3805         (SET_BINARY): Define in terms of set_binary_mode.
3806         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3807         * tests/test-binary-io.c (main): Accept an argument, and test either
3808         set_binary_mode or SET_BINARY depending on the argument.
3809         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3810         argument. Clean up also t-bin-out0.tmp.
3811
3812 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3813
3814         bootstrap: take advantage of POSIX shell features
3815
3816         The 'bootstrap' script offered by Gnulib script already uses POSIX
3817         shell features (like $((...)) arithmetic expansions) that are not
3818         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3819         means that bootstrap must already be run using a proper POSIX shell,
3820         which will thus provide more features, like ${var#pattern} parameter
3821         expansion or inversion of a command exit status with '!'.  We can
3822         thus use these features to improve the clarity and the performances
3823         of the bootstrap script.
3824
3825         Suggested by Eric Blake.
3826
3827         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3828         of sed/expr plus command substitutions, to save some forks.  While
3829         we are at it, prefer the POSIX $(...) form of command substitution,
3830         rather than the legacy form `...` (since the former is visually
3831         clearer and interacts better with quoting), and prefer the idiom:
3832           "if ! CMD; then ACTION ..."
3833         over the idiom:
3834           "if CMD; then :; else ACTION ..."
3835         which was required by legacy Bourne shells not supporting '!'.
3836
3837 2012-05-12  Bruno Haible  <bruno@clisp.org>
3838
3839         system-quote: Add more comments.
3840         * lib/system-quote.h: Add more comments about wilcards and limitations.
3841         Suggested by Eli Zaretskii <eliz@gnu.org>.
3842
3843         sh-quote, system-quote: Add comments about wildcards.
3844         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3845         * lib/system-quote.h: Likewise.
3846         Reported by Eli Zaretskii <eliz@gnu.org>.
3847
3848 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3849
3850         fsusage: check for GNU/Linux statvfs problem dynamically
3851         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3852         Define STAT_STATFS2_BSIZE too, since in this case the code now
3853         checks dynamically whether statvfs is reliable, falling back on
3854         Linux-style statfs otherwise.
3855         (statvfs_works): New function, for dynamically testing statvfs.
3856         (get_fs_usage) [STAT_STATVFS]: Use it.
3857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3858         statvfs on GNU/Linux hosts, since it's now done dynamically.
3859
3860 2012-05-10  Bruno Haible  <bruno@clisp.org>
3861
3862         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3863         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3864         '?' character.
3865         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3866         * tests/test-system-quote-main.c (check_all): Check also strings like
3867         "??????????".
3868         Reported by Eli Zaretskii <eliz@gnu.org>.
3869
3870 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3871
3872         _Noreturn: port config.h to gcc -Wundef
3873         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3874         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3875         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3876
3877 2012-05-10  Bruno Haible  <bruno@clisp.org>
3878
3879         system-quote: Refactor.
3880         * lib/system-quote.h (system_quote_copy): Fix comment.
3881         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3882         New functions, extracted from system_quote_copy.
3883         (system_quote_length, system_quote_copy): Use these functions.
3884         Reported by Paul Eggert.
3885
3886 2012-05-08  Bruno Haible  <bruno@clisp.org>
3887
3888         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3889         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3890
3891 2012-05-08  Bruno Haible  <bruno@clisp.org>
3892
3893         Tests for module 'system-quote'.
3894         * modules/system-quote-tests: New file.
3895         * tests/test-system-quote.sh: New file.
3896         * tests/test-system-quote-main.c: New file.
3897         * tests/test-system-quote-child.c: New file.
3898
3899         New module 'system-quote'.
3900         * lib/system-quote.h: New file.
3901         * lib/system-quote.c: New file.
3902         * modules/system-quote: New file.
3903
3904 2012-05-08  Bruno Haible  <bruno@clisp.org>
3905
3906         sh-quote: Make C++ safe and allow multiple inclusion.
3907         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3908         declarations in extern "C".
3909
3910 2012-05-08  Bruno Haible  <bruno@clisp.org>
3911
3912         sh-quote tests: Make tests stricter.
3913         * tests/test-sh-quote.c (check_one): Check the return value of
3914         shell_quote_copy.
3915         (main): Check a string with a CR character. Check a string that
3916         contains UCHAR_MAX.
3917
3918 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3919
3920         warnings.m4: provide a means to specify the program to compile.
3921         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3922         (gl_WARN_ADD): here.
3923         Use gl_AS_VAR_APPEND.
3924         Support an argument to specify the program to compile.
3925         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3926         AC_SUBST the WARN_CFLAGS when they are used.
3927         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3928         leave this to gl_WARN_ADD.
3929
3930 2012-05-08  Eric Blake  <eblake@redhat.com>
3931
3932         doc: recommendations on gettext version
3933         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3934         choice between versions.
3935         * DEPENDENCIES (gettext): Cover both approaches.
3936
3937 2012-05-08  Jim Meyering  <meyering@redhat.com>
3938
3939         init.sh: explain why EXEEXT support uses aliases rather than functions
3940         * tests/init.sh: Add a comment.
3941
3942         init.sh: don't let bash aliases interfere with tests
3943         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3944         is bash.  This avoids problems for those who alias standard commands to
3945         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3946         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3947
3948 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         stdint: be more consistent with glibc, SunOS libc
3951         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3952         (gl_int_fast16_t, gl_uint_fast16_t)
3953         (gl_int_fast32_t, gl_uint_fast32_t)
3954         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3955         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3956         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3957         Be consistent with glibc by default, and with SunOS 5.10 and later
3958         if __sun is defined.  This lessens the likelihood of clashes if
3959         code compiled for older hosts is combined with code compiled for
3960         newer ones.  Problem reported by Niels Möller in
3961         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3962
3963 2012-05-07  Eric Blake  <eblake@redhat.com>
3964
3965         isatty: relax license to LGPLv2+
3966         * modules/isatty (License): Relax license.
3967
3968 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3969
3970         stat-size: comment fix
3971         * lib/stat-size.h: Remove obsolete comment about indenting.
3972
3973 2012-05-06  Bruno Haible  <bruno@clisp.org>
3974
3975         Tests for module 'sh-quote'.
3976         * modules/sh-quote-tests: New file.
3977         * tests/test-sh-quote.c: New file.
3978
3979 2012-05-06  Bruno Haible  <bruno@clisp.org>
3980
3981         sh-quote: Improve shell_quote_argv's signature.
3982         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3983         * lib/sh-quote.c (shell_quote_argv): Likewise.
3984
3985 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3986
3987         stdint: document issues with int_fast8_t etc.
3988         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3989         stdint.h substitutes may define these types differently.  See
3990         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3991
3992 2012-05-05  Bruno Haible  <bruno@clisp.org>
3993
3994         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3996         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3997         or 'guessing no (mishandles large arguments)'.
3998
3999 2012-05-05  Bruno Haible  <bruno@clisp.org>
4000
4001         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4002         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4003         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4004         set gl_cv_func_link_follows_symlink to "guessing no".
4005
4006 2012-05-05  Bruno Haible  <bruno@clisp.org>
4007
4008         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4009         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4010         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4011         "guessing no".
4012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4013
4014 2012-05-05  Bruno Haible  <bruno@clisp.org>
4015
4016         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4017         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4018         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4019         set gl_cv_struct_dirent_d_ino to "guessing yes".
4020
4021 2012-05-05  Bruno Haible  <bruno@clisp.org>
4022
4023         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4024         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4025         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4026         "guessing yes".
4027
4028 2012-05-05  Bruno Haible  <bruno@clisp.org>
4029
4030         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4031         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4032         compiling to a glibc system, set gl_cv_func_signbit and
4033         gl_cv_func_signbit_gcc to "guessing yes".
4034
4035 2012-05-05  Bruno Haible  <bruno@clisp.org>
4036
4037         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4038         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4039         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4040         to "guessing yes".
4041         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4042         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4043
4044 2012-05-05  Bruno Haible  <bruno@clisp.org>
4045
4046         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4047         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4048         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4049         gl_cv_func_realpath_works to "guessing yes".
4050
4051 2012-05-05  Bruno Haible  <bruno@clisp.org>
4052
4053         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4054         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4055         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4056
4057 2012-05-04  Bruno Haible  <bruno@clisp.org>
4058
4059         Tweak last commit.
4060         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4061         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4062
4063 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4064
4065         unistd_h: make it easier to avoid sys_types_h
4066         This is useful for Emacs, which has its own method of porting to
4067         Windows, and which therefore does not need the sys_types_h module.
4068         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4069         code moved here from gl_SYS_TYPES_H.
4070         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4071         using the code directly.
4072         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4073         gl_SYS_TYPES_H.
4074         * modules/sys_types (Files):
4075         * modules/unistd (Files): Add m4/off_t.m4.
4076
4077 2012-05-03  Bruno Haible  <bruno@clisp.org>
4078
4079         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4080         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4081         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4082         "guessing yes" or "guessing no".
4083         (gl_FUNC_LSTAT): Update.
4084         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4085         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4086         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4087
4088 2012-05-03  Bruno Haible  <bruno@clisp.org>
4089
4090         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4091         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4092         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4093         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4094         cross-compiling, choose the first alternative on glibc systems.
4095         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4096
4097 2012-05-03  Bruno Haible  <bruno@clisp.org>
4098
4099         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4100         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4101         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4102
4103 2012-05-03  Bruno Haible  <bruno@clisp.org>
4104
4105         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4106         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4107
4108 2012-05-03  Bruno Haible  <bruno@clisp.org>
4109
4110         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4111         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4112         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4113         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4114         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4115         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4116         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4117         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4118         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4119         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4120         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4121         gl_cv_func_chown_ctime_works to "guessing yes".
4122         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4123         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4124         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4125         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4126         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4128         compiling to glibc systems, set gl_cv_func_open_directory_works to
4129         "guessing yes".
4130         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4131         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4132         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4133         "guessing yes".
4134         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4135         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4136         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4137         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4138         "guessing yes".
4139         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4140         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4141         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4142         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4143         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4144         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4145         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4146         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4147         "guessing yes".
4148         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4149         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4150         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4151         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4152         "guessing yes".
4153         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4154         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4155         "guessing yes".
4156         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4157         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4158         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4159         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4160         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4161         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4162         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4163         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4164         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4165         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4166         "guessing yes".
4167         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4168         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4169         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4170         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4171         "guessing yes".
4172         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4173         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4174         "guessing yes".
4175         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4176         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4177         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4178         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4179         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4180         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4181         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4182         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4183         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4184         "guessing yes".
4185         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4186         compiling to glibc systems, set gl_cv_func_mknod_works to
4187         "guessing yes".
4188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4189         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4190         "guessing yes".
4191         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4192         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4193         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4194         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4195         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4196         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4197         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4198         compiling to glibc systems, set gl_cv_func_svid_putenv to
4199         "guessing yes".
4200         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4201         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4202         "guessing yes".
4203         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4204         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4205         "guessing yes".
4206         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4207         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4208         to "guessing yes".
4209         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4210         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4211         to "guessing yes".
4212         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4213         compiling to glibc systems, set gl_cv_func_rmdir_works to
4214         "guessing yes".
4215         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4216         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4217         gl_cv_func_unlink_parent_fails to "guessing yes".
4218         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4219         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4220         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4221         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4222         gl_cv_func_rename_dest_works to "guessing yes".
4223         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4224         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4226         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4227         "guessing yes".
4228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4229         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4230         "guessing yes".
4231         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4232         compiling to glibc systems, set gl_cv_func_setenv_works to
4233         "guessing yes".
4234         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4235         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4236         "guessing yes".
4237         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4238         compiling to glibc systems, set gl_cv_func_sleep_works to
4239         "guessing yes".
4240         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4241         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4242         "guessing yes".
4243         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4244         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4245         "guessing yes".
4246         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4247         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4248         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4249         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4250         "guessing yes".
4251         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4252         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4253         "guessing yes".
4254         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4255         compiling to glibc systems, set gl_cv_func_usleep_works to
4256         "guessing yes".
4257         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4258         compiling to glibc systems, set gl_cv_func_futimesat_works to
4259         "guessing yes".
4260
4261 2012-05-03  Bruno Haible  <bruno@clisp.org>
4262
4263         Say "guessing yes" or "guessing no" when cross-compiling.
4264         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4265         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4267         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4268         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4269         am_cv_func_working_getline to "guessing yes" or "guessing no".
4270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4271         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4272         (gl_FUNC_MEMMEM): When cross-compiling, set
4273         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4275         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4277         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4278         "guessing no".
4279         (gl_FUNC_STRCASESTR): When cross-compiling, set
4280         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4282         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4283         (gl_FUNC_STRSTR): When cross-compiling, set
4284         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4285         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4286         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4287         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4288         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4289
4290 2012-05-01  Bruno Haible  <bruno@clisp.org>
4291
4292         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4293         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4294         * build-aux/reloc-ldflags: Likewise.
4295         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4296
4297 2012-05-01  Bruno Haible  <bruno@clisp.org>
4298
4299         gnulib-tool: Remove transitional code.
4300         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4301         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4302
4303 2012-05-01  Bruno Haible  <bruno@clisp.org>
4304
4305         getcwd: Fix misindentation.
4306         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4307
4308 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4309
4310         exclude: process exclude and include directives in order
4311         This restores the pre-2009 behavior, and is part of a fix of a
4312         grep bug reported by Quentin Arce in
4313         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4314         * lib/exclude.c (struct exclude): Remove 'tail' member.
4315         (new_exclude_segment): Prepend the new segment instead of appending.
4316         Return void, since that's now more convenient.
4317         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4318         (file_name_matches): Renamed from excluded_file_name_p.
4319         (file_pattern_matches, file_name_matches):
4320         Return true if the pattern matches, not if it excludes.
4321         All callers changed.
4322         (excluded_file_name): Process the list in reverse order;
4323         since the list is now reversed this restores the pre-2009 behavior.
4324         (add_exclude): Adjust to new reversed-order list.  Use local var
4325         rather than macro, for clarity.
4326         * tests/test-exclude7.sh: Adjust to corrected behavior.
4327
4328         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4329         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4330         it's not possible here.  Handle the case of \ at end of pattern
4331         without dumping core.
4332         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4333
4334         _Noreturn: future-proof non-GNU and non-MSVC compilers
4335         * build-aux/snippet/_Noreturn.h (_Noreturn):
4336         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4337         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4338         C11 or later.  This is more likely to work with random future C
4339         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4340         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4341
4342         exclude: handle wildcards with FNM_EXTMATCH
4343         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4344         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4345         comment that "has wildcards" really means "has or may have
4346         wildcards".  Simplify by avoiding the need to call strcspn.
4347
4348 2012-04-29  Bruno Haible  <bruno@clisp.org>
4349
4350         gnulib-tool: Fix list of authors.
4351         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4352
4353 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4354
4355         bootstrap: support Automake-NG in $buildreq
4356         * bootstrap (check_versions): Handle automake and aclocal from
4357         Automake-NG specially.  They can be specified as respectively
4358         the "automake-ng" and "aclocal-ng" requirements.
4359
4360 2012-04-25  Eric Blake  <eblake@redhat.com>
4361
4362         bootstrap: only force latest Makefile.in.in for gettext module
4363         * build-aux/bootstrap (with_gettext): Only install latest
4364         Makefile.in.in for projects requesting bleeding edge gettext.
4365
4366 2012-04-22  Bruno Haible  <bruno@clisp.org>
4367
4368         doc: Mention reason for replacement on glibc/Linux systems.
4369         * doc/posix-functions/dprintf.texi: Mention the problem with special
4370         'long double' values.
4371         * doc/posix-functions/fprintf.texi: Likewise.
4372         * doc/posix-functions/printf.texi: Likewise.
4373         * doc/posix-functions/snprintf.texi: Likewise.
4374         * doc/posix-functions/sprintf.texi: Likewise.
4375         * doc/posix-functions/vdprintf.texi: Likewise.
4376         * doc/posix-functions/vfprintf.texi: Likewise.
4377         * doc/posix-functions/vprintf.texi: Likewise.
4378         * doc/posix-functions/vsnprintf.texi: Likewise.
4379         * doc/posix-functions/vsprintf.texi: Likewise.
4380         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4381         platforms with F_DUPFD_CLOEXEC problems.
4382         * doc/posix-functions/glob.texi: Mention which platforms are affected
4383         by the problem with symbolic links.
4384         * doc/posix-functions/linkat.texi: Mention the problem with
4385         AT_SYMLINK_FOLLOW on Linux.
4386
4387 2012-04-22  Bruno Haible  <bruno@clisp.org>
4388
4389         pwrite: Don't replace on all platforms.
4390         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4391
4392 2012-04-22  Bruno Haible  <bruno@clisp.org>
4393
4394         rint* tests: Avoid gcc warnings.
4395         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4396         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4397         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4398
4399 2012-04-21  Bruno Haible  <bruno@clisp.org>
4400
4401         users.txt: Update.
4402         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4403         switched from CVS to git, bzr, or svn.
4404
4405 2012-04-21  Bruno Haible  <bruno@clisp.org>
4406
4407         Large File Support for native Windows platforms.
4408
4409         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4410         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4411
4412         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4413         type.
4414         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4415         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4416         * doc/posix-headers/sys_types.texi: Mention the effect of the
4417         'largefile' module.
4418
4419         * lib/fcntl.in.h: Add comments about off_t.
4420         * modules/fcntl-h (Depends-on): Add sys_types.
4421
4422         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4423         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4424         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4425         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4426         * modules/unistd (Depends-on): Add sys_types.
4427         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4428
4429         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4430         instead of lseek.
4431         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4432         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4433         * modules/lseek (Depends-on): Add sys_types.
4434
4435         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4436         msvc-nothrow.h.
4437         (SetFileSize): New function.
4438         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4439         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4440         if Large File Support is requested.
4441         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4442         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4443
4444         * lib/stdio.in.h: Add comments about off_t.
4445         * modules/stdio (Depends-on): Add sys_types.
4446
4447         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4448         instead of ftello.
4449         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4450         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4451         (gl_PREREQ_FTELLO): New macro.
4452         * modules/ftello (Depends-on): Add sys_types.
4453         (configure.ac): Incoke gl_PREREQ_FTELLO.
4454
4455         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4456         instead of fseeko.
4457         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4458         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4459         (gl_PREREQ_FSEEKO): New macro.
4460         * modules/fseeko (Depends-on): Add sys_types.
4461         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4462
4463         * lib/sys_stat.in.h: Add comments about off_t.
4464         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4465         64-bit integer for st_size in 'struct stat'.
4466         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4467         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4468         * modules/sys_stat (Depends-on): Add sys_types.
4469         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4470
4471         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4472         instead of stat or _stat.
4473
4474         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4475         'struct _stati64' instead of fstat and 'struct stat'.
4476         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4477         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4478
4479         Reported by Ray Satiro <raysatiro@yahoo.com>.
4480
4481 2012-04-19  Eric Blake  <eblake@redhat.com>
4482
4483         bootstrap: accommodate older libtool
4484         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4485         Reported by Daniel P. Berrange.
4486
4487 2012-04-19  Jim Meyering  <meyering@redhat.com>
4488
4489         announce-gen: avoid failure due to lack of Digest::SHA1
4490         Even with the preferred Digest::SHA available, this script
4491         would fail when the backup module, Digest::SHA1, was not installed.
4492         * build-aux/announce-gen: Quote the conditional use of "use".
4493         Reported by Reuben Thomas in:
4494         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4495
4496         bootstrap: don't let a user's CDPATH setting affect this script
4497         When CDPATH is set, cd will sometimes generate output.
4498         When "cd" is run in a subshell whose output matters, that
4499         surprising-to-some output can cause malfunction.
4500         Unsetting CDPATH turns off this shell "feature."
4501         * build-aux/bootstrap (CDPATH): Unset.
4502         Reported by Reuben Thomas in:
4503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4504         and inspired by his patch here:
4505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4506
4507 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4508         and Jim Meyering  <meyering@redhat.com>
4509
4510         maint.mk: catch "see @xref{}" and similar
4511         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4512         prohibit "See also @xref{", "Also see @pxref{", and similar.
4513
4514 2012-04-16  Jim Meyering  <meyering@redhat.com>
4515
4516         bootstrap: really use gnulib's po/Makefile.in.in
4517         * build-aux/bootstrap: Correct the source file name in previous change.
4518         Reported by Akim Demaille.
4519
4520         configmake: correct minor inconsistency in Makefile rule
4521         * modules/configmake (Makefile.am): All other rules like this one
4522         run the final "mv -f ..." in the same backslash-continued command
4523         as the one that does everything else.  This one put the mv -f ...
4524         command on a separate, non-backslash-continued line.
4525         Make it like the others.
4526
4527         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4528         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4529         the one from gettext.  Reported by Akim Demaille.
4530
4531 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4532
4533         Fix recursion of install-* into po directories.
4534         Bison's install-pdf bug reported by Hans Aberg at
4535         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4536         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4537         (install-info, install-pdf, install-ps): New targets.
4538
4539 2012-04-16  Jim Meyering  <meyering@redhat.com>
4540
4541         maint: avoid spurious "make sc_maint" failure
4542         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4543         exempt all *.class file names, for lib/javaversion.class.
4544
4545 2012-04-15  Bruno Haible  <bruno@clisp.org>
4546
4547         lseek: Make configure test independent of environment.
4548         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4549         Windows, we know that lseek() on pipes is broken; skip the runtime
4550         test.
4551
4552 2012-04-14  Bruno Haible  <bruno@clisp.org>
4553
4554         stat: Bypass buggy override in mingw64.
4555         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4556         * lib/stat.c (stat) [mingw64]: Define to _stat.
4557         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4558
4559 2012-04-14  Bruno Haible  <bruno@clisp.org>
4560
4561         pathmax: Fix compilation error on MSVC 9.
4562         * modules/pathmax (Depends-on): Add unistd.
4563
4564 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         README: document pointer comparison assumption
4567         * README (Portability guidelines): Document assumption about
4568         pointer comparisons, in response to a recent bug-gnulib comment by
4569         Jeffrey Kegler.
4570
4571 2012-04-12  Bruno Haible  <bruno@clisp.org>
4572
4573         Tests for module 'getrusage'.
4574         * modules/getrusage-tests: New file.
4575         * tests/test-getrusage.c: New file.
4576
4577         New module 'getrusage'.
4578         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4579         warn-on-use.h.
4580         (getrusage): New declaration.
4581         * lib/getrusage.c: New file.
4582         * m4/getrusage.m4: New file.
4583         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4584         is declared.
4585         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4586         HAVE_GETRUSAGE.
4587         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4588         snippet/c++defs, snippet/warn-on-use.
4589         (Makefile.am): Update generation of sys/resource.h. Substitute
4590         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4591         * modules/getrusage: New file.
4592         * doc/posix-functions/getrusage.texi: Mention the new module.
4593
4594 2012-04-12  Bruno Haible  <bruno@clisp.org>
4595
4596         Tests for module 'sys_resource'.
4597         * modules/sys_resource-tests: New file.
4598         * tests/test-sys_resource.c: New file.
4599
4600         New module 'sys_resource'.
4601         * lib/sys_resource.in.h: New file.
4602         * m4/sys_resource_h.m4: New file.
4603         * modules/sys_resource: New file.
4604         * doc/posix-headers/sys_resource.texi: Mention the new module.
4605
4606 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4607
4608         ioctl: Fix compilation error on mingw.
4609         * lib/ioctl.c: Include <windows.h>.
4610         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4611
4612 2012-04-04  Jim Meyering  <meyering@redhat.com>
4613
4614         regex: correct #pragma guard expression
4615         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4616         not 4.3.  Correct its cpp guard expression.
4617
4618 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4619
4620         regex: remove unnecessary type punning
4621         Problem reported by Vladimir Serbinenko in
4622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4623         * lib/regex.h (struct re_pattern_buffer): Change the type of
4624         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4625         Fix comment to match code.
4626         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4627         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4628         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4629         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4630         (set_regs):
4631         Omit no-longer-necessary casts.
4632
4633 2012-04-03  Bruno Haible  <bruno@clisp.org>
4634
4635         Tests for module 'ilogbl'.
4636         * modules/ilogbl-tests: New file.
4637         * tests/test-ilogbl.c: New file.
4638
4639         New module 'ilogbl'.
4640         * lib/math.in.h (ilogbl): New declaration.
4641         * lib/ilogbl.c: New file.
4642         * m4/ilogbl.m4: New file.
4643         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4645         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4646         Split sed invocation, to avoid the limit of 100 substitutions of
4647         HP-UX 'sed'.
4648         * modules/ilogbl: New file.
4649         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4650         * doc/posix-functions/ilogbl.texi: Mention the new module.
4651
4652 2012-04-03  Bruno Haible  <bruno@clisp.org>
4653
4654         Tests for module 'ilogbf'.
4655         * modules/ilogbf-tests: New file.
4656         * tests/test-ilogbf.c: New file.
4657
4658         New module 'ilogbf'.
4659         * lib/math.in.h (ilogbf): New declaration.
4660         * lib/ilogbf.c: New file.
4661         * m4/ilogbf.m4: New file.
4662         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4664         REPLACE_ILOGBF.
4665         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4666         REPLACE_ILOGBF.
4667         * modules/ilogbf: New file.
4668         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4669         * doc/posix-functions/ilogbf.texi: Mention the new module.
4670
4671 2012-04-03  Bruno Haible  <bruno@clisp.org>
4672
4673         Tests for module 'ilogb'.
4674         * modules/ilogb-tests: New file.
4675         * tests/test-ilogb.c: New file.
4676         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4677         tests/test-logb-ieee.h.
4678
4679         New module 'ilogb'.
4680         * lib/math.in.h (ilogb): New declaration.
4681         * lib/ilogb.c: New file.
4682         * m4/ilogb.m4: New file.
4683         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4685         REPLACE_ILOGB.
4686         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4687         REPLACE_ILOGB.
4688         * modules/ilogb: New file.
4689         * tests/test-math-c++.cc: Check the declaration of ilogb.
4690         * doc/posix-functions/ilogb.texi: Mention the new module.
4691
4692 2012-04-03  Bruno Haible  <bruno@clisp.org>
4693
4694         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4695         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4696         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4697         (main): Check their values.
4698         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4699         problem.
4700
4701 2012-04-03  Bruno Haible  <bruno@clisp.org>
4702
4703         Tests for module 'logbl-ieee'.
4704         * modules/logbl-ieee-tests: New file.
4705         * tests/test-logbl-ieee.c: New file.
4706
4707         New module 'logbl-ieee'.
4708         * modules/logbl-ieee: New file.
4709
4710         Tests for module 'logb-ieee'.
4711         * modules/logb-ieee-tests: New file.
4712         * tests/test-logb-ieee.c: New file.
4713
4714         New module 'logb-ieee'.
4715         * modules/logb-ieee: New file.
4716
4717         Tests for module 'logbf-ieee'.
4718         * modules/logbf-ieee-tests: New file.
4719         * tests/test-logbf-ieee.c: New file.
4720         * tests/test-logb-ieee.h: New file.
4721
4722         New module 'logbf-ieee'.
4723         * modules/logbf-ieee: New file.
4724
4725 2012-04-03  Bruno Haible  <bruno@clisp.org>
4726
4727         Tests for module 'logbl'.
4728         * modules/logbl-tests: New file.
4729         * tests/test-logbl.c: New file.
4730
4731         New module 'logbl'.
4732         * lib/math.in.h (logbl): New declaration.
4733         * lib/logbl.c: New file.
4734         * m4/logbl.m4: New file.
4735         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4737         REPLACE_LOGBL.
4738         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4739         REPLACE_LOGBL.
4740         * modules/logbl: New file.
4741         * tests/test-math-c++.cc: Check the declaration of logbl.
4742         * doc/posix-functions/logbl.texi: Mention the new module.
4743
4744 2012-04-02  Bruno Haible  <bruno@clisp.org>
4745
4746         Tests for module 'logbf'.
4747         * modules/logbf-tests: New file.
4748         * tests/test-logbf.c: New file.
4749
4750         New module 'logbf'.
4751         * lib/math.in.h (logbf): New declaration.
4752         * lib/logbf.c: New file.
4753         * m4/logbf.m4: New file.
4754         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4756         REPLACE_LOGBF.
4757         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4758         REPLACE_LOGBF.
4759         * modules/logbf: New file.
4760         * tests/test-math-c++.cc: Check the declaration of logbf.
4761         * doc/posix-functions/logbf.texi: Mention the new module.
4762
4763 2012-04-02  Bruno Haible  <bruno@clisp.org>
4764
4765         logb tests: More tests.
4766         * tests/test-logb.h: New file, based on tests/test-logb.c and
4767         tests/test-frexp.h.
4768         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4769         (main): Just invoke test_function.
4770         * modules/logb-tests (Files): Add tests/test-logb.h,
4771         tests/minus-zero.h, tests/randomd.c.
4772         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4773
4774         logb: Provide replacement and workarounds.
4775         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4776         is 1.
4777         * lib/logb.c: New file.
4778         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4779         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4781         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4782         * modules/logb (Files): Add lib/logb.c.
4783         (Depends-on): Add isfinite, frexp, isnand.
4784         (configure.ac): Compile the replacement code logb.c if needed.
4785         * tests/test-math-c++.cc: Check the declaration of logb.
4786         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4787         with subnormal numbers.
4788
4789 2012-04-02  Bruno Haible  <bruno@clisp.org>
4790
4791         log10* tests: Speed up.
4792         * tests/test-log10.h (test_function): Reduce amount of random numbers
4793         to test.
4794
4795 2012-04-01  Bruno Haible  <bruno@clisp.org>
4796
4797         logf-ieee: Fix test whether logf works.
4798         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4799
4800 2012-04-01  Bruno Haible  <bruno@clisp.org>
4801
4802         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4803         * lib/log10l.c: Include <float.h>
4804         (log10l): On IRIX, normalize the +Infinity value.
4805         * modules/log10l (Depends-on): Add 'float'.
4806         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4807         +Infinity.
4808
4809         log10f-ieee: Work around test failure on NetBSD 5.1.
4810         * m4/log10f-ieee.m4: New file.
4811         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4812         test whether log10f works with a negative argument. Replace it if not.
4813         * lib/log10f.c (log10f): For negative arguments, return NaN.
4814         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4815         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4816         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4817
4818         log10f-ieee: Work around test failure on Solaris 9.
4819         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4820         (configure.ac): Require gl_FUNC_LOG10F.
4821
4822         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4823         * m4/log10-ieee.m4: New file.
4824         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4825         whether log10 works with a negative argument. Replace it if not.
4826         * lib/log10.c (log10): For negative arguments, return NaN.
4827         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4828         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4829         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4830
4831         Tests for module 'log10l-ieee'.
4832         * modules/log10l-ieee-tests: New file.
4833         * tests/test-log10l-ieee.c: New file.
4834
4835         New module 'log10l-ieee'.
4836         * modules/log10l-ieee: New file.
4837
4838         Tests for module 'log10-ieee'.
4839         * modules/log10-ieee-tests: New file.
4840         * tests/test-log10-ieee.c: New file.
4841
4842         New module 'log10-ieee'.
4843         * modules/log10-ieee: New file.
4844
4845         Tests for module 'log10f-ieee'.
4846         * modules/log10f-ieee-tests: New file.
4847         * tests/test-log10f-ieee.c: New file.
4848         * tests/test-log10-ieee.h: New file.
4849
4850         New module 'log10f-ieee'.
4851         * modules/log10f-ieee: New file.
4852
4853 2012-04-01  Bruno Haible  <bruno@clisp.org>
4854
4855         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4856         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4857         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4858         workaround.
4859         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4860         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4862         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4863         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4864         (Depends-on): Update conditions.
4865         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4866         IRIX 6.5, OSF/1 5.1 problems.
4867
4868 2012-04-01  Bruno Haible  <bruno@clisp.org>
4869
4870         log10f: Work around OSF/1 5.1 bug.
4871         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4872         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4873         workaround.
4874         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4875         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4877         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4878         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4879         (Depends-on): Update conditions.
4880         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4881
4882 2012-04-01  Bruno Haible  <bruno@clisp.org>
4883
4884         log10: Work around OSF/1 5.1 bug.
4885         * lib/math.in.h (log10): New declaration.
4886         * lib/log10.c: New file.
4887         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4888         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4889         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4891         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4892         * modules/log10 (Files): Add lib/log10.c.
4893         (Depends-on): Add math.
4894         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4895         * tests/test-math-c++.cc: Check the declaration of log10.
4896         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4897
4898 2012-03-31  Bruno Haible  <bruno@clisp.org>
4899
4900         log10l tests: More tests.
4901         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4902         tests/minus-zero.h, tests/randoml.c.
4903         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4904         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4905         (main): Invoke test_function.
4906
4907         log10f tests: More tests.
4908         * modules/log10f-tests (Files): Add tests/test-log10.h,
4909         tests/minus-zero.h, tests/randomf.c.
4910         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4911         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4912         (main): Invoke test_function.
4913
4914         log10 tests: More tests.
4915         * tests/test-log10.h: New file.
4916         * modules/log10-tests (Files): Add tests/test-log10.h,
4917         tests/minus-zero.h, tests/randomd.c.
4918         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4919         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4920         (main): Invoke test_function.
4921
4922 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4923
4924         fflush: Fix syntax error.
4925         * lib/fflush.c: Include unused-parameter.h, needed for
4926         _GL_UNUSED_PARAMETER.
4927         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4928
4929 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4930
4931         regex: pacify GCC when compiling GRUB
4932         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4933         a diagnostic.  Reported by Vladimir Serbinenko in
4934         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4935
4936 2012-03-29  Eric Blake  <eblake@redhat.com>
4937
4938         stdio: don't assume gets any more
4939         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4940         support.
4941         * modules/stdio (Makefile.am): Likewise.
4942         * lib/stdio-read.c (gets): Likewise.
4943         * tests/test-stdio-c++.cc: Likewise.
4944         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4945         * lib/stdio.in.h (gets): Make warning occur in more places.
4946         * doc/posix-functions/gets.texi (gets): Update documentation.
4947         Reported by Christer Solskogen.
4948
4949         maint.mk: fix syntax checks without exclusions
4950         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4951         Reported by Daniel P. Berrange.
4952
4953         strerror_r: avoid compiler warning
4954         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4955         level.
4956
4957         fflush: avoid compiler warning
4958         * lib/fflush.c (update_fpos_cache): Mark variables that are
4959         potentially unused.
4960
4961 2012-03-25  Bruno Haible  <bruno@clisp.org>
4962
4963         Tests for module 'localeconv'.
4964         * modules/localeconv-tests: New file.
4965         * tests/test-localeconv.c: New file.
4966
4967         New module 'localeconv'.
4968         * lib/locale.in.h (localeconv): New declaration.
4969         * lib/localeconv.c: New file.
4970         * m4/localeconv.m4: New file.
4971         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4972         REPLACE_LOCALECONV.
4973         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4974         REPLACE_LOCALECONV.
4975         * modules/localeconv: New file.
4976         * modules/nl_langinfo (Depends-on): Add localeconv.
4977         * modules/human (Depends-on): Likewise.
4978         * doc/posix-functions/localeconv.texi: Mention the new module.
4979
4980 2012-03-25  Bruno Haible  <bruno@clisp.org>
4981
4982         locale: Provide a complete 'struct lconv'.
4983         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4984         'struct lconv' does not contain int_p_cs_precedes.
4985         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4986         * doc/posix-headers/locale.texi: Update.
4987
4988         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4989         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4990         * doc/posix-headers/locale.texi: Update.
4991
4992         locale: Provide a working 'struct lconv'.
4993         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4994         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4995         'struct lconv' does not even contain decimal_point.
4996         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4997         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4998         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4999         * doc/posix-headers/locale.texi: Mention the problems with
5000         'struct lconv'.
5001         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5002
5003 2012-03-24  Bruno Haible  <bruno@clisp.org>
5004
5005         Enable common subexpression optimization in GCC.
5006         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5007         macros.
5008         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5009         GCC attribute 'const'.
5010         (uc_locale_language): Declare with GCC attribute 'pure'.
5011         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5012         with GCC attribute 'const'.
5013         * lib/unictype.in.h (uc_is_general_category_withtable,
5014         uc_combining_class, uc_combining_class_name,
5015         uc_combining_class_long_name, uc_bidi_class_name,
5016         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5017         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5018         uc_decimal_value, uc_digit_value, uc_numeric_value,
5019         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5020         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5021         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5022         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5023         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5024         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5025         Declare with GCC attribute 'const'.
5026         (uc_general_category_name, uc_general_category_long_name,
5027         uc_general_category_byname, uc_general_category,
5028         uc_is_general_category, uc_combining_class_byname,
5029         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5030         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5031         Declare with GCC attribute 'pure'.
5032         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5033         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5034         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5035         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5036         with GCC attribute 'pure'.
5037         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5038         'const'.
5039         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5040         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5041         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5042         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5043         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5044         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5045         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5046         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5047         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5048         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5049         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5050         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5051         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5052         GCC attribute 'pure'.
5053         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5054         'const'.
5055         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5056         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5057         u32_strwidth): Declare with GCC attribute 'pure'.
5058
5059         Enable common subexpression optimization in GCC.
5060         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5061         (alphasort): Declare with GCC attribute 'pure'.
5062         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5063         (atoll): Declare with GCC attribute 'pure'.
5064         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5065         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5066         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5067         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5068         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5069         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5070         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5071
5072 2012-03-24  Bruno Haible  <bruno@clisp.org>
5073
5074         gnulib-tool: Avoid unintended error output from 'cmp'.
5075         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5076         "cmp -s", not "cmp > /dev/null".
5077
5078 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5079
5080         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5081
5082         It's not just Automake versions < 1.9b that creates an empty
5083         pkgdatadir at installation time if pkgdata_DATA is specified
5084         to empty; modern automake versions do this as well, at least
5085         until automake 1.11.4 (not yet released at the moment of writing,
5086         but soon to appear).  That behaviour was generally considered a
5087         feature rather than a bug, at least until this discussion:
5088         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5089
5090         See also automake bugs #10997 and #11030.
5091
5092         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5093         reference to relevant automake bug numbers.
5094         (func_emit_tests_Makefile_am): Likewise.
5095
5096 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5097
5098         announce-gen: use Digest::SHA when possible
5099         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5100         back to Digest::SHA1 if necessary.
5101
5102 2012-03-20  Jim Meyering  <meyering@redhat.com>
5103
5104         tests: avoid gcc warnings about argv vs. const initializers
5105         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5106         warnings about discarding 'const' qualifier from pointer target type.
5107         * tests/test-posix_spawn2.c (main): Likewise.
5108
5109 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5110
5111         README-release: simplify slightly
5112         * top/README-release: Run "git checkout master" only once.
5113
5114 2012-03-15  Mark Wielaard  <mark@klomp.org>
5115
5116         git-merge-changelog: add specific example on how to use with hg.
5117         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5118
5119 2012-03-18  Mark Wielaard  <mark@klomp.org>
5120
5121         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5122
5123 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5124
5125         git-version-gen: don't let "prefix" envvar cause trouble
5126         * build-aux/git-version-gen (prefix): Initialize properly,
5127         so as not to use a value specified via the environment.
5128         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5129
5130 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5131
5132         regex: diagnose too-large repeat counts in EREs
5133         Previously, the code did not diagnose the too-large repeat count
5134         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5135         as if it were 'b\{1000000000}', which is unexpected.
5136         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5137         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5138         is a reasonable one for this problem.  Another option would be to
5139         create a new REG_OVERFLOW error for repeat counts that are too large.
5140         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5141         count is too large, so that the caller can distinguish the two cases.
5142         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5143         "Too large" return code, and that repeat counts are one example of this.
5144
5145 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         doc: some glibc x32 integer width issues
5148         * doc/posix-headers/sys_types.texi (sys/types.h):
5149         * doc/posix-headers/time.texi (time.h):
5150         Mention that glibc x32 does not conform to POSIX in a couple of
5151         areas related to integer widths.
5152
5153 2012-03-15  Bruno Haible  <bruno@clisp.org>
5154
5155         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5156         * lib/fma.c (VOLATILE): New macro.
5157         (FUNC): Use it to work around a GCC compiler bug.
5158
5159 2012-03-13  Bruno Haible  <bruno@clisp.org>
5160
5161         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5162         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5163         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5164         REPLACE_HYPOTL to 1.
5165         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5166
5167 2012-03-13  Bruno Haible  <bruno@clisp.org>
5168
5169         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5170         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5171         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5172         REPLACE_REMAINDERL to 1.
5173         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5174         bug.
5175
5176 2012-03-13  Bruno Haible  <bruno@clisp.org>
5177
5178         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5179         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5180         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5181         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5182         too big rounding errors.
5183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5184         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5185         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5186         (Depends-on): Update conditions.
5187         * tests/test-sqrtl.c (my_ldexpl): New function.
5188         (main): Add test of a particular value.
5189         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5190
5191 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5192
5193         doc: Update timer_* platform portability notes.
5194         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5195         that always return ENOSYS.
5196         * doc/posix-functions/timer_delete.texi: Likewise.
5197         * doc/posix-functions/timer_gettime.texi: Likewise.
5198         * doc/posix-functions/timer_settime.texi: Likewise.
5199
5200 2012-03-13  Bruno Haible  <bruno@clisp.org>
5201
5202         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5203         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5204         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5205         REPLACE_CBRTL to 1.
5206         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5207
5208 2012-03-13  Bruno Haible  <bruno@clisp.org>
5209
5210         remainderl: Avoid compilation error on AIX >= 5.2.
5211         * lib/math.in.h (remainderl): Undefine macro from the system header.
5212
5213 2012-03-13  Bruno Haible  <bruno@clisp.org>
5214
5215         Avoid compilation errors with MSVC option -fp:strict.
5216         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5217         * lib/cbrtf.c: Likewise.
5218         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5219
5220 2012-03-12  Bruno Haible  <bruno@clisp.org>
5221
5222         uninorm: Don't crash in out-of-memory conditions.
5223         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5224         gracefully.
5225         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5226         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5227
5228 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5229
5230         quote: fix syntax-check
5231         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5232         also exports quote_quoting_options.
5233
5234 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5235
5236         Collapse list of copyright years to ranges.  See
5237         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5238         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5239         build-aux/csharpexec.sh.in, build-aux/gnupload,
5240         build-aux/install-reloc, build-aux/javacomp.sh.in,
5241         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5242         build-aux/move-if-change, build-aux/reloc-ldflags,
5243         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5244
5245 2012-03-11  Bruno Haible  <bruno@clisp.org>
5246
5247         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5248         * m4/log2f-ieee.m4: New file.
5249         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5250         whether log2f works with a minus zero argument. Replace it if not.
5251         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5252         (Depends-on): Add log2-ieee.
5253         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5254         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5255
5256         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5257         * m4/log2-ieee.m4: New file.
5258         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5259         whether log2 works with a minus zero argument. Replace it if not.
5260         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5261         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5262         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5263
5264         Tests for module 'log2l-ieee'.
5265         * modules/log2l-ieee-tests: New file.
5266         * tests/test-log2l-ieee.c: New file.
5267
5268         New module 'log2l-ieee'.
5269         * modules/log2l-ieee: New file.
5270
5271         Tests for module 'log2-ieee'.
5272         * modules/log2-ieee-tests: New file.
5273         * tests/test-log2-ieee.c: New file.
5274
5275         New module 'log2-ieee'.
5276         * modules/log2-ieee: New file.
5277
5278         Tests for module 'log2f-ieee'.
5279         * modules/log2f-ieee-tests: New file.
5280         * tests/test-log2f-ieee.c: New file.
5281         * tests/test-log2-ieee.h: New file.
5282
5283         New module 'log2f-ieee'.
5284         * modules/log2f-ieee: New file.
5285
5286 2012-03-11  Bruno Haible  <bruno@clisp.org>
5287
5288         Tests for module 'log2l'.
5289         * modules/log2l-tests: New file.
5290         * tests/test-log2l.c: New file.
5291
5292         New module 'log2l'.
5293         * lib/math.in.h (log2l): New declaration.
5294         * lib/log2l.c: New file.
5295         * m4/log2l.m4: New file.
5296         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5298         REPLACE_LOG2L.
5299         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5300         REPLACE_LOG2L.
5301         * modules/log2l: New file.
5302         * tests/test-math-c++.cc: Check the declaration of log2l.
5303         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5304         and OSF/1 problems.
5305
5306 2012-03-11  Bruno Haible  <bruno@clisp.org>
5307
5308         Tests for module 'log2f'.
5309         * modules/log2f-tests: New file.
5310         * tests/test-log2f.c: New file.
5311
5312         New module 'log2f'.
5313         * lib/math.in.h (log2f): New declaration.
5314         * lib/log2f.c: New file.
5315         * m4/log2f.m4: New file.
5316         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5318         REPLACE_LOG2F.
5319         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5320         REPLACE_LOG2F.
5321         * modules/log2f: New file.
5322         * tests/test-math-c++.cc: Check the declaration of log2f.
5323         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5324         and OSF/1 and Cygwin problems.
5325
5326 2012-03-11  Bruno Haible  <bruno@clisp.org>
5327
5328         Tests for module 'log2'.
5329         * modules/log2-tests: New file.
5330         * tests/test-log2.c: New file.
5331         * tests/test-log2.h: New file.
5332
5333         New module 'log2'.
5334         * lib/math.in.h (log2): New declaration.
5335         * lib/log2.c: New file.
5336         * m4/log2.m4: New file.
5337         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5339         REPLACE_LOG2.
5340         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5341         REPLACE_LOG2.
5342         * modules/log2: New file.
5343         * tests/test-math-c++.cc: Check the declaration of log2.
5344         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5345         and OSF/1 and Cygwin problems.
5346
5347 2012-03-11  Bruno Haible  <bruno@clisp.org>
5348
5349         exp2* tests: More tests.
5350         * tests/test-exp2.h (test_function): Test all integral arguments that
5351         don't need to overflow or denormalized numbers.
5352         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5353         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5354         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5355
5356 2012-03-10  Bruno Haible  <bruno@clisp.org>
5357
5358         log1pl-ieee: Work around test failure on AIX 7.1.
5359         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5360
5361         log1pl-ieee: Work around test failure on IRIX 6.5.
5362         * m4/log1pl-ieee.m4: New file.
5363         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5364         test whether log1pl works with a minus zero argument. Replace it if
5365         not.
5366         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5368         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5369         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5370         (Depends-on): Update conditions.
5371         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5372         m4/signbit.m4.
5373         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5374         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5375
5376         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5377         * m4/log1pf-ieee.m4: New file.
5378         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5379         test whether log1pf works with a minus zero argument. Replace it if
5380         not.
5381         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5382         m4/signbit.m4.
5383         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5384         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5385
5386         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5387         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5388         (configure.ac): Require gl_FUNC_LOG1PF.
5389
5390         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5391         * m4/log1p-ieee.m4: New file.
5392         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5393         whether log1p works with a minus zero argument. Replace it if not.
5394         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5396         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5397         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5398         (Depends-on): Update conditions.
5399         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5400         m4/signbit.m4.
5401         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5402         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5403
5404         Tests for module 'log1pl-ieee'.
5405         * modules/log1pl-ieee-tests: New file.
5406         * tests/test-log1pl-ieee.c: New file.
5407
5408         New module 'log1pl-ieee'.
5409         * modules/log1pl-ieee: New file.
5410
5411         Tests for module 'log1p-ieee'.
5412         * modules/log1p-ieee-tests: New file.
5413         * tests/test-log1p-ieee.c: New file.
5414
5415         New module 'log1p-ieee'.
5416         * modules/log1p-ieee: New file.
5417
5418         Tests for module 'log1pf-ieee'.
5419         * modules/log1pf-ieee-tests: New file.
5420         * tests/test-log1pf-ieee.c: New file.
5421         * tests/test-log1p-ieee.h: New file.
5422
5423         New module 'log1pf-ieee'.
5424         * modules/log1pf-ieee: New file.
5425
5426 2012-03-10  Bruno Haible  <bruno@clisp.org>
5427
5428         Tests for module 'log1pl'.
5429         * modules/log1pl-tests: New file.
5430         * tests/test-log1pl.c: New file.
5431
5432         New module 'log1pl'.
5433         * lib/math.in.h (log1pl): New declaration.
5434         * lib/log1pl.c: New file.
5435         * m4/log1pl.m4: New file.
5436         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5438         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5439         * modules/log1pl: New file.
5440         * tests/test-math-c++.cc: Check the declaration of log1pl.
5441         * doc/posix-functions/log1pl.texi: Mention the new module.
5442
5443 2012-03-10  Bruno Haible  <bruno@clisp.org>
5444
5445         Tests for module 'log1pf'.
5446         * modules/log1pf-tests: New file.
5447         * tests/test-log1pf.c: New file.
5448
5449         New module 'log1pf'.
5450         * lib/math.in.h (log1pf): New declaration.
5451         * lib/log1pf.c: New file.
5452         * m4/log1pf.m4: New file.
5453         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5455         REPLACE_LOG1PF.
5456         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5457         REPLACE_LOG1PF.
5458         * modules/log1pf: New file.
5459         * tests/test-math-c++.cc: Check the declaration of log1pf.
5460         * doc/posix-functions/log1pf.texi: Mention the new module.
5461
5462 2012-03-10  Bruno Haible  <bruno@clisp.org>
5463
5464         log1p tests: More tests.
5465         * tests/test-log1p.h: New file.
5466         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5467         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5468         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5469         (main): Invoke test_function.
5470
5471         log1p: Provide replacement for Minix and MSVC.
5472         * lib/math.in.h (log1p): New declaration.
5473         * lib/log1p.c: New file.
5474         * m4/log1p.m4: New file.
5475         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5477         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5478         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5479         (Depends-on): Add math, isnand, log, round.
5480         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5481         HAVE_LOG1P is 0.
5482         * tests/test-math-c++.cc: Check the declaration of log1p.
5483         * doc/posix-functions/log1p.texi: Mention the replacement.
5484
5485 2012-03-10  Bruno Haible  <bruno@clisp.org>
5486
5487         math tests: Small simplification.
5488         * tests/test-exp.h (test_function): Use the same err_bound for
5489         'double' on platforms with sizeof (long double) == sizeof (double)
5490         than on platforms with sizeof (long double) > sizeof (double).
5491         * tests/test-exp2.h (test_function): Likewise.
5492         * tests/test-expm1.h (test_function): Likewise.
5493         * tests/test-log.h (test_function): Likewise.
5494
5495 2012-03-10  Bruno Haible  <bruno@clisp.org>
5496
5497         Fix some comments.
5498         * lib/expl.c: Fix an ambiguous comment.
5499         * lib/expm1.c: Likewise.
5500         * lib/expm1l.c: Likewise.
5501         * lib/exp2.c: Likewise.
5502         * lib/exp2l.c: Likewise.
5503
5504 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5505
5506         regex: allow inclusion of <regex.h> before <limits.h>
5507         Without this patch, portable programs had to include <limits.h> before
5508         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5509         I ran into this problem with a test version of GNU grep on Solaris 8.
5510         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5511         This is done conditionally so that this change can be merged
5512         back to glibc.
5513         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5514         using the included regex.
5515
5516         fts: depend on fdopendir
5517         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5518         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5519         problem was introduced when fdopendir was split out.
5520
5521 2012-03-10  Bruno Haible  <bruno@clisp.org>
5522
5523         Remove unused variables.
5524         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5525         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5526
5527 2012-03-10  Bruno Haible  <bruno@clisp.org>
5528
5529         isnanf-nolibm: Fix last commit.
5530         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5531
5532         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5533         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5534
5535 2012-03-10  Bruno Haible  <bruno@clisp.org>
5536
5537         logf-ieee: Work around test failure on NetBSD 5.1.
5538         * m4/logf-ieee.m4: New file.
5539         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5540         whether logf works with a negative argument. Replace it if not.
5541         * lib/logf.c (logf): For negative arguments, return NaN.
5542         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5543         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5544         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5545
5546         logf-ieee: Work around test failure on Solaris 9.
5547         * modules/logf-ieee (Depends-on): Add log-ieee.
5548         (configure.ac): Require gl_FUNC_LOGF.
5549
5550         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5551         * m4/log-ieee.m4: New file.
5552         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5553         log works with a negative argument. Replace it if not.
5554         * lib/log.c (log): For negative arguments, return NaN.
5555         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5556         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5557         * doc/posix-functions/log.texi: Mention the log-ieee module.
5558
5559         Tests for module 'logl-ieee'.
5560         * modules/logl-ieee-tests: New file.
5561         * tests/test-logl-ieee.c: New file.
5562
5563         New module 'logl-ieee'.
5564         * modules/logl-ieee: New file.
5565
5566         Tests for module 'log-ieee'.
5567         * modules/log-ieee-tests: New file.
5568         * tests/test-log-ieee.c: New file.
5569
5570         New module 'log-ieee'.
5571         * modules/log-ieee: New file.
5572
5573         Tests for module 'logf-ieee'.
5574         * modules/logf-ieee-tests: New file.
5575         * tests/test-logf-ieee.c: New file.
5576         * tests/test-log-ieee.h: New file.
5577
5578         New module 'logf-ieee'.
5579         * modules/logf-ieee: New file.
5580
5581 2012-03-10  Bruno Haible  <bruno@clisp.org>
5582
5583         log: Fix bug introduced on 2012-03-09.
5584         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5585
5586 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5587
5588         timer-time: link explicitly with pthreads on glibc
5589         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5590         to support static linking, when newer glibc is
5591         detected, as that contains pthread emulation of
5592         POSIX timer functions where required.
5593         * modules/timer-time: Depend on threadlib to
5594         pull in the appropriate library to link.
5595
5596 2012-03-10  Bruno Haible  <bruno@clisp.org>
5597
5598         log* tests: More tests.
5599         * tests/test-log.h: New file.
5600         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5601         (main): Invoke test_function.
5602         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5603         (main): Invoke test_function.
5604         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5605         (main): Invoke test_function.
5606         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5607         tests/randomd.c.
5608         (Makefile.am): Add randomd.c to test_log_SOURCES.
5609         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5610         tests/randomf.c.
5611         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5612         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5613         tests/randoml.c.
5614         (Depends-on): Add 'float'.
5615         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5616
5617 2012-03-09  Bruno Haible  <bruno@clisp.org>
5618
5619         logl: Work around OSF/1 5.1 bug.
5620         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5621         * lib/logl.c (logl): If logl exists, use it and provide just the
5622         workaround.
5623         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5624         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5626         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5627         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5628         (Depends-on): Update conditions.
5629         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5630
5631 2012-03-09  Bruno Haible  <bruno@clisp.org>
5632
5633         logf: Work around OSF/1 5.1 bug.
5634         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5635         * lib/logf.c (logf): If logf exists, use it and provide just the
5636         workaround.
5637         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5638         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5640         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5641         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5642         (Depends-on): Update conditions.
5643         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5644
5645 2012-03-09  Bruno Haible  <bruno@clisp.org>
5646
5647         log: Work around OSF/1 5.1 bug.
5648         * lib/math.in.h (log): New declaration.
5649         * lib/log.c: New file.
5650         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5651         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5652         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5654         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5655         * modules/log (Files): Add lib/log.c.
5656         (Depends-on): Add math.
5657         (configure.ac): If REPLACE_LOG is 1, compile an override.
5658         * tests/test-math-c++.cc: Check the declaration of log.
5659         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5660
5661 2012-03-09  Jim Meyering  <meyering@redhat.com>
5662
5663         readtokens.c: adjust wording in a comment
5664         * lib/readtokens.c: Insert omitted "that" in a comment.
5665
5666 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5667
5668         modechange: add notations +40, 00440, etc.
5669         * lib/modechange.c (mode_compile): Support new notations
5670         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5671
5672 2012-03-08  Bruno Haible  <bruno@clisp.org>
5673
5674         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5675         * m4/exp2l-ieee.m4: New file.
5676         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5677         test whether exp2l works with a NaN argument and with a negative
5678         infinity argument. Replace it if not.
5679         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5681         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5682         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5683         (Depends-on): Update conditions.
5684         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5685         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5686         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5687
5688         Tests for module 'exp2l-ieee'.
5689         * modules/exp2l-ieee-tests: New file.
5690         * tests/test-exp2l-ieee.c: New file.
5691
5692         New module 'exp2l-ieee'.
5693         * modules/exp2l-ieee: New file.
5694
5695         Tests for module 'exp2-ieee'.
5696         * modules/exp2-ieee-tests: New file.
5697         * tests/test-exp2-ieee.c: New file.
5698
5699         New module 'exp2-ieee'.
5700         * modules/exp2-ieee: New file.
5701
5702         Tests for module 'exp2f-ieee'.
5703         * modules/exp2f-ieee-tests: New file.
5704         * tests/test-exp2f-ieee.c: New file.
5705         * tests/test-exp2-ieee.h: New file.
5706
5707         New module 'exp2f-ieee'.
5708         * modules/exp2f-ieee: New file.
5709
5710 2012-03-08  Bruno Haible  <bruno@clisp.org>
5711
5712         Tests for module 'exp2l'.
5713         * modules/exp2l-tests: New file.
5714         * tests/test-exp2l.c: New file.
5715
5716         New module 'exp2l'.
5717         * lib/math.in.h (exp2l): New declaration.
5718         * lib/exp2l.c: New file.
5719         * lib/expl-table.c: New file, extracted from lib/expl.c.
5720         * lib/expl.c (gl_expl_table): New declaration.
5721         (expl): Remove expl_table. Update reference.
5722         * m4/exp2l.m4: New file.
5723         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5725         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5726         * modules/exp2l: New file.
5727         * modules/expl (Files): Add lib/expl-table.c.
5728         (configure.ac): Compile also expl-table.c.
5729         * tests/test-math-c++.cc: Check the declaration of exp2l.
5730         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5731         problem.
5732
5733 2012-03-08  Bruno Haible  <bruno@clisp.org>
5734
5735         Tests for module 'exp2f'.
5736         * modules/exp2f-tests: New file.
5737         * tests/test-exp2f.c: New file.
5738
5739         New module 'exp2f'.
5740         * lib/math.in.h (exp2f): New declaration.
5741         * lib/exp2f.c: New file.
5742         * m4/exp2f.m4: New file.
5743         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5745         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5746         * modules/exp2f: New file.
5747         * tests/test-math-c++.cc: Check the declaration of exp2f.
5748         * doc/posix-functions/exp2f.texi: Mention the new module and the
5749         IRIX problem.
5750
5751 2012-03-08  Bruno Haible  <bruno@clisp.org>
5752
5753         Tests for module 'exp2'.
5754         * modules/exp2-tests: New file.
5755         * tests/test-exp2.c: New file.
5756         * tests/test-exp2.h: New file.
5757
5758         New module 'exp2'.
5759         * lib/math.in.h (exp2): New declaration.
5760         * lib/exp2.c: New file.
5761         * m4/exp2.m4: New file.
5762         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5764         REPLACE_EXP2.
5765         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5766         REPLACE_EXP2.
5767         * modules/exp2: New file.
5768         * tests/test-math-c++.cc: Check the declaration of exp2.
5769         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5770         and OpenBSD problems.
5771
5772 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         savedir: fix comment typo
5775         * lib/savedir.c (savedirstream): Fix typo in comment.
5776
5777 2012-03-08  Bruno Haible  <bruno@clisp.org>
5778
5779         test-readtokens.c: use const; remove unwarranted cast
5780         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5781
5782 2012-03-08  Bruno Haible  <bruno@clisp.org>
5783
5784         fmal: Avoid compilation error on AIX.
5785         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5786         AIX 5.2..7.1.
5787
5788 2012-03-08  Bruno Haible  <bruno@clisp.org>
5789
5790         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5791         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5792         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5793         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5794         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5795         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5796         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5797
5798 2012-03-08  Bruno Haible  <bruno@clisp.org>
5799
5800         remainderf: Override buggy system function on IRIX 6.5.
5801         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5802         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5803         when it exists.
5804         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5805
5806 2012-03-08  Jim Meyering  <meyering@redhat.com>
5807
5808         test-readtokens.c: avoid const-related compilation warnings
5809         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5810
5811 2012-03-07  Jim Meyering  <meyering@redhat.com>
5812             Bruno Haible  <bruno@clisp.org>
5813
5814         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5815         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5816         tests/randomd.c.
5817         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5818         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5819         tests/randoml.c.
5820         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5821
5822 2012-03-07  Bruno Haible  <bruno@clisp.org>
5823
5824         expm1l: Avoid compilation error on AIX.
5825         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5826         AIX 5.2..7.1.
5827
5828 2012-03-07  Bruno Haible  <bruno@clisp.org>
5829
5830         expm1l: Don't override undeclared system function on IRIX 6.5.
5831         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5832         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5833         it exists. Set HAVE_DECL_EXPM1L.
5834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5835         HAVE_EXPM1L.
5836         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5837         HAVE_EXPM1L.
5838         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5839
5840 2012-03-07  Bruno Haible  <bruno@clisp.org>
5841
5842         remainderl: Don't override undeclared system function on IRIX 6.5.
5843         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5844         HAVE_REMAINDERL.
5845         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5846         declared when it exists. Set HAVE_DECL_REMAINDERL.
5847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5848         not HAVE_REMAINDERL.
5849         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5850         HAVE_REMAINDERL.
5851         * doc/posix-functions/remainderl.texi: Mention missing declaration
5852         problem.
5853
5854 2012-03-07  Bruno Haible  <bruno@clisp.org>
5855
5856         rintf: Don't override undeclared system function on IRIX 6.5.
5857         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5858         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5859         exists. Set HAVE_DECL_RINTF.
5860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5861         HAVE_RINTF.
5862         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5863         HAVE_RINTF.
5864         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5865
5866 2012-03-07  Bruno Haible  <bruno@clisp.org>
5867
5868         roundl: Avoid compilation error on AIX.
5869         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5870         AIX 5.2..7.1.
5871
5872 2012-03-07  Bruno Haible  <bruno@clisp.org>
5873
5874         roundl: Don't override undeclared system function on IRIX 6.5.
5875         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5876         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5877         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5878         * modules/roundl (configure.ac): For replacement code, test
5879         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5880         (Depends-on): Update conditions.
5881         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5882
5883 2012-03-07  Bruno Haible  <bruno@clisp.org>
5884
5885         roundf: Don't override undeclared system function on IRIX 6.5.
5886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5887         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5888         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5889         * modules/roundf (configure.ac): For replacement code, test
5890         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5891         (Depends-on): Update conditions.
5892         * modules/roundf-ieee (Depends-on): Update conditions.
5893         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5894
5895 2012-03-07  Bruno Haible  <bruno@clisp.org>
5896
5897         round: Don't override undeclared system function on IRIX 6.5.
5898         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5899         argument.
5900         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5901         also when it is not declared. Set HAVE_ROUND. For replacement code,
5902         test HAVE_ROUND, not HAVE_DECL_ROUND.
5903         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5904         not HAVE_DECL_ROUND.
5905         (Depends-on): Update conditions.
5906         * modules/round-ieee (Depends-on): Update conditions.
5907         * doc/posix-functions/round.texi: Mention the IRIX problem.
5908
5909 2012-03-07  Bruno Haible  <bruno@clisp.org>
5910
5911         copysignf: Don't override undeclared system function on IRIX 6.5.
5912         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5913         HAVE_COPYSIGNF.
5914         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5915         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5917         not HAVE_COPYSIGNF.
5918         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5919         HAVE_COPYSIGNF.
5920         * doc/posix-functions/copysignf.texi: Mention missing declaration
5921         problem.
5922
5923 2012-03-07  Jim Meyering  <meyering@redhat.com>
5924
5925         readtokens: add tests
5926         * modules/readtokens-tests: New file.
5927         * tests/test-readtokens.c: New file.
5928
5929 2012-03-07  Jim Meyering  <meyering@redhat.com>
5930
5931         quotearg: the module must now include quote.h
5932         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5933         So must the module.
5934         * modules/quotearg (Files): Add quote.h.
5935
5936 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5937
5938         readtokens: avoid core dumps with unusual calling patterns
5939         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5940         * lib/readtokens.c: Include limits.h.
5941         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5942         (readtoken): Don't cache the delimiters; the cache code was buggy
5943         if !delim && saved_delim, or if the new n_delim differs from the old.
5944         Also, it wasn't thread-safe.
5945
5946 2012-03-07  Bruno Haible  <bruno@clisp.org>
5947
5948         quote: Adhere to common module description layout.
5949         * modules/quote (Makefile.am): Add back empty section.
5950
5951 2012-03-06  Akim Demaille  <demaille@gostai.com>
5952
5953         quote: fuse into quotearg
5954         This patch is made for the benefit of Bison.
5955         quote does not leave the choice of the quoting style to the user.
5956         quoting_style provides poor customizability, yet quoting_options,
5957         which is very rich, is hidden inside quotearg.c.  So in order to
5958         allow quote customization, move its implementation to quotearg.c.
5959         * lib/quote.c: Remove.
5960         * modules/quote: Adjust.
5961         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5962         warning: provide all the members of literal structs.
5963         (quote_quoting_options): New.
5964         (quote, quote_n): Import implementation from quote.c.
5965         * lib/quote.h: Import the comments from quote.c.
5966         (quote_quoting_options): New.
5967
5968 2012-03-06  Bruno Haible  <bruno@clisp.org>
5969
5970         Tests for module 'expm1l-ieee'.
5971         * modules/expm1l-ieee-tests: New file.
5972         * tests/test-expm1l-ieee.c: New file.
5973
5974         New module 'expm1l-ieee'.
5975         * modules/expm1l-ieee: New file.
5976
5977         Tests for module 'expm1f-ieee'.
5978         * modules/expm1f-ieee-tests: New file.
5979         * tests/test-expm1f-ieee.c: New file.
5980
5981         New module 'expm1f-ieee'.
5982         * modules/expm1f-ieee: New file.
5983
5984         Tests for module 'expm1-ieee'.
5985         * modules/expm1-ieee-tests: New file.
5986         * tests/test-expm1-ieee.c: New file.
5987         * tests/test-expm1-ieee.h: New file.
5988
5989         New module 'expm1-ieee'.
5990         * modules/expm1-ieee: New file.
5991         * m4/expm1-ieee.m4: New file.
5992         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5993         whether expm1 works with a minus zero argument. Replace it if not.
5994         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5996         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5997         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5998         (Depends-on): Update conditions.
5999         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6000         AIX problem.
6001
6002 2012-03-06  Bruno Haible  <bruno@clisp.org>
6003
6004         Work around expm1f bug on IRIX 6.5.
6005         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6006         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6007         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6008         not work.
6009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6010         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6011         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6012         (Depends-on): Update conditions.
6013         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6014
6015 2012-03-06  Bruno Haible  <bruno@clisp.org>
6016
6017         Tests for module 'expm1l'.
6018         * modules/expm1l-tests: New file.
6019         * tests/test-expm1l.c: New file.
6020
6021         New module 'expm1l'.
6022         * lib/math.in.h (expm1l): New declaration.
6023         * lib/expm1l.c: New file.
6024         * m4/expm1l.m4: New file.
6025         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6027         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6028         * modules/expm1l: New file.
6029         * tests/test-math-c++.cc: Check the declaration of expm1l.
6030         * doc/posix-functions/expm1l.texi: Mention the new module.
6031
6032 2012-03-06  Bruno Haible  <bruno@clisp.org>
6033
6034         Tests for module 'expm1f'.
6035         * modules/expm1f-tests: New file.
6036         * tests/test-expm1f.c: New file.
6037
6038         New module 'expm1f'.
6039         * lib/math.in.h (expm1f): New declaration.
6040         * lib/expm1f.c: New file.
6041         * m4/expm1f.m4: New file.
6042         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6044         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6045         * modules/expm1f: New file.
6046         * tests/test-math-c++.cc: Check the declaration of expm1f.
6047         * doc/posix-functions/expm1f.texi: Mention the new module.
6048
6049 2012-03-06  Bruno Haible  <bruno@clisp.org>
6050
6051         Tests for module 'expm1'.
6052         * modules/expm1-tests: New file.
6053         * tests/test-expm1.c: New file.
6054         * tests/test-expm1.h: New file.
6055
6056         New module 'expm1'.
6057         * lib/math.in.h (expm1): New declaration.
6058         * lib/expm1.c: New file.
6059         * m4/expm1.m4: New file.
6060         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6062         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6063         * modules/expm1: New file.
6064         * tests/test-math-c++.cc: Check the declaration of expm1.
6065         * doc/posix-functions/expm1.texi: Mention the new module.
6066
6067 2012-03-06  Bruno Haible  <bruno@clisp.org>
6068
6069         math: Ensure declarations of math functions.
6070         * modules/acosf (Depends-on): Add 'extensions'.
6071         * modules/asinf (Depends-on): Likewise.
6072         * modules/atan2f (Depends-on): Likewise.
6073         * modules/atanf (Depends-on): Likewise.
6074         * modules/cbrt (Depends-on): Likewise.
6075         * modules/cbrtf (Depends-on): Likewise.
6076         * modules/cbrtl (Depends-on): Likewise.
6077         * modules/copysignf (Depends-on): Likewise.
6078         * modules/copysignl (Depends-on): Likewise.
6079         * modules/cosf (Depends-on): Likewise.
6080         * modules/coshf (Depends-on): Likewise.
6081         * modules/expf (Depends-on): Likewise.
6082         * modules/fabsf (Depends-on): Likewise.
6083         * modules/fabsl (Depends-on): Likewise.
6084         * modules/fmaf (Depends-on): Likewise.
6085         * modules/fmal (Depends-on): Likewise.
6086         * modules/fmodf (Depends-on): Likewise.
6087         * modules/fmodl (Depends-on): Likewise.
6088         * modules/frexpf (Depends-on): Likewise.
6089         * modules/frexpl (Depends-on): Likewise.
6090         * modules/hypot (Depends-on): Likewise.
6091         * modules/hypotf (Depends-on): Likewise.
6092         * modules/hypotl (Depends-on): Likewise.
6093         * modules/ldexpf (Depends-on): Likewise.
6094         * modules/ldexpl (Depends-on): Likewise.
6095         * modules/log10f (Depends-on): Likewise.
6096         * modules/log10l (Depends-on): Likewise.
6097         * modules/log1p (Depends-on): Likewise.
6098         * modules/logb (Depends-on): Likewise.
6099         * modules/logf (Depends-on): Likewise.
6100         * modules/modff (Depends-on): Likewise.
6101         * modules/modfl (Depends-on): Likewise.
6102         * modules/powf (Depends-on): Likewise.
6103         * modules/remainderf (Depends-on): Likewise.
6104         * modules/remainderl (Depends-on): Likewise.
6105         * modules/rintf (Depends-on): Likewise.
6106         * modules/rintl (Depends-on): Likewise.
6107         * modules/sinf (Depends-on): Likewise.
6108         * modules/sinhf (Depends-on): Likewise.
6109         * modules/sqrtf (Depends-on): Likewise.
6110         * modules/tanf (Depends-on): Likewise.
6111         * modules/tanhf (Depends-on): Likewise.
6112         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6113         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6114         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6115         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6116         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6117         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6118         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6119         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6120         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6121         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6122         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6123         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6124         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6125         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6126         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6127         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6128         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6129         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6130         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6131         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6132         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6133         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6134         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6135         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6136         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6137         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6138         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6139         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6140         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6141         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6142         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6143         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6144         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6145         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6146         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6147         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6148         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6149         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6150         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6151         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6152         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6153
6154 2012-03-06  Bruno Haible  <bruno@clisp.org>
6155
6156         math: Update module names in warnings.
6157         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6158         tanl): Use specific module name in warn-on-use warning.
6159
6160 2012-03-06  Bruno Haible  <bruno@clisp.org>
6161
6162         expl: Simplify computation.
6163         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6164
6165 2012-03-05  Bruno Haible  <bruno@clisp.org>
6166
6167         exp* tests: More tests.
6168         * tests/test-exp.h: New file.
6169         * tests/test-exp.c: Include <float.h> and test-exp.h.
6170         (main): Invoke test_function.
6171         * tests/test-expf.c: Include <float.h> and test-exp.h.
6172         (main): Invoke test_function.
6173         * tests/test-expl.c: Include <float.h> and test-exp.h.
6174         (main): Invoke test_function.
6175         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6176         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6177         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6178         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6179         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6180         (Depends-on): Add 'float'.
6181         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6182
6183         expl: Fix precision of computed result.
6184         * lib/expl.c: Completely rewritten.
6185         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6186         (Maintainer): Add me.
6187         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6188
6189 2012-03-05  Bruno Haible  <bruno@clisp.org>
6190
6191         cbrt* tests: More tests.
6192         * tests/test-cbrt.h: New file.
6193         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6194         (main): Invoke test_function.
6195         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6196         (main): Invoke test_function.
6197         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6198         (main): Invoke test_function.
6199         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6200         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6201         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6202         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6203         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6204         (Depends-on): Add 'float'.
6205         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6206
6207 2012-03-05  Bruno Haible  <bruno@clisp.org>
6208
6209         hypot* tests: More tests.
6210         * tests/test-hypot.h: New file, partially extracted from
6211         tests/test-hypotl.c.
6212         * tests/test-hypot.c: Include test-hypot.h.
6213         (main): Invoke test_function.
6214         * tests/test-hypotf.c: Include test-hypot.h.
6215         (main): Invoke test_function.
6216         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6217         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6218         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6219         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6220         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6221         tests/randomf.c.
6222         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6223         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6224         tests/randoml.c.
6225         (Depends-on): Add 'fpucw', 'float'.
6226         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6227
6228 2012-03-05  Bruno Haible  <bruno@clisp.org>
6229
6230         fpucw: Doc about FreeBSD.
6231         * lib/fpucw.h: Mention FreeBSD in comments.
6232
6233 2012-03-04  Bruno Haible  <bruno@clisp.org>
6234
6235         sqrt* tests: More tests.
6236         * tests/test-sqrt.h: New file.
6237         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6238         (main): Invoke test_function.
6239         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6240         (main): Invoke test_function.
6241         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6242         (main): Invoke test_function.
6243         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6244         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6245         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6246         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6247         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6248         (Depends-on): Add 'float'.
6249         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6250
6251 2012-03-04  Bruno Haible  <bruno@clisp.org>
6252
6253         remainder* tests: More tests.
6254         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6255         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6256         (main): Invoke test_function.
6257         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6258         (main): Invoke test_function.
6259         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6260         (main): Invoke test_function.
6261         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6262         tests/randomd.c.
6263         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6264         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6265         tests/randomf.c.
6266         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6267         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6268         tests/randoml.c.
6269         (Depends-on): Add 'float'.
6270         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6271
6272 2012-03-04  Bruno Haible  <bruno@clisp.org>
6273
6274         remainder, remainderf, remainderl: Fix computation for large quotients.
6275         * lib/remainder.c: Completely rewritten.
6276         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6277         USE_FLOAT.
6278         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6279         USE_LONG_DOUBLE.
6280         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6281         isnand, isinf. Remove round, fma.
6282         * modules/remainderf (Files): Add lib/remainder.c.
6283         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6284         Remove roundf, fmaf.
6285         * modules/remainderl (Files): Add lib/remainder.c.
6286         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6287         isinf. Remove roundl, fmal.
6288         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6289         REMAINDER_LIBM.
6290         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6291         REMAINDERF_LIBM.
6292         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6293         REMAINDERL_LIBM.
6294
6295 2012-03-04  Bruno Haible  <bruno@clisp.org>
6296
6297         fmod* tests: More tests.
6298         * tests/test-fmod.h (my_ldexp): New function.
6299         (test_function): Reduce amount of random numbers to test. Add tests
6300         of very large quotients x / y.
6301         * tests/test-fmod.c (MAX_EXP): New macro.
6302         * tests/test-fmodf.c (MAX_EXP): Likewise.
6303         * tests/test-fmodl.c (MAX_EXP): Likewise.
6304
6305 2012-03-04  Bruno Haible  <bruno@clisp.org>
6306
6307         fmod, fmodl: Fix computation for large quotients x / y.
6308         * lib/fmod.c: Completely rewritten.
6309         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6310         USE_LONG_DOUBLE.
6311         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6312         isnand. Remove fma.
6313         * modules/fmodl (Files): Add lib/fmod.c.
6314         (Depends-on): Add float, isfinite, signbit, fabsl,
6315         frexpl, ldexpl, isnanl. Remove fma.
6316         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6317         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6318
6319 2012-03-03  Bruno Haible  <bruno@clisp.org>
6320
6321         fmod* tests: More tests.
6322         * tests/test-fmod.h: New file.
6323         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6324         (main): Invoke test_function.
6325         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6326         (main): Invoke test_function.
6327         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6328         (main): Invoke test_function.
6329         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6330         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6331         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6332         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6333         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6334         (Depends-on): Add 'float'.
6335         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6336
6337 2012-03-03  Bruno Haible  <bruno@clisp.org>
6338
6339         rint* tests: More tests.
6340         * tests/test-rint.h: New file, partially extracted from
6341         tests/test-rintl.c.
6342         * tests/test-rint.c: Include test-rint.h.
6343         (main): Invoke test_function.
6344         * tests/test-rintf.c: Include test-rint.h.
6345         (main): Invoke test_function.
6346         * tests/test-rintl.c: Include test-rint.h.
6347         (main): Invoke test_function.
6348         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6349         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6350         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6351         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6352         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6353         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6354
6355 2012-03-03  Bruno Haible  <bruno@clisp.org>
6356
6357         modf* tests: More tests.
6358         * tests/test-modf.h: New file.
6359         * tests/test-modf.c: Include <float.h> and test-modf.h.
6360         (main): Invoke test_function.
6361         * tests/test-modff.c: Include <float.h> and test-modf.h.
6362         (main): Invoke test_function.
6363         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6364         (main): Invoke test_function.
6365         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6366         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6367         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6368         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6369         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6370         (Depends-on): Add 'float'.
6371         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6372
6373 2012-03-03  Bruno Haible  <bruno@clisp.org>
6374
6375         fabs* tests: More tests.
6376         * tests/test-fabs.h: New file, partially extracted from
6377         tests/test-fabsl.c.
6378         * tests/test-fabs.c (RANDOM): New macro.
6379         * tests/test-fabsf.c (RANDOM): New macro.
6380         * tests/test-fabsl.c (RANDOM): New macro.
6381         * modules/fabs-tests (Files): Add tests/randomd.c.
6382         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6383         * modules/fabsf-tests (Files): Add tests/randomf.c.
6384         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6385         * modules/fabsl-tests (Files): Add tests/randoml.c.
6386         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6387
6388 2012-03-03  Bruno Haible  <bruno@clisp.org>
6389
6390         ldexp* tests: More tests.
6391         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6392         * tests/test-ldexp.c (RANDOM): New macro.
6393         * tests/test-ldexpf.c (RANDOM): New macro.
6394         * tests/test-ldexpl.c (RANDOM): New macro.
6395         * modules/ldexp-tests (Files): Add tests/randomd.c.
6396         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6397         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6398         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6399         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6400         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6401
6402 2012-03-03  Bruno Haible  <bruno@clisp.org>
6403
6404         frexp* tests: More tests.
6405         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6406         * tests/test-frexp.c (RANDOM): New macro.
6407         * tests/test-frexpf.c (RANDOM): New macro.
6408         * tests/test-frexpl.c (RANDOM): New macro.
6409         * modules/frexp-tests (Files): Add tests/randomd.c.
6410         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6411         * modules/frexpf-tests (Files): Add tests/randomf.c.
6412         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6413         * modules/frexpl-tests (Files): Add tests/randoml.c.
6414         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6415
6416 2012-03-03  Bruno Haible  <bruno@clisp.org>
6417
6418         Support for pseudo-random numbers in tests.
6419         * tests/randomf.c: New file.
6420         * tests/randomd.c: New file.
6421         * tests/randoml.c: New file.
6422         * tests/macros.h (randomf, randomd, randoml): New declarations.
6423
6424 2012-03-03  Bruno Haible  <bruno@clisp.org>
6425
6426         frexp* tests: Refactor.
6427         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6428         * tests/test-frexp.c: Include and use it.
6429         * tests/test-frexpf.c: Likewise.
6430         * tests/test-frexpl.c: Likewise.
6431         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6432         * modules/frexpf-tests (Files): Likewise.
6433         * modules/frexpl-tests (Files): Likewise.
6434
6435 2012-03-02  Jim Meyering  <meyering@redhat.com>
6436
6437         maint: don't specify XZ_OPT=-9ev in dist-related rule
6438         Using xz's -9 option is warranted only if you have a very large
6439         tarball (see xz's documentation for the sizes vs. presets), and
6440         requires 64MiB of memory at decompression time.
6441         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6442         Automake's default of just "-e" is fine.  Override on a
6443         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6444
6445 2012-03-01  Eric Blake  <eblake@redhat.com>
6446
6447         maint.mk: allow announcement for non-gnulib project
6448         * maint.mk (announcement): Skip gnulib version if not used.
6449
6450 2012-03-01  Jim Meyering  <meyering@redhat.com>
6451
6452         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6453         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6454         envvar settings cannot interfere.  Otherwise, setting envvars like
6455         prohibit=foo require=bar, etc. would cause spurious test failures.
6456
6457 2012-03-01  Eric Blake  <eblake@redhat.com>
6458
6459         maint.mk: add per-line exclusions to prohibitions
6460         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6461         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6462         (sc_const_long_option): Use it.
6463
6464 2012-03-01  Bruno Haible  <bruno@clisp.org>
6465
6466         Tests for module 'expl-ieee'.
6467         * modules/expl-ieee-tests: New file.
6468         * tests/test-expl-ieee.c: New file.
6469
6470         New module 'expl-ieee'.
6471         * modules/expl-ieee: New file.
6472
6473         Tests for module 'exp-ieee'.
6474         * modules/exp-ieee-tests: New file.
6475         * tests/test-exp-ieee.c: New file.
6476
6477         New module 'exp-ieee'.
6478         * modules/exp-ieee: New file.
6479
6480         Tests for module 'expf-ieee'.
6481         * modules/expf-ieee-tests: New file.
6482         * tests/test-expf-ieee.c: New file.
6483         * tests/test-exp-ieee.h: New file.
6484
6485         New module 'expf-ieee'.
6486         * modules/expf-ieee: New file.
6487
6488 2012-02-29  Bruno Haible  <bruno@clisp.org>
6489
6490         cbrtl-ieee: Work around test failure on IRIX 6.5.
6491         * m4/cbrtl-ieee.m4: New file.
6492         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6493         test whether cbrtl works with a minus zero argument. Replace it if not.
6494         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6496         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6497         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6498         (Depends-on): Update conditions.
6499         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6500         m4/signbit.m4.
6501         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6502         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6503         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6504
6505         Tests for module 'cbrtl-ieee'.
6506         * modules/cbrtl-ieee-tests: New file.
6507         * tests/test-cbrtl-ieee.c: New file.
6508
6509         New module 'cbrtl-ieee'.
6510         * modules/cbrtl-ieee: New file.
6511
6512         Tests for module 'cbrt-ieee'.
6513         * modules/cbrt-ieee-tests: New file.
6514         * tests/test-cbrt-ieee.c: New file.
6515
6516         New module 'cbrt-ieee'.
6517         * modules/cbrt-ieee: New file.
6518
6519         Tests for module 'cbrtf-ieee'.
6520         * modules/cbrtf-ieee-tests: New file.
6521         * tests/test-cbrtf-ieee.c: New file.
6522         * tests/test-cbrt-ieee.h: New file.
6523
6524         New module 'cbrtf-ieee'.
6525         * modules/cbrtf-ieee: New file.
6526
6527 2012-02-29  Bruno Haible  <bruno@clisp.org>
6528
6529         cbrtf: Work around bug in IRIX 6.5 system function.
6530         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6531         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6532         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6533         work.
6534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6535         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6536         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6537         (Depends-on): Update conditions.
6538         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6539
6540 2012-02-29  Bruno Haible  <bruno@clisp.org>
6541
6542         Tests for module 'cbrtl'.
6543         * modules/cbrtl-tests: New file.
6544         * tests/test-cbrtl.c: New file.
6545
6546         New module 'cbrtl'.
6547         * lib/math.in.h (cbrtl): New declaration.
6548         * lib/cbrtl.c: New file.
6549         * m4/cbrtl.m4: New file.
6550         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6552         HAVE_DECL_CBRTL.
6553         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6554         HAVE_DECL_CBRTL.
6555         * modules/cbrtl: New file.
6556         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6557         * doc/posix-functions/cbrtl.texi: Mention the new module.
6558
6559 2012-02-29  Bruno Haible  <bruno@clisp.org>
6560
6561         Tests for module 'cbrtf'.
6562         * modules/cbrtf-tests: New file.
6563         * tests/test-cbrtf.c: New file.
6564
6565         New module 'cbrtf'.
6566         * lib/math.in.h (cbrtf): New declaration.
6567         * lib/cbrtf.c: New file.
6568         * m4/cbrtf.m4: New file.
6569         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6571         HAVE_DECL_CBRTF.
6572         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6573         HAVE_DECL_CBRTF.
6574         * modules/cbrtf: New file.
6575         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6576         * doc/posix-functions/cbrtf.texi: Mention the new module.
6577
6578 2012-02-29  Bruno Haible  <bruno@clisp.org>
6579
6580         cbrt: Provide replacement on MSVC and Minix.
6581         * lib/math.in.h (cbrt): New declaration.
6582         * lib/cbrt.c: New file.
6583         * m4/cbrt.m4: New file.
6584         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6586         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6587         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6588         (Depends-on): Add dependencies.
6589         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6590         * tests/test-math-c++.cc: Check the declaration of cbrt.
6591         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6592         replacement.
6593
6594 2012-02-29  Bruno Haible  <bruno@clisp.org>
6595
6596         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6597         * m4/hypotl-ieee.m4: New file.
6598         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6599         test whether hypotl works with mixed NaN and Infinity arguments.
6600         Replace it if not.
6601         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6603         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6604         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6605         (Depends-on): Update conditions.
6606         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6607         (Depends-on): Add hypot-ieee.
6608         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6609         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6610
6611         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6612         * m4/hypotf-ieee.m4: New file.
6613         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6614         test whether hypotf works with mixed NaN and Infinity arguments.
6615         Replace it if not.
6616         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6617         (Depends-on): Add hypot-ieee.
6618         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6619         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6620
6621         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6622         * lib/math.in.h (hypot): New declaration.
6623         * lib/hypot.c: New file.
6624         * m4/hypot-ieee.m4: New file.
6625         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6626         whether hypot works with mixed NaN and Infinity arguments. Replace it
6627         if not.
6628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6629         REPLACE_HYPOT.
6630         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6631         * modules/hypot (Files): Add lib/hypot.c.
6632         (Depends-on): Add dependencies.
6633         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6634         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6635         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6636         * tests/test-math-c++.cc: Check the declaration of hypot.
6637         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6638
6639         Tests for module 'hypotl-ieee'.
6640         * modules/hypotl-ieee-tests: New file.
6641         * tests/test-hypotl-ieee.c: New file.
6642
6643         New module 'hypotl-ieee'.
6644         * modules/hypotl-ieee: New file.
6645
6646         Tests for module 'hypot-ieee'.
6647         * modules/hypot-ieee-tests: New file.
6648         * tests/test-hypot-ieee.c: New file.
6649
6650         New module 'hypot-ieee'.
6651         * modules/hypot-ieee: New file.
6652
6653         Tests for module 'hypotf-ieee'.
6654         * modules/hypotf-ieee-tests: New file.
6655         * tests/test-hypotf-ieee.c: New file.
6656         * tests/test-hypot-ieee.h: New file.
6657
6658         New module 'hypotf-ieee'.
6659         * modules/hypotf-ieee: New file.
6660
6661 2012-02-29  Bruno Haible  <bruno@clisp.org>
6662
6663         Remove unused variables.
6664         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6665         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6666         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6667         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6668
6669 2012-02-29  Eric Blake  <eblake@redhat.com>
6670
6671         termios: fix pid_t always, not just for tcgetsid
6672         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6673         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6674         just when building tcgetsid.
6675
6676 2012-02-29  Bruno Haible  <bruno@clisp.org>
6677
6678         Tests for module 'hypotl'.
6679         * modules/hypotl-tests: New file.
6680         * tests/test-hypotl.c: New file.
6681
6682         New module 'hypotl'.
6683         * lib/math.in.h (hypotl): New declaration.
6684         * lib/hypotl.c: New file.
6685         * m4/hypotl.m4: New file.
6686         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6688         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6689         * modules/hypotl: New file.
6690         * tests/test-math-c++.cc: Check the hypotl declaration.
6691         * doc/posix-functions/hypotl.texi: Mention the new module.
6692
6693 2012-02-29  Eric Blake  <eblake@redhat.com>
6694
6695         tcgetsid: fix cygwin header bug
6696         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6697
6698         docs: update cygwin progress
6699         * doc/posix-functions/llround.texi (llround): Added in cygwin
6700         1.7.8.
6701         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6702         * doc/glibc-functions/program_invocation_name.texi
6703         (program_invocation_name): Likewise.
6704         * doc/glibc-functions/program_invocation_short_name.texi
6705         (program_invocation_short_name): Likewise.
6706         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6707         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6708         Likewise.
6709         * doc/posix-functions/pthread_spin_destroy.texi
6710         (pthread_spin_destroy): Added in cygwin 1.7.10.
6711         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6712         Likewise.
6713         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6714         Likewise.
6715         * doc/posix-functions/pthread_spin_trylock.texi
6716         (pthread_spin_trylock): Likewise.
6717         * doc/posix-functions/pthread_spin_unlock.texi
6718         (pthread_spin_unlock): Likewise.
6719         * doc/posix-functions/pthread_setschedprio.texi
6720         (pthread_setschedprio): Likewise.
6721         * doc/posix-functions/pthread_attr_getstack.texi
6722         (pthread_attr_getstack): Likewise.
6723         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6724         (pthread_attr_getstackaddr): Likewise.
6725         * doc/glibc-functions/pthread_getattr_np.texi
6726         (pthread_getattr_np): Likewise.
6727         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6728         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6729         * doc/posix-functions/clock_settime.texi (clock_settime):
6730         Likewise.
6731         * doc/posix-functions/pthread_attr_getguardsize.texi
6732         (pthread_attr_getguardsize): Likewise.
6733         * doc/posix-functions/pthread_attr_setguardsize.texi
6734         (pthread_attr_setguardsize): Likewise.
6735         * doc/posix-functions/pthread_attr_setstack.texi
6736         (pthread_attr_setstack): Likewise.
6737         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6738         (pthread_attr_setstackaddr): Likewise.
6739         * doc/posix-functions/clock_getcpuclockid.texi
6740         (clock_getcpuclockid): Likewise.
6741         * doc/posix-functions/pthread_getcpuclockid.texi
6742         (pthread_getcpuclockid): Likewise.
6743         * doc/glibc-functions/error.texi (error): Likewise.
6744         * doc/glibc-functions/error_at_line.texi (error_at_line):
6745         Likewise.
6746         * doc/glibc-functions/error_message_count.texi
6747         (error_message_count): Likewise.
6748         * doc/glibc-functions/error_one_per_line.texi
6749         (error_one_per_line): Likewise.
6750         * doc/glibc-functions/error_print_progname.texi
6751         (error_print_progname): Likewise.
6752         * doc/posix-functions/pthread_condattr_getclock.texi
6753         (pthread_condattr_getclock): Likewise.
6754         * doc/posix-functions/pthread_condattr_setclock.texi
6755         (pthread_condattr_setclock): Likewise.
6756         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6757         Likewise.
6758         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6759         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6760         * doc/glibc-functions/get_current_dir_name.texi
6761         (get_current_dir_name): Likewise.
6762         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6763         Likewise.
6764         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6765         wrong return type.
6766         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6767         1.7.11.
6768
6769 2012-02-29  Bruno Haible  <bruno@clisp.org>
6770
6771         Tests for module 'hypotf'.
6772         * modules/hypotf-tests: New file.
6773         * tests/test-hypotf.c: New file.
6774
6775         New module 'hypotf'.
6776         * lib/math.in.h (hypotf): New declaration.
6777         * lib/hypotf.c: New file.
6778         * m4/hypotf.m4: New file.
6779         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6781         REPLACE_HYPOTF.
6782         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6783         REPLACE_HYPOTF.
6784         * modules/hypotf: New file.
6785         * tests/test-math-c++.cc: Check the hypotf declaration.
6786         * doc/posix-functions/hypotf.texi: Mention the new module.
6787
6788         hypot: Prepare for hypotf module.
6789         * m4/hypot.m4: New file.
6790         * modules/hypot (Files): Add m4/hypot.m4.
6791         (configure.ac): Invoke gl_FUNC_HYPOT.
6792
6793 2012-02-29  Bruno Haible  <bruno@clisp.org>
6794
6795         hypot tests: More tests.
6796         * tests/test-hypot.c: Include <float.h>.
6797         (main): Add tests about overflow and underflow.
6798
6799 2012-02-29  Bruno Haible  <bruno@clisp.org>
6800
6801         math code: Add comments.
6802         * lib/acosl.c: Add comment about related glibc source files.
6803         * lib/asinl.c: Likewise.
6804         * lib/atanl.c: Likewise.
6805         * lib/expl.c: Likewise.
6806         * lib/logl.c: Likewise.
6807         * lib/sincosl.c: Likewise.
6808         * lib/sinl.c: Likewise.
6809         * lib/tanl.c: Likewise.
6810         * lib/trigl.c: Likewise.
6811         * lib/cosl.c: Likewise. Fix comments.
6812
6813 2012-02-28  Bruno Haible  <bruno@clisp.org>
6814
6815         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6816         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6817         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6818         HUGE_VALL are defined.
6819         (numeric_equald): Renamed from numeric_equal.
6820         (numeric_equalf, numeric_equall): New functions.
6821         (main): Check also HUGE_VALF, HUGE_VALL.
6822         * modules/math-tests (Files): Add tests/macros.h.
6823         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6824         HUGE_VALL.
6825
6826 2012-02-28  Bruno Haible  <bruno@clisp.org>
6827
6828         doc: Move ISO C11 feature notes into POSIX chapters.
6829         * doc/posix-functions/aligned_alloc.texi: Renamed from
6830         doc/glibc-functions/aligned_alloc.texi.
6831         * doc/posix-functions/quick_exit.texi: Renamed from
6832         doc/glibc-functions/quick_exit.texi.
6833         * doc/posix-headers/uchar.texi: Renamed from
6834         doc/glibc-headers/uchar.texi.
6835         * doc/posix-functions/c16rtomb.texi: Renamed from
6836         doc/glibc-functions/c16rtomb.texi.
6837         * doc/posix-functions/c32rtomb.texi: Renamed from
6838         doc/glibc-functions/c32rtomb.texi.
6839         * doc/posix-functions/mbrtoc16.texi: Renamed from
6840         doc/glibc-functions/mbrtoc16.texi.
6841         * doc/posix-functions/mbrtoc32.texi: Renamed from
6842         doc/glibc-functions/mbrtoc32.texi.
6843         * doc/gnulib.texi: Update.
6844         (Glibc uchar.h): Remove section.
6845         Suggested by Eric Blake.
6846
6847 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6848
6849         stdnoreturn: port to MSVC better
6850         MSVC standard headers use __declspec(noreturn), so #define noreturn
6851         to empty on that platform.  Reported by Bruno Haible in
6852         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6853         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6854         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6855
6856 2012-02-28  Bruno Haible  <bruno@clisp.org>
6857
6858         doc: Mention new glibc headers and functions.
6859         * doc/glibc-headers/uchar.texi: New file.
6860         * doc/glibc-functions/aligned_alloc.texi: New file.
6861         * doc/glibc-functions/c16rtomb.texi: New file.
6862         * doc/glibc-functions/c32rtomb.texi: New file.
6863         * doc/glibc-functions/clock_adjtime.texi: New file.
6864         * doc/glibc-functions/fanotify_init.texi: New file.
6865         * doc/glibc-functions/fanotify_mark.texi: New file.
6866         * doc/glibc-functions/inet6_opt_append.texi: New file.
6867         * doc/glibc-functions/inet6_opt_find.texi: New file.
6868         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6869         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6870         * doc/glibc-functions/inet6_opt_init.texi: New file.
6871         * doc/glibc-functions/inet6_opt_next.texi: New file.
6872         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6873         * doc/glibc-functions/inet6_rth_add.texi: New file.
6874         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6875         * doc/glibc-functions/inet6_rth_init.texi: New file.
6876         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6877         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6878         * doc/glibc-functions/inet6_rth_space.texi: New file.
6879         * doc/glibc-functions/login.texi: New file.
6880         * doc/glibc-functions/mbrtoc16.texi: New file.
6881         * doc/glibc-functions/mbrtoc32.texi: New file.
6882         * doc/glibc-functions/name_to_handle_at.texi: New file.
6883         * doc/glibc-functions/ntp_gettimex.texi: New file.
6884         * doc/glibc-functions/open_by_handle_at.texi: New file.
6885         * doc/glibc-functions/prlimit.texi: New file.
6886         * doc/glibc-functions/process_vm_readv.texi: New file.
6887         * doc/glibc-functions/process_vm_writev.texi: New file.
6888         * doc/glibc-functions/recvmmsg.texi: New file.
6889         * doc/glibc-functions/scandirat.texi: New file.
6890         * doc/glibc-functions/sendmmsg.texi: New file.
6891         * doc/glibc-functions/setns.texi: New file.
6892         * doc/glibc-functions/timespec_get.texi: New file.
6893         * doc/gnulib.texi: Include them.
6894         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6895         sections.
6896         Reported by Eric Blake.
6897
6898 2012-02-28  Bruno Haible  <bruno@clisp.org>
6899
6900         Avoid compilation errors with MSVC option -fp:strict.
6901         * lib/floor.c: Use MSVC specific pragma fenv_access.
6902         * lib/ceil.c: Likewise.
6903         * lib/trunc.c: Likewise.
6904         * lib/round.c: Likewise.
6905         * lib/rint.c: Likewise.
6906         * lib/fma.c: Likewise.
6907         * lib/integer_length.c: Likewise.
6908         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6909         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6910         * tests/test-floor2.c: Likewise.
6911         * tests/test-floorf2.c: Likewise.
6912         * tests/test-ceil2.c: Likewise.
6913         * tests/test-ceilf2.c: Likewise.
6914         * tests/test-trunc2.c: Likewise.
6915         * tests/test-truncf2.c: Likewise.
6916         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6917
6918 2012-02-27  Bruno Haible  <bruno@clisp.org>
6919
6920         Tests for module 'sqrtl-ieee'.
6921         * modules/sqrtl-ieee-tests: New file.
6922         * tests/test-sqrtl-ieee.c: New file.
6923
6924         New module 'sqrtl-ieee'.
6925         * modules/sqrtl-ieee: New file.
6926
6927         Tests for module 'sqrt-ieee'.
6928         * modules/sqrt-ieee-tests: New file.
6929         * tests/test-sqrt-ieee.c: New file.
6930
6931         New module 'sqrt-ieee'.
6932         * modules/sqrt-ieee: New file.
6933
6934         Tests for module 'sqrtf-ieee'.
6935         * modules/sqrtf-ieee-tests: New file.
6936         * tests/test-sqrtf-ieee.c: New file.
6937         * tests/test-sqrt-ieee.h: New file.
6938
6939         New module 'sqrtf-ieee'.
6940         * modules/sqrtf-ieee: New file.
6941
6942 2012-02-27  Bruno Haible  <bruno@clisp.org>
6943
6944         remainderl-ieee: Work around test failure on OSF/1.
6945         * m4/remainderl-ieee.m4: New file.
6946         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6947         present, test whether remainderl works with a zero second argument.
6948         Replace it if not.
6949         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6951         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6952         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6953         (Depends-on): Update conditions.
6954         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6955         (Depends-on): Add remainder-ieee.
6956         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6957         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6958         module.
6959
6960         remainderf-ieee: Work around test failure on OSF/1.
6961         * m4/remainderf-ieee.m4: New file.
6962         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6963         present, test whether remainderf works with a zero second argument.
6964         Replace it if not.
6965         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6967         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6968         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6969         (Depends-on): Update conditions.
6970         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6971         (Depends-on): Add remainder-ieee.
6972         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6973         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6974         module.
6975
6976         remainder-ieee: Work around test failure on OSF/1.
6977         * m4/remainder-ieee.m4: New file.
6978         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6979         present, test whether remainder works with a zero second argument.
6980         Replace it if not.
6981         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6983         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6984         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6985         (Depends-on): Update dependencies.
6986         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6987         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6988         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6989
6990         Tests for module 'remainderl-ieee'.
6991         * modules/remainderl-ieee-tests: New file.
6992         * tests/test-remainderl-ieee.c: New file.
6993
6994         New module 'remainderl-ieee'.
6995         * modules/remainderl-ieee: New file.
6996
6997         Tests for module 'remainder-ieee'.
6998         * modules/remainder-ieee-tests: New file.
6999         * tests/test-remainder-ieee.c: New file.
7000
7001         New module 'remainder-ieee'.
7002         * modules/remainder-ieee: New file.
7003
7004         Tests for module 'remainderf-ieee'.
7005         * modules/remainderf-ieee-tests: New file.
7006         * tests/test-remainderf-ieee.c: New file.
7007         * tests/test-remainder-ieee.h: New file.
7008
7009         New module 'remainderf-ieee'.
7010         * modules/remainderf-ieee: New file.
7011
7012 2012-02-27  Bruno Haible  <bruno@clisp.org>
7013
7014         modff, modfl: Fix configure syntax error.
7015         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7016         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7017
7018 2012-02-27  Bruno Haible  <bruno@clisp.org>
7019
7020         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7021         * m4/fmodl-ieee.m4: New file.
7022         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7023         whether fmodl works with zero arguments. Replace it if not.
7024         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7025         (Depends-on): Add fmod-ieee.
7026         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7027         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7028
7029         fmodf-ieee: Work around test failure on OSF/1.
7030         * m4/fmodf-ieee.m4: New file.
7031         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7032         whether fmodf works with zero arguments. Replace it if not.
7033         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7035         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7036         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7037         (Depends-on): Update dependencies.
7038         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7039         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7040         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7041
7042         fmodf-ieee: Work around test failure on MSVC 9.
7043         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7044         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7045
7046         fmod-ieee: Work around test failures on OSF/1, mingw.
7047         * m4/fmod-ieee.m4: New file.
7048         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7049         whether fmod works with zero arguments. Replace it if not.
7050         * lib/math.in.h (fmod): New declaration.
7051         * lib/fmod.c: New file.
7052         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7054         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7055         * modules/fmod (Files): Add lib/fmod.c.
7056         (Depends-on): Add math, isinf, trunc, fma.
7057         (configure.ac): Arrange to compile lib/fmod.c if needed.
7058         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7059         m4/signbit.m4.
7060         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7061         * tests/test-math-c++.cc: Check the declaration of fmod.
7062         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7063
7064         fmodl-ieee: Fix test failures.
7065         * lib/fmodl.c (fmodl): Treat Inf specially.
7066         * modules/fmodl (Depends-on): Add isinf.
7067
7068         Tests for module 'fmodl-ieee'.
7069         * modules/fmodl-ieee-tests: New file.
7070         * tests/test-fmodl-ieee.c: New file.
7071
7072         New module 'fmodl-ieee'.
7073         * modules/fmodl-ieee: New file.
7074
7075         Tests for module 'fmod-ieee'.
7076         * modules/fmod-ieee-tests: New file.
7077         * tests/test-fmod-ieee.c: New file.
7078
7079         New module 'fmod-ieee'.
7080         * modules/fmod-ieee: New file.
7081
7082         Tests for module 'fmodf-ieee'.
7083         * modules/fmodf-ieee-tests: New file.
7084         * tests/test-fmodf-ieee.c: New file.
7085         * tests/test-fmod-ieee.h: New file.
7086
7087         New module 'fmodf-ieee'.
7088         * modules/fmodf-ieee: New file.
7089
7090 2012-02-27  Bruno Haible  <bruno@clisp.org>
7091
7092         Tests for module 'rintl-ieee'.
7093         * modules/rintl-ieee-tests: New file.
7094         * tests/test-rintl-ieee.c: New file.
7095
7096         New module 'rintl-ieee'.
7097         * modules/rintl-ieee: New file.
7098
7099         Tests for module 'rint-ieee'.
7100         * modules/rint-ieee-tests: New file.
7101         * tests/test-rint-ieee.c: New file.
7102
7103         New module 'rint-ieee'.
7104         * modules/rint-ieee: New file.
7105
7106         Tests for module 'rintf-ieee'.
7107         * modules/rintf-ieee-tests: New file.
7108         * tests/test-rintf-ieee.c: New file.
7109         * tests/test-rint-ieee.h: New file.
7110
7111         New module 'rintf-ieee'.
7112         * modules/rintf-ieee: New file.
7113
7114 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7115
7116         regex: re_search etc. should return -2 when memory exhausted
7117         This bug was uncovered when testing 'grep'.  Without the fix,
7118         re_search and friends return -1 when memory is exhausted, but -1
7119         means no match, and this causes grep to falsely report no-match
7120         instead of memory-exhaustion.  See
7121         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7122         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7123         trouble; this can occur if re_search_internal ran out of memory.
7124
7125 2012-02-26  Bruno Haible  <bruno@clisp.org>
7126
7127         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7128         * m4/modfl-ieee.m4: New file.
7129         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7130         whether modfl works with Inf. Replace it if not.
7131         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7133         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7134         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7135         (Depends-on): Update dependencies.
7136         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7137         m4/signbit.m4.
7138         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7139         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7140
7141         modfl-ieee: Fix dependencies.
7142         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7143
7144         modfl-ieee: Fix test failures.
7145         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7146         * modules/modfl (Depends-on): Add isfinite, isinf.
7147
7148         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7149         * m4/modff-ieee.m4: New file.
7150         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7151         whether modff works with NaN and Inf. Replace it if not.
7152         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7154         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7155         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7156         (Depends-on): Update dependencies.
7157         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7158         m4/signbit.m4.
7159         (Depends-on): Add modf-ieee.
7160         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7161         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7162
7163         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7164         * m4/modf-ieee.m4: New file.
7165         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7166         whether modf works with NaN and Inf. Replace it if not.
7167         * lib/math.in.h (modf): New declaration.
7168         * lib/modf.c: New file.
7169         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7171         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7172         * modules/modf (Files): Add lib/modf.c.
7173         (Depends-on): Add math, isfinite, trunc, isinf.
7174         (configure.ac): Addrange to compile lib/modf.c if needed.
7175         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7176         m4/signbit.m4.
7177         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7178         * tests/test-math-c++.cc: Check the declaration of modf.
7179         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7180
7181         Tests for module 'modfl-ieee'.
7182         * modules/modfl-ieee-tests: New file.
7183         * tests/test-modfl-ieee.c: New file.
7184
7185         New module 'modfl-ieee'.
7186         * modules/modfl-ieee: New file.
7187
7188         Tests for module 'modf-ieee'.
7189         * modules/modf-ieee-tests: New file.
7190         * tests/test-modf-ieee.c: New file.
7191
7192         New module 'modf-ieee'.
7193         * modules/modf-ieee: New file.
7194
7195         Tests for module 'modff-ieee'.
7196         * modules/modff-ieee-tests: New file.
7197         * tests/test-modff-ieee.c: New file.
7198         * tests/test-modf-ieee.h: New file.
7199
7200         New module 'modff-ieee'.
7201         * modules/modff-ieee: New file.
7202
7203 2012-02-26  Bruno Haible  <bruno@clisp.org>
7204
7205         Tests for module 'fabsl-ieee'.
7206         * modules/fabsl-ieee-tests: New file.
7207         * tests/test-fabsl-ieee.c: New file.
7208
7209         New module 'fabsl-ieee'.
7210         * modules/fabsl-ieee: New file.
7211
7212         Tests for module 'fabs-ieee'.
7213         * modules/fabs-ieee-tests: New file.
7214         * tests/test-fabs-ieee.c: New file.
7215
7216         New module 'fabs-ieee'.
7217         * modules/fabs-ieee: New file.
7218
7219         Tests for module 'fabsf-ieee'.
7220         * modules/fabsf-ieee-tests: New file.
7221         * tests/test-fabsf-ieee.c: New file.
7222         * tests/test-fabs-ieee.h: New file.
7223
7224         New module 'fabsf-ieee'.
7225         * modules/fabsf-ieee: New file.
7226
7227 2012-02-26  Bruno Haible  <bruno@clisp.org>
7228
7229         Tests for module 'fmal-ieee'.
7230         * modules/fmal-ieee-tests: New file.
7231         * tests/test-fmal-ieee.c: New file.
7232
7233         New module 'fmal-ieee'.
7234         * modules/fmal-ieee: New file.
7235
7236         Tests for module 'fma-ieee'.
7237         * modules/fma-ieee-tests: New file.
7238         * tests/test-fma-ieee.c: New file.
7239
7240         New module 'fma-ieee'.
7241         * modules/fma-ieee: New file.
7242
7243         Tests for module 'fmaf-ieee'.
7244         * modules/fmaf-ieee-tests: New file.
7245         * tests/test-fmaf-ieee.c: New file.
7246         * tests/test-fma-ieee.h: New file.
7247
7248         New module 'fmaf-ieee'.
7249         * modules/fmaf-ieee: New file.
7250
7251 2012-02-26  Bruno Haible  <bruno@clisp.org>
7252
7253         Tests for module 'ldexpl-ieee'.
7254         * modules/ldexpl-ieee-tests: New file.
7255         * tests/test-ldexpl-ieee.c: New file.
7256
7257         New module 'ldexpl-ieee'.
7258         * modules/ldexpl-ieee: New file.
7259
7260         Tests for module 'ldexp-ieee'.
7261         * modules/ldexp-ieee-tests: New file.
7262         * tests/test-ldexp-ieee.c: New file.
7263
7264         New module 'ldexp-ieee'.
7265         * modules/ldexp-ieee: New file.
7266
7267         Tests for module 'ldexpf-ieee'.
7268         * modules/ldexpf-ieee-tests: New file.
7269         * tests/test-ldexpf-ieee.c: New file.
7270         * tests/test-ldexp-ieee.h: New file.
7271
7272         New module 'ldexpf-ieee'.
7273         * modules/ldexpf-ieee: New file.
7274
7275 2012-02-26  Bruno Haible  <bruno@clisp.org>
7276
7277         Refactor frexp*-ieee tests.
7278         * tests/test-frexp-ieee.h: New file.
7279         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7280         (main): Just call test_function.
7281         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7282         (main): Just call test_function.
7283         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7284         (main): Just call test_function.
7285         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7286         * modules/frexp-ieee-tests (Files): Likewise.
7287         * modules/frexpl-ieee-tests (Files): Likewise.
7288
7289         Tests for module 'frexpl-ieee'.
7290         * modules/frexpl-ieee-tests: New file.
7291         * tests/test-frexpl-ieee.c: New file.
7292
7293         New module 'frexpl-ieee'.
7294         * modules/frexpl-ieee: New file.
7295
7296         Tests for module 'frexp-ieee'.
7297         * modules/frexp-ieee-tests: New file.
7298         * tests/test-frexp-ieee.c: New file.
7299
7300         New module 'frexp-ieee'.
7301         * modules/frexp-ieee: New file.
7302
7303         Tests for module 'frexpf-ieee'.
7304         * modules/frexpf-ieee-tests: New file.
7305         * tests/test-frexpf-ieee.c: New file.
7306
7307         New module 'frexpf-ieee'.
7308         * modules/frexpf-ieee: New file.
7309
7310 2012-02-26  Bruno Haible  <bruno@clisp.org>
7311
7312         roundl-ieee tests: More tests.
7313         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7314         (main): Add tests for [MX] shaded specification in POSIX.
7315         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7316         (Depends-on): Add isnanl-nolibm.
7317
7318         round-ieee tests: More tests.
7319         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7320         (main): Add tests for [MX] shaded specification in POSIX.
7321         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7322         (Depends-on): Add isnand-nolibm.
7323
7324         roundf-ieee tests: More tests.
7325         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7326         (main): Add tests for [MX] shaded specification in POSIX.
7327         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7328         (Depends-on): Add isnanf-nolibm.
7329
7330         truncl-ieee tests: More tests.
7331         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7332         (main): Add tests for [MX] shaded specification in POSIX.
7333         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7334         (Depends-on): Add isnanl-nolibm.
7335
7336         trunc-ieee tests: More tests.
7337         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7338         (main): Add tests for [MX] shaded specification in POSIX.
7339         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7340         (Depends-on): Add isnand-nolibm.
7341
7342         truncf-ieee tests: More tests.
7343         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7344         (main): Add tests for [MX] shaded specification in POSIX.
7345         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7346         (Depends-on): Add isnanf-nolibm.
7347
7348         ceill-ieee tests: More tests.
7349         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7350         (main): Add tests for [MX] shaded specification in POSIX.
7351         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7352         (Depends-on): Add isnanl-nolibm.
7353
7354         ceil-ieee tests: More tests.
7355         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7356         (main): Add tests for [MX] shaded specification in POSIX.
7357         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7358         (Depends-on): Add isnand-nolibm.
7359
7360         ceilf-ieee tests: More tests.
7361         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7362         (main): Add tests for [MX] shaded specification in POSIX.
7363         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7364         (Depends-on): Add isnanf-nolibm.
7365
7366         floorl-ieee tests: More tests.
7367         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7368         (main): Add tests for [MX] shaded specification in POSIX.
7369         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7370         (Depends-on): Add isnanl-nolibm.
7371
7372         floor-ieee tests: More tests.
7373         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7374         (main): Add tests for [MX] shaded specification in POSIX.
7375         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7376         (Depends-on): Add isnand-nolibm.
7377
7378         floorf-ieee tests: More tests.
7379         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7380         (main): Add tests for [MX] shaded specification in POSIX.
7381         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7382         (Depends-on): Add isnanf-nolibm.
7383
7384 2012-02-26  Bruno Haible  <bruno@clisp.org>
7385
7386         fpieee: More comments.
7387         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7388
7389 2012-02-25  Bruno Haible  <bruno@clisp.org>
7390
7391         Tests for module 'log10l'.
7392         * modules/log10l-tests: New file.
7393         * tests/test-log10l.c: New file.
7394         * tests/test-math-c++.cc: Check the declaration of log10l.
7395
7396         New module 'log10l'.
7397         * lib/math.in.h (log10l): New declaration.
7398         * lib/log10l.c: New file.
7399         * m4/log10l.m4: New file.
7400         * modules/log10l: New file.
7401         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7403         HAVE_DECL_LOG10L.
7404         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7405         HAVE_DECL_LOG10L.
7406         * doc/posix-functions/log10l.texi: Mention the new module.
7407
7408 2012-02-25  Bruno Haible  <bruno@clisp.org>
7409
7410         fmodl, remainder*: Avoid wrong results due to rounding errors.
7411         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7412         expected bounds.
7413         * lib/remainderf.c (remainderf): Likewise.
7414         * lib/remainder.c (remainder): Likewise.
7415         * lib/remainderl.c (remainderl): Likewise.
7416
7417 2012-02-25  Bruno Haible  <bruno@clisp.org>
7418
7419         Tests for module 'remainderl'.
7420         * modules/remainderl-tests: New file.
7421         * tests/test-remainderl.c: New file.
7422         * tests/test-math-c++.cc: Check the declaration of remainderl.
7423
7424         New module 'remainderl'.
7425         * lib/math.in.h (remainderl): New declaration.
7426         * lib/remainderl.c: New file.
7427         * m4/remainderl.m4: New file.
7428         * modules/remainderl: New file.
7429         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7431         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7432         HAVE_REMAINDERL.
7433         * doc/posix-functions/remainderl.texi: Mention the new module.
7434
7435 2012-02-25  Bruno Haible  <bruno@clisp.org>
7436
7437         Tests for module 'remainderf'.
7438         * modules/remainderf-tests: New file.
7439         * tests/test-remainderf.c: New file.
7440         * tests/test-math-c++.cc: Check the declaration of remainderf.
7441
7442         New module 'remainderf'.
7443         * lib/math.in.h (remainderf): New declaration.
7444         * lib/remainderf.c: New file.
7445         * m4/remainderf.m4: New file.
7446         * modules/remainderf: New file.
7447         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7449         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7450         HAVE_REMAINDERF.
7451         * doc/posix-functions/remainderf.texi: Mention the new module.
7452
7453 2012-02-25  Bruno Haible  <bruno@clisp.org>
7454
7455         remainder: Support for MSVC.
7456         * lib/math.in.h (remainder): New declaration.
7457         * lib/remainder.c: New file.
7458         * m4/remainder.m4: New file.
7459         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7460         (Depends-on): Add math, round, fma.
7461         (configure.ac): Use results of gl_FUNC_REMAINDER.
7462         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7464         HAVE_DECL_REMAINDER.
7465         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7466         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7467         * tests/test-math-c++.cc: Check the declaration of remainder.
7468         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7469         problems are fixed.
7470
7471 2012-02-25  Bruno Haible  <bruno@clisp.org>
7472
7473         Tests for module 'fmodl'.
7474         * modules/fmodl-tests: New file.
7475         * tests/test-fmodl.c: New file.
7476         * tests/test-math-c++.cc: Check the declaration of fmodl.
7477
7478         New module 'fmodl'.
7479         * lib/math.in.h (fmodl): New declaration.
7480         * lib/fmodl.c: New file.
7481         * m4/fmodl.m4: New file.
7482         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7484         REPLACE_FMODL.
7485         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7486         REPLACE_FMODL.
7487         * modules/fmodl: New file.
7488         * doc/posix-functions/fmodl.texi: Mention the new module.
7489
7490 2012-02-25  Bruno Haible  <bruno@clisp.org>
7491
7492         Tests for module 'modfl'.
7493         * modules/modfl-tests: New file.
7494         * tests/test-modfl.c: New file.
7495         * tests/test-math-c++.cc: Check the declaration of modfl.
7496
7497         New module 'modfl'.
7498         * lib/math.in.h (modfl): New declaration.
7499         * lib/modfl.c: New file.
7500         * m4/modfl.m4: New file.
7501         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7503         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7504         * modules/modfl: New file.
7505         * doc/posix-functions/modfl.texi: Mention the new module.
7506
7507 2012-02-25  Bruno Haible  <bruno@clisp.org>
7508
7509         Tests for module 'fabsl'.
7510         * modules/fabsl-tests: New file.
7511         * tests/test-fabsl.c: New file.
7512         * tests/test-math-c++.cc: Check the declaration of fabsl.
7513
7514         New module 'fabsl'.
7515         * lib/math.in.h (fabsl): New declaration.
7516         * lib/fabsl.c: New file.
7517         * m4/fabsl.m4: New file.
7518         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7520         REPLACE_FABSL.
7521         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7522         REPLACE_FABSL.
7523         * modules/fabsl: New file.
7524         * doc/posix-functions/fabsl.texi: Mention the new module.
7525
7526 2012-02-25  Bruno Haible  <bruno@clisp.org>
7527
7528         fabs tests: More tests.
7529         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7530         (zero): New variable.
7531         (main): Add tests for signed zero.
7532         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7533
7534         fabsf tests: More tests.
7535         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7536         (zero): New variable.
7537         (main): Add tests for signed zero.
7538         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7539
7540 2012-02-24  Bruno Haible  <bruno@clisp.org>
7541
7542         atanl: Provide function definition on MSVC.
7543         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7544         function pointer.
7545         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7546
7547 2012-02-24  Bruno Haible  <bruno@clisp.org>
7548
7549         acosl: Provide function definition on MSVC.
7550         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7551         function pointer.
7552         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7553
7554 2012-02-24  Bruno Haible  <bruno@clisp.org>
7555
7556         asinl: Provide function definition on MSVC.
7557         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7558         function pointer.
7559         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7560
7561 2012-02-24  Bruno Haible  <bruno@clisp.org>
7562
7563         tanl: Provide function definition on MSVC.
7564         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7565         function pointer.
7566         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7567
7568 2012-02-24  Bruno Haible  <bruno@clisp.org>
7569
7570         cosl: Provide function definition on MSVC.
7571         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7572         function pointer.
7573         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7574
7575 2012-02-24  Bruno Haible  <bruno@clisp.org>
7576
7577         sinl: Provide function definition on MSVC.
7578         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7579         function pointer.
7580         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7581
7582 2012-02-24  Bruno Haible  <bruno@clisp.org>
7583
7584         logl: Provide function definition on MSVC.
7585         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7586         function pointer.
7587         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7588
7589 2012-02-24  Bruno Haible  <bruno@clisp.org>
7590
7591         expl: Provide function definition on MSVC.
7592         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7593         function pointer.
7594         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7595
7596 2012-02-24  Bruno Haible  <bruno@clisp.org>
7597
7598         sqrtl: Provide function definition on MSVC.
7599         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7600         a function pointer.
7601         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7602
7603 2012-02-24  Bruno Haible  <bruno@clisp.org>
7604
7605         ceill: Provide function definition on MSVC.
7606         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7607         used as a function pointer.
7608         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7609
7610 2012-02-24  Bruno Haible  <bruno@clisp.org>
7611
7612         floorl: Provide function definition on MSVC.
7613         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7614         used as a function pointer.
7615         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7616
7617 2012-02-24  Bruno Haible  <bruno@clisp.org>
7618
7619         ceilf: Provide function definition on MSVC.
7620         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7621         used as a function pointer.
7622         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7623
7624 2012-02-24  Bruno Haible  <bruno@clisp.org>
7625
7626         floorf: Provide function definition on MSVC.
7627         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7628         used as a function pointer.
7629         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7630
7631 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7632
7633         stdnoreturn: new module
7634         This implements a replacement for C11's <stdnoreturn.h>.
7635         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7636         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7637         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7638         * tests/test-stdnoreturn.c: New files.
7639
7640 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7641
7642         regex: fix false multibyte matches in some regular expressions
7643         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7644         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7645         * lib/regex_internal.c (re_string_skip_chars):
7646         Fix miscomputation of remain_len that may cause incomplete
7647         multi-byte character and false match.
7648
7649 2012-02-24  Jim Meyering  <meyering@redhat.com>
7650
7651         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7652         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7653         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7654         Remove now-unnecessary str''cmp obfuscation.
7655         Suggested by Akim Demaille.
7656
7657 2012-02-24  Bruno Haible  <bruno@clisp.org>
7658
7659         streq: Rename macro.
7660         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7661         * NEWS: Mention the change.
7662         * lib/mbrtowc.c (mbrtowc): Update.
7663         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7664         * lib/wcwidth.c (wcwidth): Update.
7665         Suggested by Akim Demaille and Jim Meyering.
7666
7667 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         regex: fix typo in definition of MIN
7670         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7671         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7672
7673 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7674             Bruno Haible  <bruno@clisp.org>
7675
7676         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7677         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7678         entries into a stack-allocated buffer directly.
7679         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7680
7681 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7682             Bruno Haible  <bruno@clisp.org>
7683
7684         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7685
7686          - There were several instances of this pattern:
7687
7688              for (;;) {
7689                n = acl (f, GETACLCNT, 0, NULL);
7690                [ allocate an array A of size N ]
7691                if (acl (f, GETACL, n, a) == n)
7692                  break;
7693              }
7694
7695            This loop might never terminate if some other process is constantly
7696            manipulating the file's ACL.  The loop should be rewritten to
7697            terminate.
7698
7699          - The acl (... GETACLNT ...) call is merely an optimization; its value
7700            is merely a hint as to how big to make the array.  A better
7701            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7702            and just guess a reasonably-big size, growing the size and trying
7703            again if it's not large enough.  This guarantees termination, and
7704            saves a system call.
7705
7706         * lib/acl-internal.h: Include <limits.h>.
7707         (MIN, SIZE_MAX): New macros.
7708         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7709         a stack-allocated buffer, and use malloc if it does not fit. Don't
7710         use GETACLCNT.
7711         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7712
7713 2012-02-19  Bruno Haible  <bruno@clisp.org>
7714
7715         acl: Fix endless loop on Solaris with vxfs.
7716         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7717         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7718         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7719         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7720         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7721         Reported by Bill Jones in
7722         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7723
7724 2012-02-19  Bruno Haible  <bruno@clisp.org>
7725
7726         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7727         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7728         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7729         that this function returns 0 in some more cases.
7730
7731 2012-02-19  Bruno Haible  <bruno@clisp.org>
7732
7733         acl: Update doc references.
7734         * doc/acl-resources.txt: Update links to Solaris documentation.
7735
7736 2012-02-19  Bruno Haible  <bruno@clisp.org>
7737
7738         Fix test failure in many locales on Solaris 11.
7739         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7740         'tr' arguments.
7741         * tests/test-pipe-filter-ii1.c (main): Likewise.
7742         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7743         expressions in the C locale.
7744         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7745         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7746
7747 2012-02-19  Bruno Haible  <bruno@clisp.org>
7748
7749         gnulib-tool: Improve usage message.
7750         * gnulib-tool (func_usage): Move doc of --help and --version to the
7751         section "Operation modes".
7752
7753 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7754
7755         README-release: make it easier to execute commands
7756         * top/README-release: break commands out on to separate lines.
7757
7758 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7759
7760         GNUmakefile: simplify detection of unconfigured trees
7761         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7762         whether the tree make is being run from is already configured or
7763         not.  Related simplifications.
7764
7765 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7766
7767         * gnulib-tool (func_usage): Document --help and --version.
7768
7769 2012-02-11  Jim Meyering  <meyering@redhat.com>
7770
7771         bootstrap: don't exit 0 upon gnulib-tool failure
7772         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7773         its exit status, not 0.
7774
7775 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7776
7777         README-release: various improvements
7778         * top/README-release: Give a command to push changes for the
7779         release.  Add "distcheck" to list of other pre-release checks.
7780         Fix instance of "make stable" which should be "make TYPE".
7781
7782 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         maint: replace FSF snail-mail addresses with URLs
7785         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7786         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7787         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7788         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7789         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7790         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7791         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7792         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7793         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7794         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7795         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7796         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7797         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7798         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7799         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7800         * lib/glthread/thread.c, lib/glthread/thread.h:
7801         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7802         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7803         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7804         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7805         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7806         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7807         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7808         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7809         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7810         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7811         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7812         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7813         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7814         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7815         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7816         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7817         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7818         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7819         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7820         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7821         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7822         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7823         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7824         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7825         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7826         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7827         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7828         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7829         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7830         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7831         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7832         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7833         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7834         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7835         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7836         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7837         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7838         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7839         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7840         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7841         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7842         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7843         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7844         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7845         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7846         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7847         * tests/test-poll.c, tests/test-quotearg-simple.c:
7848         * tests/test-quotearg.c, tests/test-quotearg.h:
7849         * tests/test-round-ieee.c, tests/test-round1.c:
7850         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7851         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7852         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7853         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7854         * tests/test-strerror.c, tests/test-strerror_r.c:
7855         * tests/test-strsignal.c, tests/test-strverscmp.c:
7856         * tests/test-xmemdup0.c:
7857         Replace FSF snail mail addresses with URLs, as per GNU coding
7858         standards.  See glibc bug
7859         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7860
7861 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7862
7863         README-release: capitalize a word and split a line
7864         * top/README-release: Fix punctuation and spacing.
7865
7866 2012-02-08  Akim Demaille  <demaille@gostai.com>
7867
7868         fatal-signal: use C prototypes (with explicit void).
7869         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7870         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7871
7872 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7873
7874         regex: spelling fix
7875         * lib/regexec.c: spelling fix
7876
7877         regex: rely on stdint.h for SIZE_MAX
7878         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7879
7880 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7881
7882         regex: merge glibc changes
7883
7884         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7885         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7886         (init_word_char): Work even if bitset words are not exactly 32 or
7887         64 bits wide.  Don't assume there are no padding bits.
7888         * lib/regex.c [_LIBC]: Do not include <config.h>.
7889         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7890         and -Wtype-limits.
7891         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7892         needless disagreement with glibc.  All uses changed.  Define it to
7893         1 only if _GNU_SOURCE, to match glibc.
7894         (_REG_RM_NAME): Remove; no longer needed, since the names in
7895         question are now all protected by __USE_GNU.
7896         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7897         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7898         * lib/regex_internal.h (MIN): New macro.
7899
7900         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7901         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7902
7903         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7904         * lib/regex_internal.c (re_string_fetch_byte_case):
7905         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7906         is miscompiled, and it turns out it is because of an incorrect
7907         attribute on re_string_fetch_byte_case.  Unlike
7908         re_string_peek_byte_case, this one is really not pure, it modifies
7909         memory (increments pstr->cur_idx), and with the pure attribute GCC
7910         assumed it doesn't and it cached the presumed value of
7911         regexp->cur_idx in a variable across the
7912          for (;; ++i)
7913            {
7914              if (i >= BRACKET_NAME_BUF_SIZE)
7915                return REG_EBRACK;
7916              if (token->type == OP_OPEN_CHAR_CLASS)
7917                ch = re_string_fetch_byte_case (regexp);
7918              else
7919                ch = re_string_fetch_byte (regexp);
7920              if (re_string_eoi(regexp))
7921                return REG_EBRACK;
7922              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7923                break;
7924              elem->opr.name[i] = ch;
7925            }
7926
7927         2011-11-29 Andreas Schwab <schwab@redhat.com>
7928         * lib/regcomp.c (build_equiv_class):
7929         Fix access after end of search string in regex matcher.
7930
7931         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7932         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7933
7934         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7935         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7936
7937         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7938         * lib/regcomp.c (parse_branch, parse_sub_exp):
7939         More regex memory leak fixes and tests.
7940         (parse_sub_exp, parse_bracket_exp):
7941         Fix memory leak for some invalid regular expressions.
7942
7943         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7944         * lib/regex_internal.c, lib/regexec.c:
7945         Fix unnecessary overallocation due to incomplete character.  When
7946         incomplete characters are found at the end of a string the code
7947         ran amok and allocated lots of memory.  Stricter limits are now in
7948         place.
7949
7950         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7951         * lib/regex.h: Update documentation.
7952
7953         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7954         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7955
7956         2010-05-05 Andreas Schwab <schwab@redhat.com>
7957         * lib/regexec.c (find_collation_sequence_value):
7958         Fix lookup of collation sequence value during regexp matching.
7959
7960         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7961         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7962
7963         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7964         * lib/regex.h: Cleanup namespace.
7965
7966         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7967         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7968
7969         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7970         * lib/regex_internal.h: Prevent some declarations and definitions
7971         to be seen when used in tests.
7972
7973         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7974         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7975         __libc_lock_* macros if not _LIBC.
7976         (struct re_dfa_t): Add lock.
7977
7978 2012-02-07  Eric Blake  <eblake@redhat.com>
7979
7980         maint.mk: also prohibit lower-case @var@
7981         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7982         lower case, like @top_srcdir@.
7983
7984 2012-02-04  Eric Blake  <eblake@redhat.com>
7985
7986         canonicalize: avoid uninitialized memory use
7987         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7988         random '/' left in dest.
7989         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7990
7991 2012-02-04  Bruno Haible  <bruno@clisp.org>
7992
7993         isatty: Fix test failure of ptsname_r on native Windows.
7994         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7995         and don't set errno.
7996         (isatty): Test first whether fd is valid. Set errno when returning 0.
7997
7998 2012-02-04  Bruno Haible  <bruno@clisp.org>
7999
8000         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8001         * tests/test-spawn-pipe-main.c: Include progname.h.
8002         (main): Invoke set_program_name.
8003         * modules/spawn-pipe-tests (Depends-on): Add progname.
8004
8005         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8006         * tests/test-nonblocking-socket-main.c: Include progname.h.
8007         (main): Invoke set_program_name.
8008         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8009
8010         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8011         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8012         (main): Invoke set_program_name.
8013         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8014
8015 2012-02-04  Eric Blake  <eblake@redhat.com>
8016
8017         canonicalize-lgpl: fix // handling
8018         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8019
8020         canonicalize: fix // handling
8021         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8022         /// to //, since only // is special.
8023
8024 2012-02-04  Bruno Haible  <bruno@clisp.org>
8025
8026         ioctl: Fix test failure on native Windows.
8027         * lib/ioctl.c: Include msvc-nothrow.h.
8028         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8029
8030 2012-02-04  Bruno Haible  <bruno@clisp.org>
8031
8032         fsync: Avoid test failure on native Windows.
8033         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8034         read-only.
8035
8036 2012-02-04  Bruno Haible  <bruno@clisp.org>
8037
8038         sys_select: Avoid syntax error on OpenBSD 5.0.
8039         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8040         currently being included, just include the system's <sys/select.h>.
8041
8042 2012-02-04  Bruno Haible  <bruno@clisp.org>
8043
8044         sys_select: Avoid syntax error on OpenBSD 5.0.
8045         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8046         <sys/select.h>, not before.
8047         Reported by Jiri B <jirib@devio.us>.
8048
8049 2012-02-04  Bruno Haible  <bruno@clisp.org>
8050
8051         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8052         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8053         global variables.
8054         * tests/test-get-rusage-data.c (main): Likewise.
8055         Reported by Jim Meyering.
8056
8057 2012-02-04  Bruno Haible  <bruno@clisp.org>
8058
8059         stdioext: Fix last commit.
8060         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8061
8062 2012-02-03  Bruno Haible  <bruno@clisp.org>
8063
8064         stdioext: Add tentative support for Plan9.
8065         * lib/stdio-impl.h: Include <errno.h>.
8066         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8067         * lib/freadable.c (freadable): Likewise.
8068         * lib/fwritable.c (fwritable): Likewise.
8069         * lib/fbufmode.c (fbufmode): Likewise.
8070         * lib/freading.c (freading): Likewise.
8071         * lib/fwriting.c (fwriting): Likewise.
8072         * lib/freadptr.c (freadptr): Likewise.
8073         * lib/freadseek.c (freadptrinc): Likewise.
8074         * lib/freadahead.c (freadahead): Likewise.
8075         * lib/fpurge.c (fpurge): Likewise.
8076         * lib/fseeko.c (rpl_fseeko): Likewise.
8077         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8078         Reported by Jens Staal <staal1978@gmail.com>.
8079
8080 2012-02-02  Jim Meyering  <meyering@redhat.com>
8081
8082         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8083         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8084         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8085         not even to try to add the attribute.  Instead, add a pragma to suppress
8086         the suggestion/warning.
8087
8088 2012-01-31  Karl Berry  <karl@gnu.org>
8089
8090         setstate doc: typo.
8091         * doc/posix-functions/setstate.texi (setstate): { not (.
8092
8093 2012-01-31  Bruno Haible  <bruno@clisp.org>
8094
8095         popen: Make more robust on Windows.
8096         * lib/popen.c: On native Windows, use the _popen based code even if
8097         HAVE_POPEN is set.
8098         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8099         environment variable on native Windows.
8100
8101 2012-01-30  Bruno Haible  <bruno@clisp.org>
8102
8103         pclose: Fix typo.
8104         * lib/stdio.in.h (pclose): Fix typo in warning message.
8105
8106 2012-01-30  Bruno Haible  <bruno@clisp.org>
8107
8108         doc about getlogin_r, setstate.
8109         * doc/posix-functions/getlogin_r.texi: List the incompatible
8110         declaration problem under "not fixed by gnulib".
8111         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8112         problem on Solaris 11 and other platforms.
8113
8114 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8115             Bruno Haible  <bruno@clisp.org>
8116
8117         poll tests: Make test more robust.
8118         * tests/test-poll.c: Include macros.h.
8119         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8120         return value of various I/O operations.
8121         * modules/poll-tests (Files): Add tests/macros.h.
8122
8123 2012-01-30  Bruno Haible  <bruno@clisp.org>
8124
8125         sys_stat: Fix support for mingw64 and MSVC.
8126         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8127         header files already do it.
8128         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8129         stat itself.
8130         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8131
8132 2012-01-30  Bruno Haible  <bruno@clisp.org>
8133
8134         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8136         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8137
8138 2012-01-29  Bruno Haible  <bruno@clisp.org>
8139
8140         quotearg: Fix test failure on MacOS X 10.5.
8141         * tests/test-quotearg-simple.c: Include localcharset.h.
8142         (main): If the locale encoding is not ASCII, bypass the tests of
8143         locale_quoting_style and clocale_quoting_style.
8144         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8145
8146 2012-01-29  Jim Meyering  <meyering@redhat.com>
8147
8148         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8149         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8150         detect uses of canonicalize_file_name.
8151
8152 2012-01-28  Bruno Haible  <bruno@clisp.org>
8153
8154         test-framework-sh: Fix test failure with AIX 7.1 diff.
8155         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8156         in column 1, like 'diff -c' does.
8157         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8158         whether 'diff -u' is used. Instead, test whether the output contains
8159         some '@' character.
8160
8161 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8162
8163         strtoimax: eliminate need for stdint.h, inttypes.h checks
8164         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8165         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8166         the prerequisites for a recently-introduced strtoimax test.
8167         I guess this might cause strtoimax to be replaced when not
8168         strictly necessary on older hosts, but this shouldn't introduce
8169         any bugs and it should make Emacs 'configure' faster on typical
8170         modern hosts.  Problem discovered when importing the latest gnulib
8171         to an Emacs test version.
8172         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8173
8174 2012-01-28  Bruno Haible  <bruno@clisp.org>
8175
8176         sys_time: Override 'struct timeval' on some native Windows platforms.
8177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8178         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8179         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8180         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8181         needs to be overridden.
8182         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8183         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8184         * tests/test-sys_select.c: Check that the tv_sec member has the same
8185         size as a 'time_t'.
8186         * tests/test-sys_time.c: Likewise.
8187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8188         is set, set also REPLACE_GETTIMEOFDAY.
8189         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8190         convert the resulting 'struct timeval' before returning.
8191         * lib/select.c: Include <sys/time.h>.
8192         (select, timeval): Undefine at the right place.
8193         * modules/select (Depends-on): Add sys_time.
8194         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8195         some Windows platforms.
8196         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8197
8198 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8199
8200         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8201         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8202         an integer.
8203         * lib/fcntl.c (dupfd): Likewise.
8204         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8205
8206 2012-01-28  Bruno Haible  <bruno@clisp.org>
8207
8208         fcntl: Avoid compilation error on native Windows.
8209         * modules/fcntl (Depends-on): Add 'close'.
8210
8211 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8212
8213         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8214         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8215         pointer to an integer.
8216         * lib/poll.c (IsConsoleHandle): Likewise.
8217         * lib/isatty.c (IsConsoleHandle): Likewise.
8218
8219 2012-01-28  Jim Meyering  <meyering@redhat.com>
8220
8221         doc: clarify README-release
8222         * top/README-release: Clarify: you should make a point to have
8223         the latest stable versions of build tools in your PATH, and the
8224         reference to buildreq is solely for its list of tool names, not
8225         for its minimal-functional version numbers.
8226         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8227
8228         maint.mk: use more readable (yet functionally equivalent) quoting
8229         It is common to quote a single quote in a single quoted string like
8230         this:  '...'\''...'.  Unless you know the idiom, that looks like
8231         gibberish, so prefer to double-quote the string when possible.
8232         Then you can use a more readable, lone single quote: "...'..."
8233         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8234         "don't" is more readable than the equivalent 'don'\''t'.
8235         (sc_cast_of_x_alloc_return_value): Likewise.
8236         (sc_cast_of_alloca_return_value): Likewise.
8237         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8238         rather than '\'':'\''.
8239
8240 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8241
8242         stdalign: relax _Alignof and tighten _Alignas test
8243         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8244         as it was too strict: alignof must divide offsetof, but it need
8245         not equal offsetof.  Inspired by Joseph S. Myers's comment
8246         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8247         Conversely, tighten the _Alignas test a bit, as the resulting
8248         alignment must be exactly 8.
8249
8250 2012-01-27  Bruno Haible  <bruno@clisp.org>
8251
8252         stdalign: Document the last change.
8253         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8254
8255 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         stdalign: check that alignof and offsetof are consistent
8258         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8259         Problem reported for gnulib by Richard W.M. Jones in
8260         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8261
8262 2012-01-27  Jim Meyering  <meyering@redhat.com>
8263
8264         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8265         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8266         convert a sequence with gaps to the minimal containing range.
8267         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8268         * tests/test-update-copyright.sh: Test for this.
8269         The FSF confirmed it is ok to do this, assuming there is at
8270         least one significant change per year in the affected range:
8271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8272
8273 2012-01-26  Bruno Haible  <bruno@clisp.org>
8274
8275         pipe2: refine doc about thread-safety
8276         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8277         multithread-safety problem.
8278         * doc/glibc-functions/accept4.texi: Likewise.
8279
8280 2012-01-26  Bruno Haible  <bruno@clisp.org>
8281
8282         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8283         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8284         In the test program, include <fcntl.h>, for O_RDONLY.
8285
8286 2012-01-26  Eric Blake  <eblake@redhat.com>
8287
8288         pipe2: document lack of thread-safety in replacement
8289         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8290         issue in replacement.
8291         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8292         Based on a report by Eric Wong.
8293
8294 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8295             Bruno Haible  <bruno@clisp.org>
8296
8297         malloca: Avoid warnings on x86_64 mingw64.
8298         * lib/malloca.c: Include <stdint.h>.
8299         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8300         * modules/malloca (Depends-on): Add stdint.
8301         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8302
8303 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8304
8305         obstack: remove __STDC__ conditionals
8306         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8307         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8308         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8309         m4/include_next.m4 as the only gnulib-maintained places that still
8310         refer to __STDC__.
8311
8312 2012-01-24  Bruno Haible  <bruno@clisp.org>
8313
8314         havelib: Modern quoting.
8315         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8316         the recent change to the GNU coding standards.
8317
8318 2012-01-24  Bruno Haible  <bruno@clisp.org>
8319
8320         stdint: Improve support for Android.
8321         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8322         Reported by Simon Josefsson <simon@josefsson.org>.
8323
8324 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8325
8326         doc: omit trailing empty lines from INSTALL etc.
8327         * doc/Makefile (INSTALL): Omit trailing empty lines.
8328         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8329         omit trailing empty lines.  This simplifies the build procedure.
8330
8331 2012-01-23  Jim Meyering  <meyering@redhat.com>
8332
8333         tests: avoid spurious warnings about gl_sockets_startup
8334         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8335         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8336         reporting a "statement with no effect".
8337         * tests/test-accept.c (main): Mark as "(void)".
8338         * tests/test-accept4.c (main): Likewise.
8339         * tests/test-bind.c (main): Likewise.
8340         * tests/test-connect.c (main): Likewise.
8341         * tests/test-getpeername.c (main): Likewise.
8342         * tests/test-getsockname.c (main): Likewise.
8343         * tests/test-getsockopt.c (main): Likewise.
8344         * tests/test-listen.c (main): Likewise.
8345         * tests/test-recv.c (main): Likewise.
8346         * tests/test-recvfrom.c (main): Likewise.
8347         * tests/test-send.c (main): Likewise.
8348         * tests/test-sendto.c (main): Likewise.
8349         * tests/test-setsockopt.c (main): Likewise.
8350         * tests/test-shutdown.c (main): Likewise.
8351
8352 2012-01-21  Bruno Haible  <bruno@clisp.org>
8353
8354         locale-fr.m4: Fix for Android.
8355         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8356         failure of the test program on Bionic libc.
8357
8358 2012-01-21  Jim Meyering  <meyering@redhat.com>
8359
8360         bootstrap: fail when bootstrap_post_import_hook fails
8361         Otherwise, it's far too easy to miss diagnostics emitted
8362         between gnulib-tool's output and that of running configure.
8363         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8364
8365 2012-01-17  Jim Meyering  <meyering@redhat.com>
8366
8367         maint: enable sc_trailing_blank
8368         * build-aux/pmccabe.css: Remove trailing blanks.
8369         * doc/acl-cygwin.txt: Likewise.
8370         * doc/gnu-oids.texi: Likewise
8371         * cfg.mk: Enable sc_trailing_blank.
8372         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8373
8374 2012-01-17  Jim Meyering  <meyering@redhat.com>
8375
8376         maint: enable sc_prohibit_openat_without_use
8377         * cfg.mk: Enable sc_prohibit_openat_without_use.
8378         Exempt lib/selinux-at.c.
8379
8380 2012-01-17  Jim Meyering  <meyering@redhat.com>
8381
8382         maint: enable sc_prohibit_cloexec_without_use
8383         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8384         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8385
8386 2012-01-17  Jim Meyering  <meyering@redhat.com>
8387
8388         maint: enable sc_prohibit_intprops_without_use
8389         * cfg.mk: Enable sc_prohibit_intprops_without_use
8390         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8391
8392 2012-01-17  Jim Meyering  <meyering@redhat.com>
8393
8394         maint: enable sc_prohibit_hash_pjw_without_use
8395         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8396         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8397         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8398         following " (".
8399
8400 2012-01-17  Jim Meyering  <meyering@redhat.com>
8401
8402         maint: enable double-word-prohibiting rule
8403         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8404         Exempt three files.
8405
8406 2012-01-17  Jim Meyering  <meyering@redhat.com>
8407
8408         maint: remove empty lines at EOF, but excluding modules/*
8409         Apply syntax rules at home as well as abroad.  Most changes
8410         were induced by running this:
8411           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8412             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8413             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8414         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8415         Exempt modules/* and two binary files.
8416         Also exempt doc/INSTALL*, per request from Bruno Haible.
8417         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8418         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8419         * doc/Copyright/request-assign.future: Likewise.
8420         * doc/Copyright/request-disclaim.changes: Likewise.
8421         * doc/INSTALL: Likewise.
8422         * doc/INSTALL.ISO: Likewise.
8423         * doc/INSTALL.UTF-8: Likewise.
8424         * doc/acl-cygwin.txt: Likewise.
8425         * doc/acl-resources.txt: Likewise.
8426         * doc/fdl-1.2.texi: Likewise.
8427         * doc/fdl-1.3.texi: Likewise.
8428         * doc/fdl.texi: Likewise.
8429         * lib/argp-pin.c: Likewise.
8430         * lib/round.c: Likewise.
8431         * lib/unicase/u16-totitle.c: Likewise.
8432         * lib/unictype/block_test.c: Likewise.
8433         * lib/uninorm/canonical-decomposition.c: Likewise.
8434         * m4/README: Likewise.
8435         * m4/relocatable-lib.m4: Likewise.
8436         * tests/test-isnand-nolibm.c: Likewise.
8437         * tests/test-isnand.c: Likewise.
8438         * tests/uninorm/NormalizationTest.txt: Likewise.
8439
8440 2012-01-17  Jim Meyering  <meyering@redhat.com>
8441
8442         maint: add framework to run syntax-check rules against gnulib sources
8443         * cfg.mk: New file, to disable all currently-failing tests.
8444         We'll enable them one by one, as they are made to pass.
8445         * Makefile (sc_maint): New rule.
8446
8447 2012-01-21  Bruno Haible  <bruno@clisp.org>
8448
8449         stdint: Add support for Android.
8450         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8451         include the system's <stdint.h>.
8452         Reported by Simon Josefsson <simon@josefsson.org>.
8453
8454 2012-01-19  Jim Meyering  <meyering@redhat.com>
8455
8456         bootstrap: add bootstrap_post_import_hook
8457         Bison does still need something like the gnulib_mk_hook whose
8458         invocation I had to remove along with slurp in commit 767ccd40.
8459         Technically, we could get along without it, but doing so would
8460         have required living with a warning and a mandatory post-bootstrap
8461         automake rerun.
8462         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8463         (bootstrap_post_import_hook): New function.
8464         Invoke it after gnulib-tool --import and before autoreconf.
8465
8466 2012-01-18  Jim Meyering  <meyering@redhat.com>
8467
8468         gitlog-to-changelog: don't use "no_"-prefixed variable name
8469         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8470         to enable both --cluster and --no-cluster.  Change variable name,
8471         s/\$no_cluster/$cluster/, and reverse usage to match.
8472
8473         gitlog-to-changelog: use "||", not "or" in expressions
8474         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8475         expressions.
8476
8477 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8478
8479         gitlog-to-changelog: new option --no-cluster
8480         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8481         clustering of adjacent commit messages.
8482
8483 2012-01-17  Jim Meyering  <meyering@redhat.com>
8484
8485         maint: spell file systems with two words, not one
8486         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8487         two words, not one.
8488
8489 2012-01-16  Jim Meyering  <meyering@redhat.com>
8490
8491         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8492         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8493
8494 2012-01-16  Eric Blake  <eblake@redhat.com>
8495
8496         bootstrap: cater to autoconf 2.59
8497         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8498         is not available.
8499
8500         bootstrap: properly check for libtool
8501         * build-aux/bootstrap (libtoolize): Also run libtool when older
8502         usage is detected.
8503
8504 2012-01-15  Bruno Haible  <bruno@clisp.org>
8505
8506         Improve support for MSVC 9.
8507         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8508         clashes on MSVC.
8509         * lib/fcntl.in.h: Likewise.
8510         * lib/stdlib.in.h: Likewise.
8511         * lib/sys_stat.in.h: Likewise.
8512
8513 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8514
8515         gnupload: we hold the master copy of this script now
8516         For motivation and more information, see:
8517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8518         * build-aux/gnupload: Make it clear in the heading comments that the
8519         master copy of this file is maintained by gnulib.  Since we are at
8520         it, bump its copyright year and ...
8521         ($scriptversion): ... the date in its version.
8522         ($usage): Patches and bug reports should be sent to the gnulib list,
8523         not the automake one.
8524         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8525         anymore.
8526
8527 2012-01-15  Bruno Haible  <bruno@clisp.org>
8528
8529         Fix module 'random'.
8530         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8531         initstate, setstate are declared.
8532
8533 2012-01-14  Bruno Haible  <bruno@clisp.org>
8534
8535         Tests for module 'random'.
8536         * modules/random-tests: New file.
8537         * tests/test-random.c: New file, based on tests/test-random_r.c.
8538
8539         New module 'random'.
8540         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8541         declarations.
8542         * lib/random.c: New file, based on glibc/stdlib/random.c.
8543         * m4/random.m4: New file.
8544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8545         HAVE_RANDOM.
8546         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8547         * modules/random: New file.
8548         * config/srclist.txt: Add an entry for random.c.
8549         * doc/posix-functions/random.texi: Mention the 'random' module.
8550         * doc/posix-functions/initstate.texi: Likewise.
8551         * doc/posix-functions/setstate.texi: Likewise.
8552         * doc/posix-functions/srandom.texi: Likewise.
8553
8554 2012-01-12  Bruno Haible  <bruno@clisp.org>
8555
8556         random_r: Use common idioms.
8557         * lib/random_r.c: Include <stdlib.h> first.
8558
8559         random_r: Override incompatible API on AIX, OSF/1.
8560         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8561         Override the system function if REPLACE_RANDOM_R is 1.
8562         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8563         and OSF/1, set REPLACE_RANDOM_R.
8564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8565         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8566         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8567         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8568         * doc/glibc-functions/random_r.texi: Likewise.
8569         * doc/glibc-functions/setstate_r.texi: Likewise.
8570
8571         random_r: Support for MSVC 9.
8572         * lib/random_r.c: Include stdint.h, not inttypes.h.
8573
8574 2012-01-12  Eric Blake  <eblake@redhat.com>
8575
8576         inet_ntop: guard extra work by IF_LINT
8577         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8578         better code generation when not checking for warnings.
8579         Suggested by Paul Eggert and Jim Meyering.
8580
8581         strptime: fix regression on mingw
8582         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8583         Fix regression.  Reported by Bruno Haible.
8584
8585 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8586             Bruno Haible  <bruno@clisp.org>
8587
8588         copy-file: add error-code-returning variant.
8589         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8590         (qcopy_file_preserving): New declaration.
8591         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8592         copy_file_preserving. Change return type to 'int'. Don't emit an error
8593         message here.
8594         (copy_file_preserving): New function.
8595         * tests/test-copy-file.c: Include <stdlib.h>.
8596         (main): Test qcopy_file_preserving if the environment variable
8597         NO_STDERR_OUTPUT is set.
8598         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8599         with NO_STDERR_OUTPUT
8600         * tests/test-copy-file-2.sh: Likewise.
8601
8602 2012-01-10  Bruno Haible  <bruno@clisp.org>
8603
8604         copy-file: Use 'quote' module consistently.
8605         * lib/copy-file.c (copy_file_preserving): Use quote().
8606
8607         copy-file: Refactor.
8608         * lib/copy-file.c: Include quote.h.
8609         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8610         message here.
8611         * modules/copy-file (Depends-on): Add quote.
8612
8613         acl: Export qcopy_acl.
8614         * lib/acl.h (qcopy_acl): New declaration.
8615         * lib/copy-acl.c (qcopy_acl): Make non-static.
8616
8617         acl: Rename a local variable.
8618         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8619
8620         acl: Align return values of copy_acl and qcopy_acl.
8621         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8622         maybe < -1.
8623
8624 2012-01-11  Eric Blake  <eblake@redhat.com>
8625
8626         strptime: silence gcc warnings
8627         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8628         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8629         Reported by Daniel P. Berrange.
8630
8631         inet_ntop: silence gcc warning
8632         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8633         Reported by Daniel P. Berrange.
8634
8635 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8636
8637         getloadavg test: skip the test on GNU/Linux without /proc mounted
8638         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8639         file.  When /proc is not mounted, it always fails with ENOENT.
8640         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8641         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8642
8643 2012-01-10  Bruno Haible  <bruno@clisp.org>
8644
8645         regex: Avoid link error on MSVC 9.
8646         * modules/regex (Depends-on): Add wctype.
8647
8648 2012-01-10  Bruno Haible  <bruno@clisp.org>
8649
8650         doc: Mention --with-tests option.
8651         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8652         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8653         --with-tests.
8654         Reported by Reuben Thomas.
8655
8656 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8657
8658         users.txt: order package names lexicographically.
8659         * users.txt: Order package names lexicographically.
8660
8661 2012-01-10  Jim Meyering  <meyering@redhat.com>
8662
8663         maint.mk: fix description in comment
8664         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8665
8666         ignore-value: remove deprecated ignore_ptr function
8667         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8668         * NEWS: Note this.
8669
8670 2012-01-09  Jim Meyering  <meyering@redhat.com>
8671
8672         test-init.sh: avoid a subshell
8673         * tests/test-init.sh: Remove protective subshell.
8674         Suggested by Bernhard Voelker.  While a subshell is normally
8675         required to protect against older shells (Solaris, FreeBSD) that
8676         warn about a missing program before performing redirection, the
8677         shell-selection tests performed by init.sh probably exclude any
8678         offending shell.
8679
8680 2012-01-08  Bruno Haible  <bruno@clisp.org>
8681
8682         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8683         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8684         variable.
8685
8686 2012-01-08  Bruno Haible  <bruno@clisp.org>
8687
8688         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8689         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8690         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8691         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8692         macro.
8693         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8694         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8695         * lib/spawn_faction_addopen.c: Add workaround implementation if
8696         HAVE_WORKING_POSIX_SPAWN.
8697         * modules/spawn (Makefile): Substitute
8698         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8699         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8700         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8701         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8702         (Depends-on): Update conditions.
8703         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8704         the Solaris 11 bug.
8705
8706 2012-01-08  Bruno Haible  <bruno@clisp.org>
8707
8708         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8709         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8710         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8711         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8712         macro.
8713         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8714         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8715         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8716         HAVE_WORKING_POSIX_SPAWN.
8717         * modules/spawn (Makefile): Substitute
8718         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8719         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8720         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8721         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8722         (Depends-on): Update conditions.
8723         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8724         the Solaris 11 bug.
8725
8726 2012-01-08  Bruno Haible  <bruno@clisp.org>
8727
8728         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8729         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8730         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8732         HAVE_WORKING_POSIX_SPAWN.
8733         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8734         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8735         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8736         * lib/spawn_faction_addclose.c: Add workaround implementation if
8737         HAVE_WORKING_POSIX_SPAWN.
8738         * modules/spawn (Makefile): Substitute
8739         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8740         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8741         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8742         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8743         (Depends-on): Update conditions.
8744         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8745         the Solaris 11 bug.
8746
8747 2012-01-08  Bruno Haible  <bruno@clisp.org>
8748
8749         doc: Update for Solaris 11 2011-11.
8750         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8751         * m4/printf.m4: Update comments.
8752
8753 2012-01-08  Bruno Haible  <bruno@clisp.org>
8754
8755         mktime: Avoid compilation error on Solaris 11.
8756         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8757
8758 2012-01-08  Bruno Haible  <bruno@clisp.org>
8759
8760         doc: Small fix.
8761         * doc/posix-headers/nl_types.texi: Correct platforms list.
8762
8763 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8764
8765         Add lgpl-3.0 module.
8766         * MODULES.html.sh (Support for building documentation): Add
8767         lgpl-3.0.
8768         * modules/lgpl-3.0: New file.
8769
8770 2012-01-08  Jim Meyering  <meyering@redhat.com>
8771
8772         select.c: indent with spaces, not TABs
8773         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8774
8775 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8776
8777         quotearg: do not use grave accent for left quote
8778         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8779         locale_quoting_style.
8780         (quotearg_buffer_restyled): Fix example.
8781         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8782
8783 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8784
8785         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8786         Most programs do not have translation catalogs for English and much
8787         less separate catalogs for British and American English.  Drop the
8788         suggestion to translators about these two, and provide it
8789         automatically for Unicode locales.  Like most programs, even those
8790         using American English, we use single quotation marks.  This conflicts
8791         with the American typographic convention, but works better when you
8792         cite the entire error message within double quotes.  It also tries not
8793         to clash with established practice and with what non-gnulib programs
8794         will usually do.
8795         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8796         using an UTF-8 or GB-18030 locale.  The list of other locales with
8797         quotes was provided by Bruno Haible.
8798         (quotearg_buffer_restyled): Adjust instructions to translators.
8799         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8800         text, since this would be wrong when using Unicode.
8801         * modules/quotearg: Depend on c-strcaseeq.
8802
8803 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8804
8805         quotearg: fix Wikipedia link
8806         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8807
8808 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8809
8810         Fix for mingw with MSVC9.
8811         * m4/ld-version-script.m4: Check that compiler rejects version
8812         scripts with syntax errors.  Reported by Bruno Haible
8813         <bruno@clisp.org>.
8814
8815 2012-01-06  Bruno Haible  <bruno@clisp.org>
8816
8817         Talk about "native Windows API", not "Woe32".
8818         * lib/accept4.c: Update comments to mention native Windows.
8819         * lib/execute.c: Likewise.
8820         * lib/fatal-signal.c: Likewise.
8821         * lib/localcharset.c: Likewise.
8822         * lib/nanosleep.c: Likewise.
8823         * lib/nl_langinfo.c: Likewise.
8824         * lib/pclose.c: Likewise.
8825         * lib/pipe-filter-gi.c: Likewise.
8826         * lib/pipe-filter-ii.c: Likewise.
8827         * lib/pipe.c: Likewise.
8828         * lib/pipe2.c: Likewise.
8829         * lib/popen.c: Likewise.
8830         * lib/progreloc.c: Likewise.
8831         * lib/relocatable.c: Likewise.
8832         * lib/sigaction.c: Likewise.
8833         * lib/sigprocmask.c: Likewise.
8834         * lib/spawn-pipe.h: Likewise.
8835         * lib/spawn-pipe.c: Likewise.
8836         * lib/spawni.c: Likewise.
8837         * lib/stat-time.h: Likewise.
8838         * lib/w32spawn.h: Likewise.
8839         * tests/test-isatty.c: Likewise.
8840         * lib/config.charset: More comments.
8841         * doc/gnulib-intro.texi: Mention native Windows.
8842         * doc/posix-functions/_Exit_C99.texi: Likewise.
8843         * doc/posix-headers/fcntl.texi: Likewise.
8844
8845 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8846
8847         argp: Avoid crash if translator uses % characters in a translation.
8848         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8849         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8850
8851 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8852
8853         doc: C11 and C++11 are now official
8854         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8855         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8856         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8857         * modules/stdalign:
8858         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8859
8860 2012-01-06  Bruno Haible  <bruno@clisp.org>
8861
8862         uc-is-grapheme-break tests: Tweak.
8863         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8864         message.
8865
8866 2012-01-06  Bruno Haible  <bruno@clisp.org>
8867
8868         test-init.sh: correct the test for diff -u
8869         * tests/test-init.sh: Also redirect stdout to /dev/null.
8870
8871 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8872
8873         Use ', not `, for quoting output.
8874         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8875         (print_changelog_deltas, get_tool_versions, main program):
8876         * build-aux/git-version-gen:
8877         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8878         * build-aux/move-if-change (help):
8879         * build-aux/useless-if-before-free (usage, main program):
8880         * check-module (parse_module_file, usage)
8881         (find_included_lib_files, check_module):
8882         * lib/argmatch.c (main) [TEST]:
8883         * lib/argp-help.c (_help):
8884         * lib/getopt1.c (main) [TEST]:
8885         * lib/git-merge-changelog.c (usage):
8886         * lib/xstrtol-error.c (xstrtol_error):
8887         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8888         * m4/argz.m4 (gl_FUNC_ARGZ):
8889         * m4/bison.m4 (gl_BISON):
8890         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8892         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8893         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8894         * m4/gc-random.m4 (gl_GC_RANDOM):
8895         * m4/intl.m4 (gt_CHECK_DECL):
8896         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8898         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8900         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8901         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8902         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8903         * tests/test-dirname.c (main):
8904         * tests/test-getpass.c (main):
8905         * tests/test-iconvme.c (main):
8906         * tests/test-parse-datetime.c (LOG):
8907         * tests/test-xstrtoimax.sh:
8908         * tests/test-xstrtol.sh:
8909         * tests/test-xstrtoll.sh:
8910         * tests/test-xstrtoumax.sh:
8911         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8912         * top/GNUmakefile (abort-due-to-no-makefile):
8913         Quote 'like this', not `like this', as per the recent change to
8914         the GNU coding standards.
8915
8916 2012-01-05  Bruno Haible  <bruno@clisp.org>
8917
8918         strtoimax: Don't force a replacement on systems where intmax_t is int.
8919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8920         'intmax_t' is not larger than 'int'.
8921         Reported by Pádraig Brady <P@draigBrady.com>.
8922
8923 2012-01-05  Bruno Haible  <bruno@clisp.org>
8924
8925         doc: Mention NetBSD bugs.
8926         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8927         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8928
8929 2012-01-05  Bruno Haible  <bruno@clisp.org>
8930
8931         strtoumax tests: Enhance tests.
8932         * tests/test-strtoumax.c (main): Add tests for large values.
8933
8934 2012-01-05  Bruno Haible  <bruno@clisp.org>
8935
8936         strtoimax: Work around AIX 5.1 bug.
8937         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8938         definition.
8939         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8940         Set HAVE_STRTOIMAX.
8941         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8942         REPLACE_STRTOIMAX.
8943         * modules/inttypes-incomplete (Makefile.am): Substitute
8944         REPLACE_STRTOIMAX.
8945         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8946         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8947         (Depends-on): Update conditions.
8948         * tests/test-strtoimax.c (main): Add tests for large values.
8949         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8950
8951 2012-01-05  Bruno Haible  <bruno@clisp.org>
8952
8953         inttypes: Modernize.
8954         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8955         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8956         (Makefile.am): Update inttypes.h rule.
8957
8958 2012-01-05  Jim Meyering  <meyering@redhat.com>
8959
8960         init.sh: don't waste a subshell just to redirect stderr
8961         * tests/init.sh: In testing for diff -u and diff -c, use a
8962         stderr-redirecting exec inside `...` rather than a subshell.
8963
8964         test-init.sh: avoid failure on HP-UX 11.00
8965         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8966         resolves to diff -c or cmp.  Reported by Bruno Haible.
8967
8968 2012-01-05  Bruno Haible  <bruno@clisp.org>
8969
8970         Tests for module 'strtoull'.
8971         * modules/strtoull-tests: New file.
8972         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8973
8974 2012-01-05  Bruno Haible  <bruno@clisp.org>
8975
8976         Tests for module 'strtoll'.
8977         * modules/strtoll-tests: New file.
8978         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8979
8980 2012-01-05  Bruno Haible  <bruno@clisp.org>
8981
8982         Tests for module 'strtoul'.
8983         * modules/strtoul-tests: New file.
8984         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8985
8986 2012-01-05  Bruno Haible  <bruno@clisp.org>
8987
8988         Tests for module 'strtol'.
8989         * modules/strtol-tests: New file.
8990         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8991
8992 2012-01-04  Jim Meyering  <meyering@redhat.com>
8993
8994         test-init.sh: accommodate Solaris 5.10's different diff -u output
8995         * tests/test-init.sh: Also exempt @@ lines from the comparison
8996         of diff output, since Solaris 5.10 and GNU diff formats differ.
8997         Reported by Stefano Lattarini.
8998
8999 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9000
9001         test-posixtm: don't assume signed integer wraparound
9002         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9003         after signed integer overflow.  Inspired by (though it may not
9004         fix) Bruno Haible's bug report in
9005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9006
9007         Spell out "Windows 9x" and "Windows XP".
9008         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9009         "Windows 9x" and "WinXP" with "Windows XP".
9010
9011 2012-01-04  Jim Meyering  <meyering@redhat.com>
9012
9013         test-vc-list-files-cvs.sh: remove obsolete comment
9014         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9015         double exit.  Now that's all encapsulated via skip_ and Exit.
9016
9017 2012-01-04  Bruno Haible  <bruno@clisp.org>
9018
9019         Talk about "native Windows API", not "Win32".
9020         * lib/classpath.c: Update comments to mention native Windows.
9021         * lib/csharpexec.c: Likewise.
9022         * lib/dup2.c: Likewise.
9023         * lib/error.c: Likewise.
9024         * lib/fcntl.c: Likewise.
9025         * lib/filename.h: Likewise.
9026         * lib/findprog.c: Likewise.
9027         * lib/get-rusage-as.c: Likewise.
9028         * lib/get-rusage-data.c: Likewise.
9029         * lib/getpagesize.c: Likewise.
9030         * lib/javaexec.c: Likewise.
9031         * lib/msvc-inval.c: Likewise.
9032         * lib/msvc-nothrow.c: Likewise.
9033         * lib/nanosleep.c: Likewise.
9034         * lib/nonblocking.c: Likewise.
9035         * lib/printf-parse.c: Likewise.
9036         * lib/setlocale.c: Likewise.
9037         * lib/sigaction.c: Likewise.
9038         * lib/strerror_r.c: Likewise.
9039         * lib/tmpdir.c: Likewise.
9040         * lib/vasnprintf.c: Likewise.
9041         * lib/w32spawn.h: Likewise.
9042         * lib/waitpid.c: Likewise.
9043         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9044         * m4/locale-ar.m4: Likewise.
9045         * m4/locale-fr.m4: Likewise.
9046         * m4/locale-ja.m4: Likewise.
9047         * m4/locale-tr.m4: Likewise.
9048         * m4/locale-zh.m4: Likewise.
9049         * m4/printf.m4: Likewise.
9050         * tests/test-cloexec.c: Likewise.
9051         * tests/test-copy-acl.sh: Likewise.
9052         * tests/test-copy-file.sh: Likewise.
9053         * tests/test-file-has-acl.sh: Likewise.
9054         * tests/test-set-mode-acl.sh: Likewise.
9055         * tests/test-dup-safer.c: Likewise.
9056         * tests/test-dup2.c: Likewise.
9057         * tests/test-dup3.c: Likewise.
9058         * tests/test-fcntl.c: Likewise.
9059         * tests/test-nonblocking-pipe.h: Likewise.
9060         * tests/test-nonblocking-socket.h: Likewise.
9061         * tests/test-pipe.c: Likewise.
9062         * tests/test-pipe2.c: Likewise.
9063         * tests/test-spawn-pipe-child.c: Likewise.
9064         * doc/acl-resources.txt: Likewise.
9065         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9066         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9067         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9068         * lib/localcharset.c: Update comments to mention native Windows.
9069         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9070         * lib/localename.c: Likewise.
9071         * lib/progreloc.c: Likewise.
9072         * lib/relocatable.c: Likewise.
9073         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9074         (windows_compute_revents): Renamed from win32_compute_revents.
9075         (windows_compute_revents_socket): Renamed from
9076         win32_compute_revents_socket.
9077         * lib/select.c: Update comments to mention native Windows.
9078         (windows_poll_handle): Renamed from win32_poll_handle.
9079         * m4/threadlib.m4: Update comments to mention native Windows.
9080         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9081         --enable-threads=windows instead of --enable-threads=win32. Set
9082         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9083         * lib/glthread/lock.h: Update comments to mention native Windows.
9084         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9085         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9086         USE_WIN32_THREADS.
9087         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9088         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9089         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9090         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9091         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9092         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9093         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9094         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9095         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9096         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9097         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9098         * tests/test-tls.c: Likewise.
9099         Rationale:
9100         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9101         on both 32-bit and 64-bit Windows systems.
9102         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9103         line of distinction is between "native Windows" on one side and Unix/
9104         POSIX systems on the other side. More details in
9105         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9106         Suggested by Paul Eggert.
9107
9108 2012-01-03  Bruno Haible  <bruno@clisp.org>
9109
9110         isatty: Support for MSVC 9.
9111         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9112         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9113         (_isatty_nothrow): New function.
9114         (isatty): Use it instead of _isatty.
9115         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9116         * lib/poll.c (IsConsoleHandle): Likewise.
9117         * lib/select.c (IsConsoleHandle): Likewise.
9118         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9119         (gl_PREREQ_ISATTY): New macro.
9120         * modules/isatty (Depends-on): Add msvc-inval.
9121         (configure.ac): Invoke gl_PREREQ_ISATTY.
9122
9123 2012-01-03  Jim Meyering  <meyering@redhat.com>
9124
9125         maint.mk: remove temporary transition aid from over 1.5 years ago
9126         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9127         purpose was to aid in the transition (avoiding silent malfunction)
9128         from that old name to the new _sc_search_regexp.  This shim was
9129         added by commit 219c504b.
9130
9131         init.sh: do not try to accommodate compare arguments starting with "-"
9132         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9133         compare arguments that start with "-".  Besides, we do not worry
9134         about this when invoking diff or cmp; why start now with sed?
9135         Using "--" to separate options from argument would trigger sed
9136         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9137         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9138
9139 2012-01-02  Bruno Haible  <bruno@clisp.org>
9140
9141         Enhance tests for module 'isatty'.
9142         * modules/isatty-tests (Depends-on): Add pipe-posix.
9143         * tests/test-isatty.c: Include <fcntl.h>.
9144         (DEV_NULL): New macro.
9145         (main): Test the resut of isatty() also on regular files, pipes, and
9146         /dev/null.
9147
9148         New module 'isatty'.
9149         * lib/unistd.in.h (isatty): New declaration.
9150         * lib/isatty.c: New file, based on an idea of
9151         Bastien Roucariès <roucaries.bastien@gmail.com>.
9152         * m4/isatty.m4: New file.
9153         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9154         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9155         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9156         REPLACE_ISATTY.
9157         * modules/isatty: New file.
9158         * doc/posix-functions/isatty.texi: Mention the new module.
9159         Suggested by Paolo Bonzini.
9160
9161 2012-01-02  Bruno Haible  <bruno@clisp.org>
9162
9163         canonicalize: Tweak 2011-12-29 commit.
9164         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9165         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9166
9167 2012-01-02  Jim Meyering  <meyering@redhat.com>
9168
9169         gitlog-to-changelog: describe input syntax in --help output
9170         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9171
9172         gitlog-to-changelog: fix typo in --help: show backslash before email @
9173         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9174         in sources, but not in actual output.
9175
9176 2011-12-30  Jim Meyering  <meyering@redhat.com>
9177
9178         gitlog-to-changelog: don't malfunction when name contains %-directive
9179         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9180         in a name string cause trouble.  E.g., with a user name of "%s",
9181         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9182
9183 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9184
9185         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9186         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9187         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9188         the "  (tiny change)" notation that is appended to the standard
9189         ChangeLog "date  name  email" header line.
9190
9191 2012-01-01  Jim Meyering  <meyering@redhat.com>
9192
9193         test-framework-sh: init.sh: fix "make dist" failure
9194         When using gnulib-tool's --with-tests option and any module that
9195         depends on test-framework-sh, "make dist" would fail due to the
9196         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9197         in the gltests directory, and not in the gllib/ directory.
9198         One way to work around that is to move the EXTRA_DIST += init.sh
9199         from the primary module to the -tests one:
9200         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9201         * modules/test-framework-sh (Makefile.am): ...not here.
9202         Reported by Tom G. Christensen in
9203         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9204
9205         version-etc: update copyright year reported by --version
9206         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9207
9208 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9209
9210         canonicalize: only stat() if required
9211         * lib/canonicalize.c (canonicalize_filename_mode):
9212         Avoid calling l?stat() when both CAN_MISSING,
9213         and CAN_NOLINKS are set, as we neither need
9214         to resolve symlinks or test component existence.
9215
9216 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9217
9218         doc: cover st_ino issues once; add OpenVMS etc.
9219         * doc/posix-functions/stat.texi (stat):
9220         * doc/posix-functions/lstat.texi (lstat):
9221         * doc/posix-functions/fstatat.texi (fstatat):
9222         * doc/posix-functions/fstat.texi (fstat):
9223         Move general 'struct stat' stuff to sys_stat.texi,
9224         leaving behind a pointer.
9225         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9226         Merge duplicate info about 'struct stat' problems into here.
9227         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9228         and suggest partial workarounds.
9229
9230         same-inode: port to OpenVMS
9231         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9232         three st_ino values.
9233
9234 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9235
9236         canonicalize: fix references to stat() and lstat()
9237         * lib/canonicalize.c (canonicalize_filename_mode):
9238         Ensure references always resolve to a replacement
9239         function if required (even via a macro).
9240
9241 2011-12-30  Jim Meyering  <meyering@redhat.com>
9242
9243         gitlog-to-changelog: remove a little duplication
9244         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9245         rather than twice.
9246
9247 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9248
9249         canonicalize: add support for not resolving symlinks
9250         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9251         indicate we don't want to follow symlinks.  Also
9252         provide CAN_MODE_MASK to aid setting these existing
9253         mutually exclusive values.
9254         * lib/canonicalize.c (canonicalize_filename_mode):
9255         Extract the flags from can_mode parameter, which
9256         are currently just used to select between stat()
9257         and lstat().  Also ensure that mutually exclusive
9258         values are flagged immediately as invalid.
9259         * tests/test-canonicalize.c: Verify symlinks are
9260         not followed, and that invalid flag combinations
9261         are diagnosed.
9262
9263 2011-12-25  Jim Meyering  <meyering@redhat.com>
9264
9265         gitlog-to-changelog: do not clump multi-paragraph entries
9266         Identical header lines (date,name,email+coauthors) are suppressed,
9267         thus putting all entries with those same characteristics under
9268         a single header.  However, when a log entry consists of two or
9269         more paragraphs, it may not be clear where it starts and ends.
9270         This change makes it so that such an entry is always separated
9271         from others by a header line, even when that header would
9272         otherwise be suppressed.
9273         * build-aux/gitlog-to-changelog: Implement the above.
9274         Inspired by a related request from Stefano Lattarini in
9275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9276
9277 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9278
9279         announce-gen: fix `cmd' typo in diagnostic
9280         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9281         diagnostic: a missing '$' meant that the command was not output.
9282
9283 2011-12-23  Jim Meyering  <meyering@redhat.com>
9284
9285         test-framework-sh: distribute init.sh
9286         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9287         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9288         fail due to the lack of init.sh.
9289
9290         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9291         * modules/atexit-tests: Rather than listing tests/init.sh,
9292         now that there's a module for it, simply depend on that new module.
9293         * modules/closein-tests: Likewise.
9294         * modules/exclude-tests: Likewise.
9295         * modules/getcwd-tests: Likewise.
9296         * modules/perror-tests: Likewise.
9297         * modules/pread-tests: Likewise.
9298         * modules/pwrite-tests: Likewise.
9299         * modules/vc-list-files-tests: Likewise.
9300         * modules/verify-tests: Likewise.
9301         * modules/xalloc-die-tests: Likewise.
9302         * modules/xstrtoimax-tests: Likewise.
9303         * modules/xstrtol-tests: Likewise.
9304         * modules/xstrtoll-tests: Likewise.
9305         * modules/xstrtoumax-tests: Likewise.
9306         * modules/yesno-tests: Likewise.
9307
9308 2011-12-22  Jim Meyering  <meyering@redhat.com>
9309
9310         test-framework-sh: add minimal tests of init.sh's compare function
9311         * modules/test-framework-sh-tests: New file.
9312         * tests/test-init.sh: New file.
9313
9314         test-framework-sh: new module
9315         * modules/test-framework-sh: New file.
9316         * MODULES.html.sh (Support for maintaining and releasing projects):
9317         List it.
9318
9319         init.sh: do not emit simulated diff output to stderr
9320         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9321
9322 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9323
9324         .gitignore: ignore gnulib.dvi and regex.info
9325         * doc/.gitignore:add gnulib.dvi and regex.info
9326
9327 2011-12-22  Jim Meyering  <meyering@redhat.com>
9328
9329         init.sh: correct previous change
9330         * tests/init.sh (compare): My previous change was wrong.
9331         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9332
9333         init.sh: avoid unwarranted test failure when using "set -e"
9334         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9335         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9336         a use like "compare exp out" would get evoke an unconditional failure.
9337
9338 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9339
9340         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9341         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9342         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9343         autoreconf that did not.
9344         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9345         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9346
9347 2011-12-17  Jim Meyering  <meyering@redhat.com>
9348
9349         bootstrap: remove some now-unneeded code
9350         This script arose back when gnulib-tool was young.
9351         Since then, it has seen improvements that render much of this
9352         script unnecessary.  In particular, it can now make symlinks
9353         to the files it uses.  Also, I no longer see as much value in
9354         marking files as read-only via comments.
9355         If you relied on the symlink-creation feature of the preceding
9356         version of this script, you can get most of that functionality
9357         by adding the --symlink option to the definition of
9358         gnulib_tool_option_extras in your bootstrap.conf file.
9359         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9360         Run autopoint and libtoolize *before* gnulib-tool.
9361         After it, run an abbreviated autoreconf, rather than a loop around
9362         all tools.
9363         (slirp, bt_mark_as_generated): Remove functions.
9364
9365 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9366
9367         ftoastr: fix typo
9368         * lib/ftoastr.h: Fix misspelling in comment.
9369
9370 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9371
9372         * top/README-release: fix punctuation.
9373
9374 2011-12-17  Jim Meyering  <meyering@redhat.com>
9375
9376         bootstrap: correct the recent buildreq change
9377         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9378         had no effect.
9379         * build-aux/bootstrap (buildreq): Bracket each search term with
9380         "*...*", so that the shell "case" statement works as intended.
9381         Add comments.
9382
9383 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9384
9385         build: let bootstrap resort to wget when downloading .po files
9386         * build-aux/bootstrap (download_po_files): Fallback to wget when
9387         downloading the .po files via rsync fails.  This is necessary to
9388         bootstrap from behind a strict firewall.
9389
9390 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         stdint: don't assume C++11 when compiling with g++
9393         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9395         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9396         work also in C++ before C++11, as that improperly inhibits
9397         generating a substitute stdint.h for that case.
9398
9399 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9400
9401         alloca: protect comment from gnulib-tool
9402         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9403         that gnulib-tool doesn't think it's a license, and munge it to
9404         say "GCC version 3".
9405
9406 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9407
9408         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9409         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9410         $(abs_top_builddir) instead of $(top_builddir).
9411
9412 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9413
9414         strftime-tests: also test nanoseconds
9415         * tests/test-strftime.c (T): Add a test of %N.
9416
9417 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9418
9419         inttypes, stdint: add C++11 support
9420         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9421         when including inttypes.h and stdint.h.  Support this change to
9422         the standard.
9423         * doc/posix-headers/inttypes.texi (inttypes.h):
9424         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9425         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9426         Define if not defined already, for the benefit of pre-C++11 hosts.
9427         Define the standard format macros (e.g., PRId8) always.
9428         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9429         Likewise, if __cpluspus.  Define the standard constant and limit
9430         macros (e.g., INT8_C, INT8_MAX) always.
9431         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9432         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9433         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9434         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9435         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9436         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9437         Likewise.
9438
9439 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9440
9441         nonblocking tests: Fix test failure on Linux/PPC.
9442         Suggested by Prerna Saxena in
9443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9444         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9445         Set to 1100000.
9446
9447 2011-12-12  Jim Meyering  <meyering@redhat.com>
9448
9449         argmatch: don't hard-code `' when listing valid option arguments
9450         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9451         use the quote function to add quotes.  Use fputs rather than
9452         fprintf for the format string with no format directive.
9453
9454 2011-12-07  Eric Blake  <eblake@redhat.com>
9455
9456         bootstrap: detect tools required by gnulib-tool
9457         * build-aux/bootstrap (buildreq): Provide minimum implicit
9458         dependencies.
9459         * DEPENDENCIES: Mention patch as a prereq.
9460
9461 2011-12-04  Bruno Haible  <bruno@clisp.org>
9462
9463         sethostname: Port to Windows platforms.
9464         * lib/sethostname.c: Provide an alternate implementation for Windows
9465         platforms.
9466         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9467         (main): Skip the test if sethostname() fails with EPERM. On Windows
9468         platforms, don't check the result of gethostname().
9469
9470 2011-12-04  Bruno Haible  <bruno@clisp.org>
9471             Jim Meyering  <meyering@redhat.com>
9472
9473         tests: Avoid spurious error message on platforms without mktemp program.
9474         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9475
9476 2011-12-04  Bruno Haible  <bruno@clisp.org>
9477
9478         sethostname: Fix documentation.
9479         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9480         "not fixed" section.
9481
9482 2011-12-03  Bruno Haible  <bruno@clisp.org>
9483
9484         gnulib-tool: Verify that the License field is present and non-empty.
9485         * gnulib-tool (func_get_license_raw): New function, extracted from
9486         func_get_license.
9487         (func_get_license): Use it. Warn if the module is not a test module and
9488         has no license.
9489         Suggested by Jim Meyering.
9490
9491 2011-12-03  Bruno Haible  <bruno@clisp.org>
9492
9493         sethostname tests: Fix link error on mingw.
9494         * tests/test-sethostname1.c: New file, extracted from
9495         tests/test-sethostname.c.
9496         * tests/test-sethostname2.c: New file, extracted from
9497         tests/test-sethostname.c.
9498         * tests/test-sethostname.c: Remove file.
9499         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9500         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9501         (Depends-on): Add gethostname.
9502         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9503         Link the latter with $(GETHOSTNAME_LIB).
9504
9505         sethostname tests: Fix compilation error on mingw.
9506         * tests/test-sethostname.c: Don't include <sys/types.h>.
9507         (geteuid): Use a dummy value without uid_t.
9508         * modules/sethostname-tests (Depends-on): Remove sys_types.
9509
9510         sethostname tests: Avoid a gcc warning.
9511         * tests/test-sethostname.c (main): Remove an unused variable.
9512
9513         Tweak last commit.
9514         * modules/sethostname-tests (Files): Sort by decreasing importance.
9515         (configure.ac): Check for geteuid.
9516         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9517         the test when there's nothing to test. Drop an unnecessary cast.
9518         Improve an error message. Verify that the final sethostname() call
9519         succeeds.
9520
9521 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9522
9523         Add a test suite for the sethostname module.
9524         * modules/sethostname-tests: New file.  A test program
9525         for the sethostname module.
9526         * tests/test-sethostname.c: Likewise.
9527
9528 2011-12-03  Bruno Haible  <bruno@clisp.org>
9529
9530         Tweak last commit.
9531         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9532         Fix preprocessor directives indentation. Fix typos.
9533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9534         * modules/unistd (Makefile): Likewise.
9535
9536 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9537
9538         Integrate the sethostname module into unistd.
9539         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9540         into the unistd.h header.
9541         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9542         preprocessor directives.
9543         * modules/unistd: Setup the Makefile substitutions of the
9544         SETHOSTNAME preprocessor directives.
9545
9546 2011-12-03  Bruno Haible  <bruno@clisp.org>
9547
9548         Tweak last commit.
9549         * lib/sethostname.c: Don't include <string.h>.
9550         (sethostname): No need to copy the argument string to the stack. Don't
9551         call clearerr. Preserve errno when fprintf failed.
9552         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9553         Don't invoke AC_REPLACE_FUNCS.
9554         * modules/sethostname (Link): Remove empty section.
9555         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9556         failure problem.
9557
9558 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9559
9560         New module 'sethostname'.
9561         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9562         for systems that lack it.
9563         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9564         sethostname declaration and function.
9565         * modules/sethostname: New file.  Define the sethostname module.
9566
9567 2011-12-03  Bruno Haible  <bruno@clisp.org>
9568
9569         Tweak last commit.
9570         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9571
9572 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9573
9574         Split the HOST_NAME_MAX detection into a separate m4 macro.
9575         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9576         macro so it can be used by the pending sethostname module.
9577
9578 2011-12-03  Bruno Haible  <bruno@clisp.org>
9579
9580         Fix module descriptions syntax.
9581         * modules/argv-iter (License): Fix syntax.
9582         * modules/di-set (License): Likewise.
9583         * modules/ino-map (License): Likewise.
9584         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9585
9586 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9587
9588         stdalign: port to Clang 3.0
9589         Problem reported by Simon Josefsson in
9590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9591         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9592         which has <stdalign.h> but which does not define alignof.
9593         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9594
9595 2011-12-01  Eric Blake  <eblake@redhat.com>
9596
9597         mktempd: silence dd usage
9598         * build-aux/mktempd (rand_bytes): Silence dd.
9599
9600 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9601
9602         manywarnings: Don't mention gcc version in docstring.
9603         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9604         Jim Meyering <meyering@redhat.com>.
9605
9606 2011-11-30  Jim Meyering  <meyering@redhat.com>
9607
9608         hash: mark a few floating point constants with "f" suffix
9609         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9610         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9611         floating point constants with "f", since they're destined to be
9612         saved/used as "float"s.
9613
9614 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9615
9616         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9617         * tests/test-float.c (test_long_double): Correct and re-enable the
9618         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9619
9620 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9621
9622         Avoid subtracting two pointers that don't point into the same block.
9623         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9624         only pointers into the same memory block are subtracted. We cannot
9625         assume that sizeof (ptrdiff_t) == sizeof (void *).
9626
9627 2011-11-29  Eric Blake  <eblake@redhat.com>
9628
9629         maint.mk: add syntax check for use of compare from init.sh
9630         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9631         moved here from coreutils.
9632
9633         manywarnings: drop -Wunsuffixed-float-constants
9634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9635         '1.0D', which is the only way to silence this warning for 'double'.
9636
9637 2011-11-29  Jim Meyering  <meyering@redhat.com>
9638
9639         hash: mark compute_bucket_size with the pure attribute
9640         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9641
9642         quotearg, propername: correct pragma guard expression
9643         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9644         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9645
9646 2011-11-28  Jim Meyering  <meyering@redhat.com>
9647
9648         propername: do not mark proper_name with the const attribute
9649         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9650         since it examines data pointed to by its parameter.
9651         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9652         the suggestion from -Wsuggest-attribute=const.
9653
9654         propername: mark one more function as const
9655         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9656
9657 2011-11-27  Jim Meyering  <meyering@redhat.com>
9658
9659         mark functions with const and pure attributes
9660
9661         Mark functions per suggestions from gcc-4.6 when using these options:
9662         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9663         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9664         Follow these guidelines: when possible, apply the attribute to
9665         an extern declaration, not to its definition.  Apply it to the
9666         definition only when the definition is static.
9667         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9668         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9669         * lib/base64.h (isbase64): Likewise.
9670         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9671         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9672         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9673         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9674         (c_tolower, c_toupper): Likewise.
9675         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9676         * lib/chdir-long.c (find_non_slash): Likewise.
9677         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9678         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9679         * lib/file-type.h (file_type): Likewise.
9680         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9681         * lib/filevercmp.c (verrevcmp): Likewise.
9682         * lib/freadahead.h (freadahead): Likewise.
9683         * lib/fts.c (fts_maxarglen): Likewise.
9684         * lib/hash-pjw.h (hash_pjw): Likewise.
9685         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9686         * lib/hash.c (is_prime, next_prime): Likewise.
9687         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9688         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9689         (hash_table_ok, hash_get_first, hash_string): Likewise.
9690         (compute_bucket_size): Likewise.
9691         * lib/i-ring.h (i_ring_empty): Likewise.
9692         * lib/isnan.c (isnanl): Likewise.
9693         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9694         * lib/memcasecmp.h (memcasecmp): Likewise.
9695         * lib/memchr2.h (memchr2): Likewise.
9696         * lib/memcmp2.h (memcmp2): Likewise.
9697         * lib/parse-datetime.y (lookup_zone): Likewise.
9698         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9699         [!WINDOWS_SOCKETS]: Likewise.
9700         * lib/strnlen1.h (strnlen1): Likewise.
9701         * lib/uniwidth.in.h (uc_width): Likewise.
9702         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9703         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9704         (quoting_options_from_style): Add a comment.
9705         * lib/propername.h (proper_name): Add a comment.
9706
9707 2011-11-27  Bruno Haible  <bruno@clisp.org>
9708
9709         Remove unused macros from !_LIBC code in glibc-borrowed files.
9710         * lib/fnmatch.c (STRCOLL): Remove macro.
9711         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9712         * lib/glob.c (__stat, __readdir64): Remove macros.
9713         * lib/tempname.c (__open64, __xstat64): Remove macros.
9714         Suggested by Paul Eggert.
9715
9716 2011-11-27  Bruno Haible  <bruno@clisp.org>
9717
9718         getcwd: Fix link error on MSVC 9.
9719         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9720
9721 2011-11-27  Bruno Haible  <bruno@clisp.org>
9722
9723         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9724         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9725         HAVE_OPENDIR is 0.
9726         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9727         HAVE_CLOSEDIR is 0.
9728         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9729         is 0.
9730         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9731
9732 2011-11-27  Bruno Haible  <bruno@clisp.org>
9733
9734         getcwd: Fix bug from 2011-08-17.
9735         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9736         platforms that need it.
9737         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9738         code of 4 to be a failure, not a success. This ensures that
9739         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9740
9741 2011-11-27  Bruno Haible  <bruno@clisp.org>
9742
9743         binary-io tests: Avoid test failure on mingw when libtool is used.
9744         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9745         Don't verify the size of t-bin-out1.tmp here.
9746         * tests/test-binary-io.sh: Verify it here.
9747         Reported by Simon Josefsson.
9748
9749 2011-11-26  Bruno Haible  <bruno@clisp.org>
9750
9751         Fix conflict between two instantiations of module 'unistd'.
9752         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9753         ${include_guard_prefix} also in the autoconf snippet.
9754         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9756         GNULIB_UNISTD_H_GETOPT.
9757         * modules/getopt-posix (configure.ac): Set the
9758         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9759         * modules/getopt-gnu (configure.ac): Likewise.
9760         * modules/unistd (Makefile.am): Change the substitution value of
9761         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9762         Reported by Simon Josefsson.
9763
9764 2011-11-25  Bruno Haible  <bruno@clisp.org>
9765
9766         pagealign_alloc: Doc and comments.
9767         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9768         module.
9769         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9770
9771 2011-11-25  Jim Meyering  <meyering@redhat.com>
9772
9773         test-update-copyright.sh: avoid false-positive failure
9774         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9775         around false positive failure on Cygwin/Windows.  The latter was
9776         matching erroneously-created files with names like
9777         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9778
9779 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9780
9781         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9782         * m4/valgrind-tests.m4: Check that the parameters that will be
9783         used works, not just a subset of them.  Reported by Bruno Haible
9784         <bruno@clisp.org>.
9785
9786 2011-11-24  Jim Meyering  <meyering@redhat.com>
9787
9788         test-stdalign.c: comment out long double tests
9789         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9790         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9791         error: '_Alignas' specifiers cannot reduce alignment of \
9792         'static_longdouble_alignas'.
9793
9794 2011-11-22  Jim Meyering  <meyering@redhat.com>
9795
9796         init.sh: make "compare /dev/null FILE" output more readable
9797         * tests/init.sh (compare_): Document the preferred order of arguments.
9798         (emit_diff_u_header_): New function.
9799         (compare_dev_null_): Emit a simulated diff, rather than just the
9800         contents of the unexpected file.  Suggestion from Bruno Haible.
9801
9802 2011-11-21  Jim Meyering  <meyering@redhat.com>
9803             Eric Blake  <eblake@redhat.com>
9804
9805         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9806         * tests/init.sh: Make our compare function slightly more portable.
9807         Reported by Bruno Haible in
9808         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9809
9810 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9811
9812         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9813         before using it, in code that ends up in config.h.
9814
9815 2011-11-20  Bruno Haible  <bruno@clisp.org>
9816
9817         getcwd: Work around getcwd bug on AIX 5..7.
9818         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9819         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9820         Use a different value for gl_cv_func_getcwd_path_max. Move the
9821         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9822         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9823         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9824         Define HAVE_MINIMALLY_WORKING_GETCWD.
9825         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9826         where it is not even minimally working, that is, on AIX.
9827         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9828         m4/getcwd-path-max.m4.
9829         (main): Update exit code computation.
9830         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9831         getcwd does not handle long file names.
9832
9833 2011-11-20  Bruno Haible  <bruno@clisp.org>
9834
9835         getcwd: Fix bug from 2009-09-10.
9836         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9837         like "no".
9838
9839 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9840
9841         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9842
9843 2011-11-20  Bruno Haible  <bruno@clisp.org>
9844
9845         fma tests: Avoid shadowing local variables.
9846         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9847         expected.
9848
9849 2011-11-20  Bruno Haible  <bruno@clisp.org>
9850
9851         copysignf tests: Fix.
9852         * tests/test-copysignf.c: Fix signature check.
9853
9854 2011-11-20  Bruno Haible  <bruno@clisp.org>
9855
9856         fma: Remove unused code.
9857         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9858         unused macros.
9859
9860 2011-11-20  Bruno Haible  <bruno@clisp.org>
9861
9862         sethostname: Fix doc about AIX.
9863         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9864         sethostname; it has it.
9865
9866         sethostname: Mention more portability problems.
9867         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9868         problem.
9869         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9870
9871 2011-11-19  Bruno Haible  <bruno@clisp.org>
9872
9873         Depend on module fcntl-h when AT_FDCWD is used.
9874         * modules/utimens (Depends-on): Add fcntl-h.
9875         * modules/areadlinkat (Depends-on): Likewise.
9876         * modules/areadlinkat-with-size (Depends-on): Likewise.
9877         * modules/faccessat (Depends-on): Likewise.
9878         * modules/fchmodat (Depends-on): Likewise.
9879         * modules/fchownat (Depends-on): Likewise.
9880         * modules/getcwd (Depends-on): Likewise.
9881         * modules/mkdirat (Depends-on): Likewise.
9882         * modules/mkfifoat (Depends-on): Likewise.
9883         * modules/readlinkat (Depends-on): Likewise.
9884         * modules/symlinkat (Depends-on): Likewise.
9885         * modules/dup2-tests (Depends-on): Likewise.
9886         * modules/fdutimensat-tests (Depends-on): Likewise.
9887         * modules/futimens-tests (Depends-on): Likewise.
9888
9889 2011-11-19  Bruno Haible  <bruno@clisp.org>
9890
9891         euidaccess: Update a comment.
9892         * lib/euidaccess.c: Update comment about platforms with faccessat.
9893
9894 2011-11-19  Bruno Haible  <bruno@clisp.org>
9895
9896         openat: Fix file list.
9897         * modules/openat (Files): Remove lib/at-func.c.
9898
9899 2011-11-19  Bruno Haible  <bruno@clisp.org>
9900
9901         fstatat: Simplify.
9902         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9903         gnulib should define rpl_fstatat, there is a
9904         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9905
9906 2011-11-19  Bruno Haible  <bruno@clisp.org>
9907
9908         Ensure 'inline' can be used in tests/test-utimens-common.h.
9909         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9910         * modules/futimens-tests (configure.ac): Likewise.
9911         * modules/utimens-tests (configure.ac): Likewise.
9912         * modules/utimensat-tests (configure.ac): Likewise.
9913
9914 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9915
9916         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9917         not hash_insert0.
9918         (hash_insert_if_absent): Doc fix.
9919
9920 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9921
9922         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9923
9924 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         test-getcwd: disambiguate exit status
9927         * tests/test-getcwd.c (test_long_name): Return 0..7.
9928         (main): Exit with an unambiguous exit status.  The old
9929         code yielded a mysterious mixture of two failure codes.
9930
9931         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9932         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9933         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9934         rpl_fstatat or fstatat.  This should fix the other problem
9935         reported by Kai Habel in
9936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9937         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9939         and I reproduced it on a Solaris 8 host we still have in production.
9940
9941 2011-11-18  Jim Meyering  <meyering@redhat.com>
9942
9943         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9944         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9945         Add a sentence to the comment.
9946         (hash_insert0): New function that simply calls hash_insert_if_absent.
9947         * lib/hash.h (hash_insert_if_absent): Declare it.
9948         (hash_insert0): Add deprecation attribute.
9949         (_GL_ATTRIBUTE_DEPRECATED): Define.
9950         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9951         not hash_insert0.
9952         * NEWS: Mention it, even though it's not really an incompatible change.
9953
9954 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9955
9956         openat: avoid compilation failure due to lack of <errno.h> inclusion
9957         * lib/openat.c: Include <errno.h>.
9958
9959 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9960
9961         * modules/getcwd (Depends-on): Add fdopendir.
9962         This fixes one of the two problems reported by Kai Habel in
9963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9964
9965         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9966         stdalign problem reported by Ian Beckwith in
9967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9968         * modules/crypto/gc-arcfour (Depends-on):
9969         Depend conditionally on crypto/arcfour.
9970         * modules/crypto/gc-arctwo (Depends-on):
9971         Depend conditionally on crypto/arctwo.
9972         * modules/crypto/gc-des (Depends-on):
9973         Depend conditionally on crypto/des.
9974         * modules/crypto/gc-hmac-md5 (Depends-on):
9975         Depend conditionally on crypto/hmac-md5.
9976         * modules/crypto/gc-hmac-sha1 (Depends-on):
9977         Depend conditionally on crypto/hmac-sha1.
9978         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9979         * modules/crypto/gc-md4 (Depends-on):
9980         Depend conditionally on crypto/md4.
9981         * modules/crypto/gc-md5 (Depends-on):
9982         Depend conditionally on crypto/md5.
9983         * modules/crypto/gc-rijndael (Depends-on):
9984         Depend conditionally on crypto/rijndael.
9985         * modules/crypto/gc-sha1 (Depends-on):
9986         Depend conditionally on crypto/sha1.
9987         * modules/crypto/gc-arcfour:
9988         * modules/crypto/gc-arctwo:
9989         * modules/crypto/gc-des:
9990         * modules/crypto/gc-hmac-md5:
9991         * modules/crypto/gc-hmac-sha1:
9992         * modules/crypto/gc-md2:
9993         * modules/crypto/gc-md4:
9994         * modules/crypto/gc-md5:
9995         * modules/crypto/gc-rijndael:
9996         * modules/crypto/gc-sha1:
9997         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9998         now that the conditional dependencies do the work for us.
9999
10000 2011-11-17  Jim Meyering  <meyering@redhat.com>
10001
10002         tests: factor st_ctime-comparison out of two headers
10003         * tests/test-utimens-common.h (ctime_compare): Define.
10004         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10005         * tests/test-lutimens.h (test_lutimens): Likewise.
10006         * tests/test-utimens.h (test_utimens): Likewise.
10007
10008         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10009         Invoke the test program via an init.sh-using wrapper.
10010         * tests/test-getcwd.sh: New file.
10011         * modules/getcwd-tests (Files): Add it.
10012         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10013
10014 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10015
10016         gitlog-to-changelog: support multi-author commits.
10017         The FSF cares about keeping track of all authors of patches to its
10018         projects, but Git doesn't provide obvious support for multi-author
10019         changesets. Consensus seems to be forming around the use of extra
10020         Signed-off-by inspired lines in the log message formatted as
10021         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10022         multi-author commits between version control systems.
10023         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10024         log message and output in standard ChangeLog multi-author format.
10025         Reported by Peter Rosin <peda@lysator.liu.se>
10026
10027 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10028             Bruno Haible  <bruno@clisp.org>
10029
10030         Fix some modules' file list.
10031         * modules/fstatat (Files): Add m4/lstat.m4.
10032         * modules/openat (Files): Likewise.
10033         * modules/unlinkat (Files): Likewise.
10034
10035 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10036
10037         maint.mk: fix tight-scope.mk generation in VPATH builds.
10038         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10039         reference with $(srcdir) so that the file is found correctly even
10040         when running `make syntax-check' in a VPATH build.
10041
10042 2011-11-13  Bruno Haible  <bruno@clisp.org>
10043             Jim Meyering  <meyering@redhat.com>
10044
10045         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10046         * tests/init.sh (compare): Remove "No differences encountered" or
10047         synonymous output from the 'diff' program.
10048
10049 2011-11-13  Bruno Haible  <bruno@clisp.org>
10050
10051         Makefile: Tweak indentation.
10052         * Makefile: Use tab as first character in every line that contains rule
10053         commands.
10054
10055 2011-11-13  Bruno Haible  <bruno@clisp.org>
10056
10057         Syntax check for copyright statements.
10058         * check-copyright: New file.
10059         * Makefile (sc_check_copyright): New rule.
10060
10061 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10062
10063         * build-aux/git-version-gen: Add --prefix to configure the tag
10064         match string.
10065
10066 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10067
10068         * build-aux/git-version-gen: Add --help and --version.
10069
10070 2011-11-12  Jim Meyering  <meyering@redhat.com>
10071
10072         revamp the other test-exclude?.sh scripts to use init.sh, too
10073         * tests/test-exclude1.sh: Use init.sh.
10074         * tests/test-exclude2.sh: Likewise.
10075         * tests/test-exclude3.sh: Likewise.
10076         * tests/test-exclude4.sh: Likewise.
10077         * tests/test-exclude5.sh: Likewise.
10078         * tests/test-exclude6.sh: Likewise.
10079         * tests/test-exclude7.sh: Likewise.
10080         * tests/test-exclude8.sh: Likewise.
10081         * modules/exclude-tests (Files): List init.sh.
10082
10083         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10084         These shell scripts ignored failure of the binary test-exclude,
10085         so making the latter return 77 didn't cause them to be skipped.
10086         * tests/test-exclude5.sh: Exit with test-exclude's error status
10087         when that program fails.  Revamp to use init.sh.
10088         * tests/test-exclude2.sh: Likewise.
10089
10090         test-exclude: fix a typo
10091         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10092
10093 2011-11-11  Bruno Haible  <bruno@clisp.org>
10094
10095         obstack: Fix compilation error on MSVC 9.
10096         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10097
10098 2011-11-11  Jim Meyering  <meyering@redhat.com>
10099
10100         test-exclude: skip tests rather than failing on deficient systems
10101         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10102         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10103         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10104         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10105
10106 2011-11-10  Bruno Haible  <bruno@clisp.org>
10107
10108         ptsname_r test: Avoid gcc warning on glibc systems.
10109         * tests/test-ptsname_r.c (null_ptr): New function.
10110         (test_errors): Use it.
10111
10112 2011-11-10  Bruno Haible  <bruno@clisp.org>
10113
10114         ptsname_r: Avoid compilation error on OSF/1 5.1.
10115         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10117         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10118         function is not declared or incompatibly declared.
10119         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10120         * modules/ptsname_r (Depends-on, configure.ac): Update.
10121         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10122
10123 2011-11-10  Bruno Haible  <bruno@clisp.org>
10124
10125         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10126         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10127         When cross-compiling, guess yes on all platforms except AIX.
10128         Reported by Ludovic Courtès <ludo@gnu.org>.
10129
10130 2011-11-09  Bruno Haible  <bruno@clisp.org>
10131
10132         ptsname_r tests: Fix bugs.
10133         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10134         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10135
10136 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10137
10138         fstatat: work with cross-compilation
10139         Problem reported by Ludovic Courtès in
10140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10141         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10142         "cross-compiling" and assume the bug is present.  Replace
10143         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10144         an inverted sense, to be more conservative about our assumptions.
10145         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10146
10147 2011-11-09  Bruno Haible  <bruno@clisp.org>
10148
10149         Improve MODULES.html output.
10150         * modules/mkfifoat (Description): Use the word "function".
10151         * modules/readlinkat (Description): Likewise.
10152         * modules/symlinkat (Description): Likewise.
10153
10154 2011-11-09  Eric Blake  <eblake@redhat.com>
10155
10156         ptsname_r-tests: new test module
10157         * modules/ptsname_r-tests: New module.
10158         * tests/test-ptsname_r.c: New file.
10159
10160         ptsname_r: new module
10161         * modules/ptsname_r: New module.
10162         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10163         * lib/ptsname.c (__ptsname_r): Split...
10164         * lib/ptsname_r.c: ...into new file.
10165         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10166         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10167         * modules/stdlib (Makefile.am): Substitute witnesses.
10168         * lib/stdlib.in.h (ptsname_r): Declare it.
10169         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10170         * MODULES.html.sh (Misc): Likewise.
10171         * modules/ptsname (Depends-on): Alter dependency.
10172         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10173
10174 2011-11-09  Jim Meyering  <meyering@redhat.com>
10175
10176         announce-gen: be more concise when there's only one URL+tarball
10177         * build-aux/announce-gen (get_tool_versions): When you distribute
10178         only one type of tarball, combine the first two "Here are..."
10179         sections and make the key-checking grammar independent of
10180         how many tarballs there are.
10181
10182 2011-11-09  Eric Blake  <eblake@redhat.com>
10183
10184         openpty: provide a stub on mingw
10185         * lib/pty.in.h (includes): Provide forward declarations.
10186         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10187
10188         raise: fix mingw handling of SIGPIPE
10189         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10190
10191 2011-11-08  Bruno Haible  <bruno@clisp.org>
10192
10193         More conditional dependencies.
10194         * modules/faccessat (Depends-on): Add conditions.
10195         * modules/fchmodat (Depends-on): Likewise.
10196         * modules/fchownat (Depends-on): Likewise.
10197         * modules/fstatat (Depends-on): Likewise.
10198         * modules/mkfifoat (Depends-on): Likewise.
10199         * modules/readlinkat (Depends-on): Likewise.
10200         * modules/symlinkat (Depends-on): Likewise.
10201         * modules/unlinkat (Depends-on): Likewise.
10202         * modules/utimensat (Depends-on): Likewise.
10203         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10204         * modules/linkat (Depends-on): Refine the conditions.
10205         * modules/renameat (Depends-on): Likewise.
10206
10207 2011-11-08  Bruno Haible  <bruno@clisp.org>
10208
10209         faccessat: Move AC_LIBOBJ invocation to module description.
10210         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10211         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10212         invocation from here...
10213         * modules/faccessat (configure.ac): ... to here. Invoke
10214         gl_PREREQ_FACCESSAT.
10215
10216 2011-11-08  Bruno Haible  <bruno@clisp.org>
10217
10218         faccessat: Simplify autoconf macro.
10219         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10220         gl_FUNC_EUIDACCESS.
10221
10222 2011-11-08  Bruno Haible  <bruno@clisp.org>
10223
10224         renameat: Fix dependencies.
10225         * modules/renameat (Depends-on): Add stdbool.
10226
10227 2011-11-08  Bruno Haible  <bruno@clisp.org>
10228
10229         mkfifoat: Fix module description.
10230         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10231         not gl_UNISTD_MODULE_INDICATOR.
10232
10233 2011-11-08  Bruno Haible  <bruno@clisp.org>
10234
10235         fstatat: Remove unused dependency.
10236         * modules/fstatat (Depends-on): Remove fstat.
10237
10238 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10239
10240         GNUmakefile: behave when Makefile is missing.
10241         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10242
10243 2011-11-08  Bruno Haible  <bruno@clisp.org>
10244
10245         openat: Conditionalize dependencies.
10246         * lib/openat.c: Reduce the scope of some #includes.
10247         * modules/openat (Depends-on): Add conditions.
10248
10249 2011-11-07  Jim Meyering  <meyering@redhat.com>
10250
10251         maint.mk: extract GPG key ID without using a temporary file
10252         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10253         without using a temporary file.  Based on a suggestion from Werner Koch
10254         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10255
10256 2011-11-07  Eric Blake  <eblake@redhat.com>
10257
10258         grantpt: fix typo
10259         * lib/stdlib.in.h (grantpt): Check correct function.
10260
10261         maint.mk: silence new syntax check
10262         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10263
10264 2011-11-06  Bruno Haible  <bruno@clisp.org>
10265
10266         Doc about floating-point and math API.
10267         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10268         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10269
10270 2011-11-06  Bruno Haible  <bruno@clisp.org>
10271
10272         stdalign tests: Skip the test when compiled by Sun C.
10273         * tests/test-stdalign.c (main): Skip the test on Sun C.
10274
10275 2011-11-06  Bruno Haible  <bruno@clisp.org>
10276
10277         ansi-c++-opt: Complete the 2011-06-05 change.
10278         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10279         does not support namespaces, set the variable to "no", not to ":".
10280
10281 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10282
10283         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10284
10285 2011-11-06  Bruno Haible  <bruno@clisp.org>
10286
10287         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10288         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10289         (minus_zerol) [HP-UX]: New macro.
10290         (unary_minus) [HP-UX]: New function.
10291         (copysignl) [HP-UX]: Use unary_minus function.
10292
10293 2011-11-06  Bruno Haible  <bruno@clisp.org>
10294
10295         ldexp, ldexpf, ldexpl: Enhance tests.
10296         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10297         and tests/test-ldexpl.c.
10298         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10299         LDEXP, MIN_EXP, MAX_EXP): New macros.
10300         Include test-ldexp.h.
10301         (main): Just call test_function.
10302         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10303         infinity.h, nan.h.
10304         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10305         MAX_EXP): New macros.
10306         Include test-ldexp.h.
10307         (x, y): Remove variables.
10308         (main): Just call test_function.
10309         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10310         infinity.h, nan.h.
10311         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10312         MAX_EXP): New macros.
10313         Include test-ldexp.h.
10314         (x, y): Remove variables.
10315         (main): Just call test_function.
10316         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10317         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10318         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10319         (Depends-on): Add isnand-nolibm, signbit, float.
10320         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10321         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10322         (Depends-on): Add isnanf-nolibm, signbit, float.
10323
10324 2011-11-06  Bruno Haible  <bruno@clisp.org>
10325
10326         math tests: Cosmetics.
10327         * tests/test-math-c++.cc: Reorder declarations.
10328
10329 2011-11-05  Bruno Haible  <bruno@clisp.org>
10330
10331         fma*: Simplify test.
10332         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10333         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10334
10335         Tests for module 'fmal'.
10336         * modules/fmal-tests: New file.
10337         * tests/test-fmal1.c: New file.
10338         * tests/test-fmal2.c: New file.
10339
10340         New module 'fmal'.
10341         * lib/math.in.h (fmal): New declaration.
10342         * lib/fmal.c: New file.
10343         * m4/fmal.m4: New file.
10344         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10346         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10347         REPLACE_FMAL.
10348         * modules/fmal: New file.
10349         * doc/posix-functions/fmal.texi: Mention the new module and the various
10350         bugs.
10351
10352         Tests for module 'fmaf'.
10353         * modules/fmaf-tests: New file.
10354         * tests/test-fmaf1.c: New file.
10355         * tests/test-fmaf2.c: New file.
10356
10357         New module 'fmaf'.
10358         * lib/math.in.h (fmaf): New declaration.
10359         * lib/fmaf.c: New file.
10360         * m4/fmaf.m4: New file.
10361         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10363         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10364         REPLACE_FMAF.
10365         * modules/fmaf: New file.
10366         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10367         bugs.
10368
10369         Tests for module 'fma'.
10370         * modules/fma-tests: New file.
10371         * tests/test-fma1.c: New file.
10372         * tests/test-fma1.h: New file.
10373         * tests/test-fma2.c: New file.
10374         * tests/test-fma2.h: New file.
10375
10376         New module 'fma'.
10377         * lib/math.in.h (fma): New declaration.
10378         * lib/fma.c: New file.
10379         * m4/fma.m4: New file.
10380         * m4/fegetround.m4: New file.
10381         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10383         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10384         REPLACE_FMA.
10385         * modules/fma: New file.
10386         * doc/posix-functions/fma.texi: Mention the new module and the various
10387         bugs.
10388
10389         Extend gl_MATHFUNC.
10390         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10391         Support 'void' as argument type.
10392         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10393
10394 2011-11-05  Jim Meyering  <meyering@redhat.com>
10395
10396         maint.mk: also prohibit inclusion of dirent.h without use
10397         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10398
10399 2011-11-05  Bruno Haible  <bruno@clisp.org>
10400
10401         ldexpl tests: Avoid test failure on MSVC 9.
10402         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10403         value. Needed in order to enforce the conversion from a value greater
10404         than LDBL_MAX to Infinity.
10405
10406 2011-11-05  Bruno Haible  <bruno@clisp.org>
10407
10408         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10409         * modules/at-internal: New file, extracted from modules/openat.
10410         * modules/openat-h: New file.
10411         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10412         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10413         * modules/openat (Description): Add reference to POSIX function.
10414         (Files): Remove lib/openat.h, lib/openat-proc.c.
10415         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10416         intprops, unistd.
10417         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10418         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10419         gl_FCNTL_MODULE_INDICATOR.
10420         (Include): Remove unistd.h, openat.h.
10421         * modules/areadlinkat (Files): Add lib/at-func.c.
10422         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10423         openat-die, openat-h, save-cwd.
10424         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10425         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10426         openat-die, openat-h, save-cwd, unistd.
10427         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10428         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10429         openat-h, save-cwd. Remove fcntl-h, openat.
10430         * modules/fchmodat (Files): Remove lib/openat.h.
10431         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10432         openat, stdbool, unistd.
10433         * modules/fchownat (Files): Remove lib/openat.h.
10434         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10435         openat, stdbool, sys_stat.
10436         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10437         lib/openat-proc.c.
10438         (Depends-on): Add at-internal.
10439         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10440         * modules/fstatat (Files): Remove lib/openat.h.
10441         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10442         stdbool, unistd.
10443         * modules/fts (Depends-on): Add openat-h.
10444         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10445         openat.
10446         * modules/mkdirat (Files): Remove lib/openat.h.
10447         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10448         openat, stdbool, sys_stat.
10449         * modules/mkfifoat (Files): Add lib/at-func.c.
10450         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10451         openat-h, save-cwd. Remove fcntl-h, openat.
10452         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10453         * modules/readlinkat (Files): Add lib/at-func.c.
10454         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10455         openat-h, save-cwd. Remove fcntl-h, openat.
10456         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10457         openat.
10458         * modules/selinux-at (Files): Add lib/at-func.c.
10459         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10460         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10461         * modules/symlinkat (Files): Add lib/at-func.c.
10462         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10463         openat-h, save-cwd. Remove fcntl-h, openat.
10464         * modules/unlinkat (Files): Remove lib/openat.h.
10465         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10466         stdbool.
10467         * modules/utimensat (Files): Add lib/at-func.c.
10468         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10469         openat-die, openat-h, save-cwd.
10470         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10471         * modules/fdutimensat-tests (Depends-on): Add openat.
10472         * modules/fstatat-tests (Depends-on): Add openat-h.
10473         * modules/readlinkat-tests (Depends-on): Add openat.
10474         * modules/symlinkat-tests (Depends-on): Add openat.
10475
10476 2011-11-05  Bruno Haible  <bruno@clisp.org>
10477
10478         openat: Include <stdbool.h>.
10479         * lib/openat.c: Include <stdbool.h>.
10480
10481 2011-11-04  Bruno Haible  <bruno@clisp.org>
10482
10483         fchownat, renameat, unlinkat: Fix dependencies.
10484         * modules/fchownat (Depends-on): Add fstatat.
10485         * modules/renameat (Depends-on): Likewise.
10486         * modules/unlinkat (Depends-on): Likewise.
10487
10488 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10489
10490         openat: remove direct dependency on dirent
10491         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10492         and hasn't been needed ever since fdopendir was split into its own
10493         module on 2009-08-31.
10494         * modules/openat (Depends-on): Remove dirent.
10495
10496 2011-11-04  Bruno Haible  <bruno@clisp.org>
10497
10498         renameat: Optimize code size.
10499         * modules/renameat (configure.ac): Don't compile at-func2.c if
10500         REPLACE_RENAMEAT is 1.
10501
10502 2011-11-04  Bruno Haible  <bruno@clisp.org>
10503
10504         openat tests: Fix file list.
10505         * modules/openat-tests (Files): Add tests/test-open.h.
10506
10507 2011-11-04  Bruno Haible  <bruno@clisp.org>
10508
10509         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10510         * modules/fchmodat (Depends-on): Add openat-die.
10511         * modules/fchownat (Depends-on): Likewise.
10512         * modules/linkat (Depends-on): Likewise.
10513         * modules/renameat (Depends-on): Likewise.
10514         * modules/openat (Depends-on): Add dirent.
10515
10516 2011-11-04  Jim Meyering  <meyering@redhat.com>
10517
10518         at-func*.c: fix comments
10519         * lib/at-func2.c: Correct/improve first-line comment.
10520         * lib/at-func.c: Correct grammar in first-line comment.
10521
10522 2011-11-04  Bruno Haible  <bruno@clisp.org>
10523
10524         New module 'mkdirat', split off from module 'openat'.
10525         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10526         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10527         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10528         * modules/mkdirat: New file, extracted from modules/openat.
10529         * modules/openat (Files): Remove lib/mkdirat.c.
10530         (Depends-on): Remove mkdir.
10531         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10532         (Include): Remove <sys/stat.h>.
10533         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10534         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10535         tests/test-mkdir.h.
10536         (Depends-on): Remove ignore-value.
10537         (Makefile.am): Remove rules for test-mkdirat.
10538         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10539         of module 'openat'.
10540         * NEWS: Mention the change.
10541
10542 2011-11-04  Bruno Haible  <bruno@clisp.org>
10543
10544         closedir: Avoid warning on mingw.
10545         * lib/closedir.c: Include <unistd.h>.
10546
10547 2011-11-04  Bruno Haible  <bruno@clisp.org>
10548
10549         New module 'fstatat', split off from module 'openat'.
10550         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10551         defined.
10552         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10553         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10554         gl_FUNC_FSTATAT.
10555         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10556         * modules/fstatat: New file, extracted from modules/openat.
10557         * modules/openat (Files): Remove lib/fstatat.c.
10558         (Depends-on): Remove lstat.
10559         (configure.ac): Remove AC_LIBOBJ of fstatat.
10560         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10561         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10562         tests/test-lstat.h, tests/test-stat.h.
10563         (Depends-on): Remove getcwd-lgpl.
10564         (Makefile.am): Remove rules for test-fstatat.
10565         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10566         of module 'openat'.
10567         * NEWS: Mention the change.
10568         * modules/getcwd (Depends-on): Add fstatat.
10569         * modules/linkat (Depends-on): Likewise.
10570         * modules/mkfifoat-tests (Depends-on): Likewise.
10571         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10572
10573 2011-11-03  Bruno Haible  <bruno@clisp.org>
10574
10575         New module 'unlinkat', split off from module 'openat'.
10576         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10577         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10578         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10579         * modules/unlinkat: New file, extracted from modules/openat. Correct
10580         the dependency conditions.
10581         * modules/openat (Files): Remove lib/unlinkat.c.
10582         (Depends-on): Remove rmdir, unlink.
10583         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10584         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10585         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10586         tests/test-rmdir.h, tests/test-unlink.h.
10587         (Depends-on): Remove unlinkdir.
10588         (Makefile.am): Remove rules for test-unlinkat.
10589         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10590         of module 'openat'.
10591         * NEWS: Mention the change.
10592         * modules/linkat-tests (Depends-on): Add unlinkat.
10593         * modules/mkfifoat-tests (Depends-on): Likewise.
10594         * modules/readlinkat-tests (Depends-on): Likewise.
10595
10596 2011-11-02  Bruno Haible  <bruno@clisp.org>
10597
10598         New module 'fchmodat', split off from module 'openat'.
10599         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10600         defined.
10601         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10602         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10603         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10604         * modules/fchmodat: New file, extracted from modules/openat.
10605         * modules/openat (Files): Remove lib/fchmodat.c.
10606         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10607         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10608         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10609         (Makefile.am): Remove rules for test-fchmodat.
10610         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10611         of module 'openat'.
10612         * NEWS: Mention the change.
10613
10614 2011-11-02  Jim Meyering  <meyering@redhat.com>
10615
10616         putenv: indent #definition of "environ" to placate cppi
10617         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10618
10619         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10620         Git logs are often treated as immutable, because editing them
10621         changes the SHA1 checksums of all descendants.  Thus, errors in
10622         git logs tend to stay there forever.  However, when we generate
10623         a ChangeLog file -- typically for distribution -- from that git log,
10624         we can actually make corrections in the generated file.  The key
10625         lies in recording in machine-readable/applicable form the desired
10626         corrections.  See --help for description and an example.
10627         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10628         (usage): Describe it; alphabetize option descriptions.
10629         (main): Honor the new option, carefully.
10630
10631 2011-11-01  Jim Meyering  <meyering@redhat.com>
10632
10633         gitlog-to-changelog: avoid an infloop
10634         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10635         that ends up being empty.
10636
10637 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10640         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10641         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10642         contains (possibly-quoted) backslashes.  This should avoid
10643         all-too-common shell bugs if COMPLICATED contains backslashes in
10644         the "wrong" places.  Reported by David Evans in
10645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10646         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10647         because we want ASCII ranges.  Is there some reason we don't use
10648         the C locale everywhere in this script?
10649         (func_module, top level): Avoid unwanted pathname expansion when
10650         $repo_url_prefix or $repo_url_suffix_repl contain shell
10651         metacharacters like '?' and '*'.
10652
10653 2011-11-01  Bruno Haible  <bruno@clisp.org>
10654
10655         fchownat: Improve description.
10656         * modules/fchownat (Description): Add link to function.
10657
10658 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10661         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10663         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10664
10665 2011-11-01  Bruno Haible  <bruno@clisp.org>
10666
10667         alignof: Avoid collision with stdalign module.
10668         * lib/alignof.h (alignof): Remove macro.
10669         * NEWS: Mention the change.
10670         Reported by Paul Eggert.
10671
10672 2011-11-01  Bruno Haible  <bruno@clisp.org>
10673
10674         New module 'fchownat', split off from module 'openat'.
10675         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10676         defined.
10677         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10678         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10679         invoke gl_FUNC_FCHOWNAT.
10680         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10681         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10682         * modules/fchownat: New file, extracted from modules/openat.
10683         * modules/openat (Files): Remove lib/fchownat.c.
10684         (Depends-on): Remove lchown.
10685         (configure.ac): Remove AC_LIBOBJ of fchownat.
10686         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10687         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10688         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10689         (Depends-on): Remove mgetgroups, usleep, stat-time.
10690         (configure.ac): Remove test for getegid.
10691         (Makefile.am): Remove rules for test-fchownat.
10692         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10693         of module 'openat'.
10694         * NEWS: Mention the change.
10695
10696 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         stdalign: port better to MSVC and to Sun C 5.11
10699         This fixes some of the problems reported by Bruno Haible in
10700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10701         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10702         shortcomings of MSVC and of Sun C 5.11.
10703         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10704         around __declspec arg.
10705         * modules/stdalign-tests (Files): Add tests/macros.h.
10706         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10707         Include macros.h, for ASSERT.
10708         (DECLARE_ALIGNED): Remove.
10709         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10710         to catch bug), and to 1 if not (simplifies the rest of the code).
10711         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10712         (CHECK_AUTO): Remove.
10713         (CHECK_ALIGNED): Check only the alignment of the static vars,
10714         since auto var alignment isn't supported by Sun C 5.11.
10715         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10716         ASSERT failures are easier to diagnose.
10717
10718 2011-10-31  Bruno Haible  <bruno@clisp.org>
10719
10720         doc about some IRIX 5.3 problems.
10721         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10722         on IRIX 5.3.
10723         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10724         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10725         5.3.
10726         * doc/posix-functions/grantpt.texi: Likewise.
10727         * doc/posix-functions/unlockpt.texi: Likewise.
10728         * doc/posix-functions/lgamma.texi: Likewise.
10729         * doc/posix-functions/nextafter.texi: Likewise.
10730         * doc/posix-functions/remainder.texi: Likewise.
10731         * doc/posix-functions/select.texi: Mention misplaced declaration on
10732         IRIX 5.3.
10733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10734
10735 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10736
10737         gitlog-to-changelog: fix git-log invocation.
10738         git-log mishandles date strings before 1970-01-01 UTC, and there is
10739         no use to specify --since=1970-01-01 by default anyway.
10740         * build-aux/gitlog-to-changelog: By default, when no --since option
10741         was given, do not specify explicit --since option to git-log.
10742
10743 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10744
10745         gitlog-to-changelog: new option --append-dot.
10746         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10747         first non-blank line of each commit message terminated with a dot.
10748
10749 2011-10-30  Bruno Haible  <bruno@clisp.org>
10750
10751         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10752         * lib/ffsl.h: Include <config.h>.
10753         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10754
10755 2011-10-30  Jim Meyering  <meyering@redhat.com>
10756
10757         GNUmakefile: reenable "make syntax-check" for most projects
10758         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10759         build-aux variable", "syntax-check" would do nothing but succeed with
10760         the "No version control files detected..." diagnostic (unless you
10761         happened to override _build-aux via cfg.mk).
10762         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10763         to precede inclusion of maint.mk.  Otherwise, these variables would
10764         be used undefined in any project that does not override the default.
10765
10766 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10767
10768         gitlog-to-changelog: treat a message with only blank lines as empty.
10769         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10770         trailing blank lines before the code that issues a warning about an
10771         empty commit message.
10772
10773 2011-10-30  Jim Meyering  <meyering@redhat.com>
10774
10775         test-parse-datetime.c: avoid new DST-related false positive test failure
10776         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10777         based on the time/date we'll convert, not the current time.
10778         Otherwise, the moment we cross a DST boundary like today's in
10779         Europe, (CEST to CET), that offset ends up being one hour off.
10780
10781 2011-10-27  Bruno Haible  <bruno@clisp.org>
10782
10783         fstat: Tweak documentation.
10784         * modules/fstat (Description): More precise description.
10785
10786 2011-10-27  Bruno Haible  <bruno@clisp.org>
10787
10788         Update documentation regarding 'largefile' module.
10789         * doc/posix-functions/fstat.texi: Tweak wording.
10790         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10791         problems with huge directories and/or small ino_t types.
10792         * doc/posix-functions/readdir.texi: Likewise.
10793         * doc/posix-functions/rewinddir.texi: Likewise.
10794
10795 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10796
10797         maint.mk: don't maintain a second build-aux variable.
10798         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10799         depends on GNUmakefile, which already maintains a cfg.mk
10800         overridable $(_build-aux) for projects with a non-standard
10801         build-aux directory location, although without the $(srcdir)
10802         prefix.  Use that variable consistently instead of introducing a
10803         second one.  Adjust all call sites.
10804
10805 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10806
10807         Add stdalign module and use it in other modules.
10808         This is based on a previous proposal by Bruno Haible
10809         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10810
10811         stdalign: new module
10812         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10813         * modules/stdalign: New files.
10814         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10815         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10816
10817         stdalign-tests: new module
10818         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10819
10820         argp: use stdalign
10821         * lib/argp-parse.c: Include <stdalign.h>.
10822         (alignof): Remove.
10823         * modules/argp (Depends-on): Add stdalign.
10824
10825         crypto libraries: use stdalign
10826         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10827         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10828         Do not include <stdlib.h> twice, in md4.c.
10829         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10830         because we are accessing a pointer's bit-pattern, not a size.
10831         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10832         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10833         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10834         * modules/crypto/sha512: Likewise.
10835
10836         sys_socket: use stdalign, not alignof
10837         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10838         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10839
10840 2011-10-27  Bruno Haible  <bruno@clisp.org>
10841
10842         raise test: Avoid a test failure on Linux/MIPS.
10843         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10844         because 99 is a valid signal on Linux/MIPS.
10845
10846 2011-10-27  Bruno Haible  <bruno@clisp.org>
10847
10848         nonblocking tests: Fix test failure on Linux/MIPS.
10849         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10850         Set to 270000.
10851
10852 2011-10-27  Bruno Haible  <bruno@clisp.org>
10853
10854         utimensat: Work around problem on Linux/hppa.
10855         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10856         values.
10857         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10858
10859 2011-10-25  Jim Meyering  <meyering@redhat.com>
10860
10861         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10862         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10863         after symbols like NULL, size_t, etc.
10864         Reported by Alfred M. Szmidt.
10865
10866         maint.mk: exempt ENODATA from a syntax-check rule
10867         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10868         from the sc_prohibit_always-defined_macros syntax-check rule.
10869         Add a comment.  See this for more details:
10870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10871
10872 2011-10-23  Jim Meyering  <meyering@redhat.com>
10873
10874         fts: close parent dir FD before returning from post-traversal fts_read
10875         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10876         unlink A, even though an FD open on A remained.  This is suboptimal
10877         (holding a file descriptor open longer than needed), but otherwise not
10878         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10879         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10880         that represents a real problem: it causes the removal of A to fail
10881         with e.g., "rm: cannot remove `A': Device or resource busy"
10882
10883         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10884         directory file descriptors.  After completing the final, FTS_DP,
10885         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10886         cache, but then proceeded to add a new FD to it via the subsequent
10887         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10888         final file descriptor would be closed only via fts_close's call to
10889         fd_ring_clear.  Now, it is usually closed earlier, via the final
10890         FTS_DP-returning fts_read call.
10891         * lib/fts.c (restore_initial_cwd): New function, converted from
10892         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10893         Update callers.
10894         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10895         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10896
10897 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10898             Bruno Haible  <bruno@clisp.org>
10899             Jim Meyering  <jim@meyering.net>
10900
10901         readme-release: improve safety of release prep instructions.
10902         * README-release: Don't git pull all branches when only master
10903         is needed for the release process.
10904         Run make maintainer-clean before changing trees and merging.
10905         Don't try to run ./configure right after git pull in case files
10906         that influence the bootstrap process have changed, move the
10907         ./configure step to after running ./bootstrap.
10908         Don't bootstrap "one last time"... it's the first time!
10909
10910 2011-10-22  Bruno Haible  <bruno@clisp.org>
10911
10912         errno, strerror-override: Support for MSVC 10.
10913         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10914         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10915         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10916         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10917         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10918         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10919         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10920         Assign values compatible with MSVC 10.
10921         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10922         New macros.
10923         (GNULIB_defined_EWINSOCK): New macro.
10924         * lib/strerror-override.c (strerror_override): Update accordingly.
10925         * lib/strerror-override.h: Likewise.
10926         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10927         longer equal to the corresponding errno value.
10928         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10929
10930 2011-10-22  Bruno Haible  <bruno@clisp.org>
10931
10932         perror: Recognize when test program crashes.
10933         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10934         strerror, set gl_cv_func_perror_works to no.
10935         Reported by Daniel Richard G. <skunk@iskunk.org>.
10936
10937         perror: Fix indentation.
10938         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10939
10940 2011-10-22  Bruno Haible  <bruno@clisp.org>
10941
10942         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10943         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10944         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10945         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10946         functions, not as a macro.
10947         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10948         macros.
10949         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10950         absence of macro.
10951         Suggested by Eric Blake.
10952         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10953
10954 2011-10-21  Bruno Haible  <bruno@clisp.org>
10955
10956         relocatable-prog-wrapper: Don't leave object files behind.
10957         * build-aux/install-reloc: Re-synchronize list of .o files to be
10958         removed with list of compilation units.
10959
10960 2011-10-20  Bruno Haible  <bruno@clisp.org>
10961
10962         openpty, posix_openpt: Remove code duplication.
10963         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10964         * lib/openpty.c: Include <stdlib.h>.
10965         (openpty): Use posix_openpt on all platforms except IRIX.
10966         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10967
10968 2011-10-20  Bruno Haible  <bruno@clisp.org>
10969
10970         unlockpt: Detect invalid argument.
10971         * lib/unlockpt.c: Include <fcntl.h>.
10972         (unlockpt): Check whether fd is valid, using fcntl().
10973         * modules/unlockpt (Depends-on): Add fcntl-h.
10974
10975 2011-10-20  Bruno Haible  <bruno@clisp.org>
10976
10977         openpty: Avoid compilation error on AIX 6.1.
10978         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10979
10980 2011-10-20  Bruno Haible  <bruno@clisp.org>
10981
10982         posix_openpt: Support for OpenBSD.
10983         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10984         (posix_openpt) [OpenBSD]: New code.
10985         * lib/grantpt.c: Include <fcntl.h>.
10986         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10987         * modules/grantpt (Depends-on): Add fcntl-h.
10988
10989 2011-10-20  Bruno Haible  <bruno@clisp.org>
10990
10991         posix_openpt test: Coding style.
10992         * tests/test-posix_openpt.c: Use GNU coding style.
10993
10994 2011-10-20  Bruno Haible  <bruno@clisp.org>
10995
10996         grantpt: Support --avoid=pt_chown.
10997         * modules/grantpt (Files): Add lib/pty-private.h.
10998
10999 2011-10-20  Bruno Haible  <bruno@clisp.org>
11000
11001         posix_openpt: Fix autoconf macro.
11002         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11003         unneeded check for _getpty.
11004
11005 2011-10-20  Bruno Haible  <bruno@clisp.org>
11006
11007         openpty: Update comments.
11008         * lib/openpty.c: Add comments about Minix.
11009
11010 2011-10-19  Eric Blake  <eblake@redhat.com>
11011
11012         openpty: relax license
11013         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11014
11015         pt_chown: use configmake to simplify build
11016         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11017
11018         ptsname and others: relax license
11019         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11020         * modules/unlockpt (License): Likewise.
11021         * modules/pt_chown (License): Likewise.
11022         * modules/ptsname (License): Likewise.
11023         * modules/ttyname_r (License): Likewise.
11024
11025 2011-10-19  Jim Meyering  <meyering@redhat.com>
11026
11027         posix_openpt: remove spurious #endif
11028         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11029
11030 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11031
11032         maint.mk: Respect $(build_aux) in web-manual rule.
11033         * top/maint.mk (web-manual): Find gen-announce script in user's
11034         $(build_aux) directory instead of hard-coding 'build-aux'.
11035
11036 2011-10-19  Bruno Haible  <bruno@clisp.org>
11037
11038         posix_openpt: Fix compilation error.
11039         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11040         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11041         Mention the openpty module as an alternative.
11042
11043 2011-10-19  Bruno Haible  <bruno@clisp.org>
11044
11045         Support for old NeXTstep 3.3 frexp().
11046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11047         execution time of the test to 5 seconds.
11048         Reported by Daniel Richard G. <skunk@iskunk.org>.
11049
11050 2011-10-19  Bruno Haible  <bruno@clisp.org>
11051
11052         Support for old NeXTstep 3.3 sed.
11053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11054         part, use /.../, not \|...|. Escape periods in the header file name.
11055         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11056         Reported by Daniel Richard G. <skunk@iskunk.org>.
11057
11058 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11059
11060         Support for old NeXTstep 3.3 gcc.
11061         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11062         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11063         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11064         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11065         * lib/regex.h (_Restrict_arr_): Likewise.
11066         * lib/regex_internal.h (re_token_t): Likewise.
11067         * lib/regexec.c (check_node_accept_bytes): Likewise.
11068         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11069
11070 2011-10-18  Eric Blake  <eblake@redhat.com>
11071
11072         posix_openpt: new module
11073         * modules/posix_openpt: New module.
11074         * m4/posix_openpt.m4: New file.
11075         * lib/posix_openpt.c: Likewise.
11076         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11077         (gl_STDLIB_H_DEFAULTS): Set defaults.
11078         * modules/stdlib (Makefile.am): Substitute macros.
11079         * lib/stdlib.in.h (posix_openpt): Declare.
11080         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11081         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11082         * modules/posix_openpt-tests: New test module.
11083         * tests/test-posix_openpt.c: New test.
11084
11085 2011-10-15  Bruno Haible  <bruno@clisp.org>
11086
11087         xstrtoll: Fix compilation failure.
11088         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11089         from lib/strtol.c.
11090         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11091         some platforms.
11092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11093
11094 2011-10-15  Bruno Haible  <bruno@clisp.org>
11095
11096         vasnprintf: Optimize bit search operation.
11097         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11099         gl_DOUBLE_EXPONENT_LOCATION.
11100         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11101         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11102         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11103         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11104         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11105         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11106         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11107         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11108         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11109
11110 2011-10-15  Bruno Haible  <bruno@clisp.org>
11111
11112         vasnprintf: Fix comments.
11113         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11114
11115 2011-10-14  Bruno Haible  <bruno@clisp.org>
11116
11117         Tests for module 'integer_length_ll'.
11118         * modules/integer_length_ll-tests: New file.
11119         * tests/test-integer_length_ll.c: New file.
11120
11121         New module 'integer_length_ll'.
11122         * lib/integer_length_ll.c: New file.
11123         * modules/integer_length_ll: New file.
11124
11125 2011-10-14  Bruno Haible  <bruno@clisp.org>
11126
11127         Tests for module 'integer_length_l'.
11128         * modules/integer_length_l-tests: New file.
11129         * tests/test-integer_length_l.c: New file.
11130
11131         New module 'integer_length_l'.
11132         * lib/integer_length_l.c: New file.
11133         * modules/integer_length_l: New file.
11134
11135 2011-10-14  Bruno Haible  <bruno@clisp.org>
11136
11137         Tests for module 'integer_length'.
11138         * modules/integer_length-tests: New file.
11139         * tests/test-integer_length.c: New file.
11140
11141         New module 'integer_length'.
11142         * lib/integer_length.h: New file.
11143         * lib/integer_length.c: New file.
11144         * modules/integer_length: New file.
11145
11146 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11147
11148         popen: Fix dependency conditions.
11149         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11150
11151 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11152
11153         perror: Fix autoconf test.
11154         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11155         <stdlib.h> and <string.h>.
11156
11157 2011-10-14  Bruno Haible  <bruno@clisp.org>
11158
11159         ffsl: Optimize on 64-bit platforms.
11160         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11161         unrolling.
11162
11163 2011-10-13  Bruno Haible  <bruno@clisp.org>
11164
11165         ffsl: Optimize on 32-bit platforms.
11166         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11167         use ffs() without a loop.
11168
11169         ffsl, ffsll: Optimize for GCC.
11170         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11171         * lib/ffsl.c (GCC_BUILTIN): New macro.
11172         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11173
11174 2011-10-13  Bruno Haible  <bruno@clisp.org>
11175
11176         ffs, bcopy, memset: Support symbol renaming via config.h.
11177         * lib/ffs.c: Include <config.h>.
11178         * lib/bcopy.c: Likewise.
11179         * lib/memset.c: Likewise.
11180
11181 2011-10-10  Bruno Haible  <bruno@clisp.org>
11182
11183         atanl: Simplify for platforms where 'long double' == 'double'.
11184         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11185         alternative implementation.
11186         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11187         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11188         * modules/atanl (Depends-on): Add atan. Update conditions.
11189
11190 2011-10-10  Bruno Haible  <bruno@clisp.org>
11191
11192         acosl: Simplify for platforms where 'long double' == 'double'.
11193         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11194         alternative implementation.
11195         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11196         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11197         * modules/acosl (Depends-on): Add acos. Update conditions.
11198
11199 2011-10-10  Bruno Haible  <bruno@clisp.org>
11200
11201         asinl: Simplify for platforms where 'long double' == 'double'.
11202         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11203         alternative implementation.
11204         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11205         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11206         * modules/asinl (Depends-on): Add asin. Update conditions.
11207
11208 2011-10-10  Bruno Haible  <bruno@clisp.org>
11209
11210         tanl: Simplify for platforms where 'long double' == 'double'.
11211         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11212         implementation.
11213         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11214         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11215         * modules/tanl (Depends-on): Add tan. Update conditions.
11216         (configure.ac): Don't compile trigl.c if
11217         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11218
11219 2011-10-10  Bruno Haible  <bruno@clisp.org>
11220
11221         cosl: Simplify for platforms where 'long double' == 'double'.
11222         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11223         implementation.
11224         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11225         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11226         * modules/cosl (Depends-on): Add cos. Update conditions.
11227         (configure.ac): Don't compile sincosl.c and trigl.c if
11228         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11229
11230 2011-10-10  Bruno Haible  <bruno@clisp.org>
11231
11232         sinl: Simplify for platforms where 'long double' == 'double'.
11233         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11234         implementation.
11235         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11236         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11237         * modules/sinl (Depends-on): Add sin. Update conditions.
11238         (configure.ac): Don't compile sincosl.c and trigl.c if
11239         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11240
11241 2011-10-10  Bruno Haible  <bruno@clisp.org>
11242
11243         logl: Simplify for platforms where 'long double' == 'double'.
11244         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11245         implementation.
11246         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11247         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11248         * modules/logl (Depends-on): Add log. Update conditions.
11249
11250 2011-10-10  Bruno Haible  <bruno@clisp.org>
11251
11252         expl: Simplify for platforms where 'long double' == 'double'.
11253         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11254         implementation.
11255         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11256         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11257         * modules/expl (Depends-on): Add exp. Update conditions.
11258
11259 2011-10-10  Bruno Haible  <bruno@clisp.org>
11260
11261         sqrtl: Simplify for platforms where 'long double' == 'double'.
11262         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11263         alternative implementation.
11264         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11265         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11266         * modules/sqrtl (Depends-on): Update conditions.
11267
11268 2011-10-10  Bruno Haible  <bruno@clisp.org>
11269
11270         ldexpl: Simplify for platforms where 'long double' == 'double'.
11271         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11272         alternative implementation.
11273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11274         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11275         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11276
11277 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11278
11279         ffsll: set correct witness
11280         * modules/ffsll (configure.ac): Fix typo.
11281
11282 2011-10-10  Bruno Haible  <bruno@clisp.org>
11283
11284         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11285         * lib/printf-frexpl.c: Include <config.h>.
11286         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11287         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11288         second time.
11289         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11290         gl_LONG_DOUBLE_VS_DOUBLE.
11291         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11292         conditions.
11293
11294 2011-10-10  Bruno Haible  <bruno@clisp.org>
11295
11296         frexpl: Simplify for platforms where 'long double' == 'double'.
11297         * lib/frexpl.c: Include <config.h>.
11298         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11299         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11300         time.
11301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11302         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11303         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11304         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11305         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11306         conditions.
11307
11308 2011-10-10  Jim Meyering  <meyering@redhat.com>
11309
11310         test-renameat: don't leave behind a temporary file
11311         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11312           ERROR: files left in build directory after distclean:
11313           ./gltests/test-renameat.too
11314           make[1]: *** [distcleancheck] Error 1
11315         Reported by Tom G. Christensen.
11316
11317 2011-10-09  Bruno Haible  <bruno@clisp.org>
11318
11319         rint: Determine RINT_LIBM correctly on AIX 7.
11320         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11321         directly, not only through a function pointer. Also accept an optional
11322         4th argument with extra code.
11323         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11324         rintf() call by gcc when optimizing.
11325
11326         mathfunc.m4: Refactor.
11327         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11328         m4 variable.
11329
11330 2011-10-09  Bruno Haible  <bruno@clisp.org>
11331
11332         rintl: Simplify for platforms where 'long double' == 'double'.
11333         * lib/rintl.c: Include <config.h>.
11334         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11335         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11336         time.
11337         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11338         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11339         * modules/rintl (Depends-on): Add rint. Update conditions.
11340
11341 2011-10-09  Bruno Haible  <bruno@clisp.org>
11342
11343         roundl: Simplify for platforms where 'long double' == 'double'.
11344         * lib/roundl.c: Include <config.h>.
11345         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11346         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11347         time.
11348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11349         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11350         * modules/roundl (Depends-on): Add round. Update conditions.
11351
11352 2011-10-09  Bruno Haible  <bruno@clisp.org>
11353
11354         truncl: Simplify for platforms where 'long double' == 'double'.
11355         * lib/truncl.c: Include <config.h>.
11356         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11357         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11358         time.
11359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11360         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11361         * modules/truncl (Depends-on): Add trunc. Update conditions.
11362
11363 2011-10-09  Bruno Haible  <bruno@clisp.org>
11364
11365         ceill: Simplify for platforms where 'long double' == 'double'.
11366         * lib/ceill.c: Include <config.h>.
11367         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11368         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11369         time.
11370         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11371         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11372         * modules/ceill (Depends-on): Add ceil. Update conditions.
11373
11374 2011-10-09  Bruno Haible  <bruno@clisp.org>
11375
11376         floorl: Simplify for platforms where 'long double' == 'double'.
11377         * lib/floorl.c: Include <config.h>.
11378         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11379         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11380         time.
11381         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11382         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11383         * modules/floorl (Depends-on): Add floor. Update conditions.
11384
11385 2011-10-09  Bruno Haible  <bruno@clisp.org>
11386
11387         rint: Fix ordering constraints.
11388         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11389         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11390         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11391
11392 2011-10-09  Bruno Haible  <bruno@clisp.org>
11393
11394         copysignl: Simplify for platforms where 'long double' == 'double'.
11395         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11396         alternative.
11397         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11398         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11399         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11400
11401 2011-10-09  Bruno Haible  <bruno@clisp.org>
11402
11403         Tests for module 'rintl'.
11404         * modules/rintl-tests: New file.
11405         * tests/test-rintl.c: New file.
11406
11407         New module 'rintl'.
11408         * lib/math.in.h (rintl): New declaration.
11409         * lib/rintl.c: New file.
11410         * m4/rintl.m4: New file.
11411         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11413         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11414         * modules/rintl: New file.
11415         * tests/test-math-c++.cc: Check the declaration of rintl.
11416         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11417         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11418         * doc/posix-functions/rintl.texi: Mention the new module.
11419
11420 2011-10-09  Bruno Haible  <bruno@clisp.org>
11421
11422         Tests for module 'rintf'.
11423         * modules/rintf-tests: New file.
11424         * tests/test-rintf.c: New file.
11425
11426         New module 'rintf'.
11427         * lib/math.in.h (rintf): New declaration.
11428         * lib/rintf.c: New file.
11429         * m4/rintf.m4: New file.
11430         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11432         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11433         * modules/rintf: New file.
11434         * tests/test-math-c++.cc: Check the declaration of rintf.
11435         * doc/posix-functions/rintf.texi: Mention the new module.
11436
11437 2011-10-09  Bruno Haible  <bruno@clisp.org>
11438
11439         rint: Support for MSVC.
11440         * lib/math.in.h (rint): New declaration.
11441         * lib/rint.c: New file.
11442         * m4/rint.m4: New file.
11443         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11445         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11446         * modules/rint (Description): Fix.
11447         (Files): Add lib/rint.c, m4/rint.m4.
11448         (Depends-on): Add math.
11449         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11450         gl_MATH_MODULE_INDICATOR.
11451         * tests/test-math-c++.cc: Check the declaration of rint.
11452         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11453         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11454         * doc/posix-functions/rint.texi: Mention the replacement provided by
11455         the module.
11456
11457         rint tests: More tests.
11458         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11459         minus-zero.h, infinity.h, nan.h.
11460         (main): Skip the test if the current rounding mode is not standard. Add
11461         tests for negative numbers, minus zero, infinity, NaN.
11462         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11463         tests/nan.h.
11464         (Depends-on): Add isnand-nolibm.
11465
11466 2011-10-09  Bruno Haible  <bruno@clisp.org>
11467
11468         Tests for module 'copysignl'.
11469         * modules/copysignl-tests: New file.
11470         * tests/test-copysignl.c: New file.
11471
11472         New module 'copysignl'.
11473         * lib/math.in.h (copysignl): New declaration.
11474         * lib/copysignl.c: New file.
11475         * m4/copysignl.m4: New file.
11476         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11478         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11479         HAVE_COPYSIGNL.
11480         * modules/copysignl: New file.
11481         * tests/test-math-c++.cc: Check the declaration of copysignl.
11482         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11483         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11484         * doc/posix-functions/copysignl.texi: Mention the new module.
11485
11486 2011-10-09  Bruno Haible  <bruno@clisp.org>
11487
11488         Tests for module 'copysignf'.
11489         * modules/copysignf-tests: New file.
11490         * tests/test-copysignf.c: New file.
11491
11492         New module 'copysignf'.
11493         * lib/math.in.h (copysignf): New declaration.
11494         * lib/copysignf.c: New file.
11495         * m4/copysignf.m4: New file.
11496         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11498         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11499         HAVE_COPYSIGNF.
11500         * modules/copysignf: New file.
11501         * tests/test-math-c++.cc: Check the declaration of copysignf.
11502         * doc/posix-functions/copysignf.texi: Mention the new module.
11503
11504 2011-10-09  Bruno Haible  <bruno@clisp.org>
11505
11506         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11508         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11509         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11510         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11511         gl_SIGNAL_H_DEFAULTS.
11512
11513 2011-10-09  Bruno Haible  <bruno@clisp.org>
11514
11515         poll: Make macro safer.
11516         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11517         ac_cv_header_poll_h is not set.
11518
11519 2011-10-09  Bruno Haible  <bruno@clisp.org>
11520
11521         copysign: Provide replacement.
11522         * lib/math.in.h (copysign): New declaration.
11523         * lib/copysign.c: New file.
11524         * m4/copysign.m4: New file.
11525         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11527         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11528         HAVE_COPYSIGN.
11529         * modules/copysign (Description): Clarify.
11530         (Files): Add lib/copysign.c, m4/copysign.m4.
11531         (Depends-on): Add math, signbit.
11532         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11533         gl_MATH_MODULE_INDICATOR.
11534         * tests/test-math-c++.cc: Check the declaration of copysign.
11535         * doc/posix-functions/copysign.texi: Mention the effects of the module
11536         on Minix and MSVC.
11537
11538 2011-10-09  Bruno Haible  <bruno@clisp.org>
11539
11540         isinf: Ensure macro on AIX 5.1.
11541         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11542         macro.
11543         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11544
11545 2011-10-09  Bruno Haible  <bruno@clisp.org>
11546
11547         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11548         * modules/snprintf-posix-tests (configure.ac): Require
11549         gl_LONG_DOUBLE_VS_DOUBLE.
11550         * modules/sprintf-posix-tests (configure.ac): Likewise.
11551         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11552         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11553         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11554         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11555         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11556         tests on platforms where 'long double' is the same as 'double'.
11557         * tests/test-sprintf-posix.h (test_function): Likewise.
11558         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11559         * tests/test-vasprintf-posix.c (test_function): Likewise.
11560
11561         *printf: Fix for platforms where 'long double' == 'double'.
11562         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11563         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11564         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11565         * modules/fprintf-posix (Files): Likewise.
11566         * modules/obstack-printf-posix (Files): Likewise.
11567         * modules/snprintf-posix (Files): Likewise.
11568         * modules/sprintf-posix (Files): Likewise.
11569         * modules/vasnprintf (Files): Likewise.
11570         * modules/vasnprintf-posix (Files): Likewise.
11571         * modules/vasprintf-posix (Files): Likewise.
11572         * modules/vdprintf-posix (Files): Likewise.
11573         * modules/vfprintf-posix (Files): Likewise.
11574         * modules/vsnprintf-posix (Files): Likewise.
11575         * modules/vsprintf-posix (Files): Likewise.
11576         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11577         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11578         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11579         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11580         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11581         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11582         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11583
11584         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11585         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11586         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11587         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11588         'long double'.
11589         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11590
11591         isinf: Fix for platforms where 'long double' == 'double'.
11592         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11593         Don't blindly assume 80-bit 'long double'.
11594
11595         isfinite: Fix for platforms where 'long double' == 'double'.
11596         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11597         Don't blindly assume 80-bit 'long double'.
11598
11599         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11600         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11601         * modules/isfinite-tests (configure.ac): Require
11602         gl_LONG_DOUBLE_VS_DOUBLE.
11603         * modules/isinf-tests (configure.ac): Likewise.
11604         * modules/isnan-tests (configure.ac): Likewise.
11605         * modules/isnanl-tests (configure.ac): Likewise.
11606         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11607         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11608         tests on platforms where 'long double' is the same as 'double'.
11609         * tests/test-isinf.c (test_isinfl): Likewise.
11610         * tests/test-isnan.c (test_long_double): Likewise.
11611         * tests/test-isnanl.h (main): Likewise.
11612
11613 2011-10-08  Bruno Haible  <bruno@clisp.org>
11614
11615         Tests for module 'tanhf'.
11616         * modules/tanhf-tests: New file.
11617         * tests/test-tanhf.c: New file.
11618
11619         New module 'tanhf'.
11620         * lib/math.in.h (tanhf): New declaration.
11621         * lib/tanhf.c: New file.
11622         * m4/tanhf.m4: New file.
11623         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11625         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11626         * modules/tanhf: New file.
11627         * tests/test-math-c++.cc: Check the declaration of tanhf.
11628         * doc/posix-functions/tanhf.texi: Mention the new module.
11629
11630         tanh: Use a .m4 file.
11631         * m4/tanh.m4: New file.
11632         * modules/tanh (Files): Add it.
11633         (configure.ac): Just invoke gl_FUNC_TANH.
11634
11635 2011-10-08  Bruno Haible  <bruno@clisp.org>
11636
11637         Tests for module 'coshf'.
11638         * modules/coshf-tests: New file.
11639         * tests/test-coshf.c: New file.
11640
11641         New module 'coshf'.
11642         * lib/math.in.h (coshf): New declaration.
11643         * lib/coshf.c: New file.
11644         * m4/coshf.m4: New file.
11645         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11647         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11648         * modules/coshf: New file.
11649         * tests/test-math-c++.cc: Check the declaration of coshf.
11650         * doc/posix-functions/coshf.texi: Mention the new module.
11651
11652         cosh: Use a .m4 file.
11653         * m4/cosh.m4: New file.
11654         * modules/cosh (Files): Add it.
11655         (configure.ac): Just invoke gl_FUNC_COSH.
11656
11657 2011-10-08  Bruno Haible  <bruno@clisp.org>
11658
11659         Tests for module 'sinhf'.
11660         * modules/sinhf-tests: New file.
11661         * tests/test-sinhf.c: New file.
11662
11663         New module 'sinhf'.
11664         * lib/math.in.h (sinhf): New declaration.
11665         * lib/sinhf.c: New file.
11666         * m4/sinhf.m4: New file.
11667         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11669         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11670         * modules/sinhf: New file.
11671         * tests/test-math-c++.cc: Check the declaration of sinhf.
11672         * doc/posix-functions/sinhf.texi: Mention the new module.
11673
11674         sinh: Use a .m4 file.
11675         * m4/sinh.m4: New file.
11676         * modules/sinh (Files): Add it.
11677         (configure.ac): Just invoke gl_FUNC_SINH.
11678
11679 2011-10-08  Bruno Haible  <bruno@clisp.org>
11680
11681         Tests for module 'atan2f'.
11682         * modules/atan2f-tests: New file.
11683         * tests/test-atan2f.c: New file.
11684
11685         New module 'atan2f'.
11686         * lib/math.in.h (atan2f): New declaration.
11687         * lib/atan2f.c: New file.
11688         * m4/atan2f.m4: New file.
11689         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11691         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11692         * modules/atan2f: New file.
11693         * tests/test-math-c++.cc: Check the declaration of atan2f.
11694         * doc/posix-functions/atan2f.texi: Mention the new module.
11695
11696         atan2: Use a .m4 file.
11697         * m4/atan2.m4: New file.
11698         * modules/atan2 (Files): Add it.
11699         (configure.ac): Just invoke gl_FUNC_ATAN2.
11700
11701 2011-10-08  Bruno Haible  <bruno@clisp.org>
11702
11703         Tests for module 'atanf'.
11704         * modules/atanf-tests: New file.
11705         * tests/test-atanf.c: New file.
11706
11707         New module 'atanf'.
11708         * lib/math.in.h (atanf): New declaration.
11709         * lib/atanf.c: New file.
11710         * m4/atanf.m4: New file.
11711         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11713         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11714         * modules/atanf: New file.
11715         * tests/test-math-c++.cc: Check the declaration of atanf.
11716         * doc/posix-functions/atanf.texi: Mention the new module.
11717
11718         atan: Use a .m4 file.
11719         * m4/atan.m4: New file.
11720         * modules/atan (Files): Add it.
11721         (configure.ac): Just invoke gl_FUNC_ATAN.
11722
11723 2011-10-08  Bruno Haible  <bruno@clisp.org>
11724
11725         Tests for module 'acosf'.
11726         * modules/acosf-tests: New file.
11727         * tests/test-acosf.c: New file.
11728
11729         New module 'acosf'.
11730         * lib/math.in.h (acosf): New declaration.
11731         * lib/acosf.c: New file.
11732         * m4/acosf.m4: New file.
11733         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11735         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11736         * modules/acosf: New file.
11737         * tests/test-math-c++.cc: Check the declaration of acosf.
11738         * doc/posix-functions/acosf.texi: Mention the new module.
11739
11740         acos: Use a .m4 file.
11741         * m4/acos.m4: New file.
11742         * modules/acos (Files): Add it.
11743         (configure.ac): Just invoke gl_FUNC_ACOS.
11744
11745 2011-10-08  Bruno Haible  <bruno@clisp.org>
11746
11747         Tests for module 'asinf'.
11748         * modules/asinf-tests: New file.
11749         * tests/test-asinf.c: New file.
11750
11751         New module 'asinf'.
11752         * lib/math.in.h (asinf): New declaration.
11753         * lib/asinf.c: New file.
11754         * m4/asinf.m4: New file.
11755         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11757         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11758         * modules/asinf: New file.
11759         * tests/test-math-c++.cc: Check the declaration of asinf.
11760         * doc/posix-functions/asinf.texi: Mention the new module.
11761
11762         asin: Use a .m4 file.
11763         * m4/asin.m4: New file.
11764         * modules/asin (Files): Add it.
11765         (configure.ac): Just invoke gl_FUNC_ASIN.
11766
11767 2011-10-08  Bruno Haible  <bruno@clisp.org>
11768
11769         Tests for module 'tanf'.
11770         * modules/tanf-tests: New file.
11771         * tests/test-tanf.c: New file.
11772
11773         New module 'tanf'.
11774         * lib/math.in.h (tanf): New declaration.
11775         * lib/tanf.c: New file.
11776         * m4/tanf.m4: New file.
11777         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11779         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11780         * modules/tanf: New file.
11781         * tests/test-math-c++.cc: Check the declaration of tanf.
11782         * doc/posix-functions/tanf.texi: Mention the new module.
11783
11784         tan: Use a .m4 file.
11785         * m4/tan.m4: New file.
11786         * modules/tan (Files): Add it.
11787         (configure.ac): Just invoke gl_FUNC_TAN.
11788
11789 2011-10-08  Bruno Haible  <bruno@clisp.org>
11790
11791         Tests for module 'cosf'.
11792         * modules/cosf-tests: New file.
11793         * tests/test-cosf.c: New file.
11794
11795         New module 'cosf'.
11796         * lib/math.in.h (cosf): New declaration.
11797         * lib/cosf.c: New file.
11798         * m4/cosf.m4: New file.
11799         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11801         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11802         * modules/cosf: New file.
11803         * tests/test-math-c++.cc: Check the declaration of cosf.
11804         * doc/posix-functions/cosf.texi: Mention the new module.
11805
11806         cos: Use a .m4 file.
11807         * m4/cos.m4: New file.
11808         * modules/cos (Files): Add it.
11809         (configure.ac): Just invoke gl_FUNC_COS.
11810
11811 2011-10-08  Bruno Haible  <bruno@clisp.org>
11812
11813         Tests for module 'sinf'.
11814         * modules/sinf-tests: New file.
11815         * tests/test-sinf.c: New file.
11816
11817         New module 'sinf'.
11818         * lib/math.in.h (sinf): New declaration.
11819         * lib/sinf.c: New file.
11820         * m4/sinf.m4: New file.
11821         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11823         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11824         * modules/sinf: New file.
11825         * tests/test-math-c++.cc: Check the declaration of sinf.
11826         * doc/posix-functions/sinf.texi: Mention the new module.
11827
11828         sin: Use a .m4 file.
11829         * m4/sin.m4: New file.
11830         * modules/sin (Files): Add it.
11831         (configure.ac): Just invoke gl_FUNC_SIN.
11832
11833 2011-10-08  Bruno Haible  <bruno@clisp.org>
11834
11835         Tests for module 'powf'.
11836         * modules/powf-tests: New file.
11837         * tests/test-powf.c: New file.
11838
11839         New module 'powf'.
11840         * lib/math.in.h (powf): New declaration.
11841         * lib/powf.c: New file.
11842         * m4/powf.m4: New file.
11843         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11845         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11846         * modules/powf: New file.
11847         * tests/test-math-c++.cc: Check the declaration of powf.
11848         * doc/posix-functions/powf.texi: Mention the new module.
11849
11850         pow: Use a .m4 file.
11851         * m4/pow.m4: New file.
11852         * modules/pow (Files): Add it.
11853         (configure.ac): Just invoke gl_FUNC_POW.
11854
11855 2011-10-08  Bruno Haible  <bruno@clisp.org>
11856
11857         Tests for module 'log10f'.
11858         * modules/log10f-tests: New file.
11859         * tests/test-log10f.c: New file.
11860
11861         New module 'log10f'.
11862         * lib/math.in.h (log10f): New declaration.
11863         * lib/log10f.c: New file.
11864         * m4/log10f.m4: New file.
11865         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11867         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11868         * modules/log10f: New file.
11869         * tests/test-math-c++.cc: Check the declaration of log10f.
11870         * doc/posix-functions/log10f.texi: Mention the new module.
11871
11872         log10: Use a .m4 file.
11873         * m4/log10.m4: New file.
11874         * modules/log10 (Files): Add it.
11875         (configure.ac): Just invoke gl_FUNC_LOG10.
11876
11877 2011-10-08  Bruno Haible  <bruno@clisp.org>
11878
11879         Tests for module 'logf'.
11880         * modules/logf-tests: New file.
11881         * tests/test-logf.c: New file.
11882
11883         New module 'logf'.
11884         * lib/math.in.h (logf): New declaration.
11885         * lib/logf.c: New file.
11886         * m4/logf.m4: New file.
11887         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11889         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11890         * modules/logf: New file.
11891         * tests/test-math-c++.cc: Check the declaration of logf.
11892         * doc/posix-functions/logf.texi: Mention the new module.
11893
11894         log: Use a .m4 file.
11895         * m4/log.m4: New file.
11896         * modules/log (Files): Add it.
11897         (configure.ac): Just invoke gl_FUNC_LOG.
11898
11899 2011-10-08  Bruno Haible  <bruno@clisp.org>
11900
11901         Tests for module 'expf'.
11902         * modules/expf-tests: New file.
11903         * tests/test-expf.c: New file.
11904
11905         New module 'expf'.
11906         * lib/math.in.h (expf): New declaration.
11907         * lib/expf.c: New file.
11908         * m4/expf.m4: New file.
11909         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11911         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11912         * modules/expf: New file.
11913         * tests/test-math-c++.cc: Check the declaration of expf.
11914         * doc/posix-functions/expf.texi: Mention the new module.
11915
11916         exp: Use a .m4 file.
11917         * m4/exp.m4: New file.
11918         * modules/exp (Files): Add it.
11919         (configure.ac): Just invoke gl_FUNC_EXP.
11920
11921 2011-10-08  Bruno Haible  <bruno@clisp.org>
11922
11923         Tests for module 'sqrtf'.
11924         * modules/sqrtf-tests: New file.
11925         * tests/test-sqrtf.c: New file.
11926
11927         New module 'sqrtf'.
11928         * lib/math.in.h (sqrtf): New declaration.
11929         * lib/sqrtf.c: New file.
11930         * m4/sqrtf.m4: New file.
11931         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11933         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11934         * modules/sqrtf: New file.
11935         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11936         * doc/posix-functions/sqrtf.texi: Mention the new module.
11937
11938 2011-10-08  Bruno Haible  <bruno@clisp.org>
11939
11940         Tests: Avoid link failures w.r.t. libintl.
11941         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11942         $(LIBINTL).
11943         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11944         $(LIBINTL).
11945         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11946         against $(LIBINTL).
11947         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11948         $(LIBINTL).
11949         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11950         $(LIBINTL).
11951         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11952
11953 2011-10-08  Bruno Haible  <bruno@clisp.org>
11954
11955         pow tests: Defeat compiler optimizations.
11956         * tests/test-pow.c (main): Assign arguments to x and y before use.
11957
11958 2011-10-08  Bruno Haible  <bruno@clisp.org>
11959
11960         gnulib-tool: Improve last commit.
11961         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11962         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11963         ignore dependencies that are not among the modules list.
11964
11965 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11966
11967         gnulib-tool: don't follow dependencies to avoided modules
11968         This fixes a bug that is related to the previous one.
11969         * gnulib-tool (func_modules_transitive_closure)
11970         (func_emit_autoconf_snippets):
11971         Check whether a dependency is acceptable before using it.
11972         (--extract-dependencies): Report an error if --avoid is also used,
11973         since this combination of options is not yet supported.
11974
11975         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11976         Problem reported by Peter Dyballa in
11977         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11978         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11979         when echoing "$condition".
11980
11981 2011-10-07  Bruno Haible  <bruno@clisp.org>
11982
11983         Fix documentation about math functions on MacOS X.
11984         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11985         MacOS X 10.5.
11986         * doc/posix-functions/fdim.texi: Likewise.
11987         * doc/posix-functions/feclearexcept.texi: Likewise.
11988         * doc/posix-functions/fegetenv.texi: Likewise.
11989         * doc/posix-functions/fegetround.texi: Likewise.
11990         * doc/posix-functions/feholdexcept.texi: Likewise.
11991         * doc/posix-functions/feraiseexcept.texi: Likewise.
11992         * doc/posix-functions/fesetenv.texi: Likewise.
11993         * doc/posix-functions/fesetround.texi: Likewise.
11994         * doc/posix-functions/fetestexcept.texi: Likewise.
11995         * doc/posix-functions/feupdateenv.texi: Likewise.
11996         * doc/posix-functions/fmax.texi: Likewise.
11997         * doc/posix-functions/fmin.texi: Likewise.
11998         * doc/posix-functions/log2.texi: Likewise.
11999         * doc/posix-functions/modff.texi: Likewise.
12000         * doc/posix-functions/nan.texi: Likewise.
12001         * doc/posix-functions/nanf.texi: Likewise.
12002         * doc/posix-functions/nextafterf.texi: Likewise.
12003         * doc/posix-functions/remquo.texi: Likewise.
12004
12005 2011-10-07  Bruno Haible  <bruno@clisp.org>
12006
12007         modff: Drop assumption about library that defines modff.
12008         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12009         AC_CHECK_FUNCS.
12010         * modules/modff (Files): Add m4/mathfunc.m4.
12011
12012 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12013
12014         raise tests: Avoid a GCC warning.
12015         * tests/test-raise.c (handler): Use _Noreturn.
12016
12017 2011-10-07  Bruno Haible  <bruno@clisp.org>
12018
12019         Tests for module 'ldexpf'.
12020         * modules/ldexpf-tests: New file.
12021         * tests/test-ldexpf.c: New file.
12022
12023         New module 'ldexpf'.
12024         * lib/math.in.h (ldexpf): New declaration.
12025         * lib/ldexpf.c: New file.
12026         * m4/ldexpf.m4: New file.
12027         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12029         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12030         * modules/ldexpf: New file.
12031         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12032         * doc/posix-functions/ldexpf.texi: Mention the new module.
12033
12034 2011-10-06  Bruno Haible  <bruno@clisp.org>
12035
12036         frexpf: Work around problems on IRIX and mingw.
12037         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12039         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12040         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12041         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12042         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12043         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12044
12045 2011-10-06  Bruno Haible  <bruno@clisp.org>
12046
12047         fabsf: Drop assumption about library that defines fabsf.
12048         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12049         AC_CHECK_FUNCS.
12050         * modules/fabsf (Files): Add m4/mathfunc.m4.
12051
12052 2011-10-06  Bruno Haible  <bruno@clisp.org>
12053
12054         frexpf: Drop assumption about library that defines frexpf.
12055         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12056         'int *', 'float *', 'long double *', 'float', 'long double'.
12057         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12058         AC_CHECK_FUNCS.
12059         * modules/frexpf (Files): Add m4/mathfunc.m4.
12060
12061         Tests for module 'frexpf'.
12062         * modules/frexpf-tests: New file.
12063         * tests/test-frexpf.c: New file.
12064
12065         New module 'frexpf'.
12066         * lib/math.in.h (frexpf): New declaration.
12067         * lib/frexpf.c: New file.
12068         * m4/frexpf.m4: New file.
12069         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12071         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12072         * modules/frexpf: New file.
12073         * tests/test-math-c++.cc: Check the declaration of frexpf.
12074         * doc/posix-functions/frexpf.texi: Mention the new module.
12075
12076 2011-10-06  Bruno Haible  <bruno@clisp.org>
12077
12078         math: Sort function declarations of math.in.h.
12079         * lib/math.in.h (frexp, logb): Move declarations.
12080
12081 2011-10-05  Bruno Haible  <bruno@clisp.org>
12082
12083         Tests for module 'modff'.
12084         * modules/modff-tests: New file.
12085         * tests/test-modff.c: New file.
12086
12087         New module 'modff'.
12088         * lib/math.in.h (modff): New declaration.
12089         * lib/modff.c: New file.
12090         * m4/modff.m4: New file.
12091         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12093         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12094         * modules/modff: New file.
12095         * tests/test-math-c++.cc: Check the declaration of modff.
12096         * doc/posix-functions/modff.texi: Mention the new module.
12097
12098         modf tests: Make test sharper.
12099         * tests/test-modf.c (main): Strengthen upper bound.
12100
12101         modf: Use a .m4 file.
12102         * m4/modf.m4: New file.
12103         * modules/modf (Files): Add it.
12104         (configure.ac): Just invoke gl_FUNC_MODF.
12105
12106 2011-10-05  Bruno Haible  <bruno@clisp.org>
12107
12108         Tests for module 'fmodf'.
12109         * modules/fmodf-tests: New file.
12110         * tests/test-fmodf.c: New file.
12111
12112         New module 'fmodf'.
12113         * lib/math.in.h (fmodf): New declaration.
12114         * lib/fmodf.c: New file.
12115         * m4/fmodf.m4: New file.
12116         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12118         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12119         * modules/fmodf: New file.
12120         * tests/test-math-c++.cc: Check the declaration of fmodf.
12121         * doc/posix-functions/fmodf.texi: Mention the new module.
12122
12123         fmod: Use a .m4 file.
12124         * m4/fmod.m4: New file.
12125         * modules/fmod (Files): Add it.
12126         (configure.ac): Just invoke gl_FUNC_FMOD.
12127
12128 2011-10-05  Bruno Haible  <bruno@clisp.org>
12129
12130         Tests for module 'fabsf'.
12131         * modules/fabsf-tests: New file.
12132         * tests/test-fabsf.c: New file.
12133
12134         New module 'fabsf'.
12135         * lib/math.in.h (fabsf): New declaration.
12136         * lib/fabsf.c: New file.
12137         * m4/fabsf.m4: New file.
12138         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12140         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12141         * modules/fabsf: New file.
12142         * tests/test-math-c++.cc: Check the declaration of fabsf.
12143         * doc/posix-functions/fabsf.texi: Mention the new module.
12144
12145         fabs: Use a .m4 file.
12146         * m4/fabs.m4: New file.
12147         * modules/fabs (Files): Add it.
12148         (configure.ac): Just invoke gl_FUNC_FABS.
12149
12150 2011-10-05  Jim Meyering  <meyering@redhat.com>
12151
12152         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12153         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12154         ls -lL regression introduced in coreutils-8.12, it does so at the
12155         cost of an additional stat call in the common case.  Besides, now
12156         that the kernel change that prompted commit 95f7c57f has been reverted
12157         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12158         we have no use for commit 95f7c57f, "file-has-acl: use
12159         acl_extended_file_nofollow if available".
12160
12161 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12162
12163         file-has-acl: revert unintended change in behavior of ls -L
12164         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12165         derived from...
12166         (file_has_acl): ...code here.  Call it.
12167         This problem was introduced with 2011-07-22 commit 95f7c57f,
12168         "file-has-acl: use acl_extended_file_nofollow if available".
12169         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12170
12171 2011-10-03  Bruno Haible  <bruno@clisp.org>
12172
12173         poll: Avoid link errors on MSVC.
12174         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12175         * modules/poll (Depends-on): Add sockets.
12176         (Link): New section.
12177         * NEWS: Mention the change.
12178         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12179         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12180         $(LIB_POLL) instead of $(LIBSOCKET).
12181
12182 2011-10-03  Bruno Haible  <bruno@clisp.org>
12183
12184         sys_select tests: Fix link error on MSVC 9.
12185         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12186         with $(LIB_SELECT) instead of $(LIBSOCKET).
12187
12188 2011-10-03  Bruno Haible  <bruno@clisp.org>
12189
12190         sys_select: Fix compilation error on mingw.
12191         * lib/sys_select.in.h: On native Windows, include <io.h>.
12192
12193 2011-10-03  Bruno Haible  <bruno@clisp.org>
12194
12195         wmemset: Support for MSVC.
12196         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12197         whether wmemset() exists.
12198
12199 2011-10-03  Bruno Haible  <bruno@clisp.org>
12200
12201         wmemmove: Support for MSVC.
12202         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12203         whether wmemmove() exists.
12204
12205 2011-10-03  Bruno Haible  <bruno@clisp.org>
12206
12207         wmemcpy: Support for MSVC.
12208         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12209         whether wmemcpy() exists.
12210
12211 2011-10-03  Bruno Haible  <bruno@clisp.org>
12212
12213         wmemcmp: Support for MSVC.
12214         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12215         whether wmemcmp() exists.
12216
12217 2011-10-03  Bruno Haible  <bruno@clisp.org>
12218
12219         wmemchr: Support for MSVC.
12220         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12221         whether wmemchr() exists.
12222
12223 2011-10-03  Bruno Haible  <bruno@clisp.org>
12224
12225         glthread/*, strsignal: Support for MSVC.
12226         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12227         including <winsock.h> on MSVC 9.
12228         * lib/glthread/lock.h: Likewise.
12229         * lib/glthread/thread.h: Likewise.
12230         * lib/glthread/tls.h: Likewise.
12231         * lib/glthread/yield.h: Likewise.
12232         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12233         if HAVE_UNISTD_H is false.
12234         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12235
12236 2011-10-03  Bruno Haible  <bruno@clisp.org>
12237
12238         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12239         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12240         Set to 100000.
12241
12242 2011-10-03  Bruno Haible  <bruno@clisp.org>
12243
12244         acl: Fix specification.
12245         * lib/file-has-acl.c (file_has_acl): Fix specification.
12246
12247 2011-10-03  Bruno Haible  <bruno@clisp.org>
12248
12249         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12250         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12251         (compute_curr_prefix, shared_library_fullname,
12252         find_shared_library_fullname, get_shared_library_fullname, relocate):
12253         Use it together with PIC && INSTALLDIR.
12254         Reported by <jojelino@gmail.com>
12255         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12256
12257 2011-10-01  Jim Meyering  <meyering@redhat.com>
12258
12259         maint.mk: adjust a release-related rule not to require use of gzip
12260         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12261         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12262         projects that build only .tar.xz files.  Also fix an erroneous test.
12263
12264         test-linkat: don't leave behind a temporary file
12265         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12266         Otherwise, coreutils' "make distcheck" would fail with this:
12267           Only in /c/cu/tests/torture/coreutils/test/\
12268             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12269           make[2]: *** [my-distcheck] Error 1
12270
12271         float, math: add omitted file
12272         * lib/itold.c: Add file, required for yesterday's float change.
12273
12274 2011-10-01  Bruno Haible  <bruno@clisp.org>
12275
12276         isinf: Fix for OpenBSD/x86.
12277         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12278         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12279         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12280
12281 2011-10-01  Bruno Haible  <bruno@clisp.org>
12282
12283         isfinite: Fix syntax error in configure test.
12284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12285
12286         isfinite: Fix typo.
12287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12288         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12289
12290 2011-10-01  Bruno Haible  <bruno@clisp.org>
12291
12292         nonblocking tests: Fix test failure on Linux/IA-64.
12293         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12294         Set to 270000.
12295
12296 2011-10-01  Bruno Haible  <bruno@clisp.org>
12297
12298         mkfifoat tests: Fix a test failure on mingw.
12299         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12300         with error ENOSYS.
12301
12302 2011-09-30  Bruno Haible  <bruno@clisp.org>
12303
12304         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12305         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12306         'long double'. Set REPLACE_ITOLD.
12307         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12308         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12309         * lib/itold.c: New file.
12310         * modules/float (Files): Add lib/itold.c.
12311         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12312         (Makefile.am): Substitute REPLACE_ITOLD.
12313         * modules/math (Depends-on): Add float.
12314         (Makefile.am): Substitute REPLACE_ITOLD.
12315         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12316         * doc/posix-headers/math.texi: Likewise.
12317         * doc/posix-functions/logl.texi: Likewise.
12318
12319 2011-09-30  Bruno Haible  <bruno@clisp.org>
12320
12321         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12322         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12323         Set to 140000.
12324
12325 2011-09-30  Bruno Haible  <bruno@clisp.org>
12326
12327         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12328         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12329         invocation, say "right after AC_PROG_CC_STDC", not "right after
12330         AC_PROG_CC".
12331         Reported by Gary V. Vaughan <gary@gnu.org>.
12332
12333 2011-09-30  Bruno Haible  <bruno@clisp.org>
12334
12335         Centralize C99 requirement.
12336         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12337         * modules/stdarg (configure.ac-early): Invoke it instead of
12338         AC_PROG_CC_STDC.
12339         Reported by Gary V. Vaughan and Paul Eggert.
12340
12341 2011-09-29  Bruno Haible  <bruno@clisp.org>
12342
12343         float: Fix LDBL_MAX value on Linux/PowerPC.
12344         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12345         on Linux/PowerPC.
12346         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12347         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12348         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12349         platform.
12350         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12351
12352 2011-09-29  Bruno Haible  <bruno@clisp.org>
12353
12354         doc: Improve doc about gl_EARLY.
12355         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12356         AC_PROG_CC_STDC invocation.
12357         Reported by Gary V. Vaughan <gary@gnu.org>.
12358
12359 2011-09-28  Bruno Haible  <bruno@clisp.org>
12360
12361         fgetc, fputc, fread, fwrite tests: Fix link error.
12362         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12363         on non-MSVC platforms.
12364         * tests/test-fputc.c (main): Likewise.
12365         * tests/test-fread.c (main): Likewise.
12366         * tests/test-fwrite.c (main): Likewise.
12367         Reported by Jim Meyering.
12368
12369 2011-09-27  Bruno Haible  <bruno@clisp.org>
12370
12371         fputc, fwrite tests: Avoid test failure on MSVC.
12372         * tests/test-fgetc.c: Include msvc-inval.h.
12373         (main): Invoke gl_msvc_inval_ensure_handler.
12374         * tests/test-fputc.c: Include msvc-inval.h.
12375         (main): Invoke gl_msvc_inval_ensure_handler.
12376         * tests/test-fread.c: Include msvc-inval.h.
12377         (main): Invoke gl_msvc_inval_ensure_handler.
12378         * tests/test-fwrite.c: Include msvc-inval.h.
12379         (main): Invoke gl_msvc_inval_ensure_handler.
12380         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12381         * modules/fputc-tests (Depends-on): Likewise.
12382         * modules/fread-tests (Depends-on): Likewise.
12383         * modules/fwrite-tests (Depends-on): Likewise.
12384
12385 2011-09-27  Bruno Haible  <bruno@clisp.org>
12386
12387         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12388         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12389         (raise): Remove older, duplicated declaration.
12390         (_gl_raise_SIGPIPE): New declaration.
12391         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12392         (rpl_raise): Remove function.
12393         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12394         a gnulib-defined SIGPIPE here.
12395         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12396         'sigprocmask' has detected missing signal-blocking and the module
12397         'sigpipe' is enabled.
12398         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12399
12400 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12401
12402         base64-tests: avoid memory leak
12403         * tests/test-base64.c (main): Plug memory leak.
12404
12405         base32: new module
12406         * modules/base32: New module.
12407         * lib/base32.c: New file.
12408         * lib/base32.h: Likewise.
12409         * m4/base32.m4: Likewise.
12410         * modules/base32-tests: New test.
12411         * tests/test-base32.c: Likewise.
12412         * MODULES.html.sh (Misc): Mention it.
12413
12414 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         gnulib: use more-standard license notice wording
12417         * gnulib-tool (func_emit_copyright_notice): When emitting a
12418         license notice into a file, use the standard wording as suggested
12419         by the current information for GNU maintainers, except say "file"
12420         rather than "program".  The new wording gives a license version
12421         number, which addresses an issue raised by Glenn Morris in
12422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12423         * m4/onceonly.m4: Use that same wording here, too.
12424
12425         dup2: minor simplification
12426         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12427         as lib/dup2.c no longer uses 'inline'.
12428
12429 2011-09-25  Bruno Haible  <bruno@clisp.org>
12430
12431         strings: Fix compilation error on MSVC.
12432         * lib/strings.in.h: Include <stddef.h> for size_t.
12433
12434 2011-09-25  Bruno Haible  <bruno@clisp.org>
12435
12436         fflush et al.: Document limitation on MSVC.
12437         * doc/posix-functions/fflush.texi: Document possible crash in handling
12438         mode other than DEFAULT_HANDLING.
12439         * doc/posix-functions/fgetc.texi: Likewise.
12440         * doc/posix-functions/fputc.texi: Likewise.
12441         * doc/posix-functions/fread.texi: Likewise.
12442         * doc/posix-functions/fwrite.texi: Likewise.
12443
12444 2011-09-25  Bruno Haible  <bruno@clisp.org>
12445
12446         msvc-inval: Allow three invalid parameter handling modes.
12447         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12448         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12449         macros.
12450         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12451         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12452         SANE_LIBRARY_HANDLING as a no-op.
12453         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12454         <stdlib.h>.
12455         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12456
12457 2011-09-25  Bruno Haible  <bruno@clisp.org>
12458
12459         msvc-inval: Make handler multithread-safe.
12460         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12461         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12462         declarations.
12463         (gl_msvc_inval_current): New declaration.
12464         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12465         Operate on the structure returned by gl_msvc_inval_current().
12466         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12467         Remove varaiables.
12468         (tls_index, tls_initialized): New variables.
12469         (not_per_thread): New variable.
12470         (gl_msvc_inval_current): New function.
12471         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12472         returned by gl_msvc_inval_current().
12473
12474 2011-09-25  Bruno Haible  <bruno@clisp.org>
12475
12476         msvc-inval: Install handler globally.
12477         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12478         !_MSC_VER.
12479         (gl_msvc_invalid_parameter_handler): Remove declaration.
12480         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12481         declarations.
12482         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12483         Install the handler globally, don't uninstall it.
12484         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12485         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12486         currently valid, call RaiseException instead.
12487         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12488         for !_MSC_VER.
12489
12490 2011-09-25  Bruno Haible  <bruno@clisp.org>
12491
12492         strerror_r-posix: Fix for MSVC 9.
12493         * lib/strerror_r.c (local_snprintf): New function.
12494         (snprintf): Define to local_snprintf, not to _snprintf.
12495
12496 2011-09-25  Bruno Haible  <bruno@clisp.org>
12497
12498         ftruncate: Support for MSVC 9.
12499         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12500         (chsize_nothrow): New function.
12501         (chsize): Redefine as a macro.
12502         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12503         * modules/ftruncate (Depends-on): Add msvc-inval.
12504
12505 2011-09-25  Bruno Haible  <bruno@clisp.org>
12506
12507         New module 'fstat'.
12508         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12509         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12510         * lib/fchdir.c (rpl_fstat): Remove function.
12511         * m4/fstat.m4: New file.
12512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12514         declared.
12515         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12516         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12517         * modules/fstat: New file.
12518         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12519         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12520         is set.
12521         * doc/posix-functions/fstat.texi: Mention the new module and the
12522         problem on MSVC.
12523         * NEWS: Mention the change.
12524         * modules/acl (Depends-on): Add fstat.
12525         * modules/chdir-safer (Depends-on): Likewise.
12526         * modules/chown (Depends-on): Likewise.
12527         * modules/copy-file (Depends-on): Likewise.
12528         * modules/fchdir (Depends-on): Likewise.
12529         * modules/fdopendir (Depends-on): Likewise.
12530         * modules/fopen (Depends-on): Likewise.
12531         * modules/fts (Depends-on): Likewise.
12532         * modules/getcwd (Depends-on): Likewise.
12533         * modules/isapipe (Depends-on): Likewise.
12534         * modules/linkat (Depends-on): Likewise.
12535         * modules/lseek (Depends-on): Likewise.
12536         * modules/mkdir-p (Depends-on): Likewise.
12537         * modules/open (Depends-on): Likewise.
12538         * modules/openat (Depends-on): Likewise.
12539         * modules/read-file (Depends-on): Likewise.
12540         * modules/renameat (Depends-on): Likewise.
12541         * modules/utimens (Depends-on): Likewise.
12542
12543 2011-09-25  Bruno Haible  <bruno@clisp.org>
12544
12545         linkat: Fix compilation on MSVC 9.
12546         * lib/linkat.c: Don't include <stdint.h>.
12547
12548 2011-09-25  Bruno Haible  <bruno@clisp.org>
12549
12550         fclose: Support for MSVC 9.
12551         * lib/fclose.c: Include msvc-inval.h.
12552         (fclose_nothrow): New function.
12553         (rpl_fclose): Use it.
12554         * modules/fclose (Depends-on): Add msvc-inval.
12555         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12556
12557 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12558
12559         dup2: minor simplifications
12560         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12561         that it's a performance win.
12562         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12563         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12564
12565 2011-09-24  Jim Meyering  <meyering@redhat.com>
12566
12567         test-futimens: avoid a warning from gcc -Wshadow
12568         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12569         to avoid a shadowing warning.
12570
12571 2011-09-24  Bruno Haible  <bruno@clisp.org>
12572
12573         fdopen: Support for MSVC 9.
12574         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12575         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12576         * lib/fdopen.c: Include msvc-inval.h.
12577         (fdopen_nothrow): New function.
12578         (rpl_fdopen): Use it.
12579         * modules/fdopen (Depends-on): Add msvc-inval.
12580         * modules/fclose-tests (Depends-on): Add fdopen.
12581         * modules/fflush-tests (Depends-on): Likewise.
12582         * modules/fgetc-tests (Depends-on): Likewise.
12583         * modules/fputc-tests (Depends-on): Likewise.
12584         * modules/fread-tests (Depends-on): Likewise.
12585         * modules/freopen-tests (Depends-on): Likewise.
12586         * modules/fseeko-tests (Depends-on): Likewise.
12587         * modules/ftello-tests (Depends-on): Likewise.
12588         * modules/fwrite-tests  (Depends-on): Likewise.
12589         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12590
12591 2011-09-24  Bruno Haible  <bruno@clisp.org>
12592
12593         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12594         * modules/fgetc-tests (Depends-on): Add unistd.
12595         * modules/fputc-tests (Depends-on): Likewise.
12596         * modules/fread-tests (Depends-on): Likewise.
12597         * modules/fwrite-tests (Depends-on): Likewise.
12598
12599 2011-09-24  Bruno Haible  <bruno@clisp.org>
12600
12601         dup: Simplify autoconf test.
12602         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12603         on gl_MSVC_INVAL's result.
12604
12605 2011-09-24  Bruno Haible  <bruno@clisp.org>
12606
12607         Tests for function fwrite().
12608         * modules/fwrite-tests: New file.
12609         * tests/test-fwrite.c: New file.
12610         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12611
12612         Tests for function fread().
12613         * modules/fread-tests: New file.
12614         * tests/test-fread.c: New file.
12615         * modules/stdio-tests (Depends-on): Add fread-tests.
12616
12617         Activate fputc tests.
12618         * modules/stdio-tests (Depends-on): Add fputc-tests.
12619
12620         Enhance fgetc, fputc tests.
12621         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12622         * tests/test-fputc.c (main): Likewise.
12623
12624 2011-09-24  Bruno Haible  <bruno@clisp.org>
12625
12626         write: Support for MSVC 9.
12627         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12628         is not 1.
12629         * lib/write.c (write_nothrow): New function.
12630         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12631         not 1. Use write_nothrow.
12632         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12633         invalid parameter handler.
12634         (gl_PREREQ_WRITE): New macro.
12635         * modules/write (Depends-on): Add msvc-inval.
12636         (configure.ac): Invoke gl_PREREQ_WRITE.
12637         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12638
12639 2011-09-24  Bruno Haible  <bruno@clisp.org>
12640
12641         read: Fix last commit.
12642         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12643
12644 2011-09-24  Bruno Haible  <bruno@clisp.org>
12645
12646         dup2: Fix last commit.
12647         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12648         (rpl_dup2): Disable fcntl workaround on native Windows.
12649
12650         sigprocmask: Make code safer.
12651         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12652         section that changes macro definitions for this compilation unit.
12653
12654 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         dup2: clarify by coalescing Windows-specific material
12657         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12658         "msvc-nothrow.h"' to the Windows-specific section, so that the
12659         Emacs source need not contain these include files.
12660         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12661         Windows-specific fixes into this function rather than just the
12662         nothrow fix, as this shortens and clarifies the code.  Always
12663         define as a function, as that's a bit cleaner than having it be
12664         sometimes a function and sometimes a macro.
12665         (rpl_dup2): Move the Windows-specific stuff out of here and into
12666         ms_windows_dup2.  Don't protect the Haiku-related fix with
12667         "#if !defined __linux__", as the same code also works around
12668         a Linux kernel bug, and it doesn't add any system calls on any
12669         platform.  Add comment about FreeBSD 6.1.
12670
12671         sigprocmask: move #include directive
12672         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12673         Windows-specific section, so that the Emacs source need not
12674         contain msvc-inval.h.
12675
12676 2011-09-23  Bruno Haible  <bruno@clisp.org>
12677
12678         read: Support for MSVC 9.
12679         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12680         is not 1.
12681         * lib/read.c (read_nothrow): New function.
12682         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12683         read_nothrow.
12684         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12685         invalid parameter handler.
12686         (gl_PREREQ_READ): New macro.
12687         * modules/read (Depends-on): Add msvc-inval.
12688         (configure.ac): Invoke gl_PREREQ_READ.
12689         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12690
12691 2011-09-23  Bruno Haible  <bruno@clisp.org>
12692
12693         close: Support for MSVC 9.
12694         * lib/close.c: Include <errno.h>, msvc-inval.h.
12695         (close_nothrow): New function.
12696         (rpl_close): Use it.
12697         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12698         invalid parameter handler.
12699         * modules/close (Depends-on): Add msvc-inval.
12700         * modules/dup2-tests (Depends-on): Add close.
12701         * modules/dup3-tests (Depends-on): Likewise.
12702         * modules/fcntl-tests (Depends-on): Likewise.
12703         * modules/spawn-pipe-tests (Depends-on): Likewise.
12704         * modules/unistd-safer-tests (Depends-on): Likewise.
12705         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12706
12707 2011-09-23  Bruno Haible  <bruno@clisp.org>
12708
12709         New module 'dup'.
12710         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12711         Allow replacement.
12712         * lib/dup.c: New file.
12713         * lib/fchdir.c (rpl_dup): Remove function.
12714         * m4/dup.m4: New file.
12715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12716         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12717         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12718         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12719         * modules/dup: New file.
12720         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12721         'dup' module is in use.
12722         * modules/fdopendir (Depends-on): Add dup.
12723         * modules/fdutimensat-tests (Depends-on): Likewise.
12724         * modules/fts (Depends-on): Likewise.
12725         * modules/futimens-tests (Depends-on): Likewise.
12726         * modules/posix_spawnp-tests (Depends-on): Likewise.
12727         * modules/unistd-safer-tests (Depends-on): Likewise.
12728         * modules/utimens-tests (Depends-on): Likewise.
12729         * doc/posix-functions/dup.texi: Mention the new module and the problem
12730         on MSVC.
12731
12732 2011-09-23  Bruno Haible  <bruno@clisp.org>
12733
12734         getdtablesize: Support for MSVC 9.
12735         * lib/getdtablesize.c: Include msvc-inval.h.
12736         (_setmaxstdio_nothrow): New function.
12737         (_setmaxstdio): Redefine it.
12738         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12739         * modules/getdtablesize (Depends-on): Add msvc-inval.
12740         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12741
12742 2011-09-23  Bruno Haible  <bruno@clisp.org>
12743
12744         signal-h: Rename from signal.
12745         * modules/signal-h: Renamed from modules/signal.
12746         * modules/pthread_sigmask (Depends-on): Update.
12747         * modules/raise (Depends-on): Likewise.
12748         * modules/sigaction (Depends-on): Likewise.
12749         * modules/sigpipe (Depends-on): Likewise.
12750         * modules/sigprocmask (Depends-on): Likewise.
12751         * modules/sys_select (Depends-on): Likewise.
12752         * modules/signal-h-tests: Renamed from modules/signal-tests.
12753         (Files, Depends-on, Makefile.am): Update.
12754         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12755         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12756         (Files, Makefile.am): Update.
12757         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12758         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12759         * modules/signal: New placeholder file.
12760         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12761         * doc/posix-headers/signal.texi: Update.
12762         * NEWS: Mention the change.
12763
12764 2011-09-23  Bruno Haible  <bruno@clisp.org>
12765
12766         sigprocmask: Avoid crashes through signal() on MSVC 9.
12767         * lib/sigprocmask.c: Include msvc-inval.h.
12768         (signal_nothrow): New function.
12769         (signal): Redefine it.
12770         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12771         * modules/sigprocmask (Depends-on): Add msvc-inval.
12772         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12773
12774 2011-09-23  Bruno Haible  <bruno@clisp.org>
12775
12776         Tests for module 'raise'.
12777         * modules/raise-tests: New file.
12778         * tests/test-raise.c: New file.
12779
12780         raise: Support for MSVC.
12781         * lib/signal.in.h (raise): New declaration.
12782         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12783         for native Windows platforms.
12784         * m4/raise.m4: New file.
12785         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12786         HAVE_RAISE, REPLACE_RAISE.
12787         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12788         REPLACE_RAISE.
12789         * modules/raise (Status, Notice): Remove fields.
12790         (Files): Add m4/raise.m4.
12791         (Depends-on): Add signal, msvc-inval.
12792         (configure.ac): Use the common idioms.
12793         (Maintainer): Add me.
12794         * tests/test-signal-c++.cc: Check the signature of raise.
12795         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12796
12797 2011-09-23  Bruno Haible  <bruno@clisp.org>
12798
12799         pipe2: Fix compilation on pre-C99 compilers.
12800         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12801
12802 2011-09-23  Bruno Haible  <bruno@clisp.org>
12803
12804         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12805         * lib/msvc-nothrow.h: New file.
12806         * lib/msvc-nothrow.c: New file.
12807         * m4/msvc-nothrow.m4: New file.
12808         * modules/msvc-nothrow: New file.
12809         * lib/dup2.c: Include msvc-nothrow.h.
12810         (rpl_dup2): No need to protect _get_osfhandle call here.
12811         * lib/accept4.c: Include msvc-nothrow.h.
12812         * lib/error.c: Likewise.
12813         * lib/fcntl.c: Likewise.
12814         * lib/lseek.c: Likewise.
12815         * lib/nonblocking.c: Likewise.
12816         * lib/poll.c: Likewise.
12817         * lib/read.c: Likewise.
12818         * lib/select.c: Likewise.
12819         * lib/sockets.h: Likewise.
12820         * lib/sockets.c: Likewise.
12821         * lib/stdio-read.c: Likewise.
12822         * lib/stdio-write.c: Likewise.
12823         * lib/write.c: Likewise.
12824         * lib/w32sock.h: Likewise.
12825         * lib/w32spawn.h: Likewise.
12826         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12827         * lib/fsync.c: Likewise.
12828         * lib/isapipe.c: Likewise.
12829         * modules/dup2 (Depends-on): Add msvc-nothrow.
12830         * modules/accept4 (Depends-on): Likewise.
12831         * modules/error (Depends-on): Likewise.
12832         * modules/fcntl (Depends-on): Likewise.
12833         * modules/lseek (Depends-on): Likewise.
12834         * modules/nonblocking (Depends-on): Likewise.
12835         * modules/poll (Depends-on): Likewise.
12836         * modules/read (Depends-on): Likewise.
12837         * modules/select (Depends-on): Likewise.
12838         * modules/sockets (Depends-on): Likewise.
12839         * modules/sigpipe (Depends-on): Likewise.
12840         * modules/write (Depends-on): Likewise.
12841         * modules/accept (Depends-on): Likewise.
12842         * modules/bind (Depends-on): Likewise.
12843         * modules/connect (Depends-on): Likewise.
12844         * modules/gethostname (Depends-on): Likewise.
12845         * modules/getpeername (Depends-on): Likewise.
12846         * modules/getsockname (Depends-on): Likewise.
12847         * modules/getsockopt (Depends-on): Likewise.
12848         * modules/ioctl (Depends-on): Likewise.
12849         * modules/listen (Depends-on): Likewise.
12850         * modules/recv (Depends-on): Likewise.
12851         * modules/recvfrom (Depends-on): Likewise.
12852         * modules/send (Depends-on): Likewise.
12853         * modules/sendto (Depends-on): Likewise.
12854         * modules/setsockopt (Depends-on): Likewise.
12855         * modules/shutdown (Depends-on): Likewise.
12856         * modules/socket (Depends-on): Likewise.
12857         * modules/execute (Depends-on): Likewise.
12858         * modules/spawn-pipe (Depends-on): Likewise.
12859         * modules/flock (Depends-on): Likewise.
12860         * modules/fsync (Depends-on): Likewise.
12861         * modules/isapipe (Depends-on): Likewise.
12862         * tests/test-cloexec.c: Include msvc-nothrow.h.
12863         * tests/test-dup-safer.c: Likewise.
12864         * tests/test-dup2.c: Likewise.
12865         * tests/test-dup3.c: Likewise.
12866         * tests/test-fcntl.c: Likewise.
12867         * tests/test-pipe.c: Likewise.
12868         * tests/test-pipe2.c: Likewise.
12869         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12870         * modules/unistd-safer-tests (Depends-on): Likewise.
12871         * modules/dup2-tests (Depends-on): Likewise.
12872         * modules/dup3-tests (Depends-on): Likewise.
12873         * modules/fcntl-tests (Depends-on): Likewise.
12874         * modules/pipe-posix-tests (Depends-on): Likewise.
12875         * modules/pipe2-tests (Depends-on): Likewise.
12876
12877 2011-09-23  Bruno Haible  <bruno@clisp.org>
12878
12879         dup2: Make code more maintainable.
12880         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12881         (rpl_dup2): Use it.
12882         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12883         * modules/dup2 (configure.ac): Invoke it.
12884         Reported by Paul Eggert.
12885
12886 2011-09-23  Bruno Haible  <bruno@clisp.org>
12887
12888         msvc-inval: Fix compilation error.
12889         * lib/msvc-inval.h: Include <excpt.h>.
12890
12891 2011-09-23  Bruno Haible  <bruno@clisp.org>
12892
12893         mkdir: Tweak for MSVC 9.
12894         * lib/sys_stat.in.h: Update comments.
12895         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12896
12897         Tests for module 'chdir'.
12898         * modules/chdir-tests: New file.
12899         * tests/test-chdir.c: New file.
12900
12901         New module 'chdir'.
12902         * modules/chdir: New file.
12903         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12904         (chdir): New declaration.
12905         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12906         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12907         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12908         * tests/test-unistd-c++.cc: Check signature of chdir.
12909         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12910         * modules/chdir-long (Depends-on): Add chdir.
12911         * modules/fchdir (Depends-on): Likewise.
12912         * modules/rename (Depends-on): Likewise.
12913         * modules/savewd (Depends-on): Likewise.
12914
12915         rmdir: Support for mingw, MSVC 9.
12916         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12917         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12918
12919         getcwd: Tweak for MSVC 9.
12920         * lib/unistd.in.h: Update comments.
12921         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12922
12923 2011-09-22  Bruno Haible  <bruno@clisp.org>
12924
12925         strerror_r-posix: Avoid a link error on MSVC.
12926         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12927         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12928
12929 2011-09-22  Bruno Haible  <bruno@clisp.org>
12930
12931         select: Avoid link errors on MSVC.
12932         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12933         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12934         * modules/pselect (Link): Likewise.
12935         * NEWS: Mention the change.
12936         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12937         test-select-stdin against $(LIB_SELECT).
12938         * modules/pselect-tests (Makefile.am): Link test-pselect against
12939         $(LIB_SELECT).
12940
12941 2011-09-22  Bruno Haible  <bruno@clisp.org>
12942
12943         select: Avoid compilation error on MSVC.
12944         * lib/select.c: Don't include <stdbool.h>.
12945
12946 2011-09-21  Bruno Haible  <bruno@clisp.org>
12947
12948         Consolidate all uses of PATH_MAX in *.m4 files.
12949         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12950         macros.
12951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12952         and gl_PATHMAX_SNIPPET.
12953         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12955         * modules/chdir-long (Files): Add m4/pathmax.m4.
12956         * modules/getcwd (Files): Likewise.
12957
12958 2011-09-21  Bruno Haible  <bruno@clisp.org>
12959
12960         ftruncate: Un-deprecate, concentrate on Win32 support.
12961         * modules/ftruncate (Status, Notice): Remove sections.
12962         (Depends-on): Add largefile.
12963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12964         non-mingw platforms.
12965         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12966         include <io.h>.
12967         * modules/perror-tests (Depends-on): Add ftruncate.
12968         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12969         'ftruncate' module.
12970
12971 2011-09-21  Bruno Haible  <bruno@clisp.org>
12972
12973         Add dependencies to new dirent related modules.
12974         * modules/opendir (Depends-on): Add closedir.
12975         * modules/getcwd (Depends-on): Add opendir, closedir.
12976         * modules/dirent-safer-tests (Depends-on): Likewise.
12977         * modules/fdopendir-tests (Depends-on): Likewise.
12978         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12979         * modules/renameat-tests (Depends-on): Likewise.
12980
12981 2011-09-21  Bruno Haible  <bruno@clisp.org>
12982
12983         opendir: Avoid compilation error on mingw.
12984         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12985         * modules/opendir (Depends-on): Add unistd.
12986
12987 2011-09-21  Bruno Haible  <bruno@clisp.org>
12988
12989         ftruncate tests: Avoid a test failure on mingw.
12990         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12991
12992 2011-09-21  Bruno Haible  <bruno@clisp.org>
12993
12994         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12995         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12996         native Windows.
12997
12998 2011-09-21  Bruno Haible  <bruno@clisp.org>
12999
13000         New module 'fdopen'.
13001         * lib/stdio.in.h (fdopen): New declaration.
13002         * lib/fdopen.c: New file.
13003         * m4/fdopen.m4: New file.
13004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13005         REPLACE_FDOPEN.
13006         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13007         REPLACE_FDOPEN.
13008         * modules/fdopen: New file.
13009         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13010         * tests/test-stdio-c++.cc: Check signature of fdopen.
13011         * doc/posix-functions/fdopen.texi: Mention the new module.
13012
13013 2011-09-21  Bruno Haible  <bruno@clisp.org>
13014
13015         unlockpt tests: Avoid test failure on NetBSD 5.1.
13016         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13017         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13018
13019 2011-09-21  Bruno Haible  <bruno@clisp.org>
13020
13021         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13022         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13023         * tests/test-getlogin_r.c (main): Likewise.
13024
13025 2011-09-20  Bruno Haible  <bruno@clisp.org>
13026
13027         time tests: Don't require pid_t.
13028         * doc/posix-headers/time.texi: Revert last change.
13029         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13030         * tests/test-time.c: Comment out the check for pid_t.
13031
13032 2011-09-20  Bruno Haible  <bruno@clisp.org>
13033
13034         fsync tests: Avoid a test failure on mingw.
13035         * tests/test-fsync.c (main): Allow a failure with EIO.
13036
13037 2011-09-20  Bruno Haible  <bruno@clisp.org>
13038
13039         euidaccess: Update comments.
13040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13041
13042 2011-09-20  Bruno Haible  <bruno@clisp.org>
13043
13044         Ensure EBADF returns for socket functions on mingw.
13045         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13046         descriptor is invalid.
13047         * lib/bind.c (rpl_bind): Likewise.
13048         * lib/connect.c (rpl_connect): Likewise.
13049         * lib/getpeername.c (rpl_getpeername): Likewise.
13050         * lib/getsockname.c (rpl_getsockname): Likewise.
13051         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13052         * lib/listen.c (rpl_listen): Likewise.
13053         * lib/recv.c (rpl_recv): Likewise.
13054         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13055         * lib/send.c (rpl_send): Likewise.
13056         * lib/sendto.c (rpl_sendto): Likewise.
13057         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13058         * lib/shutdown.c (rpl_shutdown): Likewise.
13059
13060 2011-09-20  Bruno Haible  <bruno@clisp.org>
13061
13062         select tests: EBADF tests.
13063         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13064         test_bad_fd): New functions.
13065         (test_function): Invoke also test_bad_fd.
13066
13067 2011-09-20  Bruno Haible  <bruno@clisp.org>
13068
13069         Tests for module 'posix_spawn_file_actions_addopen.
13070         * modules/posix_spawn_file_actions_addopen-tests: New file.
13071         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13072
13073         Tests for module 'posix_spawn_file_actions_adddup2'.
13074         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13075         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13076
13077         Tests for module 'posix_spawn_file_actions_addclose'.
13078         * modules/posix_spawn_file_actions_addclose-tests: New file.
13079         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13080
13081 2011-09-20  Bruno Haible  <bruno@clisp.org>
13082
13083         Tests for module 'unlockpt'.
13084         * modules/unlockpt-tests: New file.
13085         * tests/test-unlockpt.c: New file.
13086         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13087
13088         Tests for module 'grantpt'.
13089         * modules/grantpt-tests: New file.
13090         * tests/test-grantpt.c: New file.
13091         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13092
13093 2011-09-20  Bruno Haible  <bruno@clisp.org>
13094
13095         freopen tests: EBADF tests.
13096         * tests/test-freopen.c: Include errno.h, unistd.h.
13097         (main): Add tests for EBADF, commented out for the moment.
13098
13099         fclose tests: EBADF tests.
13100         * tests/test-fclose.c (main): Add tests for EBADF.
13101
13102         fflush tests: EBADF tests.
13103         * tests/test-fflush.c: Include errno.h, macros.h.
13104         (main): Add tests for EBADF.
13105
13106         ftello tests: EBADF tests.
13107         * tests/test-ftello4.sh: New file.
13108         * tests/test-ftello4.c: New file.
13109         * modules/ftello-tests (Files): Add them.
13110         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13111
13112         fseeko tests: EBADF tests.
13113         * tests/test-fseeko4.sh: New file.
13114         * tests/test-fseeko4.c: New file.
13115         * modules/fseeko-tests (Files): Add them.
13116         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13117
13118         Tests for function fputc().
13119         * modules/fputc-tests: New file.
13120         * tests/test-fputc.c: New file.
13121         * modules/stdio-tests (Depends-on): Add fputc-tests.
13122
13123         Tests for function fgetc().
13124         * modules/fgetc-tests: New file.
13125         * tests/test-fgetc.c: New file.
13126         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13127
13128         Tests for function fdopen().
13129         * modules/fdopen-tests: New file.
13130         * tests/test-fdopen.c: New file.
13131         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13132
13133         Tests for module 'vdprintf'.
13134         * modules/vdprintf-tests: New file.
13135         * tests/test-vdprintf.c: New file.
13136
13137         Tests for module 'dprintf'.
13138         * modules/dprintf-tests: New file.
13139         * tests/test-dprintf.c: New file.
13140
13141 2011-09-20  Bruno Haible  <bruno@clisp.org>
13142
13143         Tests for module 'ioctl'.
13144         * modules/ioctl-tests: New file.
13145         * tests/test-ioctl.c: New file.
13146
13147 2011-09-20  Bruno Haible  <bruno@clisp.org>
13148
13149         fcntl tests: EBADF tests.
13150         * tests/test-fcntl.c (main): Add more tests for EBADF.
13151
13152 2011-09-20  Bruno Haible  <bruno@clisp.org>
13153
13154         utimensat tests: EBADF tests.
13155         * tests/test-utimensat.c (main): Add tests for EBADF.
13156
13157         renameat tests: EBADF tests.
13158         * tests/test-renameat.c (main): Add tests for EBADF.
13159
13160         mkfifoat tests: EBADF tests.
13161         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13162
13163         readlinkat tests: EBADF tests.
13164         * tests/test-readlinkat.c (main): Add tests for EBADF.
13165
13166         symlinkat tests: EBADF tests.
13167         * tests/test-symlinkat.c (main): Add tests for EBADF.
13168
13169         linkat tests: EBADF tests.
13170         * tests/test-linkat.c (main): Add tests for EBADF.
13171
13172         Tests for module 'faccessat'.
13173         * modules/faccessat-tests: New file.
13174         * tests/test-faccessat.c: New file.
13175
13176         fdopendir tests: EBADF tests.
13177         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13178
13179         openat tests: EBADF tests.
13180         * tests/test-fchownat.c (main): Add tests for EBADF.
13181         * tests/test-fstatat.c (main): Likewise.
13182         * tests/test-mkdirat.c (main): Likewise.
13183         * tests/test-openat.c (main): Likewise.
13184         * tests/test-unlinkat.c (main): Likewise.
13185         * tests/test-fchmodat.c: New file.
13186         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13187         (Makefile.am): Also run 'test-fchmodat'.
13188
13189 2011-09-20  Bruno Haible  <bruno@clisp.org>
13190
13191         utimens, futimens, fdutimensat tests: EBADF tests.
13192         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13193
13194         Tests for function fstat().
13195         * modules/fstat-tests: New file.
13196         * tests/test-fstat.c: New file.
13197         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13198
13199 2011-09-20  Bruno Haible  <bruno@clisp.org>
13200
13201         test-ttyname_r tests: EBADF tests.
13202         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13203
13204         Tests for module 'isatty'.
13205         * modules/isatty-tests: New file.
13206         * tests/test-isatty.c: New file.
13207
13208         Tests for module 'write'.
13209         * modules/write-tests: New file.
13210         * tests/test-write.c: New file.
13211
13212         Tests for module 'read'.
13213         * modules/read-tests: New file.
13214         * tests/test-read.c: New file.
13215
13216         pwrite tests: EBADF tests.
13217         * tests/test-pwrite.c (main): Add tests for EBADF.
13218
13219         pread tests: EBADF tests.
13220         * tests/test-pread.c (main): Add tests for EBADF.
13221
13222         lseek tests: EBADF tests.
13223         * tests/test-lseek.c (main): Add more tests for EBADF.
13224
13225         Tests for module 'ftruncate'.
13226         * modules/ftruncate-tests: New file.
13227         * tests/test-ftruncate.sh: New file.
13228         * tests/test-ftruncate.c: New file.
13229
13230         fsync tests: EBADF tests.
13231         * tests/test-fsync.c (main): Add more tests for EBADF.
13232
13233         fdatasync tests: EBADF tests.
13234         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13235
13236         Tests for module 'fchown'.
13237         * modules/fchown-tests: New file.
13238         * tests/test-fchown.c: New file.
13239
13240         Tests for module 'fchmod'.
13241         * modules/fchmod-tests: New file.
13242         * tests/test-fchmod.c: New file.
13243
13244         fchdir tests: EBADF tests.
13245         * tests/test-fchdir.c (main): Add more tests for EBADF.
13246
13247         dup2 tests: EBADF tests.
13248         * tests/test-dup2.c (main): Add more tests for EBADF.
13249
13250         Tests for module 'dup'.
13251         * modules/dup-tests: New file.
13252         * tests/test-dup.c: New file.
13253
13254         Tests for module 'close'.
13255         * modules/close-tests: New file.
13256         * tests/test-close.c: New file.
13257
13258 2011-09-20  Bruno Haible  <bruno@clisp.org>
13259
13260         Tests for module 'shutdown'.
13261         * modules/shutdown-tests: New file.
13262         * tests/test-shutdown.c: New file.
13263
13264         Tests for module 'setsockopt'.
13265         * modules/setsockopt-tests: New file.
13266         * tests/test-setsockopt.c: New file.
13267
13268         Tests for module 'sendto'.
13269         * modules/sendto-tests: New file.
13270         * tests/test-sendto.c: New file.
13271
13272         Tests for module 'send'.
13273         * modules/send-tests: New file.
13274         * tests/test-send.c: New file.
13275
13276         Tests for module 'recvfrom'.
13277         * modules/recvfrom-tests: New file.
13278         * tests/test-recvfrom.c: New file.
13279
13280         Tests for module 'recv'.
13281         * modules/recv-tests: New file.
13282         * tests/test-recv.c: New file.
13283
13284         Tests for module 'listen'.
13285         * modules/listen-tests: New file.
13286         * tests/test-listen.c: New file.
13287
13288         Tests for module 'getsockopt'.
13289         * modules/getsockopt-tests: New file.
13290         * tests/test-getsockopt.c: New file.
13291
13292         Tests for module 'getsockname'.
13293         * modules/getsockname-tests: New file.
13294         * tests/test-getsockname.c: New file.
13295
13296         Tests for module 'getpeername'.
13297         * modules/getpeername-tests: New file.
13298         * tests/test-getpeername.c: New file.
13299
13300         Tests for module 'connect'.
13301         * modules/connect-tests: New file.
13302         * tests/test-connect.c: New file.
13303
13304         Tests for module 'bind'.
13305         * modules/bind-tests: New file.
13306         * tests/test-bind.c: New file.
13307
13308         accept4 tests: Fix for native Windows.
13309         * tests/test-accept4.c: Include sockets.h.
13310         (main): Invoke gl_sockets_startup.
13311         * modules/accept4-tests (Depends-on): Add sockets.
13312
13313         accept tests: Fix for native Windows.
13314         * tests/test-accept.c: Include sockets.h.
13315         (main): Invoke gl_sockets_startup.
13316         * modules/accept-tests (Depends-on): Add sockets.
13317
13318 2011-09-19  Bruno Haible  <bruno@clisp.org>
13319
13320         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13321         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13322         do...while(0).
13323         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13324         Suggested by Paul Eggert.
13325
13326 2011-09-19  Bruno Haible  <bruno@clisp.org>
13327
13328         sched: Ensure pid_t is defined.
13329         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13330         not define pid_t.
13331         * lib/sched.in.h: Include <sys/types.h>.
13332         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13334
13335 2011-09-19  Bruno Haible  <bruno@clisp.org>
13336
13337         msvc-inval: Ensure the entire expansion is a single statement.
13338         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13339         of braces.
13340
13341 2011-09-19  Jim Meyering  <meyering@redhat.com>
13342
13343         tests: use printf, not echo in init.sh's warn_ function
13344         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13345         misbehave when given strings containing a backslash or starting
13346         with e.g., -n.  James Youngman suggested setting IFS.
13347
13348 2011-09-19  Eric Blake  <eblake@redhat.com>
13349
13350         futimens: enhance test
13351         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13352         closed non-negative fd.
13353
13354         date: accept 'hence' as opposite of 'ago'
13355         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13356         * tests/test-parse-datetime.c (main): Enhance test.
13357         Suggested by Jesse Wilson.
13358
13359 2011-09-19  Jim Meyering  <meyering@redhat.com>
13360
13361         getcwd: don't fail in a deep directory on a system without openat
13362         Before this change, getcwd would fail when called from a directory
13363         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13364         the non-openat implementation used "..", "../..", "../../..", etc.
13365         to access ancestor directories.  With too many, that string would
13366         be longer than PATH_MAX.
13367         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13368         using gnulib's openat replacement.
13369         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13370         we're using the replacement function.
13371
13372 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13373
13374         maint.mk: avoid warnings from perl about missing files
13375         * top/maint.mk (def_sym_regex): Ignore files listed in
13376         $(gl_other_headers_) that do not exist, say because a project
13377         does not use a corresponding module.
13378
13379 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         stat: use pathmax.h only if needed
13382         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13383         This is better for Emacs, which does not have a mingw port and
13384         therefore can avoid the pathmax module.
13385
13386         utimens: remove dependency on dup2
13387         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13388         to work around the Linux kernel bug.
13389         * modules/utimens (Depends-on): Remove dup2.
13390
13391 2011-09-18  Bruno Haible  <bruno@clisp.org>
13392
13393         inet_ntop, inet_pton: Look for it also in libresolv.
13394         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13395         libnsl, search for it in libresolv.
13396         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13397         Needed on Solaris 7.
13398
13399 2011-09-18  Bruno Haible  <bruno@clisp.org>
13400
13401         accept, accept4 tests: Avoid link error on Solaris.
13402         * modules/accept-tests (Makefile.am): Link test-accept against
13403         $(LIBSOCKET).
13404         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13405         $(LIBSOCKET).
13406
13407         accept4: Avoid link error on Solaris.
13408         * modules/accept4 (Link): New section.
13409
13410         socket functions: Avoid link errors on Solaris.
13411         * modules/accept (Depends-on): Add socketlib.
13412         (Link): New section.
13413         * modules/bind (Depends-on): Add socketlib.
13414         (Link): New section.
13415         * modules/connect (Depends-on): Add socketlib.
13416         (Link): New section.
13417         * modules/getpeername (Depends-on): Add socketlib.
13418         (Link): New section.
13419         * modules/getsockname (Depends-on): Add socketlib.
13420         (Link): New section.
13421         * modules/getsockopt (Depends-on): Add socketlib.
13422         (Link): New section.
13423         * modules/listen (Depends-on): Add socketlib.
13424         (Link): New section.
13425         * modules/recv (Depends-on): Add socketlib.
13426         (Link): New section.
13427         * modules/recvfrom (Depends-on): Add socketlib.
13428         (Link): New section.
13429         * modules/send (Depends-on): Add socketlib.
13430         (Link): New section.
13431         * modules/sendto (Depends-on): Add socketlib.
13432         (Link): New section.
13433         * modules/setsockopt (Depends-on): Add socketlib.
13434         (Link): New section.
13435         * modules/shutdown (Depends-on): Add socketlib.
13436         (Link): New section.
13437         * modules/socket (Depends-on): Add socketlib.
13438         (Link): New section.
13439
13440 2011-09-18  Bruno Haible  <bruno@clisp.org>
13441
13442         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13443         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13444         than 5 seconds.
13445         * modules/ptsname-tests (configure.ac): Test for alarm.
13446
13447 2011-09-18  Bruno Haible  <bruno@clisp.org>
13448
13449         posix_spawn_file_actions_add*: Fix module dependencies.
13450         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13451         posix_spawn_file_actions_init.
13452         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13453         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13454
13455 2011-09-18  Bruno Haible  <bruno@clisp.org>
13456
13457         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13458         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13459         * tests/test-renameat.c (main): Likewise.
13460
13461 2011-09-18  Bruno Haible  <bruno@clisp.org>
13462
13463         Tests for module 'accept4'.
13464         * modules/accept4-tests: New file.
13465         * tests/test-accept4.c: New file.
13466
13467 2011-09-18  Bruno Haible  <bruno@clisp.org>
13468
13469         Tests for module 'accept'.
13470         * modules/accept-tests: New file.
13471         * tests/test-accept.c: New file.
13472
13473 2011-09-18  Bruno Haible  <bruno@clisp.org>
13474
13475         dup2: Support for MSVC.
13476         * lib/dup2.c: Include msvc-inval.h.
13477         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13478         _get_osfhandle calls.
13479         * modules/dup2 (Depends-on): Add msvc-inval.
13480         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13481
13482         New module 'msvc-inval'.
13483         * lib/msvc-inval.h: New file.
13484         * lib/msvc-inval.c: New file.
13485         * m4/msvc-inval.m4: New file.
13486         * modules/msvc-inval: New file.
13487
13488 2011-09-17  Bruno Haible  <bruno@clisp.org>
13489
13490         Tests for module 'pclose'.
13491         * modules/pclose-tests: New file.
13492
13493         New module 'pclose'.
13494         * lib/stdio.in.h (pclose): New declaration.
13495         * lib/pclose.c: New file.
13496         * m4/pclose.m4: New file.
13497         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13498         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13499         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13500         * modules/pclose: New file.
13501         * modules/popen-tests (Depends-on): Add pclose.
13502         * modules/popen-safer-tests (Depends-on): Likewise.
13503         * doc/posix-functions/pclose.texi: Mention the new module.
13504
13505 2011-09-17  Bruno Haible  <bruno@clisp.org>
13506
13507         popen: Support for MSVC.
13508         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13509         * lib/popen.c (popen): Provide alternate definition for native Windows.
13510         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13512         * modules/popen (Depends-on, configure.ac): Update condition.
13513         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13514         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13515         fixed.
13516
13517 2011-09-17  Bruno Haible  <bruno@clisp.org>
13518
13519         isnanl, isnand, isnanf: Work around MSVC bug.
13520         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13521
13522 2011-09-17  Bruno Haible  <bruno@clisp.org>
13523
13524         sys_socket tests: Fix recent mistake.
13525         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13526
13527 2011-09-17  Bruno Haible  <bruno@clisp.org>
13528
13529         putenv: Support for MSVC.
13530         * modules/putenv (Depends-on): Add environ.
13531         * lib/putenv.c (environ): Disable declaration.
13532         * lib/unistd.in.h: Update comment.
13533
13534 2011-09-17  Bruno Haible  <bruno@clisp.org>
13535
13536         math: Avoid macro redefinition warnings on MSVC.
13537         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13538         Undefine before redefining.
13539
13540 2011-09-17  Bruno Haible  <bruno@clisp.org>
13541
13542         doc: Mention functions which are declared as macros.
13543         * doc/posix-functions/*[fl].texi: Mention that some functions are
13544         defined as macros with arguments only.
13545
13546 2011-09-17  Bruno Haible  <bruno@clisp.org>
13547
13548         Add dependencies to new dirent related modules.
13549         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13550         * modules/fts (Depends-on): Likewise.
13551         * modules/glob (Depends-on): Likewise.
13552         * modules/savedir (Depends-on): Likewise.
13553         * modules/scandir (Depends-on): Likewise.
13554         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13555         * modules/fdopendir (Depends-on): Add opendir.
13556
13557 2011-09-17  Bruno Haible  <bruno@clisp.org>
13558
13559         inet_pton: Support for MSVC on Windows Vista or newer.
13560         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13561         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13562         HAVE_DECL_INET_PTON is defined.
13563         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13564         On platforms with <winsock2.h>, test whether inet_pton is declared in
13565         <ws2tcpip.h>. If so, arrange to replace it.
13566         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13567         REPLACE_INET_PTON.
13568         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13569         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13570         (Depends-on, configure.ac): Update condition.
13571         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13572
13573 2011-09-17  Bruno Haible  <bruno@clisp.org>
13574
13575         inet_ntop: Support for MSVC on Windows Vista or newer.
13576         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13577         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13578         HAVE_DECL_INET_NTOP is defined.
13579         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13580         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13581         <ws2tcpip.h>. If so, arrange to replace it.
13582         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13583         REPLACE_INET_NTOP.
13584         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13585         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13586         (Depends-on, configure.ac): Update condition.
13587         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13588
13589 2011-09-16  Eric Blake  <eblake@redhat.com>
13590
13591         test-fsync: yet another enhancement
13592         * tests/test-fsync.c (main): Also test behavior on read-only text
13593         file.
13594
13595 2011-09-16  Bruno Haible  <bruno@clisp.org>
13596
13597         Enhance fsync, fdatasync tests.
13598         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13599         * tests/test-fdatasync.c (main): Likewise.
13600
13601 2011-09-16  Bruno Haible  <bruno@clisp.org>
13602
13603         Support for MSVC compiler: Ensure mode_t gets defined.
13604         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13605         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13607         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13608         * tests/test-fcntl-h.c: Check that mode_t is defined.
13609         * tests/test-sys_stat.c: Likewise.
13610         * tests/test-sys_types.c: Likewise.
13611         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13612         * doc/posix-headers/sys_stat.texi: Likewise.
13613         * doc/posix-headers/sys_types.texi: Likewise.
13614
13615 2011-09-16  Bruno Haible  <bruno@clisp.org>
13616
13617         sys_stat: Support for MSVC.
13618         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13619         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13620         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13621         MSVC.
13622
13623 2011-09-16  Bruno Haible  <bruno@clisp.org>
13624
13625         Support for MSVC compiler: Ensure off_t gets defined.
13626         * lib/unistd.in.h: Include <sys/types.h>.
13627         * tests/test-fcntl-h.c: Check that off_t is defined.
13628         * tests/test-sys_stat.c: Likewise.
13629         * tests/test-sys_types.c: Likewise.
13630
13631 2011-09-16  Eric Blake  <eblake@redhat.com>
13632
13633         fdatasync: port to Solaris
13634         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13635         * modules/fdatasync (Link): Document it.
13636         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13637
13638         fdatasync: port to MacOS X 10.7
13639         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13640         declared.
13641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13642         * modules/unistd (Makefile.am): Substitute it.
13643         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13644         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13645
13646         fdatasync: minor improvements
13647         * modules/fdatasync (Depends-on): Add condition for fsync.
13648         * lib/fdatasync.c (fdatasync): Add comment.
13649         * tests/test-unistd-c++.cc: Test fdatasync.
13650
13651         unistd: update refs to newer POSIX
13652         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13653         Suggested by Bruno Haible.
13654
13655         fdatasync: new module
13656         * modules/fsync (Description): Document difference to fdatasync.
13657         * modules/fdatasync: New module.
13658         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13659         * lib/fdatasync.c (fdatasync): Likewise.
13660         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13661         defaults.
13662         * modules/unistd (Makefile.am): Set witnesses.
13663         * lib/unistd.in.h (fdatasync): Declare.
13664         * MODULES.html.sh: Document it.
13665         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13666         * modules/fdatasync-tests: New test.
13667         * tests/test-fdatasync.c: Likewise.
13668
13669 2011-09-16  Eric Blake  <eblake@redhat.com>
13670
13671         test-fsync: enhance tests
13672         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13673         * tests/test-fsync.c (main): Enhance test.
13674
13675 2011-09-15  Bruno Haible  <bruno@clisp.org>
13676
13677         Support for MSVC compiler: Ensure ssize_t gets defined.
13678         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13679         * doc/posix-headers/stdio.texi: Likewise.
13680         * modules/stdio (Depends-on): Add ssize_t.
13681         * modules/sys_socket (Depends-on): Likewise.
13682         * modules/sys_types (Depends-on): Likewise.
13683         * modules/sys_uio (Depends-on): Likewise.
13684         * modules/unistd (Depends-on): Likewise.
13685         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13686         * tests/test-sys_types.c: Check that ssize_t is defined.
13687
13688 2011-09-14  Bruno Haible  <bruno@clisp.org>
13689
13690         Avoid using #, the m4 comment starter character, near brackets.
13691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13692         delimiter character in sed expressions.
13693         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13694         Suggested by Eric Blake.
13695
13696         Properly quote AC_CHECK_DECLS' 4th argument.
13697         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13698         argument.
13699         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13700         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13701         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13702         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13703         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13704         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13706         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13707         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13708         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13709         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13710         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13711         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13712         * m4/isinf.m4 (gl_ISINF): Likewise.
13713         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13714         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13715         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13716         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13717         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13718         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13719         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13720         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13722         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13723         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13726         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13728         Reported by Eric Blake.
13729
13730         Properly quote AC_CHECK_DECL's 4th argument.
13731         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13732         argument.
13733         * m4/argp.m4 (gl_ARGP): Likewise.
13734         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13735         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13736         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13737         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13738         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13739         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13740         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13741         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13743         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13744         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13745         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13746         Reported by Eric Blake.
13747
13748 2011-09-14  Eric Blake  <eblake@redhat.com>
13749
13750         opendir: avoid compile warning
13751         * lib/opendir.c (includes): Always include errno.h.
13752         Reported by Tatsuro MATSUOKA.
13753
13754 2011-09-14  Jim Meyering  <meyering@redhat.com>
13755
13756         maint.mk: sc_tight_scope: propagate failure from sub-make
13757         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13758         Reported by Martin von Gagern.
13759
13760 2011-09-13  Bruno Haible  <bruno@clisp.org>
13761
13762         tempname: Support for MSVC.
13763         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13764         MSVC.
13765         * modules/tempname (Depends-on): Add fcntl-h.
13766
13767 2011-09-13  Bruno Haible  <bruno@clisp.org>
13768
13769         sys_time: Support for MSVC.
13770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13771         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13772         include <winsock2.h>.
13773         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13774         function declarations that collide with POSIX.
13775         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13776         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13777
13778 2011-09-13  Bruno Haible  <bruno@clisp.org>
13779
13780         stat: Support for MSVC.
13781         * lib/stat.c: Include pathmax.h.
13782         * modules/stat (Depends-on): Add pathmax.
13783
13784         pathmax: Support for native Windows.
13785         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13786
13787 2011-09-12  Bruno Haible  <bruno@clisp.org>
13788
13789         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13790         * lib/dirent.in.h (struct dirent): New type.
13791         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13792         DT_WHT): New macros.
13793         (DIR): New type.
13794         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13795         (readdir, rewinddir): New declarations.
13796         * lib/dirent-private.h: New file.
13797         * lib/opendir.c: New file.
13798         * lib/readdir.c: New file.
13799         * lib/rewinddir.c: New file.
13800         * lib/closedir.c: New file.
13801         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13802         * m4/opendir.m4: New file.
13803         * m4/readdir.m4: New file.
13804         * m4/rewinddir.m4: New file.
13805         * m4/closedir.m4: New file.
13806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13807         REPLACE_CLOSEDIR here.
13808         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13809         readdir, rewinddir are declared.
13810         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13811         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13812         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13813         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13814         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13815         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13816         * modules/opendir: New file.
13817         * modules/readdir: New file.
13818         * modules/rewinddir: New file.
13819         * modules/closedir: New file.
13820         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13821         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13822         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13823         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13824         * NEWS: Mention the 'fchdir' change.
13825
13826 2011-09-11  Bruno Haible  <bruno@clisp.org>
13827
13828         asm-underscore.m4: Support for MSVC.
13829         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13830         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13831
13832 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13833
13834         Doc about crypt functions.
13835         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13836         needing for _GNU_SOURCE to get crypt.
13837         * doc/posix-functions/encrypt.texi: Likewise.
13838         * doc/posix-functions/setkey.texi: Likewise.
13839
13840 2011-09-11  Bruno Haible  <bruno@clisp.org>
13841
13842         doc: Update regarding MSVC 9.
13843         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13844         tested".
13845         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13846         * doc/posix-headers/*.texi: Likewise.
13847         * doc/pastposix-functions/*.texi: Likewise.
13848         * doc/glibc-functions/*.texi: Likewise.
13849         * doc/glibc-headers/*.texi: Likewise.
13850
13851 2011-09-11  Bruno Haible  <bruno@clisp.org>
13852
13853         unistd et al.: Don't assume <unistd.h> exists.
13854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13855         does not exist.
13856         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13857         exist. But include <stdlib.h>.
13858         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13859         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13860         symlink() does not exist.
13861         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13862         include <io.h> instead.
13863         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13865         include <direct.h> instead.
13866         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13868         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13869         <io.h> instead.
13870         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13871         correctly if the system does not have hard links.
13872         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13873         <direct.h> instead.
13874         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13875         it when looking for function declarations.
13876         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13877         <direct.h> and <io.h> instead.
13878         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13879
13880 2011-09-11  Bruno Haible  <bruno@clisp.org>
13881
13882         strcase: Support for MSVC.
13883         * modules/strcase (Status, Notice): Remove obsoletion mark.
13884         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13885         * doc/posix-functions/strncasecmp.texi: Likewise.
13886
13887         strings: Don't assume <strings.h> exists.
13888         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13889         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13890         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13891         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13892
13893 2011-09-11  Bruno Haible  <bruno@clisp.org>
13894
13895         dirent: Don't assume <dirent.h> exists.
13896         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13897         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13898         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13899         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13900
13901 2011-09-11  Bruno Haible  <bruno@clisp.org>
13902
13903         Fix wint_t on MSVC.
13904         * lib/wchar.in.h (wint_t): On MSVC, override it.
13905         * lib/wctype.in.h (wint_t): Likewise.
13906         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13907         MSVC.
13908         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13909         * doc/posix-headers/wctype.texi: Likewise.
13910
13911 2011-09-11  Bruno Haible  <bruno@clisp.org>
13912
13913         sys_types: Fix typo.
13914         * lib/sys_types.in.h: Fix typo in comment.
13915         Reported by Paul Eggert.
13916
13917         Support for MSVC compiler: Ensure size_t gets defined.
13918         * modules/strings (Depends-on): Add 'sys_types'.
13919         * modules/sys_uio (Depends-on): Likewise.
13920         * lib/sys_uio.in.h: Update comment.
13921
13922         C++ tests for module 'sys_types'.
13923         * modules/sys_types-c++-tests: New file.
13924         * tests/test-sys_types-c++.cc: New file.
13925
13926         Tests for module 'sys_types'.
13927         * modules/sys_types-tests: New file.
13928         * tests/test-sys_types.c: New file.
13929
13930         New module 'sys_types'.
13931         * lib/sys_types.in.h: New file.
13932         * m4/sys_types_h.m4: New file.
13933         * modules/sys_types: New file.
13934         * doc/posix-headers/sys_types.texi: Mention the new module and the
13935         size_t problem on MSVC 9.
13936
13937 2011-09-11  Bruno Haible  <bruno@clisp.org>
13938
13939         Support for MSVC compiler: Avoid division by a literal 0.
13940         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13941         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13942         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13943         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13944         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13945         * tests/infinity.h: New file.
13946         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13947         on MSVC.
13948         * tests/test-ceilf1.c: Include infinity.h.
13949         (main): Use Infinityf.
13950         * tests/test-ceil1.c: Include infinity.h.
13951         (main): Use Infinityd.
13952         * tests/test-ceill.c: Include infinity.h.
13953         (main): Use Infinityl.
13954         * tests/test-dprintf-posix.c: Include infinity.h.
13955         (test_function): Use Infinityd.
13956         * tests/test-floorf1.c: Include infinity.h.
13957         (main): Use Infinityf.
13958         * tests/test-floor1.c: Include infinity.h.
13959         (main): Use Infinityd.
13960         * tests/test-floorl.c: Include infinity.h.
13961         (main): Use Infinityl.
13962         * tests/test-fprintf-posix.c: Include infinity.h.
13963         (test_function): Use Infinityd.
13964         * tests/test-frexp.c: Include infinity.h.
13965         (main): Use Infinityd.
13966         * tests/test-frexpl.c: Include infinity.h.
13967         (main): Use Infinityl.
13968         * tests/test-isfinite.c: Include infinity.h.
13969         (test_isfinitef): Use Infinityf.
13970         (test_isfinited): Use Infinityd.
13971         (test_isfinitel): Use Infinityl.
13972         * tests/test-isinf.c: Include infinity.h.
13973         (test_isinff): Use Infinityf.
13974         (test_isinfd): Use Infinityd.
13975         (test_isinfl): Use Infinityl.
13976         * tests/test-isnan.c: Include infinity.h.
13977         (test_float): Use Infinityf.
13978         (test_double): Use Infinityd.
13979         (test_long_double): Use Infinityl.
13980         * tests/test-isnanf.h: Include infinity.h.
13981         (main): Use Infinityf.
13982         * tests/test-isnand.h: Include infinity.h.
13983         (main): Use Infinityd.
13984         * tests/test-isnanl.h: Include infinity.h.
13985         (main): Use Infinityl.
13986         * tests/test-ldexpl.c: Include infinity.h.
13987         (main): Use Infinityl.
13988         * tests/test-printf-posix.h: Include infinity.h.
13989         (test_function): Use Infinityd.
13990         * tests/test-roundf1.c: Include infinity.h.
13991         (main): Use Infinityf.
13992         * tests/test-round1.c: Include infinity.h.
13993         (main): Use Infinityd.
13994         * tests/test-roundl.c: Include infinity.h.
13995         (main): Use Infinityl.
13996         * tests/test-signbit.c: Include infinity.h.
13997         (test_signbitf): Use Infinityf.
13998         (test_signbitd): Use Infinityd.
13999         (test_signbitl): Use Infinityl.
14000         * tests/test-snprintf-posix.h: Include infinity.h.
14001         (test_function): Use Infinityd, Infinityl.
14002         * tests/test-sprintf-posix.h: Include infinity.h.
14003         (test_function): Use Infinityd, Infinityl.
14004         * tests/test-truncf1.c: Include infinity.h.
14005         (main): Use Infinityf.
14006         * tests/test-trunc1.c: Include infinity.h.
14007         (main): Use Infinityd.
14008         * tests/test-truncl.c: Include infinity.h.
14009         (main): Use Infinityl.
14010         * tests/test-vasnprintf-posix.c: Include infinity.h.
14011         (test_function): Use Infinityd, Infinityl.
14012         * tests/test-vasprintf-posix.c: Include infinity.h.
14013         (test_function): Use Infinityd, Infinityl.
14014         * modules/ceilf-tests (Files): Add tests/infinity.h.
14015         * modules/ceil-tests (Files): Likewise.
14016         * modules/ceill-tests (Files): Likewise.
14017         * modules/dprintf-posix-tests (Files): Likewise.
14018         * modules/floorf-tests (Files): Likewise.
14019         * modules/floor-tests (Files): Likewise.
14020         * modules/floorl-tests (Files): Likewise.
14021         * modules/fprintf-posix-tests (Files): Likewise.
14022         * modules/frexp-tests (Files): Likewise.
14023         * modules/frexp-nolibm-tests (Files): Likewise.
14024         * modules/frexpl-tests (Files): Likewise.
14025         * modules/frexpl-nolibm-tests (Files): Likewise.
14026         * modules/isfinite-tests (Files): Likewise.
14027         * modules/isinf-tests (Files): Likewise.
14028         * modules/isnan-tests (Files): Likewise.
14029         * modules/isnanf-tests (Files): Likewise.
14030         * modules/isnanf-nolibm-tests (Files): Likewise.
14031         * modules/isnand-tests (Files): Likewise.
14032         * modules/isnand-nolibm-tests (Files): Likewise.
14033         * modules/isnanl-tests (Files): Likewise.
14034         * modules/isnanl-nolibm-tests (Files): Likewise.
14035         * modules/ldexpl-tests (Files): Likewise.
14036         * modules/printf-posix-tests (Files): Likewise.
14037         * modules/roundf-tests (Files): Likewise.
14038         * modules/round-tests (Files): Likewise.
14039         * modules/roundl-tests (Files): Likewise.
14040         * modules/signbit-tests (Files): Likewise.
14041         * modules/snprintf-posix-tests (Files): Likewise.
14042         * modules/sprintf-posix-tests (Files): Likewise.
14043         * modules/truncf-tests (Files): Likewise.
14044         * modules/trunc-tests (Files): Likewise.
14045         * modules/truncl-tests (Files): Likewise.
14046         * modules/vasnprintf-posix-tests (Files): Likewise.
14047         * modules/vasprintf-posix-tests (Files): Likewise.
14048         * modules/vdprintf-posix-tests (Files): Likewise.
14049         * modules/vfprintf-posix-tests (Files): Likewise.
14050         * modules/vprintf-posix-tests (Files): Likewise.
14051         * modules/vsnprintf-posix-tests (Files): Likewise.
14052         * modules/vsprintf-posix-tests (Files): Likewise.
14053         * modules/xprintf-posix-tests (Files): Likewise.
14054
14055 2011-09-11  Bruno Haible  <bruno@clisp.org>
14056
14057         Ensure pid_t gets defined.
14058         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14059         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14060         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14061         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14062         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14063         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14064         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14065         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14066         * tests/test-fcntl-h.c: Check that pid_t is defined.
14067         * tests/test-sched.c: Likewise.
14068         * tests/test-termios.c: Likewise.
14069         * tests/test-time.c: Likewise.
14070         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14071         * doc/posix-headers/signal.texi: Likewise.
14072         * doc/posix-headers/sys_types.texi: Likewise.
14073         * doc/posix-headers/time.texi: Likewise.
14074
14075 2011-09-11  Bruno Haible  <bruno@clisp.org>
14076
14077         acl: Fix compilation on Solaris 10 (older version).
14078         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14079         of ACE_EVERYONE.
14080         * lib/set-mode-acl.c (qset_acl): Likewise.
14081         Reported by Christian Jullien <eligis@orange.fr>.
14082
14083 2011-09-10  Bruno Haible  <bruno@clisp.org>
14084
14085         iconv, unsetenv: Add support for MSVC compiler.
14086         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14087         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14088
14089 2011-09-10  Bruno Haible  <bruno@clisp.org>
14090
14091         *printf: Add support for MSVC compiler.
14092         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14093         handles the exception caused by the %n directive. When cross-compiling,
14094         guess no on native Windows.
14095         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14096         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14097         emulate it through vsnprintf.
14098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14099         * doc/posix-functions/dprintf.texi: Update documentation regarding
14100         MSVC 9.
14101         * doc/posix-functions/fprintf.texi: Likewise.
14102         * doc/posix-functions/printf.texi: Likewise.
14103         * doc/posix-functions/snprintf.texi: Likewise.
14104         * doc/posix-functions/sprintf.texi: Likewise.
14105         * doc/posix-functions/swprintf.texi: Likewise.
14106         * doc/posix-functions/vdprintf.texi: Likewise.
14107         * doc/posix-functions/vfprintf.texi: Likewise.
14108         * doc/posix-functions/vprintf.texi: Likewise.
14109         * doc/posix-functions/vsnprintf.texi: Likewise.
14110         * doc/posix-functions/vsprintf.texi: Likewise.
14111         * doc/glibc-functions/asprintf.texi: Likewise.
14112         * doc/glibc-functions/obstack_printf.texi: Likewise.
14113         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14114         * doc/glibc-functions/vasprintf.texi: Likewise.
14115
14116 2011-09-10  Bruno Haible  <bruno@clisp.org>
14117
14118         nocrash: Add support for native Windows.
14119         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14120
14121 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14122             Bruno Haible  <bruno@clisp.org>
14123
14124         absolute-header, include-next: Add support for MSVC compiler.
14125         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14126         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14127         directory separator in #line directives.
14128         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14129         recognize also backslash as directory separator in #line directives.
14130
14131 2011-09-08  Jim Meyering  <meyering@redhat.com>
14132
14133         maint.mk: mark the post-release commit log with "maint: " prefix
14134         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14135         one-line commit-log summary.
14136
14137 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14138             Bruno Haible  <bruno@clisp.org>
14139
14140         Doc about crypt functions.
14141         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14142         systems.
14143         * doc/posix-functions/encrypt.texi: Likewise.
14144         * doc/posix-functions/setkey.texi: Likewise.
14145
14146 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14147
14148         * lib/gc.h: Fix copyright header.
14149
14150 2011-09-07  Bruno Haible  <bruno@clisp.org>
14151
14152         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14153         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14154         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14155
14156 2011-09-07  Bruno Haible  <bruno@clisp.org>
14157
14158         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14159         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14160         * lib/freopen.c: Likewise.
14161         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14162         * lib/lstat.c: Likewise.
14163         * lib/stat.c: Likewise.
14164         * lib/open.c: Use different syntax for include of <fcntl.h>.
14165         * lib/openat.c: Include fcntl.h again, explicitly.
14166
14167 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14168
14169         parse-datetime: document the newly accepted format
14170         * doc/parse-datetime.texi (Combined date and time of day items):
14171         New section.
14172
14173 2011-09-06  Bruno Haible  <bruno@clisp.org>
14174
14175         acl: Fix a test failure on newer Solaris 10 with ZFS.
14176         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14177         ENOSYS as no ACL.
14178         Reported by Jim Meyering.
14179
14180 2011-09-06  Bruno Haible  <bruno@clisp.org>
14181
14182         acl: Update for AIX >= 5.3 with NFS.
14183         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14184         ENOSYS as no ACL.
14185
14186         acl: Fix a test failure on AIX >= 5.3 with NFS.
14187         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14188         as no ACL.
14189
14190 2011-09-06  Bruno Haible  <bruno@clisp.org>
14191
14192         acl: Fix a test failure on IRIX 6.5 with NFS.
14193         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14194         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14195         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14196         * lib/copy-acl.c (qcopy_acl): Likewise.
14197
14198 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14199
14200         openat: port to AIX 7.1 with large files
14201         AIX 7.1 does a "#define openat open64at" if large files are in use,
14202         so we can't simply #undef openat.  Use the orig_openat trick (similar
14203         to orig_open in lib/open.c) to work around the problem.  Problem
14204         reported by Kevin Brott for GNU tar, in the thread containing
14205         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14206         * lib/openat.c (__need_system_fcntl_h): Define first.
14207         Include <fcntl.h> and <sys/types.h> before undefining.
14208         (orig_openat) [HAVE_OPENAT]: New inline function.
14209         (openat) [HAVE_OPENAT]: Do not undef.
14210         (rpl_openat): Use orig_openat, not openat.
14211
14212 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14213             Bruno Haible  <bruno@clisp.org>
14214
14215         acl: Avoid errors on NonStop Kernel.
14216         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14217         ENOTSUP errors.
14218
14219 2011-09-05  Bruno Haible  <bruno@clisp.org>
14220
14221         acl: Clean up Solaris code.
14222         * lib/acl-internal.h: Remove no-op #if.
14223         * lib/file-has-acl.c: Likewise.
14224         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14225         * lib/copy-acl.c (qcopy_acl): Likewise.
14226
14227 2011-09-05  Bruno Haible  <bruno@clisp.org>
14228
14229         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14230         binaries built on the original Solaris 10.
14231         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14232         trivial.
14233
14234 2011-09-05  Bruno Haible  <bruno@clisp.org>
14235
14236         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14237         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14238         10.
14239         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14240         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14241         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14242         instead of acl_get, facl_get, acl_set, facl_set.
14243
14244 2011-09-05  Bruno Haible  <bruno@clisp.org>
14245
14246         copy-file: Try unit tests on more file systems.
14247         * tests/test-copy-file-1.sh: New file.
14248         * tests/test-copy-file-2.sh: New file.
14249         * modules/copy-file-tests (Files): Add them.
14250         (Makefile.am): Add them to TESTS.
14251
14252         acl: Try unit tests on more file systems.
14253         * tests/test-file-has-acl-1.sh: New file.
14254         * tests/test-file-has-acl-2.sh: New file.
14255         * tests/test-set-mode-acl-1.sh: New file.
14256         * tests/test-set-mode-acl-2.sh: New file.
14257         * tests/test-copy-acl-1.sh: New file.
14258         * tests/test-copy-acl-2.sh: New file.
14259         * modules/acl-tests (Files): Add them.
14260         (Makefile.am): Add them to TESTS.
14261
14262 2011-09-04  Bruno Haible  <bruno@clisp.org>
14263
14264         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14265         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14266         10.
14267         (OLD_ALLOW, OLD_DENY): New macros.
14268         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14269         ACE_ACCESS_ALLOWED_ACE_TYPE.
14270         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14271         ACE_ACCESS_DENIED_ACE_TYPE.
14272         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14273         (NEW_ACE_EXECUTE): Fix value.
14274         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14275         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14276         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14277         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14278         NEW_ACE_SYNCHRONIZE): New macros.
14279         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14280         instead of acl_fromtext, acl_set, facl_set.
14281         Fixes a coreutils/tests/cp/perm failure.
14282
14283 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14284
14285         openat: test for fstatat (..., 0) bug
14286         Further testing with tar suggests that fstatat (..., 0)
14287         does not work in general, on AIX 7.1; see
14288         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14289         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14290         replacement fstatat (which is what older AIX releases were using
14291         anyway).
14292         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14293         use is now changed to orig_fstatat.  This was probably the right
14294         thing to do anyway.
14295         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14296         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14297         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14298         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14299         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14300         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14301         if the bug is found.
14302
14303         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14304         This tests for another fstatat bug on AIX 7.1:
14305         fstatat (AT_FDCWD, ..., 0) does not work.  See
14306         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14307         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14308         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14309         (rpl_fstatat): Adjust so that it works around either (or both)
14310         bugs if present.
14311         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14312
14313 2011-09-03  Karl Berry  <karl@gnu.org>
14314
14315         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14316         in index entries.
14317
14318 2011-09-02  Bruno Haible  <bruno@clisp.org>
14319
14320         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14321         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14322         values of AR, ARFLAGS, RANLIB.
14323         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14324
14325 2011-09-02  Bruno Haible  <bruno@clisp.org>
14326
14327         Find 'ar' program that fits with --host argument.
14328         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14329
14330 2011-09-02  Bruno Haible  <bruno@clisp.org>
14331
14332         tests: init.sh: Support any non-GNU diff.
14333         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14334         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14335         Solaris 8.
14336
14337 2011-09-02  Bruno Haible  <bruno@clisp.org>
14338
14339         tests: init.sh: work also with any non-GNU diff that supports -u
14340         * tests/init.sh: Relax check for diff -u support.
14341         Rather than checking for GNU diff via --version, simply check
14342         for support for -u itself.  Useful at least on OpenBSD 4.9,
14343         AIX 7.1, IRIX 6.5, and Solaris 10.
14344
14345 2011-09-01  Bruno Haible  <bruno@clisp.org>
14346
14347         strtoimax, strtoumax: Document problem on HP-UX 11.
14348         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14349         * doc/posix-functions/strtoumax.texi: Likewise.
14350
14351 2011-09-01  Bruno Haible  <bruno@clisp.org>
14352
14353         strtoumax: Avoid link error on OSF/1 with DTK cc.
14354         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14355         defined as a function.
14356         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14357         strtoumax is defined, not whether it is declared.
14358
14359 2011-09-01  Bruno Haible  <bruno@clisp.org>
14360
14361         strtoimax: Avoid link error on OSF/1 with DTK cc.
14362         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14363         defined as a function.
14364         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14365         strtoimax is defined, not whether it is declared.
14366
14367 2011-09-01  Bruno Haible  <bruno@clisp.org>
14368
14369         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14370         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14371         as a function.
14372         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14373         whether it is declared.
14374
14375 2011-09-01  Bruno Haible  <bruno@clisp.org>
14376
14377         imaxabs: Avoid link error on OSF/1 with DTK cc.
14378         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14379         as a function.
14380         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14381         whether it is declared.
14382
14383 2011-09-01  Bruno Haible  <bruno@clisp.org>
14384
14385         Tests for module 'strtoumax'.
14386         * modules/strtoumax-tests: New file.
14387         * tests/test-strtoumax.c: New file.
14388
14389         Tests for module 'strtoimax'.
14390         * modules/strtoimax-tests: New file.
14391         * tests/test-strtoimax.c: New file.
14392
14393         Tests for module 'imaxdiv'.
14394         * modules/imaxdiv-tests: New file.
14395         * tests/test-imaxdiv.c: New file.
14396
14397         Tests for module 'imaxabs'.
14398         * modules/imaxabs-tests: New file.
14399         * tests/test-imaxabs.c: New file.
14400
14401 2011-09-01  Bruno Haible  <bruno@clisp.org>
14402
14403         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14404         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14405         pthread_create.
14406
14407 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         openat: work around AIX 7.1 fstatat issue
14410         This should fix the problem that was not properly fixed
14411         in the previous change, dated 2011-08-30.
14412         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14413         __need_system_stat_h defined.
14414         (orig_fstatat) [HAVE_FSTATAT]: New function.
14415         (rpl_fstatat): Go back to the old way of doing things,
14416         except call orig_fstatat instead of fstatat.
14417         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14418         Remove unnecessary check whether fstatat fills in st_size etc.
14419
14420 2011-09-01  Bruno Haible  <bruno@clisp.org>
14421
14422         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14423         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14424         just include the system's header.
14425
14426 2011-08-31  Jim Meyering  <meyering@redhat.com>
14427
14428         tests: avoid spurious assertion failure in test-float.c on ppc64
14429         * tests/test-float.c (test_long_double): Comment out an assertion,
14430         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14431         with gcc-4.4.4.
14432
14433         maint: indent with spaces, not TABs
14434         I need to get in the habit of running gnulib's "make check".
14435         Both of these would have been caught.
14436         * m4/largefile.m4: Indent with spaces, not TABs.
14437         * lib/parse-datetime.y (iso_8601_time): Likewise.
14438         Spotted by Pádraig Brady.
14439
14440         test-parse-datetime.c: accommodate a relatively strict gcc warning
14441         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14442         to avoid a warning from gcc's -Werror=missing-declarations.
14443         Insert a few spaces-before-funcall-parenthesis.
14444
14445 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14446
14447         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14448         The parser now accepts ISO 8601 date-time strings with "T" as the
14449         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14450         with a space between the date and time strings.  Now it also parses
14451         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14452         variants like "2004-02-29T16:21:42.333-07:00"
14453         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14454         of day representation using the 'T' separator character.
14455         * doc/parse-datetime.texi (General date syntax): replace use of
14456         deprecated --iso-8601 option with --rfc-3339 in example of date
14457         command output formats that can be parsed.
14458         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14459         lib/parse-datetime.y.
14460         (gmt_offset): New function.
14461         (main): Add additional test cases to validate ISO8601 extended
14462         date and time of day parsing.
14463
14464 2011-08-31  Bruno Haible  <bruno@clisp.org>
14465
14466         freopen: Documentation.
14467         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14468         name.
14469         Reported by Claudio Bley <claudio.bley@gmail.com>.
14470
14471 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14472
14473         freopen: Don't crash if the filename argument is NULL.
14474         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14475         NULL.
14476
14477 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         openat: work around AIX 7.1 fstatat bug
14480         Problem reported by Kevin Brott for GNU tar, in the thread containing
14481         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14482         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14483         FSTATAT_ST_SIZE_ETC_BROKEN.
14484         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14485         rpl_fstatat.
14486         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14487         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14488         AC_CHECK_FUNCS_ONCE for fstatat.
14489         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14490         fchmodat, mkdirat, openat and unlinkat.
14491
14492 2011-08-30  Bruno Haible  <bruno@clisp.org>
14493
14494         Avoid endless recursions if config.h includes some header files.
14495         * lib/fopen.c (__need_FILE): Define already before including config.h.
14496         * lib/freopen.c (__need_FILE): Likewise.
14497         * lib/open.c (__need_system_fcntl_h): Likewise.
14498         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14499         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14500         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14501
14502 2011-08-25  Karl Berry  <karl@gnu.org>
14503
14504         * config/srclist.txt (ylwrap): new try.
14505         * build-aux/ylwrap: new file.
14506
14507 2011-08-23  Bruno Haible  <bruno@clisp.org>
14508
14509         tmpdir: Use a good default directory on native Windows.
14510         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14511         (P_tmpdir): Default to _P_tmpdir on native Windows.
14512         (path_search): On native Windows, try the value returned by GetTempPath
14513         before trying P_tmpdir.
14514         * modules/tmpdir (Depends-on): Add pathmax.
14515         Suggested by John Darrington <john@darrington.wattle.id.au>.
14516
14517 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14518
14519         doc: fix typo in README-release
14520         * top/README-release: Capitalize first word of a sentence.
14521
14522 2011-08-19  Jim Meyering  <meyering@redhat.com>
14523
14524         fts: do not exhaust memory when processing million-entry directories
14525         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14526         directory would require about 256*N bytes of memory.  Thus, it was
14527         easy to construct a directory too large to be processed by any of
14528         those tools.  With this change, fts' maximum memory utilization is
14529         now limited to around 30MB.
14530         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14531         (fts_read): When we've processed the final entry (i.e., when
14532         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14533         using the parent entry to read any remaining entries.  Dispatch
14534         depending on what fts_build returns:
14535         - NULL+stop, aka failure: stop
14536         - NULL otherwise: move up in the dir hierarchy
14537         - non-NULL: handle this new entry
14538         (fts_build): Declare and use new local, continue_readdir.
14539         Prepare to be called from fts_read, when the entries
14540         from a partially-read directory have just been exhausted.
14541         In that case, we'll skip the opendir and instead use the parent's
14542         fts_dirp and derive dir_fd from that.
14543         Finally, in the readdir loop, if we read max_entries entries,
14544         exit the loop ensuring *not* to call closedir.  This is required
14545         so that fts_dirp can be reused on a subsequent call.
14546         Prompted by Ben England's report of memory exhaustion in find
14547         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14548
14549         maint: fts: move decl of `dp' down into while loop; split a long line
14550         * lib/fts.c (fts_build): No semantic change.
14551
14552         fts: add/use new struct member, fts_dirp
14553         We are about to use this to manage any directory with
14554         too many entries to read all of them into memory at once.
14555         To do that, we'll need to save the DIR* pointer in each
14556         affected FTSENT struct.
14557         * lib/fts_.h: Include <dirent.h>.
14558         (struct FTSENT) [fts_dirp]: New member.
14559         * lib/fts.c (closedir_and_clear): Define.
14560         Use it in place of closedir so that we are sure to
14561         clear the new fts_dirp member when done with it.
14562         (fts_alloc): Initialize the new member.
14563         (fts_lfree): Free, if needed.
14564
14565         maint: fts: give __opendir2 a new parameter and rename
14566         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14567         than surreptitiously using sole caller's "dir_fd".
14568         (fts_opendir): Rename from __opendir2.
14569
14570         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14571         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14572
14573         maint: fts.c: correct off-by-one indentation
14574         * lib/fts.c (fts_build): Correct indentation, change style
14575         of a couple of block comments, and bracing style.
14576
14577         maint: fts.c: move __opendir2 #define "up" out of function body
14578         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14579
14580         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14581         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14582         out for a long time and besides was useful only on BSD systems.
14583
14584 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14585
14586         regex: port to Stratus OpenVOS
14587         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14588         define to empty, rather than attempting nonportable optimizations.
14589         Problem reported by Paul Green in:
14590         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14591         and fix suggested by Eric Blake in:
14592         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14593
14594 2011-08-17  Eric Blake  <eblake@redhat.com>
14595
14596         getcwd: fix test failures on mingw
14597         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14598         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14599         test if long directory cannot be created, and allow mingw errno.
14600
14601         getcwd-lgpl: fix m4 to match relaxed test for BSD
14602         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14603         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14604         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14605         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14606         signature problem.
14607
14608         getcwd: fix compilation on mingw64
14609         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14610         getcwd.
14611         Reported by Marc-André Lureau.
14612
14613         pipe2: silence compiler warning
14614         * lib/pipe2.c (pipe2): Hide label if it is not used.
14615
14616 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14617
14618         relocatable-prog: fix link error
14619         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14620         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14621         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14622         into modules/relocatable-lib without noticing that
14623         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14624         also needs to build relocatable.c.
14625
14626 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14627
14628         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14630         shell code: it contained a 'break' that was not in a loop.
14631         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14632         via a shell-language loop; this may have been true in old Autoconf
14633         versions, but it's not true in Autoconf 2.68.  I found this bug
14634         when testing coreutils git on Solaris 8, whose shell complains
14635         about the syntax error.
14636
14637 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14638
14639         * lib/base64.c: Fix comment to reference RFC 4648.
14640         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14641         <gvtulder@gmail.com>.
14642
14643 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14644
14645         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14646
14647         po/Makefile.in.in: fix make -q problem
14648         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14649         rule, since there's no file named 'check-macro-version' and its
14650         use as a file breaks make -q.
14651         (all): Don't depend on check-macro-version.
14652         (CHECK_MACRO_VERSION): New macro.
14653         (stamp-po): Use it.
14654
14655         configmake: fix make -q problem
14656         * modules/configmake (configmake.h): Update configmake.h's time stamp
14657         even if the file does not change.  Otherwise, 'make -q' fails.
14658         Problem reported by Simon Josefsson in
14659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14660
14661 2011-08-11  Jim Meyering  <meyering@redhat.com>
14662
14663         git-version-gen: correct the advice in a comment
14664         * build-aux/git-version-gen: Correct comment.
14665         Don't recommend to list .tarball-version in .gitignore.
14666
14667 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         base64: fix off-by-one buffer size bug
14670         Problem and (trivial) fix reported by Gijs van Tulder in
14671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14672         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14673         * tests/test-base64.c (main): Catch the bug.
14674
14675 2011-08-10  Eric Blake  <eblake@redhat.com>
14676
14677         closein: correct comments
14678         * lib/closein.c (close_stdin): Improve comments.
14679
14680 2011-08-09  Bruno Haible  <bruno@clisp.org>
14681
14682         More tests for 'fseeko'.
14683         * tests/test-fseeko3.c: New file, from Eric Blake.
14684         * tests/test-fseeko3.sh: New file.
14685         * modules/fseeko-tests (Files): Add them.
14686         (TESTS): Add test-fseeko3.sh.
14687         (check_PROGRAMS): Add test-fseeko3.
14688
14689 2011-08-09  Eric Blake  <eblake@redhat.com>
14690
14691         fseeko: remove unneeded hack
14692         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14693
14694         fseeko: fix bug on glibc
14695         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14696         Reported by John W. Eaton.
14697
14698 2011-08-08  Bruno Haible  <bruno@clisp.org>
14699
14700         unictype/base: Fix interoperability with preinstalled libunistring.
14701         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14702         Reported by Simon Josefsson.
14703
14704 2011-08-08  Bruno Haible  <bruno@clisp.org>
14705
14706         iswblank: Detect declaration correctly.
14707         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14708         AC_CHECK_DECLS invocation.
14709
14710 2011-08-08  Bruno Haible  <bruno@clisp.org>
14711
14712         tcgetsid: Detect declaration correctly.
14713         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14714         AC_CHECK_DECLS invocation.
14715         Reported by Simon Josefsson.
14716
14717 2011-08-08  Eric Blake  <eblake@redhat.com>
14718
14719         largefile: fix typo that regressed large file support
14720         * modules/largefile (configure.ac-early): Fix section name.
14721
14722 2011-08-06  Karl Berry  <karl@gnu.org>
14723
14724         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14725         a separate module.
14726
14727 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14728
14729         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14730         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14731         get prototype for free.
14732
14733 2011-08-04  Bruno Haible  <bruno@clisp.org>
14734
14735         Tests for module 'pathmax'.
14736         * modules/pathmax-tests: New file.
14737         * tests/test-pathmax.c: New file.
14738
14739         canonicalize-lgpl: Support larger filenames on the Hurd.
14740         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14741         Reported by Paul Eggert.
14742
14743         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14744         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14745         * lib/chdir-long.h: Include pathmax.h.
14746         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14747         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14748         (PATH_MAX): Remove code that is done by pathmax.h.
14749         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14750         * lib/tmpfile.c: Add a comment.
14751         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14752         * modules/chdir-long (Depends-on): Add pathmax.
14753         * modules/getcwd (Depends-on): Add pathmax.
14754         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14755         is not defined.
14756         * doc/posix-headers/limits.texi: Mention the pathmax module.
14757         * NEWS: Mention the change.
14758
14759 2011-08-02  Bruno Haible  <bruno@clisp.org>
14760
14761         pthread_sigmask: Actually use results of gl_THREADLIB.
14762         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14763         gl_THREADLIB, not gl_[]THREADLIB.
14764         Reported by Eric Blake.
14765
14766 2011-08-02  Jim Meyering  <meyering@redhat.com>
14767
14768         maint.mk: relax the default _gl_TS_function_match regexp
14769         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14770         space between function name and "(" in an "extern" declaration.
14771         That would fail to match a decl with no space there: extern void foo();
14772
14773 2011-07-31  Iain Nicol  <iain@thenicols.net>
14774
14775         git-version-gen: document that EXTRA_DIST must include .version
14776         * build-aux/git-version-gen: In the how-to-use comment, document
14777         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14778         will fail when run from an unpacked distribution tarball.
14779
14780 2011-08-01  Bruno Haible  <bruno@clisp.org>
14781
14782         wctype-h: Fix last change.
14783         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14784         REPLACE_TOWLOWER to 0.
14785         Reported by Sam Steingold <sds@gnu.org>.
14786
14787 2011-07-31  Bruno Haible  <bruno@clisp.org>
14788
14789         frexpl: Update autoconf test.
14790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14791         according to changes of 2011-06-20.
14792
14793 2011-07-31  Bruno Haible  <bruno@clisp.org>
14794
14795         sys_utsname: Add support for Minix.
14796         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14797         <sys/utsname.h>.
14798         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14799         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14800
14801 2011-07-31  Bruno Haible  <bruno@clisp.org>
14802
14803         strings: Add support for Minix.
14804         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14805         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14806         * doc/posix-headers/strings.texi: Document the Minix problem.
14807
14808 2011-07-31  Bruno Haible  <bruno@clisp.org>
14809
14810         wctype-h: Add support for Minix.
14811         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14812         REPLACE_TOWLOWER.
14813         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14814         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14815         REPLACE_ISWCNTRL.
14816
14817 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14818
14819         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14820         This is a performance improvement for 64-bit hosts: it causes the
14821         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14822
14823 2011-07-31  Bruno Haible  <bruno@clisp.org>
14824
14825         stdioext: Add support for Minix.
14826         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14827         * lib/fpurge.c (fpurge): Likewise.
14828         * lib/freadahead.c (freadahead): Likewise.
14829         * lib/freadable.c (freadable): Likewise.
14830         * lib/freading.c (freading): Likewise.
14831         * lib/freadptr.c (freadptr): Likewise.
14832         * lib/freadseek.c (freadptrinc): Likewise.
14833         * lib/fseeko.c (rpl_fseeko): Likewise.
14834         * lib/fseterr.c (fseterr): Likewise.
14835         * lib/fwritable.c (fwritable): Likewise.
14836         * lib/fwriting.c (fwriting): Likewise.
14837         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14838         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14839
14840 2011-07-31  Bruno Haible  <bruno@clisp.org>
14841
14842         errno: Port to Minix.
14843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14844         ECONNABORTED are defined.
14845         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14846         GNULIB_defined_ECONNABORTED): New macros.
14847         * lib/strerror-override.h (strerror_override): Test also
14848         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14849         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14850         ECONNABORTED.
14851         * doc/posix-headers/errno.texi: Mention the Minix problem.
14852
14853 2011-07-31  Bruno Haible  <bruno@clisp.org>
14854
14855         Work around declaration collisions on Minix.
14856         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14857         defined, set REPLACE_MBSINIT.
14858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14859         defined, set REPLACE_MBRTOWC.
14860         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14861         set REPLACE_MBRLEN.
14862         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14863         defined, set REPLACE_MBSRTOWCS.
14864         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14865         defined, set REPLACE_WCRTOMB.
14866         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14867         defined, set REPLACE_WCSRTOMBS.
14868
14869 2011-07-31  Bruno Haible  <bruno@clisp.org>
14870
14871         Add support for Minix with ACK compiler.
14872         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14873         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14874         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14875
14876 2011-07-31  Bruno Haible  <bruno@clisp.org>
14877
14878         Documentation about Minix.
14879         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14880         * doc/glibc-headers/*.texi: Likewise.
14881         * doc/posix-functions/*.texi: Likewise.
14882         * doc/glibc-functions/*.texi: Likewise.
14883
14884 2011-07-31  Bruno Haible  <bruno@clisp.org>
14885
14886         snippet/warn-on-use: Fix indentation.
14887         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14888
14889 2011-07-25  Jim Meyering  <meyering@redhat.com>
14890
14891         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14892         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14893         commands.
14894
14895 2011-07-27  Jim Meyering  <meyering@redhat.com>
14896
14897         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14898         * top/maint.mk (gl_extract_significant_defines_): Now that
14899         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14900         gnulib/lib/signal.in.h, and now that we recommend to
14901         define-if-undefined those two symbols in application code,
14902         we must filter them out of the "significant" list.
14903         This avoids a "make syntax-check" failure in coreutils.
14904
14905 2011-07-26  Eric Blake  <eblake@redhat.com>
14906
14907         warnings: add comments about previous patch
14908         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14909         * m4/include_next.m4: Likewise.
14910         * m4/warn-on-use.m4: Likewise.
14911         * m4/warnings.m4: Likewise, and simplify use.
14912         Suggested by Stefano Lattarini.
14913
14914         include-next, warnings: support older autoconf
14915         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14916         AS_VAR_PUSHDEF in a way that works with older autoconf.
14917         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14918         Reported by Daniel P. Berrange.
14919
14920 2011-07-25  Bruno Haible  <bruno@clisp.org>
14921
14922         fseek, ftell: Fix doc.
14923         * doc/posix-functions/fseek.texi: Reword statement about
14924         AC_SYS_LARGEFILE.
14925         * doc/posix-functions/ftell.texi: Likewise.
14926
14927 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14928             Bruno Haible  <bruno@clisp.org>
14929
14930         Add dependencies to the 'largefile' module.
14931         * modules/fopen (Depends-on): Add 'largefile'.
14932         * modules/freopen (Depends-on): Likewise.
14933         * modules/fseeko (Depends-on): Likewise.
14934         * modules/ftello (Depends-on): Likewise.
14935         * modules/glob (Depends-on): Likewise.
14936         * modules/lseek (Depends-on): Likewise.
14937         * modules/lstat (Depends-on): Likewise.
14938         * modules/mkostemp (Depends-on): Likewise.
14939         * modules/mkostemps (Depends-on): Likewise.
14940         * modules/mkstemp (Depends-on): Likewise.
14941         * modules/mkstemps (Depends-on): Likewise.
14942         * modules/open (Depends-on): Likewise.
14943         * modules/openat (Depends-on): Likewise.
14944         * modules/pread (Depends-on): Likewise.
14945         * modules/pwrite (Depends-on): Likewise.
14946         * modules/scandir (Depends-on): Likewise.
14947         * modules/stat (Depends-on): Likewise.
14948         * modules/tmpfile (Depends-on): Likewise.
14949         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14950         since the containing module now depends on the largefile module.
14951         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14952         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14953         off_t is fixed by gnulib.
14954         * doc/posix-functions/freopen.texi: Likewise.
14955         * doc/posix-functions/fseeko.texi: Likewise.
14956         * doc/posix-functions/fstatat.texi: Likewise.
14957         * doc/posix-functions/ftello.texi: Likewise.
14958         * doc/posix-functions/glob.texi: Likewise.
14959         * doc/posix-functions/lseek.texi: Likewise.
14960         * doc/posix-functions/lstat.texi: Likewise.
14961         * doc/posix-functions/mkstemp.texi: Likewise.
14962         * doc/posix-functions/open.texi: Likewise.
14963         * doc/posix-functions/openat.texi: Likewise.
14964         * doc/posix-functions/pread.texi: Likewise.
14965         * doc/posix-functions/pwrite.texi: Likewise.
14966         * doc/posix-functions/scandir.texi: Likewise.
14967         * doc/posix-functions/stat.texi: Likewise.
14968         * doc/posix-functions/tmpfile.texi: Likewise.
14969         * doc/glibc-functions/mkostemp.texi: Likewise.
14970         * doc/glibc-functions/mkostemps.texi: Likewise.
14971         * doc/glibc-functions/mkstemps.texi: Likewise.
14972
14973 2011-07-25  Bruno Haible  <bruno@clisp.org>
14974
14975         fcntl: Move AC_LIBOBJ invocation to module description.
14976         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14977         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14978
14979         fcntl: Remove call-in from fchdir.m4.
14980         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14982
14983         dup3: Remove potential call-in from fchdir.m4.
14984         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14986
14987         dup2: Move AC_LIBOBJ invocation to module description.
14988         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14989         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14990         Don't invoke AC_LIBOBJ.
14991         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14992
14993         dup2: Remove call-in from fchdir.m4.
14994         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14996
14997         fclose: Move AC_LIBOBJ invocation to module description.
14998         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14999         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15000         to 1.
15001         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15002
15003         fclose: Remove call-in from close.m4.
15004         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15005         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15006
15007         close: Move AC_LIBOBJ invocation to module description.
15008         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15009         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15010         1.
15011         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15012
15013         close: Remove call-in from fchdir.m4.
15014         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15016
15017         open: Move AC_LIBOBJ invocation to module description.
15018         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15019         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15020         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15021
15022         open: Remove call-in from fchdir.m4.
15023         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15025
15026         fchdir: Start to remove gl_REPLACE_* idiom.
15027         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15028         (gl_FUNC_FCHDIR): Invoke it.
15029
15030 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15031
15032         * lib/ftell.c (ftell): Comment out cast.
15033
15034         close: use gl_REPLACE_FCLOSE only if defined
15035         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15036         is defined.  The close module doesn't depend on the fclose module
15037         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15039         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15040
15041 2011-07-24  Jim Meyering  <meyering@redhat.com>
15042
15043         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15044         * tests/test-select.h (test_function): Declare as "static".
15045
15046 2011-07-24  Bruno Haible  <bruno@clisp.org>
15047
15048         doc: Mention the effects of AC_SYS_LARGEFILE.
15049         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15050         on this function.
15051         * doc/posix-functions/aio_error.texi: Likewise.
15052         * doc/posix-functions/aio_fsync.texi: Likewise.
15053         * doc/posix-functions/aio_read.texi: Likewise.
15054         * doc/posix-functions/aio_return.texi: Likewise.
15055         * doc/posix-functions/aio_suspend.texi: Likewise.
15056         * doc/posix-functions/aio_write.texi: Likewise.
15057         * doc/posix-functions/fgetpos.texi: Likewise.
15058         * doc/posix-functions/fopen.texi: Likewise.
15059         * doc/posix-functions/freopen.texi: Likewise.
15060         * doc/posix-functions/fsetpos.texi: Likewise.
15061         * doc/posix-functions/fstatvfs.texi: Likewise.
15062         * doc/posix-functions/ftruncate.texi: Likewise.
15063         * doc/posix-functions/ftw.texi: Likewise.
15064         * doc/posix-functions/getrlimit.texi: Likewise.
15065         * doc/posix-functions/glob.texi: Likewise.
15066         * doc/posix-functions/lio_listio.texi: Likewise.
15067         * doc/posix-functions/lockf.texi: Likewise.
15068         * doc/posix-functions/mkstemp.texi: Likewise.
15069         * doc/posix-functions/mmap.texi: Likewise.
15070         * doc/posix-functions/nftw.texi: Likewise.
15071         * doc/posix-functions/openat.texi: Likewise.
15072         * doc/posix-functions/opendir.texi: Likewise.
15073         * doc/posix-functions/posix_fadvise.texi: Likewise.
15074         * doc/posix-functions/posix_fallocate.texi: Likewise.
15075         * doc/posix-functions/pread.texi: Likewise.
15076         * doc/posix-functions/pwrite.texi: Likewise.
15077         * doc/posix-functions/readdir.texi: Likewise.
15078         * doc/posix-functions/readdir_r.texi: Likewise.
15079         * doc/posix-functions/rewinddir.texi: Likewise.
15080         * doc/posix-functions/scandir.texi: Likewise.
15081         * doc/posix-functions/seekdir.texi: Likewise.
15082         * doc/posix-functions/setrlimit.texi: Likewise.
15083         * doc/posix-functions/statvfs.texi: Likewise.
15084         * doc/posix-functions/telldir.texi: Likewise.
15085         * doc/posix-functions/tmpfile.texi: Likewise.
15086         * doc/posix-functions/truncate.texi: Likewise.
15087         * doc/glibc-functions/fallocate.texi: Likewise.
15088         * doc/glibc-functions/fstatfs.texi: Likewise.
15089         * doc/glibc-functions/fts_children.texi: Likewise.
15090         * doc/glibc-functions/fts_read.texi: Likewise.
15091         * doc/glibc-functions/getdirentries.texi: Likewise.
15092         * doc/glibc-functions/mkostemp.texi: Likewise.
15093         * doc/glibc-functions/mkostemps.texi: Likewise.
15094         * doc/glibc-functions/mkstemps.texi: Likewise.
15095         * doc/glibc-functions/preadv.texi: Likewise.
15096         * doc/glibc-functions/pwritev.texi: Likewise.
15097         * doc/glibc-functions/sendfile.texi: Likewise.
15098         * doc/glibc-functions/statfs.texi: Likewise.
15099
15100 2011-07-24  Bruno Haible  <bruno@clisp.org>
15101
15102         doc: Fix typo.
15103         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15104
15105 2011-07-24  Bruno Haible  <bruno@clisp.org>
15106
15107         doc: Mention fsusage.
15108         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15109
15110 2011-07-24  Bruno Haible  <bruno@clisp.org>
15111
15112         doc: Mention new glibc headers and functions.
15113         * doc/glibc-headers/gshadow.texi: New file.
15114         * doc/glibc-functions/endsgent.texi: New file.
15115         * doc/glibc-functions/fgetsgent.texi: New file.
15116         * doc/glibc-functions/fgetsgent_r.texi: New file.
15117         * doc/glibc-functions/getsgent.texi: New file.
15118         * doc/glibc-functions/getsgent_r.texi: New file.
15119         * doc/glibc-functions/getsgnam.texi: New file.
15120         * doc/glibc-functions/getsgnam_r.texi: New file.
15121         * doc/glibc-functions/putsgent.texi: New file.
15122         * doc/glibc-functions/setsgent.texi: New file.
15123         * doc/glibc-functions/sgetsgent.texi: New file.
15124         * doc/glibc-functions/sgetsgent_r.texi: New file.
15125         * doc/glibc-functions/malloc_info.texi: New file.
15126         * doc/glibc-functions/preadv.texi: New file.
15127         * doc/glibc-functions/pwritev.texi: New file.
15128         * doc/glibc-functions/register_printf_modifier.texi: New file.
15129         * doc/glibc-functions/register_printf_specifier.texi: New file.
15130         * doc/glibc-functions/register_printf_type.texi: New file.
15131         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15132         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15133         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15134         * doc/glibc-functions/pthread_getname_np.texi: New file.
15135         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15136         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15137         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15138         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15139         * doc/glibc-functions/pthread_setname_np.texi: New file.
15140         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15141         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15142         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15143         * doc/glibc-functions/qsort_r.texi: New file.
15144         * doc/glibc-functions/quick_exit.texi: New file.
15145         * doc/glibc-functions/syncfs.texi: New file.
15146         * doc/gnulib.texi: Include them.
15147         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15148         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15149         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15150         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15151         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15152         * doc/glibc-functions/execvpe.texi: Likewise.
15153
15154 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15155
15156         ftell: don't include <unistd.h>
15157         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15158         guaranteed to define off_t, and the ftell module depends on the
15159         stdio module.
15160
15161         ftell: do not assume wraparound signed arithmetic
15162         * lib/ftell.c: Include <limits.h>.
15163         (ftell): Don't assume wraparound signed arithmetic.
15164
15165 2011-07-24  Bruno Haible  <bruno@clisp.org>
15166
15167         close: No longer depend on module 'fclose'.
15168         * modules/close (Depends-on): Remove fclose.
15169         * NEWS: Mention the change.
15170         Suggested by Sam Steingold <sds@gnu.org>.
15171
15172 2011-07-24  Bruno Haible  <bruno@clisp.org>
15173
15174         fsusage: Enable large volume support on AIX >= 5.2.
15175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15176         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15177         instead of STAT_STATVFS.
15178         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15179
15180         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15182         f_blocks field only on MacOS X.
15183
15184         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15186         * modules/fsusage (Depends-on): Add largefile.
15187
15188 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         * README: Modernize discussion of signed integers.
15191         Assuming overflow wraparound is no longer safe.
15192         Mention ones' complement and signed magnitude.
15193
15194 2011-07-22  Bruno Haible  <bruno@clisp.org>
15195
15196         select tests, pselect tests: Refactor.
15197         * tests/test-select.h: New file, extracted from tests/test-select.c.
15198         (select_fn): New type.
15199         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15200         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15201         test_pipe): Add my_select argument.
15202         (test_function): Renamed from main. Add my_select argument.
15203         * tests/test-select.c: Move most code to tests/test-select.h. Include
15204         test-select.h.
15205         * modules/select-tests (Files): Add tests/test-select.h.
15206         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15207         (my_select, main): New functions.
15208         * modules/pselect-tests (Files): Add tests/test-select.h,
15209         tests/macros.h, tests/signature.h.
15210         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15211         (configure.ac): Check for <sys/wait.h>.
15212
15213 2011-07-22  Bruno Haible  <bruno@clisp.org>
15214
15215         sys_select tests: Check the signature of FD_*.
15216         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15217         signature tests from here...
15218         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15219         here.
15220         * modules/sys_select-tests (Files): Add tests/signature.h.
15221
15222 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15223
15224         largefile: new module, replacing large-inode
15225         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15226         * MODULES.html.sh: Add largefile, remove large-inode.
15227         * modules/largefile, m4/largefile.m4: New files.
15228         * modules/large-inode, m4/large-inode.m4: Remove.
15229
15230         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15232         implementations that use only 32 bits to count blocks.
15233         On typical hosts with 1024-byte blocks, this fails with file
15234         systems as small as 4 TiB.  Problem reported by Herb Wartens
15235         <http://debbugs.gnu.org/9140> and this should also fix a similar
15236         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15237
15238         large-inode: New module
15239         * MODULES.html.sh: Add it.
15240         * modules/large-inode, m4/large-inode.m4: New files.
15241
15242         extensions: Enable extensions on MacOS X 10.5 and later.
15243         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15244
15245 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15246
15247         file-has-acl: use acl_extended_file_nofollow if available
15248         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15249         (acl_extended_file): New macro.
15250         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15251         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15252
15253 2011-07-21  Bruno Haible  <bruno@clisp.org>
15254
15255         Declare system functions in a way that works with C++.
15256         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15257         declare fdopendir as extern "C".
15258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15259         declare frexpl as extern "C".
15260         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15261         declare gai_strerror as extern "C".
15262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15263         programs, declare gai_strerror as extern "C".
15264         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15265         declare getlogin_r as extern "C".
15266         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15267         as extern "C".
15268         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15269         declare ldexpl as extern "C".
15270         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15271         as extern "C".
15272         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15273         program, declare getmntinfo as extern "C".
15274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15275         stpncpy as extern "C".
15276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15277         program, declare __xpg_strerror_r as extern "C".
15278         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15279         strndup as extern "C".
15280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15281         declare memset and bzero as extern "C".
15282         Reported by Sam Steingold <sds@gnu.org>.
15283
15284 2011-07-12  Jim Meyering  <meyering@redhat.com>
15285
15286         maint.mk: prohibit inclusion of "verify.h" without use
15287         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15288
15289 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15290
15291         timer-time: A new module to check for timer_settime()
15292         * m4/timer_time.m4: Check for the posix function.
15293         * modules/timer-time: Add the new module.
15294         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15295         Mention it.
15296
15297 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15298             Bruno Haible  <bruno@clisp.org>
15299
15300         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15301         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15302         not defined, assume POSIX threads and look for pthread_sigmask in
15303         $LIBS, without changing $CPPFLAGS.
15304
15305 2011-07-19  Bruno Haible  <bruno@clisp.org>
15306
15307         strstr: Update cross-compilation guess.
15308         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15309         CPUs, guess no, in view of glibc
15310         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15311         Suggested by Eric Blake. Reported by Reuben Thomas.
15312
15313 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15314
15315         getopt-gnu: suppress core dumps from detection code
15316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15317         to suppress core dumps that may well occur on glibc systems.
15318         * modules/getopt-gnu: Depend on nocrash.
15319
15320 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15321
15322         pthread_sigmask: ensure usleep is declared
15323         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15324         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15325
15326 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         doc: Document NonStop portability issues.
15329         * doc/posix-functions/sigaction.texi (sigaction):
15330         * doc/posix-headers/signal.texi (signal.h):
15331         Document NonStop.  See Joachim Schmitz in
15332         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15333
15334 2011-07-15  Bruno Haible  <bruno@clisp.org>
15335
15336         ffsl, ffsll: Avoid unportable behaviour.
15337         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15338
15339 2011-07-15  Bruno Haible  <bruno@clisp.org>
15340
15341         ffs: More tests.
15342         * tests/test-ffs.c (NBITS): New macro.
15343         (main): Add more tests.
15344         * tests/test-ffsl.c (NBITS): New macro.
15345         (main): Add more tests.
15346         * tests/test-ffsll.c (NBITS): New macro.
15347         (main): Add more tests.
15348
15349 2011-07-15  Eric Blake  <eblake@redhat.com>
15350
15351         ffsl, ffsll: new modules
15352         * modules/ffsl: New file.
15353         * modules/ffsll: Likewise.
15354         * m4/ffsl.m4: Likewise.
15355         * m4/ffsll.m4: Likewise.
15356         * lib/ffsl.c: Likewise.
15357         * lib/ffsl.h: Likewise.
15358         * lib/ffsll.c: Likewise.
15359         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15360         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15361         * modules/string (Makefile.am): Substitute witnesses.
15362         * lib/strings.in.h (ffsl, ffsll): Declare.
15363         * modules/ffsl-tests: New test file.
15364         * modules/ffsll-tests: Likewise.
15365         * tests/test-ffsl.c: Likewise.
15366         * tests/test-ffsll.c: Likewise.
15367         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15368         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15369         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15370
15371         ffs: fix m4 prerequisite
15372         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15373
15374         ffs: avoid undefined behavior
15375         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15376         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15377         Reported by Bruno Haible.
15378
15379 2011-07-12  Bruno Haible  <bruno@clisp.org>
15380
15381         pthread_sigmask: Rely on module 'threadlib'.
15382         * modules/pthread_sigmask (Depends-on): Add threadlib.
15383         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15384         is defined.
15385
15386 2011-07-12  Bruno Haible  <bruno@clisp.org>
15387
15388         regex: Depend on module 'strcase'.
15389         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15390
15391 2011-07-12  Jim Meyering  <meyering@redhat.com>
15392
15393         warn-on-use: fix typo in file name
15394         * modules/snippet/warn-on-use (Files): Correct file name:
15395         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15396
15397 2011-07-12  Bruno Haible  <bruno@clisp.org>
15398
15399         strings: Document module.
15400         * doc/posix-headers/strings.texi: Mention module 'strings'.
15401
15402 2011-07-12  Bruno Haible  <bruno@clisp.org>
15403
15404         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15405         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15406         (Files, Makefile.am): Update.
15407         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15408         * modules/stdlib (Depends-on): Update.
15409
15410 2011-07-12  Bruno Haible  <bruno@clisp.org>
15411
15412         * NEWS: Mention the changes.
15413
15414         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15415         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15416         (Files, Makefile.am): Update.
15417         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15418         * modules/arpa_inet (Depends-on): Update.
15419         * modules/ctype (Depends-on): Update.
15420         * modules/dirent (Depends-on): Update.
15421         * modules/fcntl-h (Depends-on): Update.
15422         * modules/glob (Depends-on): Update.
15423         * modules/iconv-h (Depends-on): Update.
15424         * modules/inttypes-incomplete (Depends-on): Update.
15425         * modules/langinfo (Depends-on): Update.
15426         * modules/locale (Depends-on): Update.
15427         * modules/math (Depends-on): Update.
15428         * modules/netdb (Depends-on): Update.
15429         * modules/poll-h (Depends-on): Update.
15430         * modules/pty (Depends-on): Update.
15431         * modules/search (Depends-on): Update.
15432         * modules/signal (Depends-on): Update.
15433         * modules/spawn (Depends-on): Update.
15434         * modules/stdio (Depends-on): Update.
15435         * modules/stdlib (Depends-on): Update.
15436         * modules/string (Depends-on): Update.
15437         * modules/strings (Depends-on): Update.
15438         * modules/sys_file (Depends-on): Update.
15439         * modules/sys_ioctl (Depends-on): Update.
15440         * modules/sys_select (Depends-on): Update.
15441         * modules/sys_socket (Depends-on): Update.
15442         * modules/sys_stat (Depends-on): Update.
15443         * modules/sys_time (Depends-on): Update.
15444         * modules/sys_times (Depends-on): Update.
15445         * modules/sys_utsname (Depends-on): Update.
15446         * modules/sys_wait (Depends-on): Update.
15447         * modules/termios (Depends-on): Update.
15448         * modules/time (Depends-on): Update.
15449         * modules/unistd (Depends-on): Update.
15450         * modules/wchar (Depends-on): Update.
15451         * modules/wctype-h (Depends-on): Update.
15452         * MODULES.html.sh (Support for building libraries and executables):
15453         Update.
15454
15455         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15456         * modules/snippet/unused-parameter: Renamed from
15457         modules/unused-parameter.
15458         (Files, Makefile.am): Update.
15459         * build-aux/snippet/unused-parameter.h: Renamed from
15460         build-aux/unused-parameter.h.
15461         * modules/selinux-h (Depends-on): Update.
15462         * modules/unistr/base (Depends-on): Update.
15463         * MODULES.html.sh (Core language properties): Update.
15464
15465         Rename module 'link-warning' to 'snippet/link-warning'.
15466         * modules/snippet/link-warning: Renamed from modules/link-warning.
15467         (Files, Makefile.am): Update.
15468         * build-aux/snippet/link-warning.h: Renamed from
15469         build-aux/link-warning.h.
15470         * MODULES.html.sh (Support for building libraries and executables):
15471         Update.
15472
15473         Rename module 'c++defs' to 'snippet/c++defs'.
15474         * modules/snippet/c++defs: Renamed from modules/c++defs.
15475         (Files, Makefile.am): Update.
15476         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15477         * modules/arpa_inet (Depends-on): Update.
15478         * modules/ctype (Depends-on): Update.
15479         * modules/dirent (Depends-on): Update.
15480         * modules/fcntl-h (Depends-on): Update.
15481         * modules/glob (Depends-on): Update.
15482         * modules/iconv-h (Depends-on): Update.
15483         * modules/langinfo (Depends-on): Update.
15484         * modules/locale (Depends-on): Update.
15485         * modules/math (Depends-on): Update.
15486         * modules/netdb (Depends-on): Update.
15487         * modules/poll-h (Depends-on): Update.
15488         * modules/pty (Depends-on): Update.
15489         * modules/search (Depends-on): Update.
15490         * modules/signal (Depends-on): Update.
15491         * modules/spawn (Depends-on): Update.
15492         * modules/stdio (Depends-on): Update.
15493         * modules/stdlib (Depends-on): Update.
15494         * modules/string (Depends-on): Update.
15495         * modules/strings (Depends-on): Update.
15496         * modules/sys_ioctl (Depends-on): Update.
15497         * modules/sys_select (Depends-on): Update.
15498         * modules/sys_socket (Depends-on): Update.
15499         * modules/sys_stat (Depends-on): Update.
15500         * modules/sys_time (Depends-on): Update.
15501         * modules/sys_wait (Depends-on): Update.
15502         * modules/termios (Depends-on): Update.
15503         * modules/time (Depends-on): Update.
15504         * modules/unistd (Depends-on): Update.
15505         * modules/wchar (Depends-on): Update.
15506         * modules/wctype-h (Depends-on): Update.
15507
15508         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15509         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15510         (Files, Makefile.am): Update.
15511         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15512         * modules/argv-iter (Depends-on): Update.
15513         * modules/arpa_inet (Depends-on): Update.
15514         * modules/dirent (Depends-on): Update.
15515         * modules/fcntl-h (Depends-on): Update.
15516         * modules/fnmatch (Depends-on): Update.
15517         * modules/getopt-posix (Depends-on): Update.
15518         * modules/glob (Depends-on): Update.
15519         * modules/iconv-h (Depends-on): Update.
15520         * modules/inttypes-incomplete (Depends-on): Update.
15521         * modules/locale (Depends-on): Update.
15522         * modules/math (Depends-on): Update.
15523         * modules/netdb (Depends-on): Update.
15524         * modules/search (Depends-on): Update.
15525         * modules/signal (Depends-on): Update.
15526         * modules/spawn (Depends-on): Update.
15527         * modules/stdio (Depends-on): Update.
15528         * modules/stdlib (Depends-on): Update.
15529         * modules/string (Depends-on): Update.
15530         * modules/strings (Depends-on): Update.
15531         * modules/sys_socket (Depends-on): Update.
15532         * modules/sys_stat (Depends-on): Update.
15533         * modules/sys_time (Depends-on): Update.
15534         * modules/sys_times (Depends-on): Update.
15535         * modules/sys_utsname (Depends-on): Update.
15536         * modules/time (Depends-on): Update.
15537         * modules/unistd (Depends-on): Update.
15538         * modules/wchar (Depends-on): Update.
15539         * MODULES.html.sh (Support for building libraries and executables):
15540         Update.
15541
15542 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15543
15544         Improvements on _Noreturn and related modules.
15545
15546         modules/_Exit-tests: test _Noreturn too
15547         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15548         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15549         (main): Use them.
15550
15551         stdnoreturn, stdnoreturn-tests: remove modules
15552         They're not needed here and a bit premature for use elsewhere.  See
15553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15554         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15555         * tests/test-stdnoreturn.c: Remove files.
15556         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15557         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15558         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15559         and using noreturn.
15560         * modules/openat, modules/sigpipe-die, modules/xalloc:
15561         * modules/xmemdup0, modules/xstrtol:
15562         Remove dependency on stdnoreturn.
15563
15564         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15565         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15566         Reparenthesize to avoid GCC warning.
15567         Support Microsoft's syntax.
15568         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15569
15570         _Noreturn-tests: remove module
15571         * modules/_Noreturn-tests: Remove.
15572         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15573         * tests/test-_Noreturn.c: Remove.
15574         * tests/test-stdnoreturn.c: Merge from the old
15575         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15576
15577 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15578
15579         _Noreturn, stdnoreturn, and related modules.
15580
15581         * top/maint.mk: Adjust to new noreturn support.
15582         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15583         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15584
15585         xalloc: use stdnoreturn.h
15586         * lib/xalloc.h: Include <stdnoreturn.h>.
15587         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15588         * modules/xalloc (Depends-on): Add stdnoreturn.
15589
15590         xstrtol: use stdnoreturn.h
15591         * lib/xstrtol.h: Include <stdnoreturn.h>.
15592         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15593         * modules/xstrtol (Depends-on): Add stdnoreturn.
15594
15595         xmemdup0: use stdnoreturn.h
15596         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15597         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15598         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15599
15600         sigpipe-die: use stdnoreturn.h
15601         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15602         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15603         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15604
15605         openat: use stdnoreturn.h
15606         * lib/openat.h: Include <stdnoreturn.h>.
15607         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15608         * modules/openat (Depends-on): Add stdnoreturn.
15609
15610         * lib/openat-die.c (openat_save_fail): Modernize comment.
15611
15612         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15613
15614         * lib/glthread/thread.h: Modernize comment.
15615
15616         obstack: use _Noreturn
15617         * lib/obstack.c (__attribute__): Remove macro.
15618         (print_and_abort): Use _Noreturn.
15619
15620         c-stack: use _Noreturn
15621         * lib/c-stack.c (die, overflow_handler, segv_handler):
15622         Use _Noreturn rather than __attribute__((noreturn)).
15623
15624         argmatch-tests, exclude_tests: use _Noreturn
15625         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15626         Remove.
15627         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15628
15629         stdlib: use _Noreturn
15630         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15631         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15632         * modules/stdlib (Depends-on): Add _Noreturn.
15633         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15634
15635         stdnoreturn-tests: new module
15636         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15637
15638         stdnoreturn: new module
15639         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15640         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15641
15642         _Noreturn-tests: new module
15643         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15644
15645         _Noreturn: new module
15646         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15647         New section, mentioning it.
15648         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15649
15650         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15651
15652 2011-07-11  Eric Blake  <eblake@redhat.com>
15653
15654         ffs: new module
15655         * modules/ffs: New file.
15656         * m4/ffs.m4: Likewise.
15657         * lib/ffs.c: Likewise.
15658         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15659         * modules/strings (Makefile.am): Substitute witness.
15660         (Depends-on): Add c++defs.
15661         * lib/strings.in.h (ffs): Declare.
15662         * modules/ffs-tests: New test file.
15663         * tests/test-ffs.c: Test new module.
15664         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15665         * doc/posix-functions/ffs.texi (ffs): Likewise.
15666
15667         regex: avoid compiler warning
15668         * lib/regex.c (includes): Include <strings.h>, for use of
15669         strcasecmp in regcomp.c.
15670         Reported by Joachim Schmitz.
15671
15672 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15673
15674         stdint: respect system's intmax_t if INTMAX_MAX
15675         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15676         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15677         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15678         long but int64_t is long long, and where we will clash with the
15679         system intmax_t if we override it.  See
15680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15681         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15682         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15683         similarly for UINTMAX_C.
15684
15685 2011-07-08  Bruno Haible  <bruno@clisp.org>
15686
15687         pthread_sigmask tests: Avoid a compiler warning.
15688         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15689         non-zero.
15690
15691         sigprocmask tests: A better way to avoid a compiler warning.
15692         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15693         (main): Complain if system() returns non-zero.
15694         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15695
15696 2011-07-08  Bruno Haible  <bruno@clisp.org>
15697
15698         pthread_sigmask: Work around IRIX bug.
15699         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15700         bug.
15701         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15702         there may be unblocked pending signals.
15703         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15704
15705 2011-07-08  Bruno Haible  <bruno@clisp.org>
15706
15707         pthread_sigmask: Work around Cygwin bug.
15708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15709         bug.
15710         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15711         the system's pthread_sigmask function.
15712         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15713
15714 2011-07-08  Bruno Haible  <bruno@clisp.org>
15715
15716         pthread_sigmask: Work around bug in single-threaded implementation.
15717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15718         FreeBSD, HP-UX, Solaris bug.
15719         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15720         * lib/pthread_sigmask.c: Include <stddef.h>.
15721         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15722         the system's pthread_sigmask function.
15723         * modules/pthread_sigmask (configure.ac): Invoke
15724         gl_PREREQ_PTHREAD_SIGMASK.
15725         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15726         HP-UX, Solaris.
15727
15728 2011-07-08  Eric Blake  <eblake@redhat.com>
15729
15730         test-sigprocmask: avoid compiler warning
15731         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15732         * tests/test-sigprocmask.c (main): Use it to silence warning.
15733         Reported by Jim Meyering.
15734
15735         test-snprintf: avoid compiler warning
15736         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15737         * tests/test-vsnprintf.c (main): Likewise.
15738         Reported by Jim Meyering.
15739
15740 2011-07-08  Bruno Haible  <bruno@clisp.org>
15741
15742         Tests for module 'pthread_sigmask'.
15743         * modules/pthread_sigmask-tests: New file.
15744         * tests/test-pthread_sigmask1.c: New file, based on
15745         tests/test-sigprocmask.c.
15746         * tests/test-pthread_sigmask2.c: New file.
15747
15748 2011-07-08  Jim Meyering  <meyering@redhat.com>
15749
15750         test-getopt.h: avoid warning about an unused variable
15751         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15752
15753 2011-07-07  Jim Meyering  <meyering@redhat.com>
15754
15755         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15756         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15757         now that it no longer contains leading TABs.
15758         Remove unused "url=FIXME" statement.
15759
15760 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15761
15762         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15763         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15764         When gl_THREADLIB is not in use, assume that the POSIX sematics
15765         are desired.  This is better for Emacs, which uses POSIX semantics
15766         on GNUish and/or POSIXish platforms, and does not use threads at
15767         all otherwise.
15768
15769         pthread_sigmask: fix typo when testing for libraries
15770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15771         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15772
15773 2011-07-08  Eric Blake  <eblake@redhat.com>
15774
15775         fts: introduce FTS_NOATIME
15776         * lib/fts_.h (FTS_NOATIME): New bit flag.
15777         (FTS_OPTIONMASK): Adjust.
15778         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15779         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15780
15781 2011-07-08  Bruno Haible  <bruno@clisp.org>
15782
15783         Tests for module 'thread'.
15784         * modules/thread-tests: New file.
15785         * tests/test-thread_self.c: New file.
15786         * tests/test-thread_create.cc: New file.
15787
15788 2011-07-08  Bruno Haible  <bruno@clisp.org>
15789
15790         thread: Avoid gcc warnings when using gl_thread_self().
15791         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15792         'void *'.
15793         (gl_thread_self_pointer): Update.
15794
15795 2011-07-07  Bruno Haible  <bruno@clisp.org>
15796
15797         signal-c++-tests: Check declaration of pthread_sigmask.
15798         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15799         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15800         $(LIB_PTHREAD_SIGMASK).
15801
15802 2011-07-07  Bruno Haible  <bruno@clisp.org>
15803
15804         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15805         * lib/signal.in.h (pthread_sigmask): Override if
15806         REPLACE_PTHREAD_SIGMASK is 1.
15807         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15808         REPLACE_PTHREAD_SIGMASK.
15809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15810         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15811         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15812         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15813         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15814
15815 2011-07-07  Bruno Haible  <bruno@clisp.org>
15816
15817         pthread_sigmask: Ensure declaration in <signal.h>.
15818         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15819         include <pthread.h>.
15820         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15821         problem.
15822
15823 2011-07-07  Bruno Haible  <bruno@clisp.org>
15824
15825         pthread_sigmask: Document the module.
15826         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15827
15828 2011-07-07  Bruno Haible  <bruno@clisp.org>
15829
15830         pthread_sigmask: Follow gnulib conventions.
15831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15832         gl_PTHREAD_SIGMASK.
15833         * modules/pthread_sigmask (configure.ac): Update.
15834
15835 2011-07-07  Bruno Haible  <bruno@clisp.org>
15836
15837         pthread_sigmask: Make declaration C++ safe.
15838         * lib/signal.in.h: In two special conditions, just do an #include_next.
15839         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15840         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15841         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15842         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15843         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15844         not REPLACE_PTHREAD_MASK.
15845         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15846         not REPLACE_PTHREAD_MASK.
15847         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15848
15849 2011-07-07  Bruno Haible  <bruno@clisp.org>
15850
15851         pthread_sigmask: Fix return value.
15852         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15853         * lib/pthread_sigmask.c: New file.
15854         * modules/pthread_sigmask (Files): Add it.
15855         (configure.ac): Invoke AC_LIBOBJ.
15856
15857 2011-07-07  Eric Blake  <eblake@redhat.com>
15858
15859         getopt: more portable argv creation
15860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15861         const, use char arrays rather than strings.
15862         Suggested by Paul Eggert.
15863
15864 2011-07-07  Bruno Haible  <bruno@clisp.org>
15865
15866         Tests for module 'sigprocmask'.
15867         * modules/sigprocmask-tests: New file.
15868         * tests/test-sigprocmask.c: New file.
15869
15870 2011-07-07  Bruno Haible  <bruno@clisp.org>
15871
15872         float tests: Tweak.
15873         * tests/test-float.c (main): Tweak skip message.
15874
15875 2011-07-07  Eric Blake  <eblake@redhat.com>
15876
15877         getopt: avoid compiler warning during configure
15878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15879         assigning string literals to non-const pointer.
15880
15881         getopt-gnu: avoid crash in glibc getopt
15882         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15883         * tests/test-getopt.h (test_getopt): Enhance test.
15884         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15885         * doc/posix-functions/getopt.texi (getopt): Document it.
15886         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15887         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15888         Likewise.
15889
15890 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15891
15892         getopt: handle W; without long options in getopt [BZ #12922]
15893         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15894         but no long options are defined, just return 'W'.
15895
15896 2011-07-07  Bruno Haible  <bruno@clisp.org>
15897
15898         Avoid literal tabs.
15899         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15900         variable containing a tab instead of a literal tab.
15901         Reported by Jim Meyering.
15902
15903 2011-07-07  Bruno Haible  <bruno@clisp.org>
15904
15905         Comments.
15906         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15907
15908 2011-07-06  Bruno Haible  <bruno@clisp.org>
15909
15910         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15911         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15912         <winsock2.h>.
15913         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15914         lib/sys_socket.in.h.
15915         (close, gethostname): Hide declarations from <winsock2.h>.
15916         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15917         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15918         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15919         (select): Don't override if gnulib's <sys/select.h> was already
15920         included.
15921         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15922         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15923         setsockopt, shutdown, select): Tweak indentation.
15924
15925 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15926
15927         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15928         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15929         in an application that does not use the sys_select module.
15930
15931 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15932
15933         poll: do not return 0 on timeout=-1
15934         * lib/poll.c: Loop with yield if no events occurred.
15935
15936 2011-07-06  Eric Blake  <eblake@redhat.com>
15937
15938         pthread_sigmask: always replace when not using pthread
15939         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15940         replacement when using some threading other than pthread.  Fix
15941         logic bug.
15942
15943 2011-07-06  Bruno Haible  <bruno@clisp.org>
15944
15945         Comments.
15946         * m4/printf.m4: Update comments about mingw.
15947
15948 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15949
15950         sys_select: define sigset_t more portably
15951         * lib/sys_select.in.h: Always include <sys/types.h>, since
15952         we now need sigset_t and mingw defines it there.
15953         Include <signal.h> before split inclusion guard, to avoid
15954         mishaps on Solaris, whose <signal.h> eventually includes us.
15955         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15956         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15957         which come from ...
15958         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15959         gl_CHECK_TYPE_SIGSET_T.
15960         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15961         does the real work.
15962         * modules/sys_select (Depends-on): Add 'signal'.
15963
15964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15965         Suggested by Bruno Haible.
15966
15967         pselect: Use pthread_sigmask, not sigprocmask.
15968         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15969         multithreaded apps better than sigprocmask does.
15970         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15971         sigprocmask directly.
15972
15973 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15976         Don't #undef,  since we don't need any underlying pselect.
15977         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15978         (Depends-on): Add select.
15979         (Link): Add $(LIBSOCKET).
15980         These changes suggested by Bruno Haible.
15981
15982         pselect: document better
15983         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15984         * doc/posix-functions/pselect.texi (pselect): Document new module.
15985
15986         pthread_sigmask: new module
15987         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15988         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15989         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15990         This is done only as a macro; I don't know how well that'll
15991         work for C++.  Move <sys/types.h> include before the include_next,
15992         to avoid mishap on Solaris.
15993         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15994         * modules/signal (Makefile.am): Substitute the check's results.
15995         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15996
15997         test-pselect: new module
15998         * modules/pselect-tests, tests/test-pselect.c: New files.
15999         * tests/test-select.c, tests/test-sys_select-c++.cc:
16000         If TEST_PSELECT is defined, test pselect instead of testing select.
16001
16002         * tests/test-sys_select.c (sigset_t): Test for it, too.
16003         Suggested by Bruno Haible.
16004
16005 2011-07-05  Eric Blake  <eblake@redhat.com>
16006
16007         snprintf: guarantee %1$d, for libintl
16008         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16009         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16010         * doc/posix-functions/snprintf.texi (snprintf): Update.
16011         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16012         * tests/test-snprintf.c (main): Enhance test.
16013         * tests/test-vsnprintf.c (main): Likewise.
16014
16015 2011-07-05  Jim Meyering  <meyering@redhat.com>
16016
16017         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16018         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16019         per Bruno's request, to accommodate this idiom (no space after "#")
16020         even when the function is inside an #if block:
16021         char *
16022         gets (char *s)
16023         #undef gets
16024         {
16025           ...
16026         }
16027
16028 2011-07-04  Jim Meyering  <meyering@redhat.com>
16029
16030         maint: indent with spaces, not TABs, and add a rule to check this
16031         * tests/test-userspec.c: Indent with spaces, not TABs.
16032         * tests/test-argp.c: Likewise.
16033         * tests/test-c-stack2.sh: Likewise.
16034         * tests/test-parse-duration.sh: Likewise
16035         * m4/strtod.m4: Likewise.
16036         * m4/alloca.m4: Likewise.
16037         * m4/pselect.m4: Likewise.
16038         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16039
16040 2011-07-03  Jim Meyering  <meyering@redhat.com>
16041
16042         maint.mk: correct omissions in prohibit_argmatch_without_use check
16043         This rule would mistakenly report that argmatch.h is included without
16044         use even when both the argmatch and invalid_arg macro were used.
16045         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16046         of argmatch and invalid_arg.
16047
16048 2011-07-03  Bruno Haible  <bruno@clisp.org>
16049
16050         Comments about EINTR.
16051         * lib/safe-read.h: Explain the purpose of this module.
16052         * lib/safe-write.h: Likewise.
16053         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16054         module.
16055         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16056         module.
16057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16058
16059 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         xnanosleep: Rewrite to use new dtotimespec module.
16062         It has the conversion code that used to be in xnanosleep.
16063         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16064         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16065         (TIME_T_MAX): Remove.
16066         (xnanosleep): Rewrite in terms of dtotimespec.
16067         * modules/xnanosleep (Depends-on): Add dtotimespec.
16068         Remove intprops, stdbool.
16069
16070         timespec-add, timespec-sub: new modules
16071         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16072         * lib/timespec-add.c, lib/timespec-sub.c:
16073         * modules/timespec-add, modules/timespec-sub: New files.
16074
16075         dtotimespec: new module
16076         * lib/timespec.h (dtotimespec): New decl.
16077         * lib/dtotimespec.c, modules/dtotimespec: New files.
16078
16079         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16080
16081         pselect: new module
16082         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16083         (pselect): New decls.
16084         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16085         since the standard pselect decl uses 'restrict'.
16086         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16087         HAVE_PSELECT, REPLACE_PSELECT.
16088         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16089         HAVE_PSELECT, REPLACE_PSELECT.
16090         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16091
16092         sys_select: don't depend on sys_socket
16093         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16095         This fix works on GNU and GNU-like platforms, but has not been tested
16096         on native Windows.
16097         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16099         gl_HEADER_SYS_SOCKET.
16100         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16101         gl_PREREQ_SYS_H_WINSOCK2.
16102
16103 2011-06-29  Eric Blake  <eblake@redhat.com>
16104
16105         pipe2: fix C89 compile problem
16106         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16107         Reported by Bruno Haible.
16108
16109         pipe, pipe2: don't corrupt fd on error
16110         * lib/pipe.c (pipe): Leave fd unchanged on error.
16111         * lib/pipe2.c (pipe2): Likewise.
16112         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16113         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16114
16115 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16116
16117         mmap-anon: do not use regular expressions inadvertently
16118         * m4/mmap-anon.m4: Remove trailing period from strings sought
16119         in the output.
16120
16121 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16122
16123         nanosleep: fix integer overflow problem
16124         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16125         arithmetic wraps around on overflow.
16126
16127         nanosleep: simplify carrying
16128         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16129         first call to the underyling nanosleep, not for the last one.
16130         This doesn't fix any bugs, but it simplifies the computation of
16131         the remaining delay.  Found while auditing integer overflow issues.
16132
16133         dup2: remove test for existence of fcntl
16134         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16135         "#if HAVE_FCNTL", in the configure-time test program.
16136         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16137         and therefore speeds up "configure" a bit.  Found while
16138         adding the dup2 module to Emacs.
16139
16140 2011-06-24  Eric Blake  <eblake@redhat.com>
16141
16142         maint.mk: enhance useless header checks
16143         * top/maint.mk (_sc_header_without_use): Check both include
16144         styles.
16145         (sc_prohibit_assert_without_use)
16146         (sc_prohibit_close_stream_without_use)
16147         (sc_prohibit_getopt_without_use)
16148         (sc_prohibit_quotearg_without_use)
16149         (sc_prohibit_quote_without_use)
16150         (sc_prohibit_long_options_without_use)
16151         (sc_prohibit_inttostr_without_use)
16152         (sc_prohibit_ignore_value_without_use)
16153         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16154         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16155         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16156         (sc_prohibit_hash_pjw_without_use)
16157         (sc_prohibit_safe_read_without_use)
16158         (sc_prohibit_argmatch_without_use)
16159         (sc_prohibit_canonicalize_without_use)
16160         (sc_prohibit_root_dev_ino_without_use)
16161         (sc_prohibit_openat_without_use)
16162         (sc_prohibit_c_ctype_without_use)
16163         (sc_prohibit_signal_without_use)
16164         (sc_prohibit_stdio--_without_use)
16165         (sc_prohibit_stdio-safer_without_use)
16166         (sc_prohibit_strings_without_use)
16167         (sc_prohibit_intprops_without_use)
16168         (sc_prohibit_stddef_without_use)
16169         (sc_prohibit_xfreopen_without_use): Update clients.
16170
16171 2011-06-24  Jim Meyering  <meyering@redhat.com>
16172
16173         syntax-check: keep one maint.mk rule in sync with its header
16174         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16175         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16176         I prefer to avoid temporary files here, so use <(...), but that
16177         is not supported by /bin/sh, so...
16178         (SHELL): Define to /bin/bash.
16179
16180 2011-06-24  Eric Blake  <eblake@redhat.com>
16181
16182         maint.mk: update sc_prohibit_intprops_without_use
16183         * top/maint.mk (_intprops_names): Match recent changes.
16184
16185 2011-06-24  Bruno Haible  <bruno@clisp.org>
16186
16187         strerror-override: No-op tweak.
16188         * lib/strerror-override.h (strerror_override): Reorder conditions,
16189         for consistency with lib/strerror-override.c.
16190
16191 2011-06-23  Eric Blake  <eblake@redhat.com>
16192
16193         maint.mk: test further PATH_MAX issues
16194         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16195         (sc_prohibit_path_max_allocation): ...and also test alloca.
16196         Suggested by Jim Meyering.
16197
16198 2011-06-22  Eric Blake  <eblake@redhat.com>
16199
16200         maint.mk: add syntax-check to avoid char[PATH_MAX]
16201         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16202
16203         stat: be robust to PATH_MAX definition
16204         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16205         * modules/stat (Depends-on): Add verify.
16206
16207         link: work around IRIX bug
16208         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16209         * lib/link.c (rpl_link): Work around it.
16210         * tests/test-link.h (test_link): Enhance test.
16211         * doc/posix-functions/link.texi (link): Document the bug.
16212
16213         getopt: silence clang warning
16214         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16215         dereference.
16216         Reported by Gustavo Martin Domato.
16217
16218 2011-06-22  Jim Meyering  <meyering@redhat.com>
16219
16220         bootstrap: do not insert a blank line into each .gitignore file
16221         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16222
16223 2011-06-21  Eric Blake  <eblake@redhat.com>
16224
16225         perror: test for output mismatch
16226         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16227         perror on IRIX.
16228
16229         strerror_r: fix OpenBSD behavior on out-of-range
16230         * lib/strerror_r.c (strerror_r): Always use maximal string.
16231         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16232
16233         strerror_r: fix OpenBSD behavior on 0
16234         * lib/strerror-override.c (strerror_override): Also override 0
16235         when needed.
16236         * lib/strerror-override.h (strerror_override): Likewise.
16237         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16238         earlier.
16239         * lib/strerror_r.c (strerror_r): Likewise.
16240         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16241         behavior...
16242         (gl_FUNC_STRERROR_0): ...into new macro.
16243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16244         is overridden.
16245         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16246         * modules/strerror-override (Files): Add strerror.m4.
16247         (configure.ac): Also provide override for 0 when needed.
16248         * doc/posix-functions/strerror.texi (strerror): Document this.
16249         * doc/posix-functions/perror.texi (perror): Likewise.
16250
16251         perror: adjust array size
16252         * modules/perror (Depends-on): Add strerror-override.
16253         * lib/perror.c (perror): Use it to avoid magic number.
16254
16255         strerror-override: reduce size
16256         * lib/strerror-override.c (strerror_override): Use fewer lines.
16257
16258 2011-06-20  Bruno Haible  <bruno@clisp.org>
16259
16260         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16261         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16262
16263 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         alloca: port to compilers that can optimize like GCC 4.6.0
16266         * lib/alloca.c (find_stack_direction): New signature, taken from
16267         Autoconf git.  This works with GCC 4.6.0.  This code should never
16268         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16269         be used with other compilers that optimize as well as GCC 4.6.0 does.
16270         (alloca): Adjust to new signature.
16271         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16272         New macro, which patches Autoconf in a similar way.
16273
16274         c-stack: stop worrying about stack direction
16275         * lib/c-stack.c (find_stack_direction): Remove.
16276         (segv_handler): Don't worry about stack direction growth, as it's
16277         too much of a pain to configure this correctly, given how compilers
16278         are optimizing-away our stack-growth detection code.  Instead, assume
16279         that any access to just before or just after the stack is OK.
16280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16281         Don't require AC_FUNC_ALLOCA; no longer needed.
16282
16283 2011-06-20  Eric Blake  <eblake@redhat.com>
16284
16285         test-stat: don't allocate PATH_MAX bytes
16286         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16287         PATH_MAX-sized buffer.
16288         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16289         * modules/stat-tests (Depends-on): Likewise.
16290         * tests/test-fstatat.c (includes): Drop pathmax.h.
16291         * tests/test-stat.c (includes): Likewise.
16292         Reported by Bruno Haible.
16293
16294 2011-06-20  Bruno Haible  <bruno@clisp.org>
16295
16296         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16297         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16298         * lib/float.c: New file.
16299         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16300         REPLACE_FLOAT_LDBL.
16301         * modules/float (Files): Add lib/float.c.
16302         (configure.ac): Invoke AC_LIBOBJ.
16303         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16304
16305 2011-06-20  Bruno Haible  <bruno@clisp.org>
16306
16307         Tests for module 'float'.
16308         * modules/float-tests: New file.
16309         * tests/test-float.c: New file.
16310
16311 2011-06-19  Bruno Haible  <bruno@clisp.org>
16312
16313         isinf: Coding style.
16314         * lib/isinf.c: Use GNU coding style.
16315
16316 2011-06-19  Bruno Haible  <bruno@clisp.org>
16317
16318         linkat test: Avoid test failure on AIX 7.1.
16319         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16320         * tests/test-link.h (test_link): Likewise.
16321
16322 2011-06-19  Bruno Haible  <bruno@clisp.org>
16323
16324         pread test: Avoid test failure on OpenBSD 4.9.
16325         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16326
16327 2011-06-19  Bruno Haible  <bruno@clisp.org>
16328
16329         sprintf-posix: Fix test failure on AIX 7.1.
16330         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16331         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16332         on AIX.
16333         * doc/posix-functions/fprintf.texi: Likewise.
16334         * doc/posix-functions/printf.texi: Likewise.
16335         * doc/posix-functions/snprintf.texi: Likewise.
16336         * doc/posix-functions/sprintf.texi: Likewise.
16337         * doc/posix-functions/vdprintf.texi: Likewise.
16338         * doc/posix-functions/vfprintf.texi: Likewise.
16339         * doc/posix-functions/vprintf.texi: Likewise.
16340         * doc/posix-functions/vsnprintf.texi: Likewise.
16341         * doc/posix-functions/vsprintf.texi: Likewise.
16342
16343 2011-06-19  Bruno Haible  <bruno@clisp.org>
16344
16345         roundl-ieee: Fix test failure on AIX 7.1.
16346         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16347         * doc/posix-functions/roundl.texi: Mention problem with negative
16348         arguments.
16349
16350 2011-06-19  Bruno Haible  <bruno@clisp.org>
16351
16352         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16353         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16354         * doc/posix-functions/round.texi: Mention problem with negative
16355         arguments.
16356         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16357
16358 2011-06-19  Bruno Haible  <bruno@clisp.org>
16359
16360         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16361         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16362         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16363         * doc/posix-functions/roundf.texi: Mention problem with negative
16364         arguments.
16365         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16366
16367 2011-06-19  Bruno Haible  <bruno@clisp.org>
16368
16369         ceilf-ieee: Work around bug on MacOS X 10.5.
16370         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16371
16372         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16373         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16374         IEEE compliant, avoid compiler optimizations.
16375         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16376         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16377         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16378         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16379         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16380         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16381         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16382         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16383         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16385
16386 2011-06-19  Bruno Haible  <bruno@clisp.org>
16387
16388         ceilf-ieee: Work around bug on AIX 7.1.
16389         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16390         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16391
16392 2011-06-19  Bruno Haible  <bruno@clisp.org>
16393
16394         ceil-ieee: Work around bug on AIX 7.1.
16395         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16396         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16397
16398 2011-06-18  Bruno Haible  <bruno@clisp.org>
16399
16400         fsync test: Avoid test failure on MacOS X and AIX.
16401         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16402         EINVAL.
16403
16404 2011-06-18  Bruno Haible  <bruno@clisp.org>
16405
16406         openat, fdopendir tests: Fix link errors.
16407         * modules/openat-tests (Depends-on): Add progname.
16408         * modules/fdopendir-tests (Depends-on): Likewise.
16409         * tests/test-fchownat.c: Include progname.h.
16410         (main): Call set_program_name.
16411         * tests/test-fstatat.c: Include progname.h.
16412         (main): Call set_program_name.
16413         * tests/test-mkdirat.c: Include progname.h.
16414         (main): Call set_program_name.
16415         * tests/test-openat.c: Include progname.h.
16416         (main): Call set_program_name.
16417         * tests/test-unlinkat.c: Include progname.h.
16418         (main): Call set_program_name.
16419         * tests/test-fdopendir.c: Include progname.h.
16420         (main): Call set_program_name.
16421
16422 2011-06-18  Bruno Haible  <bruno@clisp.org>
16423
16424         Doc update.
16425         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16426         HP-UX.
16427         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16428
16429 2011-06-18  Bruno Haible  <bruno@clisp.org>
16430
16431         getcwd tests: Avoid compilation error on HP-UX 11.31.
16432         * modules/getcwd-tests (Depends-on): Add pathmax.
16433         * tests/test-getcwd.c: Include pathmax.h.
16434
16435 2011-06-18  Bruno Haible  <bruno@clisp.org>
16436
16437         isfinite, isinf: Fix link error on AIX 6 and 7.
16438         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16439         needed, also test the macro with a 'float' argument.
16440         * m4/isinf.m4 (gl_ISINF): Likewise.
16441
16442 2011-06-18  Bruno Haible  <bruno@clisp.org>
16443
16444         getloadavg: Don't clobber LIBS. Regression from previous commit.
16445         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16446         AC_CHECK_LIB from here...
16447         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16448         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16449         gl_func_getloadavg_done.
16450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16451
16452 2011-06-18  Bruno Haible  <bruno@clisp.org>
16453
16454         clean-temp: Improve documentation.
16455         * lib/clean-temp.h: Explain better how to use this module.
16456         Reported by John Darrington <john@darrington.wattle.id.au>.
16457
16458 2011-06-17  Bruno Haible  <bruno@clisp.org>
16459
16460         pread, pwrite: Avoid cc warning on AIX.
16461         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16462         (pwrite): Likewise.
16463
16464 2011-06-17  Bruno Haible  <bruno@clisp.org>
16465
16466         spawn-pipe tests: Fix link error.
16467         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16469
16470 2011-06-17  Bruno Haible  <bruno@clisp.org>
16471
16472         Tests: Remove unnecessary dependency.
16473         * modules/canonicalize-tests (Depends-on): Remove progname.
16474         * modules/chown-tests (Depends-on): Likewise.
16475         * modules/dirname-tests (Depends-on): Likewise.
16476         * modules/fdopendir-tests (Depends-on): Likewise.
16477         * modules/fdutimensat-tests (Depends-on): Likewise.
16478         * modules/hash-tests (Depends-on): Likewise.
16479         * modules/lchown-tests (Depends-on): Likewise.
16480         * modules/linkat-tests (Depends-on): Likewise.
16481         * modules/renameat-tests (Depends-on): Likewise.
16482         * modules/spawn-pipe-tests (Depends-on): Likewise.
16483         * modules/utimensat-tests (Depends-on): Likewise.
16484
16485 2011-06-17  Bruno Haible  <bruno@clisp.org>
16486
16487         spawn-pipe tests: Fix link error.
16488         * tests/test-spawn-pipe-child.c: Undefine fflush.
16489
16490 2011-06-17  Bruno Haible  <bruno@clisp.org>
16491
16492         Fix tests link errors.
16493         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16494         * modules/chown-tests (Makefile.am): Don't link test-chown with
16495         LIBINTL.
16496         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16497         LIBINTL.
16498         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16499         LIBINTL.
16500         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16501         LIBINTL.
16502
16503 2011-06-16  Bruno Haible  <bruno@clisp.org>
16504
16505         crypto/gc-sha1: Fix recent regression.
16506         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16507         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16508
16509         crypto/gc-md5: Fix recent regression.
16510         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16511
16512         crypto/gc-md4: Fix recent regression.
16513         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16514         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16515
16516         crypto/gc-arctwo: Fix recent regression.
16517         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16518         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16519
16520         crypto/gc-rijndael: Fix recent regression.
16521         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16522         (configure.ac): Invoke AC_LIBOBJ here.
16523         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16525
16526         crypto/gc-hmac-sha1: Fix recent regression.
16527         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16528         (configure.ac): Invoke AC_LIBOBJ here.
16529         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16531
16532         crypto/gc-hmac-md5: Fix recent regression.
16533         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16534         (configure.ac): Invoke AC_LIBOBJ here.
16535         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16537
16538         crypto/gc-des: Fix recent regression.
16539         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16540         (configure.ac): Invoke AC_LIBOBJ here.
16541         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16543
16544         crypto/gc-arcfour: Fix recent regression.
16545         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16546         (configure.ac): Invoke AC_LIBOBJ here.
16547         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16549
16550 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16551
16552         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16553         After the 2011-05-21 change, this macro requires
16554         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16555         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16556
16557 2011-06-16  Bruno Haible  <bruno@clisp.org>
16558
16559         fprintftime: Move AC_LIBOBJ invocations to module description.
16560         * m4/fprintftime.m4: Remove file.
16561         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16562         (configure.ac): Remove gl_FPRINTFTIME call.
16563         (Makefile.am): Augment lib_SOURCES.
16564         Reported by Jim Meyering.
16565
16566 2011-06-16  Bruno Haible  <bruno@clisp.org>
16567
16568         tmpfile-safer: Finish 2011-05-23 commit.
16569         * m4/stdio-safer.m4: Really remove file.
16570         Reported by Jim Meyering.
16571
16572 2011-06-16  Bruno Haible  <bruno@clisp.org>
16573
16574         syntax-check: Fix typo.
16575         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16576         printf-posix.m4.
16577         Reported by Jim Meyering.
16578
16579 2011-06-13  Jim Meyering  <meyering@redhat.com>
16580
16581         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16582         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16583
16584 2011-05-23  Bruno Haible  <bruno@clisp.org>
16585
16586         yesno: Move AC_LIBOBJ invocations to module description.
16587         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16588         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16589
16590 2011-05-23  Bruno Haible  <bruno@clisp.org>
16591
16592         xstrtol: Move AC_LIBOBJ invocations to module description.
16593         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16594         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16595
16596 2011-05-23  Bruno Haible  <bruno@clisp.org>
16597
16598         xstrtold: Move AC_LIBOBJ invocations to module description.
16599         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16600         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16601
16602 2011-05-23  Bruno Haible  <bruno@clisp.org>
16603
16604         xstrtod: Move AC_LIBOBJ invocations to module description.
16605         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16606         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16607
16608 2011-05-23  Bruno Haible  <bruno@clisp.org>
16609
16610         xnanosleep: Move AC_LIBOBJ invocations to module description.
16611         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16612         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16613
16614 2011-05-23  Bruno Haible  <bruno@clisp.org>
16615
16616         xgetcwd: Move AC_LIBOBJ invocations to module description.
16617         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16618         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16619
16620 2011-05-23  Bruno Haible  <bruno@clisp.org>
16621
16622         xalloc: Move AC_LIBOBJ invocations to module description.
16623         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16624         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16625
16626 2011-05-23  Bruno Haible  <bruno@clisp.org>
16627
16628         write-any-file: Move AC_LIBOBJ invocations to module description.
16629         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16630         invocation.
16631         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16632
16633 2011-05-23  Bruno Haible  <bruno@clisp.org>
16634
16635         utimens: Move AC_LIBOBJ invocations to module description.
16636         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16637         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16638
16639 2011-05-23  Bruno Haible  <bruno@clisp.org>
16640
16641         utimecmp: Move AC_LIBOBJ invocations to module description.
16642         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16643         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16644
16645 2011-05-23  Bruno Haible  <bruno@clisp.org>
16646
16647         userspec: Move AC_LIBOBJ invocations to module description.
16648         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16649         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16650
16651 2011-05-23  Bruno Haible  <bruno@clisp.org>
16652
16653         unlinkdir: Move AC_LIBOBJ invocations to module description.
16654         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16655         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16656
16657 2011-05-23  Bruno Haible  <bruno@clisp.org>
16658
16659         unistd-safer: Move AC_LIBOBJ invocations to module description.
16660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16661         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16662
16663 2011-05-23  Bruno Haible  <bruno@clisp.org>
16664
16665         tempname: Move AC_LIBOBJ invocations to module description.
16666         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16667         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16668
16669 2011-05-23  Bruno Haible  <bruno@clisp.org>
16670
16671         strftime: Move AC_LIBOBJ invocations to module description.
16672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16673         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16674
16675 2011-05-23  Bruno Haible  <bruno@clisp.org>
16676
16677         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16678         * m4/stdlib-safer.m4: Remove file.
16679         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16680         (configure.ac): Remove gl_STDLIB_SAFER call.
16681         (Makefile.am): Augment lib_SOURCES.
16682
16683 2011-05-23  Bruno Haible  <bruno@clisp.org>
16684
16685         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16686         * m4/stdio-safer.m4: Remove file.
16687         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16688         (configure.ac): Remove gl_TMPFILE_SAFER call.
16689         (Makefile.am): Augment lib_SOURCES.
16690
16691 2011-05-23  Bruno Haible  <bruno@clisp.org>
16692
16693         popen-safer: Move AC_LIBOBJ invocations to module description.
16694         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16695         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16696         (configure.ac): Remove gl_POPEN_SAFER call.
16697         (Makefile.am): Augment lib_SOURCES.
16698
16699 2011-05-23  Bruno Haible  <bruno@clisp.org>
16700
16701         freopen-safer: Move AC_LIBOBJ invocations to module description.
16702         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16703         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16704         (configure.ac): Remove gl_FREOPEN_SAFER call.
16705         (Makefile.am): Augment lib_SOURCES.
16706
16707 2011-05-23  Bruno Haible  <bruno@clisp.org>
16708
16709         fopen-safer: Move AC_LIBOBJ invocations to module description.
16710         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16711         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16712         (configure.ac): Remove gl_FOPEN_SAFER call.
16713         (Makefile.am): Augment lib_SOURCES.
16714
16715 2011-05-23  Bruno Haible  <bruno@clisp.org>
16716
16717         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16718         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16719         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16720
16721 2011-05-23  Bruno Haible  <bruno@clisp.org>
16722
16723         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16724         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16725         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16726
16727 2011-05-23  Bruno Haible  <bruno@clisp.org>
16728
16729         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16730         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16731         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16732
16733 2011-05-23  Bruno Haible  <bruno@clisp.org>
16734
16735         settime: Move AC_LIBOBJ invocations to module description.
16736         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16737         * modules/settime (Makefile.am): Augment lib_SOURCES.
16738
16739 2011-05-23  Bruno Haible  <bruno@clisp.org>
16740
16741         savedir: Move AC_LIBOBJ invocations to module description.
16742         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16743         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16744
16745 2011-05-23  Bruno Haible  <bruno@clisp.org>
16746
16747         save-cwd: Move AC_LIBOBJ invocations to module description.
16748         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16749         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16750
16751 2011-05-23  Bruno Haible  <bruno@clisp.org>
16752
16753         same: Move AC_LIBOBJ invocations to module description.
16754         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16755         * modules/same (Makefile.am): Augment lib_SOURCES.
16756
16757 2011-05-23  Bruno Haible  <bruno@clisp.org>
16758
16759         safe-write: Move AC_LIBOBJ invocations to module description.
16760         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16761         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16762         instead of gl_SAFE_WRITE.
16763         (Makefile.am): Augment lib_SOURCES.
16764
16765 2011-05-23  Bruno Haible  <bruno@clisp.org>
16766
16767         safe-read: Move AC_LIBOBJ invocations to module description.
16768         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16769         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16770         of gl_SAFE_READ.
16771         (Makefile.am): Augment lib_SOURCES.
16772
16773 2011-05-23  Bruno Haible  <bruno@clisp.org>
16774
16775         safe-alloc: Move AC_LIBOBJ invocations to module description.
16776         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16777         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16778
16779 2011-05-23  Bruno Haible  <bruno@clisp.org>
16780
16781         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16782         * m4/rijndael.m4: Remove file.
16783         * modules/crypto/rijndael (Files): Remove it.
16784         (configure.ac): Remove gl_RIJNDAEL call.
16785         (Makefile.am): Augment lib_SOURCES.
16786
16787 2011-05-23  Bruno Haible  <bruno@clisp.org>
16788
16789         readtokens: Move AC_LIBOBJ invocations to module description.
16790         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16791         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16792
16793 2011-05-23  Bruno Haible  <bruno@clisp.org>
16794
16795         read-file: Move AC_LIBOBJ invocations to module description.
16796         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16797         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16798         of gl_FUNC_READ_FILE.
16799         (Makefile.am): Augment lib_SOURCES.
16800
16801 2011-05-23  Bruno Haible  <bruno@clisp.org>
16802
16803         quotearg: Move AC_LIBOBJ invocations to module description.
16804         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16805         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16806
16807 2011-05-23  Bruno Haible  <bruno@clisp.org>
16808
16809         quote: Move AC_LIBOBJ invocations to module description.
16810         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16811         * modules/quote (Makefile.am): Augment lib_SOURCES.
16812
16813 2011-05-23  Bruno Haible  <bruno@clisp.org>
16814
16815         posixver: Move AC_LIBOBJ invocations to module description.
16816         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16817         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16818
16819 2011-05-23  Bruno Haible  <bruno@clisp.org>
16820
16821         posixtm: Move AC_LIBOBJ invocations to module description.
16822         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16823         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16824
16825 2011-05-23  Bruno Haible  <bruno@clisp.org>
16826
16827         physmem: Move AC_LIBOBJ invocations to module description.
16828         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16829         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16830
16831 2011-05-23  Bruno Haible  <bruno@clisp.org>
16832
16833         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16834         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16835         invocation.
16836         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16837
16838 2011-05-23  Bruno Haible  <bruno@clisp.org>
16839
16840         mpsort: Move AC_LIBOBJ invocations to module description.
16841         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16842         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16843
16844 2011-05-23  Bruno Haible  <bruno@clisp.org>
16845
16846         modechange: Move AC_LIBOBJ invocations to module description.
16847         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16848         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16849
16850 2011-05-23  Bruno Haible  <bruno@clisp.org>
16851
16852         mkdir-p: Move AC_LIBOBJ invocations to module description.
16853         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16854         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16855
16856 2011-05-23  Bruno Haible  <bruno@clisp.org>
16857
16858         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16859         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16860         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16861
16862 2011-05-23  Bruno Haible  <bruno@clisp.org>
16863
16864         mgetgroups: Move AC_LIBOBJ invocations to module description.
16865         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16866         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16867
16868 2011-05-23  Bruno Haible  <bruno@clisp.org>
16869
16870         memxor: Move AC_LIBOBJ invocations to module description.
16871         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16872         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16873
16874 2011-05-23  Bruno Haible  <bruno@clisp.org>
16875
16876         memcoll: Move AC_LIBOBJ invocations to module description.
16877         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16878         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16879
16880 2011-05-23  Bruno Haible  <bruno@clisp.org>
16881
16882         memcasecmp: Move AC_LIBOBJ invocations to module description.
16883         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16884         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16885
16886 2011-05-23  Bruno Haible  <bruno@clisp.org>
16887
16888         crypto/md5: Move AC_LIBOBJ invocations to module description.
16889         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16890         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16891
16892 2011-05-23  Bruno Haible  <bruno@clisp.org>
16893
16894         crypto/md4: Move AC_LIBOBJ invocations to module description.
16895         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16896         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16897
16898 2011-05-23  Bruno Haible  <bruno@clisp.org>
16899
16900         crypto/md2: Move AC_LIBOBJ invocations to module description.
16901         * m4/md2.m4: Remove file.
16902         * modules/crypto/md2 (Files): Remove it.
16903         (configure.ac): Remove gl_MD2 call.
16904         (Makefile.am): Augment lib_SOURCES.
16905
16906 2011-05-23  Bruno Haible  <bruno@clisp.org>
16907
16908         long-options: Move AC_LIBOBJ invocations to module description.
16909         * m4/long-options.m4: Remove file.
16910         * modules/long-options (Files): Remove it.
16911         (configure.ac): Remove gl_LONG_OPTIONS call.
16912         (Makefile.am): Augment lib_SOURCES.
16913
16914 2011-05-23  Bruno Haible  <bruno@clisp.org>
16915
16916         i-ring: Move AC_LIBOBJ invocations to module description.
16917         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16918         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16919
16920 2011-05-23  Bruno Haible  <bruno@clisp.org>
16921
16922         idcache: Move AC_LIBOBJ invocations to module description.
16923         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16924         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16925
16926 2011-05-23  Bruno Haible  <bruno@clisp.org>
16927
16928         human: Move AC_LIBOBJ invocations to module description.
16929         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16930         * modules/human (Makefile.am): Augment lib_SOURCES.
16931
16932 2011-05-23  Bruno Haible  <bruno@clisp.org>
16933
16934         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16935         * m4/hmac-sha1.m4: Remove file.
16936         * modules/crypto/hmac-sha1 (Files): Remove it.
16937         (configure.ac): Remove gl_HMAC_SHA1 call.
16938         (Makefile.am): Augment lib_SOURCES.
16939
16940 2011-05-23  Bruno Haible  <bruno@clisp.org>
16941
16942         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16943         * m4/hmac-md5.m4: Remove file.
16944         * modules/crypto/hmac-md5 (Files): Remove it.
16945         (configure.ac): Remove gl_HMAC_MD5 call.
16946         (Makefile.am): Augment lib_SOURCES.
16947
16948 2011-05-23  Bruno Haible  <bruno@clisp.org>
16949
16950         hash: Move AC_LIBOBJ invocations to module description.
16951         * m4/hash.m4: Remove file.
16952         * modules/hash (Files): Remove it.
16953         (configure.ac): Remove gl_HASH call.
16954         (Makefile.am): Augment lib_SOURCES.
16955
16956 2011-05-23  Bruno Haible  <bruno@clisp.org>
16957
16958         hard-locale: Move AC_LIBOBJ invocations to module description.
16959         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16960         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16961
16962 2011-05-23  Bruno Haible  <bruno@clisp.org>
16963
16964         getugroups: Move AC_LIBOBJ invocations to module description.
16965         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16966         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16967
16968 2011-05-23  Bruno Haible  <bruno@clisp.org>
16969
16970         gettime: Move AC_LIBOBJ invocations to module description.
16971         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16972         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16973
16974 2011-05-23  Bruno Haible  <bruno@clisp.org>
16975
16976         getndelim2: Move AC_LIBOBJ invocations to module description.
16977         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16978         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16979
16980 2011-05-23  Bruno Haible  <bruno@clisp.org>
16981
16982         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16983         * m4/gc-pbkdf2-sha1.m4: Remove file.
16984         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16985         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16986         (Makefile.am): Augment lib_SOURCES.
16987
16988 2011-05-23  Bruno Haible  <bruno@clisp.org>
16989
16990         fts: Move AC_LIBOBJ invocations to module description.
16991         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16992         * modules/fts (configure.ac): ... to here.
16993
16994 2011-05-23  Bruno Haible  <bruno@clisp.org>
16995
16996         file-type: Move AC_LIBOBJ invocations to module description.
16997         * m4/file-type.m4: Remove file.
16998         * modules/file-type (Files): Remove it.
16999         (configure.ac): Remove gl_FILE_TYPE call.
17000         (Makefile.am): Augment lib_SOURCES.
17001
17002 2011-05-23  Bruno Haible  <bruno@clisp.org>
17003
17004         filenamecat*: Respect rules for use of AC_LIBOBJ.
17005         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17006         Remove AC_LIBOBJ invocation.
17007         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17008         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17009
17010 2011-05-23  Bruno Haible  <bruno@clisp.org>
17011
17012         filemode: Move AC_LIBOBJ invocations to module description.
17013         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17014         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17015
17016 2011-05-23  Bruno Haible  <bruno@clisp.org>
17017
17018         openat-safer: Move AC_LIBOBJ invocations to module description.
17019         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17020         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17021
17022 2011-05-23  Bruno Haible  <bruno@clisp.org>
17023
17024         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17025         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17026         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17027
17028 2011-05-23  Bruno Haible  <bruno@clisp.org>
17029
17030         exclude: Move AC_LIBOBJ invocations to module description.
17031         * m4/exclude.m4: Remove file.
17032         * modules/exclude (Files): Remove it.
17033         (configure.ac): Remove gl_EXCLUDE call.
17034         (Makefile.am): Augment lib_SOURCES.
17035
17036 2011-05-23  Bruno Haible  <bruno@clisp.org>
17037
17038         dirname*: Respect rules for use of AC_LIBOBJ.
17039         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17040         invocations.
17041         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17042         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17043
17044 2011-05-23  Bruno Haible  <bruno@clisp.org>
17045
17046         dirent-safer: Move AC_LIBOBJ invocations to module description.
17047         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17048         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17049
17050 2011-05-23  Bruno Haible  <bruno@clisp.org>
17051
17052         crypto/des: Move AC_LIBOBJ invocations to module description.
17053         * m4/des.m4: Remove file.
17054         * modules/crypto/des (Files): Remove it.
17055         (configure.ac): Remove gl_DES call.
17056         (Makefile.am): Augment lib_SOURCES.
17057
17058 2011-05-23  Bruno Haible  <bruno@clisp.org>
17059
17060         cycle-check: Move AC_LIBOBJ invocations to module description.
17061         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17062         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17063
17064 2011-05-23  Bruno Haible  <bruno@clisp.org>
17065
17066         c-strtold: Move AC_LIBOBJ invocations to module description.
17067         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17068         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17069
17070 2011-05-23  Bruno Haible  <bruno@clisp.org>
17071
17072         c-strtod: Move AC_LIBOBJ invocations to module description.
17073         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17074         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17075
17076 2011-05-23  Bruno Haible  <bruno@clisp.org>
17077
17078         crc: Move AC_LIBOBJ invocations to module description.
17079         * m4/crc.m4: Remove file.
17080         * modules/crc (Files): Remove it.
17081         (configure.ac): Remove gl_CRC call.
17082         (Makefile.am): Augment lib_SOURCES.
17083
17084 2011-05-23  Bruno Haible  <bruno@clisp.org>
17085
17086         close-stream: Move AC_LIBOBJ invocations to module description.
17087         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17088         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17089
17090 2011-05-23  Bruno Haible  <bruno@clisp.org>
17091
17092         closeout: Move AC_LIBOBJ invocations to module description.
17093         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17094         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17095
17096 2011-05-23  Bruno Haible  <bruno@clisp.org>
17097
17098         closein: Move AC_LIBOBJ invocations to module description.
17099         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17100         * modules/closein (Makefile.am): Augment lib_SOURCES.
17101
17102 2011-05-23  Bruno Haible  <bruno@clisp.org>
17103
17104         cloexec: Move AC_LIBOBJ invocations to module description.
17105         * m4/cloexec.m4: Remove file.
17106         * modules/cloexec (Files): Remove it.
17107         (configure.ac): Remove gl_CLOEXEC call.
17108         (Makefile.am): Augment lib_SOURCES.
17109
17110 2011-05-23  Bruno Haible  <bruno@clisp.org>
17111
17112         check-version: Move AC_LIBOBJ invocations to module description.
17113         * m4/check-version.m4: Remove file.
17114         * modules/check-version (Files): Remove it.
17115         (configure.ac): Remove gl_CHECK_VERSION call.
17116         (Makefile.am): Augment lib_SOURCES.
17117
17118 2011-05-23  Bruno Haible  <bruno@clisp.org>
17119
17120         chdir-safer: Move AC_LIBOBJ invocations to module description.
17121         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17122         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17123
17124 2011-05-23  Bruno Haible  <bruno@clisp.org>
17125
17126         canonicalize: Move AC_LIBOBJ invocations to module description.
17127         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17128         AC_LIBOBJ invocation.
17129         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17130
17131 2011-05-23  Bruno Haible  <bruno@clisp.org>
17132
17133         canon-host: Move AC_LIBOBJ invocations to module description.
17134         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17135         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17136         instead of gl_CANON_HOST.
17137         (Makefile.am): Augment lib_SOURCES.
17138
17139 2011-05-23  Bruno Haible  <bruno@clisp.org>
17140
17141         backupfile: Move AC_LIBOBJ invocations to module description.
17142         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17143         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17144
17145 2011-05-23  Bruno Haible  <bruno@clisp.org>
17146
17147         argmatch: Move AC_LIBOBJ invocations to module description.
17148         * m4/argmatch.m4: Remove file.
17149         * modules/argmatch (Files): Remove it.
17150         (configure.ac): Remove gl_ARGMATCH call.
17151         (Makefile.am): Augment lib_SOURCES.
17152
17153 2011-05-23  Bruno Haible  <bruno@clisp.org>
17154
17155         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17156         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17157         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17158
17159 2011-05-23  Bruno Haible  <bruno@clisp.org>
17160
17161         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17162         * m4/arcfour.m4: Remove file.
17163         * modules/crypto/arcfour (Files): Remove it.
17164         (configure.ac): Remove gl_ARCFOUR call.
17165         (Makefile.am): Augment lib_SOURCES.
17166
17167 2011-05-22  Bruno Haible  <bruno@clisp.org>
17168
17169         write: Move AC_LIBOBJ invocations to module description.
17170         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17171         * modules/write (configure.ac): ... to here.
17172
17173 2011-05-22  Bruno Haible  <bruno@clisp.org>
17174
17175         wmemset: Move AC_LIBOBJ invocations to module description.
17176         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17177         here...
17178         * modules/wmemset (configure.ac): ... to here.
17179
17180 2011-05-22  Bruno Haible  <bruno@clisp.org>
17181
17182         wmemmove: Move AC_LIBOBJ invocations to module description.
17183         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17184         here...
17185         * modules/wmemmove (configure.ac): ... to here.
17186
17187 2011-05-22  Bruno Haible  <bruno@clisp.org>
17188
17189         wmemcpy: Move AC_LIBOBJ invocations to module description.
17190         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17191         here...
17192         * modules/wmemcpy (configure.ac): ... to here.
17193
17194 2011-05-22  Bruno Haible  <bruno@clisp.org>
17195
17196         wmemcmp: Move AC_LIBOBJ invocations to module description.
17197         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17198         here...
17199         * modules/wmemcmp (configure.ac): ... to here.
17200
17201 2011-05-22  Bruno Haible  <bruno@clisp.org>
17202
17203         wmemchr: Move AC_LIBOBJ invocations to module description.
17204         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17205         here...
17206         * modules/wmemchr (configure.ac): ... to here.
17207
17208 2011-05-22  Bruno Haible  <bruno@clisp.org>
17209
17210         wcswidth: Move AC_LIBOBJ invocations to module description.
17211         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17212         here...
17213         * modules/wcswidth (configure.ac): ... to here.
17214
17215 2011-05-22  Bruno Haible  <bruno@clisp.org>
17216
17217         wcwidth: Respect rules for use of AC_LIBOBJ.
17218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17219         invocation from here...
17220         * modules/wcwidth (configure.ac): ... to here.
17221         (Depends-on): Update conditions.
17222
17223 2011-05-22  Bruno Haible  <bruno@clisp.org>
17224
17225         wctype: Move AC_LIBOBJ invocations to module description.
17226         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17227         invocation from here...
17228         * modules/wctype (configure.ac): ... to here.
17229         (Depends-on): Update conditions.
17230
17231 2011-05-22  Bruno Haible  <bruno@clisp.org>
17232
17233         wctrans: Move AC_LIBOBJ invocations to module description.
17234         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17235         invocation from here...
17236         * modules/wctrans (configure.ac): ... to here.
17237
17238 2011-05-22  Bruno Haible  <bruno@clisp.org>
17239
17240         wctomb: Move AC_LIBOBJ invocations to module description.
17241         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17242         invocations from here...
17243         * modules/wctomb (configure.ac): ... to here.
17244
17245 2011-05-22  Bruno Haible  <bruno@clisp.org>
17246
17247         wctob: Move AC_LIBOBJ invocations to module description.
17248         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17249         gl_PREREQ_WCTOB invocations from here...
17250         * modules/wctob (configure.ac): ... to here.
17251         (Depends-on): Update conditions.
17252
17253 2011-05-22  Bruno Haible  <bruno@clisp.org>
17254
17255         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17256         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17257         here...
17258         * modules/wcsxfrm (configure.ac): ... to here.
17259
17260 2011-05-22  Bruno Haible  <bruno@clisp.org>
17261
17262         wcstok: Move AC_LIBOBJ invocations to module description.
17263         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17264         * modules/wcstok (configure.ac): ... to here.
17265
17266 2011-05-22  Bruno Haible  <bruno@clisp.org>
17267
17268         wcsstr: Move AC_LIBOBJ invocations to module description.
17269         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17270         * modules/wcsstr (configure.ac): ... to here.
17271
17272 2011-05-22  Bruno Haible  <bruno@clisp.org>
17273
17274         wcsspn: Move AC_LIBOBJ invocations to module description.
17275         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17276         * modules/wcsspn (configure.ac): ... to here.
17277
17278 2011-05-22  Bruno Haible  <bruno@clisp.org>
17279
17280         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17281         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17282         gl_PREREQ_WCSRTOMBS invocations from here...
17283         * modules/wcsrtombs (configure.ac): ... to here.
17284
17285 2011-05-22  Bruno Haible  <bruno@clisp.org>
17286
17287         wcsrchr: Move AC_LIBOBJ invocations to module description.
17288         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17289         here...
17290         * modules/wcsrchr (configure.ac): ... to here.
17291
17292 2011-05-22  Bruno Haible  <bruno@clisp.org>
17293
17294         wcspbrk: Move AC_LIBOBJ invocations to module description.
17295         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17296         here...
17297         * modules/wcspbrk (configure.ac): ... to here.
17298
17299 2011-05-22  Bruno Haible  <bruno@clisp.org>
17300
17301         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17302         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17303         gl_PREREQ_WCSNRTOMBS invocations from here...
17304         * modules/wcsnrtombs (configure.ac): ... to here.
17305
17306 2011-05-22  Bruno Haible  <bruno@clisp.org>
17307
17308         wcsnlen: Move AC_LIBOBJ invocations to module description.
17309         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17310         here...
17311         * modules/wcsnlen (configure.ac): ... to here.
17312
17313 2011-05-22  Bruno Haible  <bruno@clisp.org>
17314
17315         wcsncpy: Move AC_LIBOBJ invocations to module description.
17316         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17317         here...
17318         * modules/wcsncpy (configure.ac): ... to here.
17319
17320 2011-05-22  Bruno Haible  <bruno@clisp.org>
17321
17322         wcsncmp: Move AC_LIBOBJ invocations to module description.
17323         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17324         here...
17325         * modules/wcsncmp (configure.ac): ... to here.
17326
17327 2011-05-22  Bruno Haible  <bruno@clisp.org>
17328
17329         wcsncat: Move AC_LIBOBJ invocations to module description.
17330         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17331         here...
17332         * modules/wcsncat (configure.ac): ... to here.
17333
17334 2011-05-22  Bruno Haible  <bruno@clisp.org>
17335
17336         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17337         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17338         from here...
17339         * modules/wcsncasecmp (configure.ac): ... to here.
17340
17341 2011-05-22  Bruno Haible  <bruno@clisp.org>
17342
17343         wcslen: Move AC_LIBOBJ invocations to module description.
17344         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17345         * modules/wcslen (configure.ac): ... to here.
17346
17347 2011-05-22  Bruno Haible  <bruno@clisp.org>
17348
17349         wcsdup: Move AC_LIBOBJ invocations to module description.
17350         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17351         * modules/wcsdup (configure.ac): ... to here.
17352
17353 2011-05-22  Bruno Haible  <bruno@clisp.org>
17354
17355         wcscspn: Move AC_LIBOBJ invocations to module description.
17356         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17357         here...
17358         * modules/wcscspn (configure.ac): ... to here.
17359
17360 2011-05-22  Bruno Haible  <bruno@clisp.org>
17361
17362         wcscpy: Move AC_LIBOBJ invocations to module description.
17363         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17364         * modules/wcscpy (configure.ac): ... to here.
17365
17366 2011-05-22  Bruno Haible  <bruno@clisp.org>
17367
17368         wcscoll: Move AC_LIBOBJ invocations to module description.
17369         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17370         here...
17371         * modules/wcscoll (configure.ac): ... to here.
17372
17373 2011-05-22  Bruno Haible  <bruno@clisp.org>
17374
17375         wcscmp: Move AC_LIBOBJ invocations to module description.
17376         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17377         * modules/wcscmp (configure.ac): ... to here.
17378
17379 2011-05-22  Bruno Haible  <bruno@clisp.org>
17380
17381         wcschr: Move AC_LIBOBJ invocations to module description.
17382         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17383         * modules/wcschr (configure.ac): ... to here.
17384
17385 2011-05-22  Bruno Haible  <bruno@clisp.org>
17386
17387         wcscat: Move AC_LIBOBJ invocations to module description.
17388         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17389         * modules/wcscat (configure.ac): ... to here.
17390
17391 2011-05-22  Bruno Haible  <bruno@clisp.org>
17392
17393         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17394         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17395         here...
17396         * modules/wcscasecmp (configure.ac): ... to here.
17397
17398 2011-05-22  Bruno Haible  <bruno@clisp.org>
17399
17400         wcrtomb: Move AC_LIBOBJ invocations to module description.
17401         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17402         invocations from here...
17403         * modules/wcrtomb (configure.ac): ... to here.
17404
17405 2011-05-22  Bruno Haible  <bruno@clisp.org>
17406
17407         wcpncpy: Move AC_LIBOBJ invocations to module description.
17408         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17409         here...
17410         * modules/wcpncpy (configure.ac): ... to here.
17411
17412 2011-05-22  Bruno Haible  <bruno@clisp.org>
17413
17414         wcpcpy: Move AC_LIBOBJ invocations to module description.
17415         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17416         * modules/wcpcpy (configure.ac): ... to here.
17417
17418 2011-05-22  Bruno Haible  <bruno@clisp.org>
17419
17420         waitpid: Move AC_LIBOBJ invocations to module description.
17421         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17422         invocation from here...
17423         * modules/waitpid (configure.ac): ... to here.
17424
17425 2011-05-22  Bruno Haible  <bruno@clisp.org>
17426
17427         utimensat: Move AC_LIBOBJ invocations to module description.
17428         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17429         here...
17430         * modules/utimensat (configure.ac): ... to here.
17431
17432 2011-05-22  Bruno Haible  <bruno@clisp.org>
17433
17434         usleep: Move AC_LIBOBJ invocations to module description.
17435         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17436         here...
17437         * modules/usleep (configure.ac): ... to here.
17438
17439 2011-05-22  Bruno Haible  <bruno@clisp.org>
17440
17441         unlockpt: Move AC_LIBOBJ invocations to module description.
17442         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17443         gl_PREREQ_UNLOCKPT invocations from here...
17444         * modules/unlockpt (configure.ac): ... to here.
17445
17446 2011-05-22  Bruno Haible  <bruno@clisp.org>
17447
17448         unlink: Respect rules for use of AC_LIBOBJ.
17449         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17450         * modules/unlink (configure.ac): ... to here.
17451
17452 2011-05-22  Bruno Haible  <bruno@clisp.org>
17453
17454         uname: Move AC_LIBOBJ invocations to module description.
17455         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17456         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17457         here...
17458         * modules/uname (configure.ac): ... to here.
17459
17460 2011-05-22  Bruno Haible  <bruno@clisp.org>
17461
17462         ttyname_r: Move AC_LIBOBJ invocations to module description.
17463         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17464         gl_PREREQ_TTYNAME_R invocations from here...
17465         * modules/ttyname_r (configure.ac): ... to here.
17466
17467 2011-05-22  Bruno Haible  <bruno@clisp.org>
17468
17469         tsearch: Move AC_LIBOBJ invocations to module description.
17470         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17471         invocations from here...
17472         * modules/tsearch (configure.ac): ... to here.
17473
17474 2011-05-22  Bruno Haible  <bruno@clisp.org>
17475
17476         towctrans: Move AC_LIBOBJ invocations to module description.
17477         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17478         AC_LIBOBJ invocation from here...
17479         * modules/towctrans (configure.ac): ... to here.
17480
17481 2011-05-22  Bruno Haible  <bruno@clisp.org>
17482
17483         tmpfile: Move AC_LIBOBJ invocations to module description.
17484         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17485         invocations from here...
17486         * modules/tmpfile (configure.ac): ... to here.
17487
17488 2011-05-22  Bruno Haible  <bruno@clisp.org>
17489
17490         times: Move AC_LIBOBJ invocations to module description.
17491         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17492         * modules/times (configure.ac): ... to here.
17493
17494 2011-05-22  Bruno Haible  <bruno@clisp.org>
17495
17496         time_r: Move AC_LIBOBJ invocations to module description.
17497         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17498         invocations from here...
17499         * modules/time_r (configure.ac): ... to here.
17500
17501 2011-05-22  Bruno Haible  <bruno@clisp.org>
17502
17503         timegm: Move AC_LIBOBJ invocations to module description.
17504         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17505         invocations from here...
17506         * modules/timegm (configure.ac): ... to here.
17507
17508 2011-05-22  Bruno Haible  <bruno@clisp.org>
17509
17510         tcgetsid: Move AC_LIBOBJ invocations to module description.
17511         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17512         and gl_PREREQ_TCGETSID invocations from here...
17513         * modules/tcgetsid (configure.ac): ... to here.
17514         (Depends-on): Update conditions.
17515
17516 2011-05-22  Bruno Haible  <bruno@clisp.org>
17517
17518         symlinkat: Move AC_LIBOBJ invocations to module description.
17519         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17520         here...
17521         * modules/symlinkat (configure.ac): ... to here.
17522
17523 2011-05-22  Bruno Haible  <bruno@clisp.org>
17524
17525         symlink: Move AC_LIBOBJ invocations to module description.
17526         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17527         here...
17528         * modules/symlink (configure.ac): ... to here.
17529
17530 2011-05-22  Bruno Haible  <bruno@clisp.org>
17531
17532         strverscmp: Move AC_LIBOBJ invocations to module description.
17533         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17534         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17535         from here...
17536         * modules/strverscmp (configure.ac): ... to here.
17537
17538 2011-05-22  Bruno Haible  <bruno@clisp.org>
17539
17540         strtok_r: Move AC_LIBOBJ invocations to module description.
17541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17542         and gl_PREREQ_STRTOK_R invocations from here...
17543         * modules/strtok_r (configure.ac): ... to here.
17544         (Depends-on): Update conditions.
17545
17546 2011-05-22  Bruno Haible  <bruno@clisp.org>
17547
17548         strtoumax: Move AC_LIBOBJ invocations to module description.
17549         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17550         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17551         from here...
17552         * modules/strtoumax (configure.ac): ... to here.
17553
17554 2011-05-22  Bruno Haible  <bruno@clisp.org>
17555
17556         strtoimax: Move AC_LIBOBJ invocations to module description.
17557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17559         from here...
17560         * modules/strtoimax (configure.ac): ... to here.
17561
17562 2011-05-22  Bruno Haible  <bruno@clisp.org>
17563
17564         strtoull: Move AC_LIBOBJ invocations to module description.
17565         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17566         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17567         from here...
17568         * modules/strtoull (configure.ac): ... to here.
17569
17570 2011-05-22  Bruno Haible  <bruno@clisp.org>
17571
17572         strtoll: Move AC_LIBOBJ invocations to module description.
17573         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17574         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17575         here...
17576         * modules/strtoll (configure.ac): ... to here.
17577
17578 2011-05-22  Bruno Haible  <bruno@clisp.org>
17579
17580         strtoul: Move AC_LIBOBJ invocations to module description.
17581         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17582         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17583         * modules/strtoul (configure.ac): ... to here.
17584
17585 2011-05-22  Bruno Haible  <bruno@clisp.org>
17586
17587         strtol: Move AC_LIBOBJ invocations to module description.
17588         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17589         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17590         * modules/strtol (configure.ac): ... to here.
17591
17592 2011-05-22  Bruno Haible  <bruno@clisp.org>
17593
17594         strtod: Move AC_LIBOBJ invocations to module description.
17595         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17596         invocations from here...
17597         * modules/strtod (configure.ac): ... to here.
17598
17599 2011-05-22  Bruno Haible  <bruno@clisp.org>
17600
17601         strstr*: Move AC_LIBOBJ invocations to module description.
17602         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17603         invocations from here...
17604         * modules/strstr-simple (configure.ac): ... to here.
17605         * modules/strstr (configure.ac): ... and here.
17606
17607 2011-05-22  Bruno Haible  <bruno@clisp.org>
17608
17609         strsignal: Move AC_LIBOBJ invocations to module description.
17610         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17611         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17612         * modules/strsignal (configure.ac): ... to here.
17613         (Depends-on): Update conditions.
17614
17615 2011-05-22  Bruno Haible  <bruno@clisp.org>
17616
17617         strsep: Move AC_LIBOBJ invocations to module description.
17618         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17620         here...
17621         * modules/strsep (configure.ac): ... to here.
17622
17623 2011-05-22  Bruno Haible  <bruno@clisp.org>
17624
17625         strptime: Move AC_LIBOBJ invocations to module description.
17626         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17627         gl_PREREQ_STRPTIME invocations from here...
17628         * modules/strptime (configure.ac): ... to here.
17629
17630 2011-05-22  Bruno Haible  <bruno@clisp.org>
17631
17632         strpbrk: Move AC_LIBOBJ invocations to module description.
17633         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17634         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17635         here...
17636         * modules/strpbrk (configure.ac): ... to here.
17637
17638 2011-05-22  Bruno Haible  <bruno@clisp.org>
17639
17640         strnlen: Move AC_LIBOBJ invocations to module description.
17641         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17642         invocations from here...
17643         * modules/strnlen (configure.ac): ... to here.
17644
17645 2011-05-22  Bruno Haible  <bruno@clisp.org>
17646
17647         strndup: Move AC_LIBOBJ invocations to module description.
17648         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17649         invocations from here...
17650         * modules/strndup (configure.ac): ... to here.
17651         (Depends-on): Update conditions.
17652
17653 2011-05-22  Bruno Haible  <bruno@clisp.org>
17654
17655         strncat: Move AC_LIBOBJ invocations to module description.
17656         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17657         invocations from here...
17658         * modules/strncat (configure.ac): ... to here.
17659
17660 2011-05-22  Bruno Haible  <bruno@clisp.org>
17661
17662         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17663         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17664         invocations from here...
17665         * modules/strdup (configure.ac): ... to here.
17666         * modules/strdup-posix (configure.ac): ... and here.
17667
17668 2011-05-22  Bruno Haible  <bruno@clisp.org>
17669
17670         strcspn: Move AC_LIBOBJ invocations to module description.
17671         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17672         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17673         here...
17674         * modules/strcspn (configure.ac): ... to here.
17675
17676 2011-05-22  Bruno Haible  <bruno@clisp.org>
17677
17678         strchrnul: Move AC_LIBOBJ invocations to module description.
17679         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17680         gl_PREREQ_STRCHRNUL invocations from here...
17681         * modules/strchrnul (configure.ac): ... to here.
17682
17683 2011-05-22  Bruno Haible  <bruno@clisp.org>
17684
17685         strcasestr*: Move AC_LIBOBJ invocations to module description.
17686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17687         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17688         * modules/strcasestr-simple (configure.ac): ... to here.
17689         * modules/strcasestr (configure.ac): ... and here.
17690
17691 2011-05-22  Bruno Haible  <bruno@clisp.org>
17692
17693         strcase: Move AC_LIBOBJ invocations to module description.
17694         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17695         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17696         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17697         gl_PREREQ_STRNCASECMP invocations from here...
17698         * modules/strcase (configure.ac): ... to here.
17699
17700 2011-05-22  Bruno Haible  <bruno@clisp.org>
17701
17702         stpncpy: Move AC_LIBOBJ invocations to module description.
17703         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17704         here...
17705         * modules/stpncpy (configure.ac): ... to here.
17706
17707 2011-05-22  Bruno Haible  <bruno@clisp.org>
17708
17709         stpcpy: Move AC_LIBOBJ invocations to module description.
17710         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17712         here...
17713         * modules/stpcpy (configure.ac): ... to here.
17714
17715 2011-05-21  Bruno Haible  <bruno@clisp.org>
17716
17717         stat: Move AC_LIBOBJ invocations to module description.
17718         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17719         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17720         here...
17721         * modules/stat (configure.ac): ... to here.
17722
17723 2011-05-21  Bruno Haible  <bruno@clisp.org>
17724
17725         sleep: Move AC_LIBOBJ invocations to module description.
17726         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17727         * modules/sleep (configure.ac): ... to here.
17728
17729 2011-05-21  Bruno Haible  <bruno@clisp.org>
17730
17731         signbit: Move AC_LIBOBJ invocations to module description.
17732         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17733         * modules/signbit (configure.ac): ... to here.
17734
17735 2011-05-21  Bruno Haible  <bruno@clisp.org>
17736
17737         sigprocmask: Move AC_LIBOBJ invocations to module description.
17738         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17739         gl_PREREQ_SIGPROMASK invocations from here...
17740         * modules/sigprocmask (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         sigaction: Move AC_LIBOBJ invocations to module description.
17745         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17746         gl_PREREQ_SIGACTION invocations from here...
17747         * modules/sigaction (configure.ac): ... to here.
17748
17749 2011-05-21  Bruno Haible  <bruno@clisp.org>
17750
17751         sig2str: Move AC_LIBOBJ invocations to module description.
17752         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17754         here...
17755         * modules/sig2str (configure.ac): ... to here.
17756
17757 2011-05-21  Bruno Haible  <bruno@clisp.org>
17758
17759         setlocale: Move AC_LIBOBJ invocations to module description.
17760         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17761         gl_PREREQ_SETLOCALE invocations from here...
17762         * modules/setlocale (configure.ac): ... to here.
17763
17764 2011-05-21  Bruno Haible  <bruno@clisp.org>
17765
17766         unsetenv: Move AC_LIBOBJ invocations to module description.
17767         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17768         and gl_PREREQ_UNSETENV invocations from here...
17769         * modules/unsetenv (configure.ac): ... to here.
17770         (Depends-on): Update.
17771
17772 2011-05-21  Bruno Haible  <bruno@clisp.org>
17773
17774         setenv: Move AC_LIBOBJ invocations to module description.
17775         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17776         here...
17777         * modules/setenv (configure.ac): ... to here.
17778
17779 2011-05-21  Bruno Haible  <bruno@clisp.org>
17780
17781         selinux-h: Move AC_LIBOBJ invocations to module description.
17782         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17783         AC_LIBOBJ invocation from here...
17784         * modules/selinux-h (configure.ac): ... to here.
17785
17786 2011-05-21  Bruno Haible  <bruno@clisp.org>
17787
17788         select: Respect rules for use of AC_LIBOBJ.
17789         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17790         here...
17791         * modules/select (configure.ac): ... to here.
17792
17793 2011-05-21  Bruno Haible  <bruno@clisp.org>
17794
17795         scandir: Move AC_LIBOBJ invocations to module description.
17796         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17797         invocations from here...
17798         * modules/scandir (configure.ac): ... to here.
17799
17800 2011-05-21  Bruno Haible  <bruno@clisp.org>
17801
17802         rpmatch: Move AC_LIBOBJ invocations to module description.
17803         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17805         here...
17806         * modules/rpmatch (configure.ac): ... to here.
17807
17808 2011-05-21  Bruno Haible  <bruno@clisp.org>
17809
17810         rmdir: Respect rules for use of AC_LIBOBJ.
17811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17812         * modules/rmdir (configure.ac): ... to here.
17813
17814 2011-05-21  Bruno Haible  <bruno@clisp.org>
17815
17816         renameat: Move AC_LIBOBJ invocations to module description.
17817         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17818         here...
17819         * modules/renameat (configure.ac): ... to here.
17820
17821 2011-05-21  Bruno Haible  <bruno@clisp.org>
17822
17823         rename: Respect rules for use of AC_LIBOBJ.
17824         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17825         here...
17826         * modules/rename (configure.ac): ... to here.
17827
17828 2011-05-21  Bruno Haible  <bruno@clisp.org>
17829
17830         remove: Move AC_LIBOBJ invocations to module description.
17831         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17832         here...
17833         * modules/remove (configure.ac): ... to here.
17834
17835 2011-05-21  Bruno Haible  <bruno@clisp.org>
17836
17837         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17838         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17839         macro.
17840         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17841         * modules/relocatable-lib (configure.ac): ... to here.
17842         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17843         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17844
17845 2011-05-21  Bruno Haible  <bruno@clisp.org>
17846
17847         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17848         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17849         here...
17850         * modules/relocatable-prog (configure.ac): ... to here.
17851
17852 2011-05-21  Bruno Haible  <bruno@clisp.org>
17853
17854         regex: Move AC_LIBOBJ invocations to module description.
17855         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17856         invocations from here...
17857         * modules/regex (configure.ac): ... to here.
17858
17859 2011-05-21  Bruno Haible  <bruno@clisp.org>
17860
17861         realloc-*: Move AC_LIBOBJ invocations to module description.
17862         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17863         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17864         AC_LIBOBJ invocations from here...
17865         * modules/realloc-gnu (configure.ac): ... to here.
17866         * modules/realloc-posix (configure.ac): ... and here.
17867
17868 2011-05-21  Bruno Haible  <bruno@clisp.org>
17869
17870         readutmp: Move AC_LIBOBJ invocations to module description.
17871         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17872         * modules/readutmp (configure.ac): ... to here.
17873
17874 2011-05-21  Bruno Haible  <bruno@clisp.org>
17875
17876         readlinkat: Move AC_LIBOBJ invocations to module description.
17877         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17878         here...
17879         * modules/readlinkat (configure.ac): ... to here.
17880
17881 2011-05-21  Bruno Haible  <bruno@clisp.org>
17882
17883         readlink: Move AC_LIBOBJ invocations to module description.
17884         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17885         gl_PREREQ_READLINK invocations from here...
17886         * modules/readlink (configure.ac): ... to here.
17887
17888 2011-05-21  Bruno Haible  <bruno@clisp.org>
17889
17890         readline: Move AC_LIBOBJ invocations to module description.
17891         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17892         gl_PREREQ_READLINE invocations from here...
17893         * modules/readline (configure.ac): ... to here.
17894
17895 2011-05-21  Bruno Haible  <bruno@clisp.org>
17896
17897         read: Move AC_LIBOBJ invocations to module description.
17898         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17899         * modules/read (configure.ac): ... to here.
17900
17901 2011-05-21  Bruno Haible  <bruno@clisp.org>
17902
17903         rawmemchr: Move AC_LIBOBJ invocations to module description.
17904         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17906         from here...
17907         * modules/rawmemchr (configure.ac): ... to here.
17908
17909 2011-05-21  Bruno Haible  <bruno@clisp.org>
17910
17911         random_r: Move AC_LIBOBJ invocations to module description.
17912         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17913         gl_PREREQ_RANDOM_R invocations from here...
17914         * modules/random_r (configure.ac): ... to here.
17915
17916 2011-05-21  Bruno Haible  <bruno@clisp.org>
17917
17918         pwrite: Move AC_LIBOBJ invocations to module description.
17919         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17920         * modules/pwrite (configure.ac): ... to here.
17921
17922 2011-05-21  Bruno Haible  <bruno@clisp.org>
17923
17924         putenv: Move AC_LIBOBJ invocations to module description.
17925         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17926         * modules/putenv (configure.ac): ... to here.
17927
17928 2011-05-21  Bruno Haible  <bruno@clisp.org>
17929
17930         login_tty: Move AC_LIBOBJ invocations to module description.
17931         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17932         * modules/login_tty (configure.ac): ... to here.
17933
17934 2011-05-21  Bruno Haible  <bruno@clisp.org>
17935
17936         openpty: Move AC_LIBOBJ invocations to module description.
17937         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17938         * modules/openpty (configure.ac): ... to here.
17939
17940 2011-05-21  Bruno Haible  <bruno@clisp.org>
17941
17942         forkpty: Move AC_LIBOBJ invocations to module description.
17943         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17944         * modules/forkpty (configure.ac): ... to here.
17945
17946 2011-05-21  Bruno Haible  <bruno@clisp.org>
17947
17948         ptsname: Move AC_LIBOBJ invocations to module description.
17949         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17950         invocations from here...
17951         * modules/ptsname (configure.ac): ... to here.
17952
17953 2011-05-21  Bruno Haible  <bruno@clisp.org>
17954
17955         pread: Move AC_LIBOBJ invocations to module description.
17956         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17957         * modules/pread (configure.ac): ... to here.
17958
17959 2011-05-21  Bruno Haible  <bruno@clisp.org>
17960
17961         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17962         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17963         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17964         * modules/posix_spawn (configure.ac): ... to here.
17965         * modules/posix_spawnp (configure.ac): ... and here.
17966
17967 2011-05-21  Bruno Haible  <bruno@clisp.org>
17968
17969         popen: Move AC_LIBOBJ invocations to module description.
17970         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17971         invocations from here...
17972         * modules/popen (configure.ac): ... to here.
17973
17974 2011-05-21  Bruno Haible  <bruno@clisp.org>
17975
17976         poll: Move AC_LIBOBJ invocations to module description.
17977         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17978         invocations from here...
17979         * modules/poll (configure.ac): ... to here.
17980
17981 2011-05-21  Bruno Haible  <bruno@clisp.org>
17982
17983         pipe-posix: Move AC_LIBOBJ invocations to module description.
17984         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17985         * modules/pipe-posix (configure.ac): ... to here.
17986
17987 2011-05-21  Bruno Haible  <bruno@clisp.org>
17988
17989         openat: Respect rules for use of AC_LIBOBJ.
17990         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17991         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17992         * modules/openat (configure.ac): ... to here.
17993
17994 2011-05-21  Bruno Haible  <bruno@clisp.org>
17995
17996         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17997         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17998         invocation from here...
17999         * modules/obstack-printf (configure.ac): ... to here.
18000         * modules/obstack-printf-posix (configure.ac): ... and here.
18001
18002 2011-05-21  Bruno Haible  <bruno@clisp.org>
18003
18004         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18005         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18006         from here...
18007         * modules/nl_langinfo (configure.ac): ... to here.
18008
18009 2011-05-21  Bruno Haible  <bruno@clisp.org>
18010
18011         nanosleep: Move AC_LIBOBJ invocations to module description.
18012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18013         gl_PREREQ_NANOSLEEP invocations from here...
18014         * modules/nanosleep (configure.ac): ... to here.
18015
18016 2011-05-21  Bruno Haible  <bruno@clisp.org>
18017
18018         mountlist: Move AC_LIBOBJ invocations to module description.
18019         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18020         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18021         * modules/mountlist (configure.ac): ... to here.
18022
18023 2011-05-21  Bruno Haible  <bruno@clisp.org>
18024
18025         mktime: Respect rules for use of AC_LIBOBJ.
18026         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18027         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18028         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18029         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18030         * modules/mktime (configure.ac): ... to here.
18031         * modules/mktime-internal (configure.ac): ... and here.
18032         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         mkstemps: Move AC_LIBOBJ invocations to module description.
18037         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18038         here...
18039         * modules/mkstemps (configure.ac): ... to here.
18040
18041 2011-05-21  Bruno Haible  <bruno@clisp.org>
18042
18043         mkstemp: Move AC_LIBOBJ invocations to module description.
18044         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18045         gl_PREREQ_MKSTEMP invocations from here...
18046         * modules/mkstemp (configure.ac): ... to here.
18047
18048 2011-05-21  Bruno Haible  <bruno@clisp.org>
18049
18050         mkostemps: Move AC_LIBOBJ invocations to module description.
18051         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18052         here...
18053         * modules/mkostemps (configure.ac): ... to here.
18054
18055 2011-05-21  Bruno Haible  <bruno@clisp.org>
18056
18057         mkostemp: Move AC_LIBOBJ invocations to module description.
18058         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18059         gl_PREREQ_MKOSTEMP invocations from here...
18060         * modules/mkostemp (configure.ac): ... to here.
18061
18062 2011-05-21  Bruno Haible  <bruno@clisp.org>
18063
18064         mknod: Move AC_LIBOBJ invocations to module description.
18065         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18066         * modules/mknod (configure.ac): ... to here.
18067
18068 2011-05-21  Bruno Haible  <bruno@clisp.org>
18069
18070         mkfifoat: Move AC_LIBOBJ invocations to module description.
18071         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18072         here...
18073         * modules/mkfifoat (configure.ac): ... to here.
18074
18075 2011-05-21  Bruno Haible  <bruno@clisp.org>
18076
18077         mkfifo: Respect rules for use of AC_LIBOBJ.
18078         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18079         here...
18080         * modules/mkfifo (configure.ac): ... to here.
18081
18082 2011-05-21  Bruno Haible  <bruno@clisp.org>
18083
18084         mkdtemp: Move AC_LIBOBJ invocations to module description.
18085         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18086         invocations from here...
18087         * modules/mkdtemp (configure.ac): ... to here.
18088
18089 2011-05-21  Bruno Haible  <bruno@clisp.org>
18090
18091         mkdir: Move AC_LIBOBJ invocations to module description.
18092         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18093         * modules/mkdir (configure.ac): ... to here.
18094
18095 2011-05-21  Bruno Haible  <bruno@clisp.org>
18096
18097         memset: Move AC_LIBOBJ invocations to module description.
18098         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18100         here...
18101         * modules/memset (configure.ac): ... to here.
18102
18103 2011-05-21  Bruno Haible  <bruno@clisp.org>
18104
18105         memrchr: Move AC_LIBOBJ invocations to module description.
18106         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18107         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18108         here...
18109         * modules/memrchr (configure.ac): ... to here.
18110
18111 2011-05-21  Bruno Haible  <bruno@clisp.org>
18112
18113         mempcpy: Move AC_LIBOBJ invocations to module description.
18114         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18116         here...
18117         * modules/mempcpy (configure.ac): ... to here.
18118
18119 2011-05-21  Bruno Haible  <bruno@clisp.org>
18120
18121         memmove: Move AC_LIBOBJ invocations to module description.
18122         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18124         here...
18125         * modules/memmove (configure.ac): ... to here.
18126
18127 2011-05-21  Bruno Haible  <bruno@clisp.org>
18128
18129         memmem*: Move AC_LIBOBJ invocations to module description.
18130         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18131         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18132         here...
18133         (gl_FUNC_MEMMEM): ... and here...
18134         * modules/memmem-simple (configure.ac): ... to here.
18135         * modules/memmem (configure.ac): ... and here.
18136
18137 2011-05-21  Bruno Haible  <bruno@clisp.org>
18138
18139         memcpy: Move AC_LIBOBJ invocations to module description.
18140         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18142         here...
18143         * modules/memcpy (configure.ac): ... to here.
18144
18145 2011-05-21  Bruno Haible  <bruno@clisp.org>
18146
18147         memcmp: Simplify autoconf macro.
18148         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18149         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18150         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18151
18152 2011-05-21  Bruno Haible  <bruno@clisp.org>
18153
18154         memcmp: Move AC_LIBOBJ invocations to module description.
18155         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18156         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18157         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18158         * modules/memcmp (configure.ac): ... to here.
18159         (Depends-on): Update conditions.
18160
18161 2011-05-21  Bruno Haible  <bruno@clisp.org>
18162
18163         memchr: Respect rules for use of AC_LIBOBJ.
18164         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18165         invocations from here...
18166         * modules/memchr (configure.ac): ... to here.
18167
18168 2011-05-21  Bruno Haible  <bruno@clisp.org>
18169
18170         mbtowc: Move AC_LIBOBJ invocations to module description.
18171         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18172         invocations from here...
18173         * modules/mbtowc (configure.ac): ... to here.
18174
18175 2011-05-21  Bruno Haible  <bruno@clisp.org>
18176
18177         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18178         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18179         gl_PREREQ_MBSRTOWCS invocations from here...
18180         * modules/mbsrtowcs (configure.ac): ... to here.
18181
18182 2011-05-21  Bruno Haible  <bruno@clisp.org>
18183
18184         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18185         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18186         gl_PREREQ_MBSNRTOWCS invocations from here...
18187         * modules/mbsnrtowcs (configure.ac): ... to here.
18188
18189 2011-05-21  Bruno Haible  <bruno@clisp.org>
18190
18191         mbsinit: Move AC_LIBOBJ invocations to module description.
18192         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18193         invocations from here...
18194         * modules/mbsinit (configure.ac): ... to here.
18195
18196 2011-05-21  Bruno Haible  <bruno@clisp.org>
18197
18198         mbrlen: Move AC_LIBOBJ invocations to module description.
18199         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18200         invocations from here...
18201         * modules/mbrlen (configure.ac): ... to here.
18202
18203 2011-05-21  Bruno Haible  <bruno@clisp.org>
18204
18205         mbrtowc: Respect rules for use of AC_LIBOBJ.
18206         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18207         invocations from here...
18208         * modules/mbrtowc (configure.ac): ... to here.
18209
18210 2011-05-21  Bruno Haible  <bruno@clisp.org>
18211
18212         malloc-*: Move AC_LIBOBJ invocations to module description.
18213         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18214         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18215         AC_LIBOBJ invocations from here...
18216         * modules/malloc-gnu (configure.ac): ... to here.
18217         * modules/malloc-posix (configure.ac): ... and here.
18218
18219 2011-05-21  Bruno Haible  <bruno@clisp.org>
18220
18221         lstat, openat: Respect rules for use of AC_LIBOBJ.
18222         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18223         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18224         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18225         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18226         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18227         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18228         here.
18229         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18230
18231 2011-05-21  Bruno Haible  <bruno@clisp.org>
18232
18233         lseek: Move AC_LIBOBJ invocations to module description.
18234         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18235         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18236         * modules/lseek (configure.ac): ... to here.
18237
18238 2011-05-21  Bruno Haible  <bruno@clisp.org>
18239
18240         linkat: Move AC_LIBOBJ invocations to module description.
18241         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18242         here...
18243         * modules/linkat (configure.ac): ... to here.
18244
18245 2011-05-21  Bruno Haible  <bruno@clisp.org>
18246
18247         link: Respect rules for use of AC_LIBOBJ.
18248         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18249         * modules/link (configure.ac): ... to here.
18250
18251 2011-05-21  Bruno Haible  <bruno@clisp.org>
18252
18253         lchown: Move AC_LIBOBJ invocations to module description.
18254         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18255         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18256         * modules/lchown (configure.ac): ... to here.
18257
18258 2011-05-21  Bruno Haible  <bruno@clisp.org>
18259
18260         iswctype: Move AC_LIBOBJ invocations to module description.
18261         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18262         here...
18263         * modules/iswctype (configure.ac): ... to here.
18264
18265 2011-05-21  Bruno Haible  <bruno@clisp.org>
18266
18267         iswblank: Move AC_LIBOBJ invocations to module description.
18268         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18269         here...
18270         * modules/iswblank (configure.ac): ... to here.
18271
18272 2011-05-21  Bruno Haible  <bruno@clisp.org>
18273
18274         atanl: Move AC_LIBOBJ invocations to module description.
18275         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18276         * modules/atanl (configure.ac): ... to here.
18277
18278 2011-05-21  Bruno Haible  <bruno@clisp.org>
18279
18280         acosl: Move AC_LIBOBJ invocations to module description.
18281         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18282         * modules/acosl (configure.ac): ... to here.
18283
18284 2011-05-21  Bruno Haible  <bruno@clisp.org>
18285
18286         asinl: Respect rules for use of AC_LIBOBJ.
18287         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18288         * modules/asinl (configure.ac): ... to here.
18289
18290 2011-05-21  Bruno Haible  <bruno@clisp.org>
18291
18292         tanl: Move AC_LIBOBJ invocations to module description.
18293         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18294         * modules/tanl (configure.ac): ... to here.
18295
18296 2011-05-21  Bruno Haible  <bruno@clisp.org>
18297
18298         cosl: Move AC_LIBOBJ invocations to module description.
18299         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18300         * modules/cosl (configure.ac): ... to here.
18301
18302 2011-05-21  Bruno Haible  <bruno@clisp.org>
18303
18304         sinl: Move AC_LIBOBJ invocations to module description.
18305         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18306         * modules/sinl (configure.ac): ... to here.
18307
18308 2011-05-21  Bruno Haible  <bruno@clisp.org>
18309
18310         logl: Move AC_LIBOBJ invocations to module description.
18311         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18312         * modules/logl (configure.ac): ... to here.
18313
18314 2011-05-21  Bruno Haible  <bruno@clisp.org>
18315
18316         expl: Move AC_LIBOBJ invocations to module description.
18317         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18318         * modules/expl (configure.ac): ... to here.
18319
18320 2011-05-21  Bruno Haible  <bruno@clisp.org>
18321
18322         roundl: Move AC_LIBOBJ invocations to module description.
18323         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18324         * modules/roundl (configure.ac): ... to here.
18325
18326 2011-05-21  Bruno Haible  <bruno@clisp.org>
18327
18328         round: Move AC_LIBOBJ invocations to module description.
18329         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18330         * modules/round (configure.ac): ... to here.
18331
18332 2011-05-21  Bruno Haible  <bruno@clisp.org>
18333
18334         roundf: Move AC_LIBOBJ invocations to module description.
18335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18336         * modules/roundf (configure.ac): ... to here.
18337
18338 2011-05-21  Bruno Haible  <bruno@clisp.org>
18339
18340         truncl: Move AC_LIBOBJ invocations to module description.
18341         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18342         * modules/truncl (configure.ac): ... to here.
18343
18344 2011-05-21  Bruno Haible  <bruno@clisp.org>
18345
18346         trunc: Move AC_LIBOBJ invocations to module description.
18347         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18348         * modules/trunc (configure.ac): ... to here.
18349
18350 2011-05-21  Bruno Haible  <bruno@clisp.org>
18351
18352         truncf: Move AC_LIBOBJ invocations to module description.
18353         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18354         * modules/truncf (configure.ac): ... to here.
18355
18356 2011-05-21  Bruno Haible  <bruno@clisp.org>
18357
18358         ceill: Move AC_LIBOBJ invocations to module description.
18359         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18360         * modules/ceill (configure.ac): ... to here.
18361
18362 2011-05-21  Bruno Haible  <bruno@clisp.org>
18363
18364         ceil: Move AC_LIBOBJ invocations to module description.
18365         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18366         * modules/ceil (configure.ac): ... to here.
18367
18368 2011-05-21  Bruno Haible  <bruno@clisp.org>
18369
18370         ceilf: Move AC_LIBOBJ invocations to module description.
18371         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18372         * modules/ceilf (configure.ac): ... to here.
18373
18374 2011-05-21  Bruno Haible  <bruno@clisp.org>
18375
18376         floorl: Respect rules for use of AC_LIBOBJ.
18377         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18378         * modules/floorl (configure.ac): ... to here.
18379
18380 2011-05-21  Bruno Haible  <bruno@clisp.org>
18381
18382         floor: Respect rules for use of AC_LIBOBJ.
18383         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18384         * modules/floor (configure.ac): ... to here.
18385
18386 2011-05-21  Bruno Haible  <bruno@clisp.org>
18387
18388         floorf: Move AC_LIBOBJ invocations to module description.
18389         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18390         * modules/floorf (configure.ac): ... to here.
18391
18392 2011-05-20  Bruno Haible  <bruno@clisp.org>
18393
18394         sqrtl: Respect rules for use of AC_LIBOBJ.
18395         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18396         * modules/sqrtl (configure.ac): ... to here.
18397
18398 2011-05-20  Bruno Haible  <bruno@clisp.org>
18399
18400         ldexpl: Respect rules for use of AC_LIBOBJ.
18401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18402         * modules/ldexpl (configure.ac): ... to here.
18403
18404 2011-05-20  Bruno Haible  <bruno@clisp.org>
18405
18406         frexpl*: Respect rules for use of AC_LIBOBJ.
18407         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18408         invocation from here...
18409         * modules/frexpl (configure.ac): ... to here.
18410         * modules/frexpl-nolibm (configure.ac): ... and here.
18411
18412 2011-05-20  Bruno Haible  <bruno@clisp.org>
18413
18414         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18415         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18416         invocation from here...
18417         * modules/frexp (configure.ac): ... to here.
18418         * modules/frexp-nolibm (configure.ac): ... and here.
18419
18420 2011-05-20  Bruno Haible  <bruno@clisp.org>
18421
18422         isnan: Respect rules for use of AC_LIBOBJ.
18423         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18424         invocations here.
18425         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18426         REPLACE_ISNAN.
18427         * modules/isnand (configure.ac): Likewise.
18428         * modules/isnanl (configure.ac): Likewise.
18429
18430 2011-05-20  Bruno Haible  <bruno@clisp.org>
18431
18432         isnanl*: Respect rules for use of AC_LIBOBJ.
18433         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18434         invocation from here...
18435         * modules/isnanl (configure.ac): ... to here.
18436         * modules/isnanl-nolibm (configure.ac): ... and here.
18437
18438 2011-05-20  Bruno Haible  <bruno@clisp.org>
18439
18440         isnand*: Move AC_LIBOBJ invocations to module description.
18441         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18442         invocation from here...
18443         * modules/isnand (configure.ac): ... to here.
18444         * modules/isnand-nolibm (configure.ac): ... and here.
18445
18446 2011-05-20  Bruno Haible  <bruno@clisp.org>
18447
18448         isnanf*: Move AC_LIBOBJ invocations to module description.
18449         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18450         invocation from here...
18451         * modules/isnanf (configure.ac): ... to here.
18452         * modules/isnanf-nolibm (configure.ac): ... and here.
18453
18454 2011-05-20  Bruno Haible  <bruno@clisp.org>
18455
18456         isnan*: Separate the AC_LIBOBJ invocations.
18457         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18458         AC_LIBOBJ invocation.
18459         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18460         here.
18461         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18462         AC_LIBOBJ invocation.
18463         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18464         here.
18465         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18466         AC_LIBOBJ invocation.
18467         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18468         here.
18469         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18470
18471 2011-05-08  Bruno Haible  <bruno@clisp.org>
18472
18473         isinf: Move AC_LIBOBJ invocations to module description.
18474         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18475         * modules/isinf (configure.ac): ... to here.
18476
18477 2011-05-08  Bruno Haible  <bruno@clisp.org>
18478
18479         isfinite: Move AC_LIBOBJ invocations to module description.
18480         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18481         * modules/isfinite (configure.ac): ... to here.
18482
18483 2011-05-08  Bruno Haible  <bruno@clisp.org>
18484
18485         isblank: Move AC_LIBOBJ invocations to module description.
18486         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18487         here...
18488         * modules/isblank (configure.ac): ... to here.
18489
18490 2011-05-08  Bruno Haible  <bruno@clisp.org>
18491
18492         isapipe: Move AC_LIBOBJ invocations to module description.
18493         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18494         gl_PREREQ_ISAPIPE invocations from here...
18495         * modules/isapipe (configure.ac): ... to here.
18496         (Depends-on): Update condition.
18497
18498 2011-05-08  Bruno Haible  <bruno@clisp.org>
18499
18500         ioctl: Move AC_LIBOBJ invocations to module description.
18501         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18502         invocations from here...
18503         * modules/ioctl (configure.ac): ... to here.
18504         (Depends-on): Update condition.
18505
18506 2011-05-08  Bruno Haible  <bruno@clisp.org>
18507
18508         imaxdiv: Move AC_LIBOBJ invocations to module description.
18509         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18510         invocations from here...
18511         * modules/imaxdiv (configure.ac): ... to here.
18512
18513 2011-05-08  Bruno Haible  <bruno@clisp.org>
18514
18515         imaxabs: Move AC_LIBOBJ invocations to module description.
18516         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18517         invocations from here...
18518         * modules/imaxabs (configure.ac): ... to here.
18519
18520 2011-05-08  Bruno Haible  <bruno@clisp.org>
18521
18522         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18523         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18524         AC_LIBOBJ invocations from here...
18525         * modules/getaddrinfo (configure.ac): ... to here.
18526         (Depends-on): Add conditions.
18527
18528 2011-05-08  Bruno Haible  <bruno@clisp.org>
18529
18530         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18531         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18532         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18533         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18534         (gl_PREREQ_INET_PTON): ... from here.
18535         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18536         gl_PREREQ_INET_PTON here.
18537         (Depends-on): Update condition.
18538
18539 2011-05-08  Bruno Haible  <bruno@clisp.org>
18540
18541         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18542         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18543         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18544         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18545         (gl_PREREQ_INET_NTOP): ... from here.
18546         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18547         gl_PREREQ_INET_NTOP here.
18548         (Depends-on): Update condition.
18549
18550 2011-05-08  Bruno Haible  <bruno@clisp.org>
18551
18552         iconv_open: Move AC_LIBOBJ invocations to module description.
18553         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18554         AC_LIBOBJ invocations from here...
18555         * modules/iconv_open (configure.ac): ... to here.
18556
18557 2011-05-08  Bruno Haible  <bruno@clisp.org>
18558
18559         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18560         If module 'iconv_open' is among the main modules and module
18561         'iconv_open-utf' is among the tests dependencies, then
18562         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18563         return the special iconv_t values. Therefore iconv() and iconv_close()
18564         must support these special iconv_t values, already in lib, not only in
18565         tests.
18566         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18568         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18569         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18570         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18571         (Depends-on): Add the dependencies of iconv_open-utf.
18572         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18573         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18574         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18575
18576 2011-05-08  Bruno Haible  <bruno@clisp.org>
18577
18578         group-member: Move AC_LIBOBJ invocations to module description.
18579         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18580         gl_PREREQ_GROUP_MEMBER invocations from here...
18581         * modules/group-member (configure.ac): ... to here.
18582
18583 2011-05-08  Bruno Haible  <bruno@clisp.org>
18584
18585         grantpt: Move AC_LIBOBJ invocations to module description.
18586         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18587         invocations from here...
18588         * modules/grantpt (configure.ac): ... to here.
18589
18590 2011-05-08  Bruno Haible  <bruno@clisp.org>
18591
18592         glob: Move AC_LIBOBJ invocations to module description.
18593         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18594         from here...
18595         * modules/glob (configure.ac): ... to here.
18596
18597 2011-05-08  Bruno Haible  <bruno@clisp.org>
18598
18599         getusershell: Move AC_LIBOBJ invocations to module description.
18600         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18601         Move AC_LIBOBJ invocation from here...
18602         * modules/getusershell (configure.ac): ... to here.
18603         (Depends-on): Update condition.
18604
18605 2011-05-08  Bruno Haible  <bruno@clisp.org>
18606
18607         gettimeofday: Move AC_LIBOBJ invocations to module description.
18608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18609         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18610         gl_PREREQ_GETTIMEOFDAY invocations from here...
18611         * modules/gettimeofday (configure.ac): ... to here.
18612
18613 2011-05-08  Bruno Haible  <bruno@clisp.org>
18614
18615         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18616         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18617         just gl_FUNC_TZSET.
18618         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18619         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18621         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18622
18623 2011-05-08  Bruno Haible  <bruno@clisp.org>
18624
18625         getsubopt: Move AC_LIBOBJ invocations to module description.
18626         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18627         gl_PREREQ_GETSUBOPT invocations from here...
18628         * modules/getsubopt (configure.ac): ... to here.
18629
18630 2011-05-08  Bruno Haible  <bruno@clisp.org>
18631
18632         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18633         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18634         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18635         * modules/getpass-gnu (configure.ac): ... to here.
18636
18637 2011-05-08  Bruno Haible  <bruno@clisp.org>
18638
18639         getpass: Move AC_LIBOBJ invocations to module description.
18640         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18641         gl_PREREQ_GETPASS invocations from here...
18642         * modules/getpass (configure.ac): ... to here.
18643
18644 2011-05-08  Bruno Haible  <bruno@clisp.org>
18645
18646         getpagesize: Move AC_LIBOBJ invocations to module description.
18647         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18648         from here...
18649         * modules/getpagesize (configure.ac): ... to here.
18650
18651 2011-05-08  Bruno Haible  <bruno@clisp.org>
18652
18653         getopt: Move AC_LIBOBJ invocations to module description.
18654         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18655         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18656         invocations from here...
18657         * modules/getopt-gnu (configure.ac): ... to here.
18658         * modules/getopt-posix (configure.ac): ... and here.
18659         (Depends-on): Update condition.
18660
18661 2011-05-08  Bruno Haible  <bruno@clisp.org>
18662
18663         getopt, argp: Respect rules for use of AC_LIBOBJ.
18664         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18665         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18666         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18667         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18668
18669 2011-05-08  Bruno Haible  <bruno@clisp.org>
18670
18671         getlogin_r: Move AC_LIBOBJ invocations to module description.
18672         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18673         gl_PREREQ_GETLOGIN_R invocations from here...
18674         * modules/getlogin_r (configure.ac): ... to here.
18675
18676 2011-05-08  Bruno Haible  <bruno@clisp.org>
18677
18678         getlogin: Move AC_LIBOBJ invocations to module description.
18679         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18680         here...
18681         * modules/getlogin (configure.ac): ... to here.
18682
18683 2011-05-08  Bruno Haible  <bruno@clisp.org>
18684
18685         getloadavg: Move AC_LIBOBJ invocations to module description.
18686         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18687         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18688         * modules/getloadavg (configure.ac): ... to here.
18689
18690 2011-05-08  Bruno Haible  <bruno@clisp.org>
18691
18692         gethrxtime: Move AC_LIBOBJ invocations to module description.
18693         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18694         LIB_GETHRXTIME from here...
18695         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18696         invocations from here...
18697         * modules/gethrxtime (configure.ac): ... to here.
18698
18699 2011-05-08  Bruno Haible  <bruno@clisp.org>
18700
18701         gethostname: Move AC_LIBOBJ invocations to module description.
18702         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18703         gl_PREREQ_GETHOSTNAME invocations from here...
18704         * modules/gethostname (configure.ac): ... to here.
18705
18706 2011-05-08  Bruno Haible  <bruno@clisp.org>
18707
18708         getgroups: Move AC_LIBOBJ invocations to module description.
18709         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18710         here...
18711         * modules/getgroups (configure.ac): ... to here.
18712
18713 2011-05-08  Bruno Haible  <bruno@clisp.org>
18714
18715         getdtablesize: Move AC_LIBOBJ invocations to module description.
18716         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18717         invocation from here...
18718         * modules/getdtablesize (configure.ac): ... to here.
18719
18720 2011-05-08  Bruno Haible  <bruno@clisp.org>
18721
18722         getdomainname: Move AC_LIBOBJ invocations to module description.
18723         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18724         gl_PREREQ_GETDOMAINNAME invocations from here...
18725         * modules/getdomainname (configure.ac): ... to here.
18726
18727 2011-05-08  Bruno Haible  <bruno@clisp.org>
18728
18729         getline: Move AC_LIBOBJ invocations to module description.
18730         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18731         invocations from here...
18732         * modules/getline (configure.ac): ... to here.
18733
18734 2011-05-08  Bruno Haible  <bruno@clisp.org>
18735
18736         getline: Simplify.
18737         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18738         It's already handled through the module dependency.
18739
18740 2011-05-08  Bruno Haible  <bruno@clisp.org>
18741
18742         getdelim: Move AC_LIBOBJ invocations to module description.
18743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18744         and gl_PREREQ_GETDELIM invocations from here...
18745         * modules/getdelim (configure.ac): ... to here.
18746         (Depends-on): Fix condition.
18747
18748 2011-05-08  Bruno Haible  <bruno@clisp.org>
18749
18750         getcwd: Move AC_LIBOBJ invocations to module description.
18751         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18752         invocations from here...
18753         * modules/getcwd (configure.ac): ... to here.
18754
18755 2011-05-08  Bruno Haible  <bruno@clisp.org>
18756
18757         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18758         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18759         here...
18760         * modules/getcwd-lgpl (configure.ac): ... to here.
18761
18762 2011-05-07  Bruno Haible  <bruno@clisp.org>
18763
18764         crypto/gc: Move AC_LIBOBJ invocations to module description.
18765         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18766         * modules/crypto/gc (configure.ac): ... to here.
18767
18768 2011-05-07  Bruno Haible  <bruno@clisp.org>
18769
18770         fwriting: Move AC_LIBOBJ invocations to module description.
18771         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18772         here...
18773         * modules/fwriting (configure.ac): ... to here.
18774
18775 2011-05-07  Bruno Haible  <bruno@clisp.org>
18776
18777         fwritable: Move AC_LIBOBJ invocations to module description.
18778         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18779         here...
18780         * modules/fwritable (configure.ac): ... to here.
18781
18782 2011-05-07  Bruno Haible  <bruno@clisp.org>
18783
18784         futimens: Move AC_LIBOBJ invocations to module description.
18785         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18786         here...
18787         * modules/futimens (configure.ac): ... to here.
18788
18789 2011-05-07  Bruno Haible  <bruno@clisp.org>
18790
18791         ftruncate: Move AC_LIBOBJ invocations to module description.
18792         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18793         gl_PREREQ_FTRUNCATE invocations from here...
18794         * modules/ftruncate (configure.ac): ... to here.
18795
18796 2011-05-07  Bruno Haible  <bruno@clisp.org>
18797
18798         fsync: Move AC_LIBOBJ invocations to module description.
18799         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18800         invocations from here...
18801         * modules/fsync (configure.ac): ... to here.
18802
18803 2011-05-07  Bruno Haible  <bruno@clisp.org>
18804
18805         fsusage: Move AC_LIBOBJ invocations to module description.
18806         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18807         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18808         * modules/fsusage (configure.ac): ... to here.
18809
18810 2011-05-07  Bruno Haible  <bruno@clisp.org>
18811
18812         freopen: Move AC_LIBOBJ invocations to module description.
18813         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18814         invocations from here...
18815         * modules/freopen (configure.ac): ... to here.
18816
18817 2011-05-07  Bruno Haible  <bruno@clisp.org>
18818
18819         free: Move AC_LIBOBJ invocations to module description.
18820         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18821         invocations from here...
18822         * modules/free (configure.ac): ... to here.
18823
18824 2011-05-07  Bruno Haible  <bruno@clisp.org>
18825
18826         freadable: Move AC_LIBOBJ invocations to module description.
18827         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18828         here...
18829         * modules/freadable (configure.ac): ... to here.
18830
18831 2011-05-07  Bruno Haible  <bruno@clisp.org>
18832
18833         fpurge: Move AC_LIBOBJ invocations to module description.
18834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18835         invocations from here...
18836         * modules/fpurge (configure.ac): ... to here.
18837
18838 2011-05-07  Bruno Haible  <bruno@clisp.org>
18839
18840         fpending: Move AC_LIBOBJ invocations to module description.
18841         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18842         gl_FUNC_FPENDING.
18843         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18844         invocations from here...
18845         * modules/fpending (configure.ac): ... to here.
18846
18847 2011-05-07  Bruno Haible  <bruno@clisp.org>
18848
18849         fopen: Move AC_LIBOBJ invocations to module description.
18850         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18851         invocations from here...
18852         * modules/fopen (configure.ac): ... to here.
18853
18854 2011-05-07  Bruno Haible  <bruno@clisp.org>
18855
18856         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18857         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18858         gl_FUNC_FNMATCH_POSIX.
18859         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18860         invocations from here...
18861         * modules/fnmatch (configure.ac): ... to here.
18862         * modules/fnmatch-gnu (configure.ac): ... and here.
18863
18864 2011-05-07  Bruno Haible  <bruno@clisp.org>
18865
18866         flock: Move AC_LIBOBJ invocations to module description.
18867         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18868         invocations from here...
18869         * modules/flock (configure.ac): ... to here.
18870
18871 2011-05-07  Bruno Haible  <bruno@clisp.org>
18872
18873         fileblocks: Move AC_LIBOBJ invocations to module description.
18874         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18875         gl_PREREQ_FILEBLOCKS invocations from here...
18876         * modules/fileblocks (configure.ac): ... to here.
18877
18878 2011-05-06  Bruno Haible  <bruno@clisp.org>
18879
18880         fflush: Move AC_LIBOBJ invocations to module description.
18881         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18882         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18883         invocations from here...
18884         * modules/fflush (configure.ac): ... to here.
18885
18886 2011-05-06  Bruno Haible  <bruno@clisp.org>
18887
18888         fdopendir: Move AC_LIBOBJ invocations to module description.
18889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18890         here...
18891         * modules/fdopendir (configure.ac): ... to here.
18892         (Depends-on): Improve conditions.
18893
18894 2011-05-06  Bruno Haible  <bruno@clisp.org>
18895
18896         _Exit: Move AC_LIBOBJ invocations to module description.
18897         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18898         invocations from here...
18899         * modules/_Exit (configure.ac): ... to here.
18900
18901 2011-05-21  Bruno Haible  <bruno@clisp.org>
18902
18903         euidaccess: Respect rules for use of AC_LIBOBJ.
18904         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18906         from here...
18907         * modules/euidaccess (configure.ac): ... to here.
18908
18909 2011-05-06  Bruno Haible  <bruno@clisp.org>
18910
18911         error: Move AC_LIBOBJ invocations to module description.
18912         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18913         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18914         invocations from here...
18915         * modules/error (configure.ac): ... to here.
18916
18917 2011-05-06  Bruno Haible  <bruno@clisp.org>
18918
18919         duplocale: Move AC_LIBOBJ invocations to module description.
18920         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18921         gl_PREREQ_DUPLOCALE invocations from here...
18922         * modules/duplocale (configure.ac): ... to here.
18923
18924 2011-05-05  Bruno Haible  <bruno@clisp.org>
18925
18926         dirfd: Move AC_LIBOBJ invocations to module description.
18927         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18928         gl_FUNC_DIRFD.
18929         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18930         here...
18931         * modules/dirfd (configure.ac): ... to here.
18932         (Depends-on): Fix condition.
18933
18934 2011-05-05  Bruno Haible  <bruno@clisp.org>
18935
18936         chown: Respect rules for use of AC_LIBOBJ.
18937         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18938         * modules/chown (configure.ac): ... to here.
18939
18940 2011-05-05  Bruno Haible  <bruno@clisp.org>
18941
18942         chdir-long: Move AC_LIBOBJ invocations to module description.
18943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18944         gl_PREREQ_CHDIR_LONG invocations from here...
18945         * modules/chdir-long (configure.ac): ... to here.
18946
18947 2011-05-05  Bruno Haible  <bruno@clisp.org>
18948
18949         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18950         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18951         from here...
18952         * modules/canonicalize-lgpl (configure.ac): ... to here.
18953
18954 2011-05-05  Bruno Haible  <bruno@clisp.org>
18955
18956         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18957         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18958         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18959         REPLACE_CALLOC.
18960         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18961         * modules/calloc-gnu (configure.ac): Likewise.
18962
18963 2011-05-05  Bruno Haible  <bruno@clisp.org>
18964
18965         btowc: Move AC_LIBOBJ invocations to module description.
18966         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18967         invocations from here...
18968         * modules/btowc (configure.ac): ... to here.
18969
18970 2011-05-21  Bruno Haible  <bruno@clisp.org>
18971
18972         atexit: Move AC_LIBOBJ invocations to module description.
18973         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18975         here...
18976         * modules/atexit (configure.ac): ... to here.
18977
18978 2011-05-05  Bruno Haible  <bruno@clisp.org>
18979
18980         atoll: Move AC_LIBOBJ invocations to module description.
18981         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18982         invocations from here...
18983         * modules/atoll (configure.ac): ... to here.
18984
18985 2011-05-05  Bruno Haible  <bruno@clisp.org>
18986
18987         argz: Move AC_LIBOBJ invocations to module description.
18988         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18989         * modules/argz (configure.ac): ... to here.
18990
18991 2011-05-05  Bruno Haible  <bruno@clisp.org>
18992
18993         alphasort: Move AC_LIBOBJ invocations to module description.
18994         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18995         gl_PREREQ_ALPHASORT invocations from here...
18996         * modules/alphasort (configure.ac): ... to here.
18997
18998 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         verify: new macro verify_expr; verify_true deprecated
19001         * NEWS: Mention this.
19002         * doc/verify.texi (Compile-time Assertions): Document this.
19003         * lib/verify.h (verify_true): Deprecate.
19004         (verify_expr): New macro.
19005         * tests/test-verify.c (function): Test verify_expr.
19006
19007 2011-06-14  Jim Meyering  <meyering@redhat.com>
19008
19009         init.sh: give more portable redirection-related advice in a comment
19010         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19011         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19012         for lots of discussion.  Stefano Lattarini suggested the solution
19013         of putting "9>&2" after the command.  Reported by Bruno Haible.
19014
19015 2011-06-13  Bruno Haible  <bruno@clisp.org>
19016
19017         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19018         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19019         'none'.
19020
19021 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19022
19023         ftoastr: use strtof only if HAVE_STRTOF
19024         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19026         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19027         * modules/ftoastr (configure.ac): Check for strtof.
19028
19029 2011-06-13  Bruno Haible  <bruno@clisp.org>
19030
19031         gnulib-tool: Addendum to 2011-06-08 commit.
19032         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19033         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19034
19035 2011-06-13  Bruno Haible  <bruno@clisp.org>
19036
19037         fseeko: Provide a non-inline replacement of fseek().
19038         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19039         * modules/fseeko (Depends-on): Add fseek.
19040         * modules/fseek (License): Change to LGPLv2+.
19041
19042 2011-06-13  Bruno Haible  <bruno@clisp.org>
19043
19044         ftello: Provide a non-inline replacement of ftell().
19045         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19046         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19047         not have ftello() (such as on mingw).
19048         * modules/ftello (Depends-on): Add ftell.
19049         * modules/ftell (License): Change to LGPLv2+.
19050
19051 2011-05-07  Bruno Haible  <bruno@clisp.org>
19052
19053         ftell: Move AC_LIBOBJ invocations to module description.
19054         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19055         * modules/ftell (configure.ac): ... to here.
19056
19057 2011-05-07  Bruno Haible  <bruno@clisp.org>
19058
19059         ftello: Respect rules for use of AC_LIBOBJ.
19060         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19061         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19062         here...
19063         * modules/ftello (configure.ac): ... to here.
19064
19065 2011-05-07  Bruno Haible  <bruno@clisp.org>
19066
19067         fseeko: Simplify.
19068         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19069         (gl_FUNC_FSEEKO): Inline it here.
19070
19071 2011-05-07  Bruno Haible  <bruno@clisp.org>
19072
19073         fseek: Move AC_LIBOBJ invocations to module description.
19074         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19075         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19076         * modules/fseek (configure.ac): ... to here.
19077
19078 2011-05-07  Bruno Haible  <bruno@clisp.org>
19079
19080         fseek: Respect rules for use of AC_LIBOBJ.
19081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19082         here...
19083         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19084
19085 2011-05-07  Bruno Haible  <bruno@clisp.org>
19086
19087         fseeko: Respect rules for use of AC_LIBOBJ.
19088         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19089         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19090         here...
19091         * modules/fseeko (configure.ac): ... to here.
19092
19093 2011-06-13  Bruno Haible  <bruno@clisp.org>
19094
19095         gnulib-tool: Allow comments in the 'Depends-on' section.
19096         * doc/gnulib.texi (Module description): Mention comment syntax in the
19097         Depends-on section.
19098         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19099
19100 2011-06-13  Bruno Haible  <bruno@clisp.org>
19101
19102         file-set.h: guard __attibute__ use, now that it's not always defined
19103         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19104         versions that support it.  This fixes a coreutils build failure with
19105         the vendor cc on HP-UX 11.31.
19106
19107 2011-06-12  Bruno Haible  <bruno@clisp.org>
19108
19109         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19110         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19111         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19112         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19113         (acl, aclsort): New declarations.
19114         (aclv_nontrivial): New declaration.
19115         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19116         (file_has_acl): Read also the second kind of HP-UX ACLs.
19117         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19118         kind of HP-UX ACLs if the first kind fails.
19119         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19120         second kind of HP-UX ACLs.
19121         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19122         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19123         agree.
19124         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19125         hpuxjfs.
19126         Handle hpuxjfs.
19127         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19128         hpuxjfs.
19129         Handle hpuxjfs.
19130         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19131         (func_test_same_acls): Use both lsacl and getacl.
19132         Handle hpuxjfs.
19133         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19134         (func_test_same_acls): Use both lsacl and getacl.
19135         Handle hpuxjfs.
19136
19137 2011-06-12  Bruno Haible  <bruno@clisp.org>
19138
19139         acl: Complete the 2010-08-10 fix.
19140         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19141         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19142         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19143         explicitly.
19144         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19145         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19146
19147 2011-06-12  Bruno Haible  <bruno@clisp.org>
19148
19149         spawn-pipe tests: Comments.
19150         * tests/test-spawn-pipe-child.c (main): Update comment.
19151         Reported by James Youngman <jay@gnu.org>.
19152
19153 2011-06-11  James Youngman  <jay@gnu.org>
19154
19155         New module 'stat-size'.
19156         * modules/stat-size: New module.  Provides macros for accessing
19157         file size information in instances of struct stat.  Depends on the
19158         fileblocks module because it calls st_blocks.
19159         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19160         * doc/gnulib.texi: Include stat-size.texi.
19161         * doc/stat-size.texi: Documentation for this module.
19162         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19163         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19164         AC_STRUCT_ST_BLOCKS.
19165
19166 2011-06-09  Bruno Haible  <bruno@clisp.org>
19167
19168         thread: Support pthreads-win32.
19169         * lib/glthread/thread.h (gl_thread_self): Define differently on
19170         pthreads-win32.
19171         (gl_null_thread): New declaration.
19172         (gl_thread_self_pointer): New macro.
19173         * lib/glthread/thread.c (gl_null_thread): New constant.
19174         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19175         gl_thread_self.
19176         * tests/test-tls.c: Likewise.
19177         Suggested by Paul Eggert. Reported by Eric Blake.
19178
19179 2011-06-09  Bruno Haible  <bruno@clisp.org>
19180
19181         thread: Fix confusion between NULL and 0.
19182         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19183         Reported by Paul Eggert.
19184
19185 2011-06-09  Bruno Haible  <bruno@clisp.org>
19186
19187         spawn-pipe tests: Avoid test failure on HP-UX 11.
19188         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19189         is closed.
19190
19191 2011-06-09  Bruno Haible  <bruno@clisp.org>
19192
19193         acl tests: Fix compilation error on HP-UX 11.
19194         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19195
19196 2011-06-09  Bruno Haible  <bruno@clisp.org>
19197
19198         rmdir: Avoid test failure on HP-UX 10.20.
19199         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19200         EEXIST.
19201
19202 2011-06-08  Eric Blake  <eblake@redhat.com>
19203
19204         perror: fix test on mingw
19205         * modules/perror-tests (Depends-on): Add dup2.
19206
19207         strerror_r-posix: fix on MacOS
19208         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19209         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19210         logic bug.
19211         * lib/strerror_r.c (strerror_r): Fix the bug.
19212         * lib/strerror.c (strerror): Likewise.
19213         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19214         problem.
19215         * doc/posix-functions/strerror.texi (strerror): Likewise.
19216         * doc/posix-functions/perror.texi (perror): Likewise.
19217         * tests/test-strerror.c (main): Enhance test.
19218         * tests/test-strerror_r.c (main): Likewise.
19219
19220 2011-06-08  Bruno Haible  <bruno@clisp.org>
19221
19222         gnulib-tool: Better isolation between different gnulib-tool invocations.
19223         * gnulib-tool: New option --witness-c-macro.
19224         (witness_c_macro): New variable.
19225         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19226         AM_CPPFLAGS define it as a C macro.
19227         (func_emit_tests_Makefile_am): Likewise.
19228         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19229         read it from there.
19230         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19231         m4_define, not AC_DEFUN.
19232         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19233         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19234         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19235         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19236         s|...|...|, to substitute the values of the GNULIB_* module indicator
19237         variables.
19238         * modules/dirent (Makefile.am): Likewise.
19239         * modules/fcntl-h (Makefile.am): Likewise.
19240         * modules/iconv-h (Makefile.am): Likewise.
19241         * modules/langinfo (Makefile.am): Likewise.
19242         * modules/locale (Makefile.am): Likewise.
19243         * modules/math (Makefile.am): Likewise.
19244         * modules/netdb (Makefile.am): Likewise.
19245         * modules/poll-h (Makefile.am): Likewise.
19246         * modules/pty (Makefile.am): Likewise.
19247         * modules/search (Makefile.am): Likewise.
19248         * modules/signal (Makefile.am): Likewise.
19249         * modules/spawn (Makefile.am): Likewise.
19250         * modules/stdio (Makefile.am): Likewise.
19251         * modules/stdlib (Makefile.am): Likewise.
19252         * modules/string (Makefile.am): Likewise.
19253         * modules/sys_ioctl (Makefile.am): Likewise.
19254         * modules/sys_select (Makefile.am): Likewise.
19255         * modules/sys_socket (Makefile.am): Likewise.
19256         * modules/sys_stat (Makefile.am): Likewise.
19257         * modules/sys_times (Makefile.am): Likewise.
19258         * modules/sys_utsname (Makefile.am): Likewise.
19259         * modules/sys_wait (Makefile.am): Likewise.
19260         * modules/termios (Makefile.am): Likewise.
19261         * modules/time (Makefile.am): Likewise.
19262         * modules/unistd (Makefile.am): Likewise.
19263         * modules/wchar (Makefile.am): Likewise.
19264
19265 2011-06-08  Eric Blake  <eblake@redhat.com>
19266
19267         strerror: simplify replacement
19268         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19269         * modules/strerror (configure.ac): No prereqs needed here...
19270         * modules/strerror-override (configure.ac): ...but this needs it.
19271         (Files): Add file for needed prereq macro.
19272
19273 2011-06-08  Bruno Haible  <bruno@clisp.org>
19274
19275         strerror_r-posix: Tweaks.
19276         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19277         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19279         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19280         (gl_FUNC_STRERROR_R): ... to here.
19281         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19282
19283 2011-06-07  Eric Blake  <eblake@redhat.com>
19284
19285         perror: document fixed bugs
19286         * doc/posix-functions/perror.texi (perror): Document recent
19287         patches.
19288
19289 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         stat-time: get_stat_birthtime failure is better-defined
19292         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19293         return a timestamp whose tv_sec and tv_nsec values are both -1.
19294         Previously, the spec said only that the tv_nsec value was negative.
19295         This upward-compatible change simplifies GNU tar a bit.
19296
19297 2011-06-07  Eric Blake  <eblake@redhat.com>
19298
19299         strerror_r-posix: work around cygwin 1.7.9
19300         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19301         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19302         bug without replacing strerror_r.
19303         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19304         strerror_r is buggy, but without requiring strerror_r compilation.
19305         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19306
19307         test-perror: relax test to ignore cygwin bug
19308         * tests/test-perror2.c (main): Relax test on requiring detection
19309         of stream errors, and use unbuffered stream.
19310         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19311         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19312         * doc/posix-functions/fputc.texi (fputc): Likewise.
19313         * doc/posix-functions/fputs.texi (fputs): Likewise.
19314         * doc/posix-functions/fputws.texi (fputws): Likewise.
19315         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19316         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19317         * doc/posix-functions/getopt.texi (getopt): Likewise.
19318         * doc/posix-functions/perror.texi (perror): Likewise.
19319         * doc/posix-functions/printf.texi (printf): Likewise.
19320         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19321         * doc/posix-functions/psignal.texi (psignal): Likewise.
19322         * doc/posix-functions/putc.texi (putc): Likewise.
19323         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19324         Likewise.
19325         * doc/posix-functions/putchar.texi (putchar): Likewise.
19326         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19327         Likewise.
19328         * doc/posix-functions/puts.texi (puts): Likewise.
19329         * doc/posix-functions/putwc.texi (putwc): Likewise.
19330         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19331         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19332         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19333         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19334         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19335         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19336         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19337         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19338
19339 2011-05-22  Bruno Haible  <bruno@clisp.org>
19340
19341         strerror: Move AC_LIBOBJ invocations to module description.
19342         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19343         gl_PREREQ_STRERROR invocations from here...
19344         * modules/strerror (configure.ac): ... to here.
19345
19346 2011-05-21  Bruno Haible  <bruno@clisp.org>
19347
19348         perror: Use common idiom.
19349         * modules/perror (configure.ac): Reorder statements.
19350
19351 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19352
19353         tests: fix usage message in 'mktempd_'
19354         * tests/init.sh (mktempd_): In the usage message, use literal
19355         'mktempd_', not '$ME' (which is even undefined), as the name of
19356         the subroutine.
19357
19358 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19359
19360         tests init: new function 'fatal_', for hard errors
19361         Before this patch, the only way offered by tests/init.sh to
19362         properly signal a hard error was the `framework_failure_'
19363         function.  But the error message issued by that function,
19364         as its name would suggest, refers to a set-up failure in the
19365         testsuite, while hard errors can obviously also be due to
19366         other reasons.  The best way to fix this inconsistency is to
19367         introduce a new function with a more general error message.
19368         * tests/init.sh (fatal_): New function.
19369
19370 2011-06-06  Eric Blake  <eblake@redhat.com>
19371
19372         canonicalize-lgpl: use common idiom
19373         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19374         over newer POSIX -Rf.
19375         Reported by Bruno Haible.
19376
19377         canonicalize-lgpl: work around AIX realpath bug
19378         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19379         * doc/posix-functions/realpath.texi (realpath): Document it.
19380         Reported by Bruno Haible.
19381
19382         strerror: work around FreeBSD bug
19383         * lib/strerror.c (strerror): Special case 0.
19384         Reported by Bruno Haible.
19385
19386         strerror-override: avoid bloating errno module
19387         * modules/errno (Files, configure.ac): Move replacement strings...
19388         * modules/strerror-override: ...to new module.
19389         * modules/strerror (Depends-on): Add strerror-override.
19390         * modules/strerror_r-posix (Depends-on): Likewise.
19391         * MODULES.html.sh: Document new module.
19392         Reported by Bruno Haible.
19393
19394 2011-06-06  Bruno Haible  <bruno@clisp.org>
19395
19396         spawn-pipe tests: Rename program.
19397         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19398         * tests/test-spawn-pipe-child.c: Update comment.
19399         * tests/test-spawn-pipe.sh: Update.
19400         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19401
19402         spawn-pipe tests: Link the child program only against libc.
19403         * tests/test-spawn-pipe-child.c: New file, extracted from
19404         tests/test-spawn-pipe.c.
19405         (main): Expect only one argument.
19406         (is_open): New function, copied from tests/test-pipe.c.
19407         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19408         (child_main): Remove function.
19409         (test_pipe): Pass only one argument to the child program.
19410         (main): Remove child process code. Expect the child program's name as
19411         first argument.
19412         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19413         argument.
19414         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19415         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19416         test-spawn-pipe-child against no libraries.
19417
19418 2011-06-06  Bruno Haible  <bruno@clisp.org>
19419
19420         careadlinkat: Avoid mismatch between ssize_t and int.
19421         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19422         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19423
19424 2011-06-06  Jim Meyering  <meyering@redhat.com>
19425
19426         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19427         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19428         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19429
19430 2011-06-05  Bruno Haible  <bruno@clisp.org>
19431
19432         ansi-c++-opt: Interoperability with libtool.
19433         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19434         set the variable to "no", not to ":".
19435         * NEWS: Mention the change.
19436
19437 2011-06-05  Bruno Haible  <bruno@clisp.org>
19438
19439         acl: Fix test failure on AIX 7.
19440         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19441         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19442
19443 2011-06-05  Bruno Haible  <bruno@clisp.org>
19444
19445         pipe-filter-ii: Fix test failure on AIX and IRIX.
19446         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19447         with EAGAIN, retry with a smaller buffer size.
19448
19449 2011-06-05  Bruno Haible  <bruno@clisp.org>
19450
19451         localename: Fix link dependencies.
19452         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19453         * modules/localename-tests (Makefile.am): Link test-localename with
19454         $(LIBTHREAD).
19455
19456 2011-06-05  Bruno Haible  <bruno@clisp.org>
19457
19458         error: Avoid gcc warning.
19459         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19460
19461 2011-06-05  Bruno Haible  <bruno@clisp.org>
19462
19463         unsetenv: Avoid gcc warning.
19464         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19465
19466 2011-06-05  Bruno Haible  <bruno@clisp.org>
19467
19468         setenv: Avoid gcc warning.
19469         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19470
19471 2011-06-05  Bruno Haible  <bruno@clisp.org>
19472
19473         sys_select: Ensure memset is declared also on AIX 7.
19474         * lib/sys_select.in.h: Include <string.h> also on AIX.
19475         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19476         self-contained also on AIX 7.1.
19477
19478 2011-06-04  Jim Meyering  <meyering@redhat.com>
19479
19480         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19481         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19482         function name, "error".
19483         (_gl_translatable_diag_func_re): New configurable variable.
19484
19485 2011-06-04  Bruno Haible  <bruno@clisp.org>
19486
19487         getopt: Avoid gcc warning.
19488         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19489
19490 2011-06-04  Bruno Haible  <bruno@clisp.org>
19491
19492         strerror_r: Fix comments.
19493         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19494         commit.
19495
19496 2011-06-04  Bruno Haible  <bruno@clisp.org>
19497
19498         perror: Fix compilation error.
19499         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19500         Undefine fprintf, not sprintf.
19501         * modules/perror (Depends-on): Remove intprops, verify.
19502
19503 2011-06-04  Bruno Haible  <bruno@clisp.org>
19504
19505         setlocale: Enable replacement on Cygwin 1.5.
19506         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19507         Cygwin 1.5.x.
19508         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19509         LC_CTYPE category also exists on Cygwin 1.5.x.
19510
19511 2011-06-04  Bruno Haible  <bruno@clisp.org>
19512
19513         strerror-override: Don't disable symbol renamings.
19514         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19515         * lib/strerror-override.c: Include config.h.
19516         (strerror_override): Don't undefine.
19517
19518 2011-06-03  Bruno Haible  <bruno@clisp.org>
19519
19520         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19521         * lib/localename.h: Update copyright header.
19522         * lib/localename.c: Likewise.
19523         * lib/relocatable.h: Likewise.
19524         * lib/relocatable.c: Likewise.
19525
19526 2011-06-02  Bruno Haible  <bruno@clisp.org>
19527
19528         doc: Fix a module name.
19529         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19530
19531 2011-06-02  Bruno Haible  <bruno@clisp.org>
19532
19533         pipe2: Remove dependency on 'nonblocking' module.
19534         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19535         O_NONBLOCK is defined by gnulib.
19536         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19537         is zero.
19538         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19539         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19540         defined by gnulib.
19541         (get_nonblocking_flag): New function.
19542         (main): Test O_NONBLOCK flag only if it is nonzero.
19543         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19544
19545 2011-06-03  Jim Meyering  <meyering@redhat.com>
19546
19547         maint: three new prohibit-header-without-use rules
19548         Prohibit use of cloexec.h, posixver.h, same.h without use.
19549         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19550         (sc_prohibit_posixver_without_use): Likewise.
19551         (sc_prohibit_same_without_use): Likewise.
19552
19553 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19554
19555         allocator: 'die' routine is now given requested size
19556         * lib/allocator.h (struct allocator.die): New size arg.
19557         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19558         If the actual problem is an ssize_t limitation, not a size_t or
19559         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19560
19561 2011-06-01  Eric Blake  <eblake@redhat.com>
19562
19563         strerror: drop strerror_r dependency
19564         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19565         * lib/strerror-override.c (strerror_override): ...to new file.
19566         * lib/strerror-override.h: Add prototype.
19567         * lib/strerror-impl.h: Delete.
19568         * lib/strerror.c (strerror): New implementation.
19569         * modules/errno (Files): Add new files.
19570         (configure.ac): Compile new file as appropriate.
19571         * modules/strerror (Files): Drop unused file.
19572         (Depends-on): Drop strerror_r-posix.
19573         * MODULES.html.sh: Document strerror_r-posix.
19574         Requested by Sam Steingold.
19575
19576         perror: call strerror_r directly
19577         * modules/perror (Files): Drop strerror-impl.h.
19578         * lib/perror.c (perror): Use our own stack buffer, rather than
19579         calling a wrapper that uses static storage.
19580         * doc/posix-functions/perror.texi (perror): Document a limitation
19581         of our replacement.
19582
19583         strerror_r: fix includes for FreeBSD
19584         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19585         since we use abort on some platforms.
19586         Reported by Matthias Bolte.
19587
19588 2011-05-31  Bruno Haible  <bruno@clisp.org>
19589
19590         Fix link errors in tests: openat-die uses gettext-h.
19591         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19592         against $(LIBINTL).
19593         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19594         against $(LIBINTL).
19595         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19596         $(LIBINTL).
19597         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19598         against $(LIBINTL).
19599         * modules/linkat-tests (Makefile.am): Link test-linkat against
19600         $(LIBINTL).
19601         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19602         $(LIBINTL).
19603         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19604         against $(LIBINTL).
19605         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19606         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19607         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19608         $(LIBINTL).
19609         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19610         $(LIBINTL).
19611         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19612         $(LIBINTL).
19613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19614
19615 2011-05-31  Bruno Haible  <bruno@clisp.org>
19616
19617         Fix link errors in tests: wait-process uses gettext-h.
19618         * modules/nonblocking-pipe-tests (Makefile.am): Set
19619         test_nonblocking_pipe_main_LDADD.
19620         * modules/nonblocking-socket-tests (Makefile.am): Link
19621         test-nonblocking-socket-main against $(LIBINTL).
19622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19623
19624 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19625
19626         assert-h: work around 'verify' incompatibility
19627         * lib/verify.h: Use @...@ directives, not ifdef.
19628         * modules/assert-h (assert.h): Implement the directives.
19629         (assert.h): Substitute the symbol-prefix more consistently.
19630
19631 2011-05-29  Jim Meyering  <meyering@redhat.com>
19632
19633         trim: remove three superfluous assignments
19634         * lib/trim.c (trim2): Remove three superfluous assignments
19635         and correct brace positioning.
19636
19637 2011-05-29  Bruno Haible  <bruno@clisp.org>
19638
19639         wctype-h: Avoid namespace pollution on Solaris 2.6.
19640         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19641         identifiers.
19642         * doc/posix-headers/wctype.texi: Mention the problem.
19643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19644
19645 2011-05-28  Jim Meyering  <meyering@redhat.com>
19646
19647         parse-datetime.y: accommodate -Wstrict-overflow
19648         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19649         placate -Wstrict-overflow.
19650
19651         trim: avoid a warning from -O2 -Wstrict-overflow
19652         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19653
19654 2011-05-29  Bruno Haible  <bruno@clisp.org>
19655
19656         gnulib-tool: Fix bug in yesterday's commit.
19657         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19658         twice.
19659
19660 2011-05-29  Bruno Haible  <bruno@clisp.org>
19661
19662         Allow multiple gnulib generated include files to be combined.
19663         * gnulib-tool (func_compute_include_guard_prefix): New function.
19664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19665         ${gl_include_guard_prefix} references.
19666         (func_import, func_create_testdir): Invoke
19667         func_compute_include_guard_prefix.
19668         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19669         * lib/ctype.in.h: Likewise.
19670         * lib/dirent.in.h: Likewise.
19671         * lib/errno.in.h: Likewise.
19672         * lib/fcntl.in.h: Likewise.
19673         * lib/float.in.h: Likewise.
19674         * lib/getopt.in.h: Likewise.
19675         * lib/iconv.in.h: Likewise.
19676         * lib/langinfo.in.h: Likewise.
19677         * lib/locale.in.h: Likewise.
19678         * lib/math.in.h: Likewise.
19679         * lib/netdb.in.h: Likewise.
19680         * lib/netinet_in.in.h: Likewise.
19681         * lib/poll.in.h: Likewise.
19682         * lib/pthread.in.h: Likewise.
19683         * lib/pty.in.h: Likewise.
19684         * lib/sched.in.h: Likewise.
19685         * lib/se-selinux.in.h: Likewise.
19686         * lib/search.in.h: Likewise.
19687         * lib/signal.in.h: Likewise.
19688         * lib/spawn.in.h: Likewise.
19689         * lib/stdarg.in.h: Likewise.
19690         * lib/stddef.in.h: Likewise.
19691         * lib/stdint.in.h: Likewise.
19692         * lib/stdio.in.h: Likewise.
19693         * lib/stdlib.in.h: Likewise.
19694         * lib/string.in.h: Likewise.
19695         * lib/strings.in.h: Likewise.
19696         * lib/sys_file.in.h: Likewise.
19697         * lib/sys_ioctl.in.h: Likewise.
19698         * lib/sys_select.in.h: Likewise.
19699         * lib/sys_socket.in.h: Likewise.
19700         * lib/sys_stat.in.h: Likewise.
19701         * lib/sys_time.in.h: Likewise.
19702         * lib/sys_times.in.h: Likewise.
19703         * lib/sys_uio.in.h: Likewise.
19704         * lib/sys_utsname.in.h: Likewise.
19705         * lib/sys_wait.in.h: Likewise.
19706         * lib/sysexits.in.h: Likewise.
19707         * lib/termios.in.h: Likewise.
19708         * lib/time.in.h: Likewise.
19709         * lib/unistd.in.h: Likewise.
19710         * lib/wchar.in.h: Likewise.
19711         * lib/wctype.in.h: Likewise.
19712         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19713         * modules/ctype (Makefile.am): Likewise.
19714         * modules/dirent (Makefile.am): Likewise.
19715         * modules/errno (Makefile.am): Likewise.
19716         * modules/fcntl-h (Makefile.am): Likewise.
19717         * modules/float (Makefile.am): Likewise.
19718         * modules/getopt-posix (Makefile.am): Likewise.
19719         * modules/iconv-h (Makefile.am): Likewise.
19720         * modules/langinfo (Makefile.am): Likewise.
19721         * modules/locale (Makefile.am): Likewise.
19722         * modules/math (Makefile.am): Likewise.
19723         * modules/netdb (Makefile.am): Likewise.
19724         * modules/netinet_in (Makefile.am): Likewise.
19725         * modules/poll-h (Makefile.am): Likewise.
19726         * modules/pthread (Makefile.am): Likewise.
19727         * modules/pty (Makefile.am): Likewise.
19728         * modules/sched (Makefile.am): Likewise.
19729         * modules/search (Makefile.am): Likewise.
19730         * modules/selinux-h (Makefile.am): Likewise.
19731         * modules/signal (Makefile.am): Likewise.
19732         * modules/spawn (Makefile.am): Likewise.
19733         * modules/stdarg (Makefile.am): Likewise.
19734         * modules/stddef (Makefile.am): Likewise.
19735         * modules/stdint (Makefile.am): Likewise.
19736         * modules/stdio (Makefile.am): Likewise.
19737         * modules/stdlib (Makefile.am): Likewise.
19738         * modules/string (Makefile.am): Likewise.
19739         * modules/strings (Makefile.am): Likewise.
19740         * modules/sys_file (Makefile.am): Likewise.
19741         * modules/sys_ioctl (Makefile.am): Likewise.
19742         * modules/sys_select (Makefile.am): Likewise.
19743         * modules/sys_socket (Makefile.am): Likewise.
19744         * modules/sys_stat (Makefile.am): Likewise.
19745         * modules/sys_time (Makefile.am): Likewise.
19746         * modules/sys_times (Makefile.am): Likewise.
19747         * modules/sys_uio (Makefile.am): Likewise.
19748         * modules/sys_utsname (Makefile.am): Likewise.
19749         * modules/sys_wait (Makefile.am): Likewise.
19750         * modules/sysexits (Makefile.am): Likewise.
19751         * modules/termios (Makefile.am): Likewise.
19752         * modules/time (Makefile.am): Likewise.
19753         * modules/unistd (Makefile.am): Likewise.
19754         * modules/wchar (Makefile.am): Likewise.
19755         * modules/wctype-h (Makefile.am): Likewise.
19756         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19757
19758 2011-05-29  Bruno Haible  <bruno@clisp.org>
19759
19760         assert-h: Allow multiple gnulib generated replacements to coexist.
19761         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19762
19763 2011-05-29  Bruno Haible  <bruno@clisp.org>
19764
19765         argp: Allow coexistence with strerror_r-posix module.
19766         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19767         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19768         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19769         not the glibc signature.
19770
19771 2011-05-28  Bruno Haible  <bruno@clisp.org>
19772
19773         gnulib-tool: Alternative structure of testdirs, similar to --import.
19774         * gnulib-tool: New option --single-configure.
19775         (func_usage): Document it.
19776         (single_configure): New variable.
19777         (func_modules_transitive_closure_separately,
19778         func_modules_transitive_closure_separately,
19779         func_determine_use_libtests, func_modules_add_dummy_separately,
19780         func_modules_to_filelist_separately): New functions, extracted from
19781         func_import.
19782         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19783         (func_import): Use the new functions.
19784         (func_create_testdir): Set final_modules. Handle $single_configure =
19785         true case.
19786
19787 2011-05-28  Bruno Haible  <bruno@clisp.org>
19788
19789         getloadavg: Remove an unreliable safety check.
19790         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19791         getloadavg.c is in place.
19792         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19793         Reported by Sam Steingold <sds@gnu.org>.
19794
19795 2011-05-28  Bruno Haible  <bruno@clisp.org>
19796
19797         doc: Cleanup yet another file produced by texinfo.tex.
19798         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19799
19800 2011-05-28  Bruno Haible  <bruno@clisp.org>
19801
19802         Finish the conditional dependencies mechanism.
19803         * gnulib-tool: New option --no-conditional-dependencies.
19804         (func_usage): Document it. Don't mark --conditional-dependencies as
19805         experimental.
19806         (cond_dependencies): The possible values can now be true, false, empty.
19807         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19808         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19809         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19810
19811 2011-05-28  Bruno Haible  <bruno@clisp.org>
19812
19813         doc: Use a recent texinfo.tex.
19814         * doc/Makefile (tex_opts): New variable.
19815         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19816
19817 2011-05-28  Jim Meyering  <meyering@redhat.com>
19818
19819         intprops.h: adjust comment to match code change
19820         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19821         only once, it *may* have side effects.  Also fix an unrelated typo.
19822         (_GL_INT_SIGNED): Likewise.
19823
19824 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19825
19826         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19827
19828 2011-05-26  Bruno Haible  <bruno@clisp.org>
19829
19830         mbsrchr: Avoid collision with system function on Interix.
19831         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19832         Reported by Markus Duft <mduft@gentoo.org>.
19833
19834 2011-05-15  James Youngman  <jay@gnu.org>
19835
19836         getopt: for ambiguous options, enumerate the possibilities.
19837         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19838         the ambiguous options when an ambiguous prefix is given. This was
19839         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19840         glibc change was
19841         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19842
19843 2011-05-25  Eric Blake  <eblake@redhat.com>
19844
19845         getcwd: work around mingw bug
19846         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19847         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19848         Reported by Matthias Bolte.
19849
19850 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19851
19852         test-intprops: disable -Wtype-limits diagnostics
19853         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19854         diagnostics.  Otherwise, the integer overflow macros generate many
19855         diagnostics.  Reported by Jim Meyering in
19856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19857
19858         intprops: shorten, to pacify gcc -Woverlength-strings
19859         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19860         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19861         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19862         likely to run afoul of C compiler limits for string constant lengths.
19863         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19864
19865 2011-05-24  Eric Blake  <eblake@redhat.com>
19866
19867         docs: document recently fixed glibc printf bug
19868         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19869         * doc/posix-functions/printf.texi (printf): Likewise.
19870         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19871         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19872
19873         closein-tests: convert to init.sh
19874         * modules/closein-tests (Files): Add init.sh
19875         * tests/test-closein.sh Use it.
19876
19877         yesno-tests: convert to init.sh
19878         * modules/yesno-tests (Files): Add init.sh.
19879         * tests/test-yesno.sh: Use it.
19880
19881         atexit-tests: ensure reliable exit status
19882         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19883         Reported by Bruno Haible.
19884
19885 2011-05-24  Bruno Haible  <bruno@clisp.org>
19886
19887         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19889         gl_PREREQ_STRERROR_R invocations from here...
19890         * modules/strerror_r-posix (configure.ac): ... to here.
19891
19892 2011-05-24  Eric Blake  <eblake@redhat.com>
19893
19894         strerror_r: fix missing header
19895         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19896
19897         strerror_r: fix AIX test failures
19898         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19899         ERANGE failure.
19900
19901         strerror_r: fix Solaris test failures
19902         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19903         failures.
19904         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19905
19906         strerror_r: enforce POSIX recommendations
19907         * lib/strerror_r.c (safe_copy): New helper method.
19908         (strerror_r): Guarantee a non-empty string.
19909         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19910         recent POSIX rulings and to match our strerror guarantees.
19911         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19912
19913 2011-05-24  Jim Meyering  <meyering@redhat.com>
19914
19915         test-perror2.c: avoid warning about unused variable
19916         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19917
19918 2011-05-24  Eric Blake  <eblake@redhat.com>
19919
19920         perror: avoid spurious test failure on HP-UX
19921         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19922
19923         tests: fix logic bug in init.sh
19924         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19925         shell.
19926
19927 2011-05-24  Jim Meyering  <meyering@redhat.com>
19928
19929         utimensat: do not reference an out-of-scope buffer
19930         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19931         declared in an inner scope, yet "times" would be dereferenced outside
19932         the scope in which "ts" was valid.
19933         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19934         of ts[2] "out/up", so that the use of aliased "times" (via
19935         "times = ts;") does not end up referencing an out-of-scope "ts"
19936
19937         opendir-safer.c: don't clobber errno; don't close negative FD
19938         * lib/opendir-safer.c (opendir_safer):
19939         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19940         file descriptor, and more importantly, don't clobber the
19941         offending errno value with EINVAL.  Before, upon failure
19942         of dup_safer, we would pass the negative file descriptor to
19943         fdopendir, which would clobber errno.
19944
19945 2011-05-23  Bruno Haible  <bruno@clisp.org>
19946
19947         idcache: Fix module description.
19948         * modules/idcache (Include): Set to "idcache.h".
19949
19950 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19951
19952         gnulib-tool: fix portability problem with MacOS sed
19953         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19954         before the "}".  Problem reported by Leo in
19955         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19956         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19957         sed_extract_condition1, sed_extract_condition2.
19958
19959 2011-05-23  Bruno Haible  <bruno@clisp.org>
19960
19961         hash: Simplify autoconf macro.
19962         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19963
19964 2011-05-23  Bruno Haible  <bruno@clisp.org>
19965
19966         getugroups: Fix module description.
19967         * modules/getugroups (Include): Set to "getugroups.h".
19968
19969 2011-05-23  Bruno Haible  <bruno@clisp.org>
19970
19971         linkat: Simplify autoconf macro.
19972         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19973
19974 2011-05-23  Bruno Haible  <bruno@clisp.org>
19975             Eric Blake  <eblake@redhat.com>
19976
19977         linkat, renameat: Update dependencies.
19978         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19979         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19980         symlinkat.
19981
19982 2011-05-23  Jim Meyering  <meyering@redhat.com>
19983
19984         maint.mk: more tight_scope improvements
19985         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19986         (_gl_TS_headers): Define only in if-0'd block.
19987         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19988         sometimes we must *not* use it.  Adjust uses accordingly.
19989         (sc_tight_scope): Use much simpler grep-based test to determine
19990         whether we skip this rule.
19991
19992         maint.mk: generalize/improve the tight-scope rule
19993         * top/maint.mk: Emit a warning when the test is skipped.
19994         (_gl_TS_dir): Add $(srcdir)/ prefix.
19995         (_gl_TS_function_match): Simplify, rather than trying
19996         to enumerate common types.  Otherwise, it would fail to match an
19997         "extern unsigned char const *" declaration in idutils.
19998         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19999         a way to support use of that type of macro.
20000         (_gl_TS_var_match): Simplify regexp.
20001         (_gl_TS_obj_files): New configurable variable.
20002         (_gl_TS_headers): Likewise.
20003
20004 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20005
20006         verify: fix bug when gnulib <assert.h> is also included
20007         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20008         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20009         Perhaps there's a better way, but this fixes the immediate problem.
20010         Problem reported by Bruno Haible in
20011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20012
20013 2011-05-22  Bruno Haible  <bruno@clisp.org>
20014
20015         xgetcwd: Simplify autoconf macro.
20016         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20017
20018 2011-05-22  Bruno Haible  <bruno@clisp.org>
20019
20020         New module 'mktime-internal'.
20021         * modules/mktime-internal: New file.
20022         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20023         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20024         mktime_internal as a C macro if libc has __mktime_internal.
20025         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20026         conditions.
20027         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20028
20029 2011-05-22  Bruno Haible  <bruno@clisp.org>
20030
20031         timegm: Correct mktime replacement statements.
20032         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20033         defining mktime as a C macro. This completes a 2009-07-28 commit.
20034
20035 2011-05-22  Bruno Haible  <bruno@clisp.org>
20036
20037         timegm: Simplify autoconf macro.
20038         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20039
20040 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20041
20042         clock-time: change to LGPLv2+.
20043         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20044         BSD-like but we have no mark for that; this is good enough for now.
20045
20046 2011-05-21  Bruno Haible  <bruno@clisp.org>
20047
20048         strerror_r: Fix comments.
20049         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20050
20051 2011-05-21  Bruno Haible  <bruno@clisp.org>
20052
20053         relocatable-prog-wrapper: Fix possible link error.
20054         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20055         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20056         (gl_FUNC_SETENV): ... to here.
20057         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20058         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20059
20060 2011-05-21  Bruno Haible  <bruno@clisp.org>
20061
20062         relocatable-prog-wrapper: Assume strerror() exists.
20063         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20064         m4/strerror.m4.
20065         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20066         * lib/relocwrapper.c: Remove mention of strerror module.
20067         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20068         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20069         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20070         C macro.
20071
20072 2011-05-21  Bruno Haible  <bruno@clisp.org>
20073
20074         select: Simplify replacement idiom.
20075         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20076         Win32 platforms.
20077         * lib/sys_select.in.h (select): Simplify accordingly.
20078         * modules/select (Depends-on): Likewise.
20079
20080 2011-05-21  Bruno Haible  <bruno@clisp.org>
20081
20082         mkdir-p: Simplify autoconf macro.
20083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20084         gl_FUNC_LCHOWN.
20085
20086 2011-05-21  Eric Blake  <eblake@redhat.com>
20087
20088         strerror_r: avoid clobbering strerror on cygwin
20089         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20090         fall back instead to sys_errlist.
20091         * modules/strerror (configure.ac): Add witness.
20092         * tests/test-strerror_r.c (main): Enhance test.
20093         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20094         * tests/test-perror2.c (main): Free memory before exit.
20095
20096 2011-05-21  Bruno Haible  <bruno@clisp.org>
20097
20098         mkdtemp: Use gnulib naming conventions.
20099         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20100         * modules/mkdtemp (configure.ac): Update.
20101
20102 2011-05-20  Eric Blake  <eblake@redhat.com>
20103
20104         strerror_r: avoid corrupting errno on Solaris
20105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20106         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20107
20108         strerror_r: avoid compiler warning
20109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20110
20111         strerror_r: simplify AIX code
20112         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20113
20114         test-perror: avoid spurious failure on FreeBSD
20115         * modules/perror-tests (Depends-on): Add strerror, now that
20116         strerror_r no longer pulls it in.
20117
20118 2011-05-20  Bruno Haible  <bruno@clisp.org>
20119
20120         strerror_r-posix: Remove unused dependencies.
20121         * modules/strerror_r-posix (Depends-on): Remove strerror.
20122         Reported by Eric Blake.
20123
20124 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20125
20126         intprops: remove assumption about A|B representation
20127         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20128         is a valid integer if both A and B are.  Although this is true for
20129         all known practical hosts, the C standard doesn't guarantee it,
20130         and the code need not assume it.  Also, this change may work around
20131         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20133
20134 2011-05-20  Eric Blake  <eblake@redhat.com>
20135
20136         perror: work around FreeBSD bug
20137         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20138         is broken.  Move AC_LIBOBJ...
20139         * modules/perror (configure.ac): Here.
20140         * doc/posix-functions/perror.texi (perror): Document this.
20141         * tests/test-perror2.c (main): Enhance test.
20142
20143         test-perror: check for strerror interactions
20144         * tests/macros.h (STREQ): Add macro.
20145         * modules/perror-tests (Files): Add second test.
20146         * tests/test-perror2.c (main): New file.
20147         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20148
20149         test-perror: rewrite to use init script
20150         * modules/perror-tests (Files): Add init.sh.
20151         * tests/test-perror.sh: Use temporary directory.
20152
20153 2011-05-20  Jim Meyering  <meyering@redhat.com>
20154
20155         maint: replace misused "a" with "an"
20156         * doc/intprops.texi: "a integer"
20157         * doc/regex.texi: "a explanation"
20158         * lib/alignof.h: "a object"
20159         * lib/argmatch.h: "a explanation"
20160         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20161         * lib/stdint.in.h: "a integer"
20162         * lib/userspec.c: "a owner"
20163         * doc/gnulib.texi: Fix "a idea", and reword.
20164
20165 2011-05-19  Jim Meyering  <meyering@redhat.com>
20166
20167         maint: correct misuse of "a" and "an"
20168         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20169         * lib/argp-help.c: "an docum...": s/an/a/
20170         * lib/argp-parse.c: "An vector": s/An/A/
20171         * lib/execute.c: "an native": s/an/a/
20172         * lib/spawn-pipe.c: Likewise.
20173         * lib/gc.h: "an Gc_rc": s/an/a/
20174         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20175         * lib/fts.c: "an stat.st_dev": s/an/a/
20176
20177 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         intprops-tests: work around HP-UX 11.23 cc bug with constants
20180         * tests/test-intprops.c (VERIFY): New macro.
20181         (main): Use it, instead of verify, to work around the compiler bug; see
20182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20183
20184         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20185         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20186         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20187         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20188         (_GL_REMAINDER_OVERFLOW): Use it.
20189
20190         intprops-tests: revert unsigned part of previous change
20191         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20192         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20193         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20195
20196 2011-05-19  Bruno Haible  <bruno@clisp.org>
20197
20198         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20199         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20200         strerror_r() returned without filling the buffer.
20201         Reported by Eric Blake.
20202
20203 2011-05-19  Eric Blake  <eblake@redhat.com>
20204
20205         strerror_r: guarantee unchanged errno
20206         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20207         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20208         failure.
20209         * tests/test-strerror_r.c (main): Enhance test.
20210
20211 2011-05-19  Bruno Haible  <bruno@clisp.org>
20212
20213         strerror_r: Reorder #if blocks.
20214         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20215         for consistency with the previous commit.
20216
20217 2011-05-19  Bruno Haible  <bruno@clisp.org>
20218
20219         perror: Avoid clobbering the strerror buffer when possible.
20220         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20221         * lib/strerror.c: Include it.
20222         * modules/strerror (Files): Add lib/strerror-impl.h.
20223         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20224         (my_strerror): New function, defined through lib/strerror-impl.h.
20225         (perror): Use it instead of strerror.
20226         * modules/perror (Files): Add lib/strerror-impl.h.
20227         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20228
20229 2011-05-19  Eric Blake  <eblake@redhat.com>
20230
20231         strerror_r: fix on newer cygwin
20232         * lib/strerror_r.c (strerror_r): Cygwin now has
20233         __xpg_strerror_r, use it.
20234
20235 2011-05-19  Bruno Haible  <bruno@clisp.org>
20236
20237         strerror_r: Avoid clobbering the strerror buffer when possible.
20238         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20239         (sys_nerr, sys_errlist): New declarations.
20240         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20241         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20242         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20243
20244 2011-05-19  Bruno Haible  <bruno@clisp.org>
20245
20246         strerror_r: Fix test failure on mingw.
20247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20248         EXTEND_STRERROR_R.
20249         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20250         macros from errno.in.h instead.
20251
20252 2011-05-19  Eric Blake  <eblake@redhat.com>
20253
20254         strerror: relax test for Solaris
20255         * tests/test-strerror.c (main): Permit Solaris behavior.
20256         * tests/test-strerror_r.c (main): Likewise.
20257
20258         strerror: enforce POSIX ruling on strerror(0)
20259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20260         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20261         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20262         * doc/posix-functions/strerror.texi (strerror): Document it.
20263         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20264         * tests/test-strerror.c (main): Strengthen test.
20265         * tests/test-strerror_r.c (main): Likewise.
20266
20267 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20268
20269         intprop-tests: port to older and more-pedantic compilers
20270         * modules/intprops-tests (Files): Add tests/macros.h.
20271         * tests/test-intprops.c: Include macros.h.
20272         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20273         it's no longer documented to expand to an integer constant expression.
20274         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20275         argument is floating point, as it's no longer documented to expand
20276         to an integer constant expression in that case.
20277         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20278         compiler bugs reported by Bruno Haible.  See
20279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20280         (U0, U1): New constants, to work around the same bugs.  Also,
20281         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20282
20283         intprops: work around C compiler bugs
20284         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20285         bug in Sun C 5.11 2010/08/13 and other compilers; see
20286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20287
20288         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20289         * doc/intprops.texi (Integer Type Determination): Fix
20290         documentation for TYPE_IS_INTEGER: it returns an constant
20291         expression, not an integer constant expression.  Fix doc for
20292         TYPE_SIGNED: it returns an integer constant expression only if its
20293         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20294         hardly worth documented that way....)
20295
20296 2011-05-18  Bruno Haible  <bruno@clisp.org>
20297
20298         strerror_r: Avoid clobbering the strerror buffer when possible.
20299         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20300         Handle gnulib defined errno values here. When strerror() returns NULL
20301         or an empty string, return EINVAL.
20302         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20303         gnulib defined errno values here.
20304         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20305
20306 2011-05-18  Eric Blake  <eblake@redhat.com>
20307
20308         fnmatch: avoid compiler warning
20309         * lib/fnmatch_loop.c (FCT): Use correct type.
20310         Reported by Matthias Bolte.
20311
20312 2011-05-13  Jim Meyering  <meyering@redhat.com>
20313
20314         maint.mk: three new prohibit_<HDR>_without_use rules
20315         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20316         (sc_prohibit_stdio-safer_without_use): Likewise.
20317         (sc_prohibit_xfreopen_without_use): Likewise.
20318
20319 2011-05-17  Jim Meyering  <meyering@redhat.com>
20320
20321         announce-gen: fail if the NEWS delta is empty
20322         If there's nothing noteworthy in NEWS, then either you forgot
20323         or you shouldn't be releasing.
20324         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20325
20326 2011-05-17  Pádraig Brady <P@draigBrady.com>
20327
20328         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20329         reserved symbols starting with double underscore from the check.
20330
20331 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         intprops: add doc
20334         * doc/intprops.texi: New file, documenting intprops.
20335         * doc/gnulib.texi (Particular Modules): Include it.
20336
20337         verify: add doc to gnulib manual and fix example
20338         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20339         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20340         (Compile-time Assertions): Fix example so it can't overflow.
20341
20342 2011-05-17  Jim Meyering  <meyering@redhat.com>
20343
20344         warnings.m4: don't usurp save_CPPFLAGS variable name
20345         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20346
20347         doc: fix typo
20348         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20349
20350 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20351             Bruno Haible  <bruno@clisp.org>
20352
20353         doc: Tweak recent change.
20354         * README (Portability guidelines): Tweak new text.
20355         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20356         Interix 6.1.
20357
20358 2011-05-16  Eric Blake  <eblake@redhat.com>
20359
20360         inttypes: avoid autoconf warning
20361         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20362         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20363
20364 2011-05-16  Sam Steingold <sds@gnu.org>
20365         and Eric Blake  <eblake@redhat.com>
20366
20367         vc-list-files: accept multiple directory operands
20368         * build-aux/vc-list-files: Iterate over all remaining operands.
20369
20370 2011-05-16  Bruno Haible  <bruno@clisp.org>
20371
20372         Fix confusion regarding deprecated modules.
20373         * modules/calloc (Status, Notice): Mark module as deprecated, not
20374         obsolete.
20375         * modules/fnmatch-posix (Status, Notice): Likewise.
20376         * modules/getdate (Status, Notice): Likewise.
20377         * modules/getopt (Status, Notice): Likewise.
20378         * modules/malloc (Status, Notice): Likewise.
20379         * modules/pipe (Status, Notice): Likewise.
20380         * modules/realloc (Status, Notice): Likewise.
20381         * modules/rename-dest-slash (Status, Notice): Likewise.
20382         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20383         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20384         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20385         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20386         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20387
20388 2011-05-16  Bruno Haible  <bruno@clisp.org>
20389
20390         doc: List the target platforms.
20391         * doc/gnulib-intro.texi (Target Platforms): New section.
20392         * doc/gnulib.texi (Introduction): Update menu.
20393         * README (Portability guidelines): Refer to the new section. Update
20394         statement about oldest supported environment. Remove rationale why
20395         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20396         unportable C89 function.
20397         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20398         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20399
20400 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20403
20404 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20405
20406         intprops-tests: new module
20407         * modules/intprops-tests, tests/test-intprops.c: New files.
20408
20409         intprops: add safe, portable integer overflow checking
20410         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20411         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20412         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20413         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20414         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20415         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20416         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20417         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20418         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20419         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20420         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20421
20422 2011-05-12  James Youngman  <jay@gnu.org>
20423
20424         Add a test for glibc's Bugzilla bug #12378.
20425         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20426         doesn't allow the literal matching of a lone "[" (which is
20427         required by POSIX).
20428         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20429
20430 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20431
20432         Sync glibc change fixing Bugzilla bug #12378.
20433         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20434         beginning and fall back to matching as normal character if the
20435         string ends before the matching ']' is found.  This is what POSIX
20436         requires.
20437
20438 2011-05-13  Eric Blake  <eblake@redhat.com>
20439
20440         getcwd-lgpl: relax test for FreeBSD
20441         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20442         issue.
20443         * tests/test-getcwd-lgpl.c (main): Relax test.
20444         Reported by Matthias Bolte.
20445
20446 2011-05-11  Eric Blake  <eblake@redhat.com>
20447
20448         test-fflush: silence compiler warning
20449         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20450
20451 2011-05-11  Bruno Haible  <bruno@clisp.org>
20452
20453         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20454         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20455         * modules/canonicalize (Depends-on): Add 'nocrash'.
20456         * modules/canonicalize-lgpl (Depends-on): Likewise.
20457         * doc/posix-functions/realpath.texi: Update platforms list.
20458         Reported by Ryan Schmidt <ryandesign@macports.org>.
20459
20460 2011-05-11  Bruno Haible  <bruno@clisp.org>
20461
20462         group-member: Declare function in <unistd.h>.
20463         * lib/unistd.in.h (group_member): New declaration.
20464         * lib/group-member.h: Remove file.
20465         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20466         * tests/test-unistd-c++.cc: Check signature of group_member.
20467         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20468         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20469         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20470         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20471         HAVE_GROUP_MEMBER.
20472         * modules/group-member (Files): Remove lib/group-member.h.
20473         (Depends-on): Add unistd. Specify conditions.
20474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20475         (Include): Change to <unistd.h>.
20476         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20477         HAVE_GROUP_MEMBER.
20478         * NEWS: Mention the change.
20479         * lib/euidaccess.c: Don't include group-member.h.
20480
20481 2011-05-11  Bruno Haible  <bruno@clisp.org>
20482
20483         group-member: Document module.
20484         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20485         module.
20486
20487 2011-05-11  Bruno Haible  <bruno@clisp.org>
20488
20489         fclose: Fix mistake earlier today.
20490         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20491
20492 2011-05-11  Eric Blake  <eblake@redhat.com>
20493
20494         fclose: preserve fflush errors
20495         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20496         Reported by Jim Meyering.
20497
20498         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20499         * build-aux/bootstrap (check_versions): When no specific version
20500         is required, merely check that the app produces an exit status
20501         that indicates its existence.
20502
20503         maint.mk: drop redundant check
20504         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20505         the same but better.
20506
20507 2011-05-11  Bruno Haible  <bruno@clisp.org>
20508
20509         fclose: Fix possible link error.
20510         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20511         unregister_shadow_fd. Improve comments.
20512         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20513         Eric Blake.
20514
20515 2011-05-11  Jim Meyering  <meyering@redhat.com>
20516
20517         maint.mk: improve "can not" detection and generalize rule name
20518         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20519         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20520         Use the same technique as in sc_prohibit_doubled_word, so that
20521         we recognize "can not" also when the words are separated by a newline.
20522         Suggested by Eric Blake.
20523         (perl_filename_lineno_text_): Define.  Factored out of...
20524         (prohibit_doubled_word_): ...here.  Use the new definition.
20525         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20526         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20527         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20528
20529 2011-05-10  Eric Blake  <eblake@redhat.com>
20530
20531         fclose: avoid double close race when possible
20532         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20533         all but WINDOWS_SOCKETS.
20534
20535 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20536
20537         openat: correct new comment
20538         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20539
20540 2011-05-10  Jim Meyering  <meyering@redhat.com>
20541
20542         openat: add comments
20543         * lib/openat-proc.c (openat_proc_name): Add comments,
20544         mostly from Eric Blake.
20545
20546 2011-05-09  Eric Blake  <eblake@redhat.com>
20547
20548         openat: reduce syscalls in first probe of /proc
20549         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20550         be a directory.  Simplify the probe for .. bugs.
20551         * modules/openat (Depends-on): Drop same-inode.
20552         Reported by Bastien ROUCARIES.
20553
20554 2011-05-09  Jim Meyering  <meyering@redhat.com>
20555
20556         maint.mk: change semantics/name of tight_scope variables
20557         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20558         Rename variables to align with semantics that make them more useful.
20559
20560         maint.mk: tweak new rule's name not to impinge
20561         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20562         (sc_tight_scope): Use new rule name rather than $@-0.
20563
20564         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20565         * top/maint.mk (sc_tight_scope): New rule.
20566         (sc_tight_scope-0): New rule, ifdef'd out.
20567         (_gl_TS_dir): Default.
20568         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20569         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20570
20571 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20572
20573         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20574         Haible <bruno@clisp.org>.
20575
20576 2011-05-08  Bruno Haible  <bruno@clisp.org>
20577
20578         Comments.
20579         * m4/isnanf.m4: Add comment.
20580         * m4/isnanl.m4: Likewise.
20581
20582 2011-05-08  Bruno Haible  <bruno@clisp.org>
20583
20584         glob: Remove obsolete macro.
20585         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20586
20587 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20588
20589         intprops: Sun C 5.11 supports __typeof__
20590         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20591         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20592         which is new.
20593         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20594
20595         intprops: switch to usual gnulib indenting and naming
20596         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20597         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20598
20599         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20600
20601 2011-05-08  Jim Meyering  <meyering@redhat.com>
20602
20603         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20604         * top/maint.mk (release-prep): Use make's --no-print-directory
20605         option when generating the announcement.  This eliminates the
20606         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20607         generated announcement template.
20608
20609 2011-05-08  Bruno Haible  <bruno@clisp.org>
20610
20611         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20612         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20613         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20614
20615 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20616
20617         ignore-value, verify: Omit include files from lib_SOURCES.
20618         * modules/ignore-value, modules/verify (Makefile.am):
20619         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20620         that leads Automake to duplicate use of am__objects_... variables
20621         in Makefile.in.  See
20622         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20623
20624 2011-05-07  Bruno Haible  <bruno@clisp.org>
20625
20626         fclose: Simplify autoconf macro.
20627         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20628         defined.
20629
20630 2011-05-07  Bruno Haible  <bruno@clisp.org>
20631
20632         canonicalize-lgpl: Fix autoconf macro ordering bug.
20633         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20634         gl_STDLIB_H_DEFAULTS.
20635
20636 2011-05-06  Eric Blake  <eblake@redhat.com>
20637
20638         maintainer-makefile: make sc_po_check easier to tune
20639         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20640         to probe for strings, such as an alternate location for gnulib.
20641
20642         fclose: guarantee behavior on seekable stdin
20643         * modules/fclose (Depends-on): Add fflush.
20644         * doc/posix-functions/fclose.texi (fclose): Document this.
20645         * tests/test-fclose.c (main): Make test for this unconditional.
20646
20647 2011-05-06  Bruno Haible  <bruno@clisp.org>
20648
20649         fflush, fpurge: Relicense under LGPLv2+.
20650         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20651         * modules/fpurge (License): Likewise.
20652         With permission from Eric Blake and Jim Meyering.
20653         Suggested by Eric Blake.
20654
20655 2011-05-06  Karl Berry  <karl@gnu.org>
20656
20657         * MODULES.html.sh (func_all_modules): remove exit.
20658
20659 2011-05-06  Jim Meyering  <meyering@redhat.com>
20660
20661         maint.mk: use info-gnu@ as the default only for a stable release
20662         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20663         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20664         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20666
20667 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20668
20669         assert-h: new module, which supports C1X-style static_assert
20670         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20671         * lib/verify.h: Revamp so that this can be copied into assert.h,
20672         while retaining the ability to use it standalone as before.
20673         Rename private identifiers so as not to encroach on the
20674         standard C namespace, since this is now used by assert.h.
20675         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20676         the old verify_true.
20677         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20678         the old verify_true.  Use _GL_VERIFY_TYPE.
20679         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20680         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20681         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20682         defined when this file is copied into the replacement assert.h.
20683         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20684         and _Static_assert is not built in.
20685         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20686         defined, and use the new macros mentioned above.
20687         * doc/posix-headers/assert.texi: Document this.
20688
20689 2011-05-05  Bruno Haible  <bruno@clisp.org>
20690
20691         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20692         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20693         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20694         gl_REPLACE_FCLOSE here.
20695         * modules/fflush (Depends-on): Remove fclose.
20696         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20697         combination with module 'fclose'.
20698
20699 2011-05-05  Bruno Haible  <bruno@clisp.org>
20700
20701         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20702         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20703         gl_FUNC_FFLUSH.
20704         (gl_FUNC_FFLUSH): Use it.
20705         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20707         gl_REPLACE_FSEEKO here.
20708
20709 2011-05-05  Bruno Haible  <bruno@clisp.org>
20710
20711         tzset: Relicense under LGPL.
20712         * modules/tzset (License): Change to LGPL.
20713         No agreement needed; it's a no-op.
20714
20715         strtoimax, strtoumax: Relicense under LGPL.
20716         * modules/strtoimax (License): Change to LGPL.
20717         * modules/strtoumax (License): Likewise.
20718         With permission from Jim Meyering, Paul Eggert:
20719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20721
20722         getgroups: Relicense under LGPL.
20723         * modules/getgroups (License): Change to LGPL.
20724         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20728
20729         nanosleep: Relicense under LGPL.
20730         * modules/nanosleep (License): Change to LGPL.
20731         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20732         Haible:
20733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20737
20738         futimens: Relicense under LGPL.
20739         * modules/futimens (License): Change to LGPL.
20740         With permission from Eric Blake:
20741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20742
20743         fflush: Relicense under LGPL.
20744         * modules/fflush (License): Change to LGPL.
20745         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20749
20750         tmpfile: Relicense under LGPL.
20751         * modules/tmpfile (License): Change to LGPL.
20752         With permission from Ben Pfaff:
20753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20754
20755         isfinite: Relicense under LGPL.
20756         * modules/isfinite (License): Change to LGPL.
20757         With permission from Ben Pfaff, Bruno Haible:
20758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20760
20761         acosl..tanl: Relicense under LGPL.
20762         * modules/acosl (License): Change to LGPL.
20763         * modules/asinl (License): Likewise.
20764         * modules/atanl (License): Likewise.
20765         * modules/cosl (License): Likewise.
20766         * modules/expl (License): Likewise.
20767         * modules/logl (License): Likewise.
20768         * modules/sinl (License): Likewise.
20769         * modules/sqrtl (License): Likewise.
20770         * modules/tanl (License): Likewise.
20771         Source code originally from glibc and Paolo Bonzini. Agreements:
20772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20774
20775 2011-05-05  Bruno Haible  <bruno@clisp.org>
20776
20777         signal: Define sighandler_t.
20778         * lib/signal.in.h (sighandler_t): New type.
20779         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20780         whether sighandler_t is defined.
20781         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20782         * modules/signal (Depends-on): Add extensions.
20783         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20784         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20785         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20786
20787 2011-05-05  Eric Blake  <eblake@redhat.com>
20788
20789         maint: remove useless REPLACE_*_H macros
20790         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20791         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20792         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20793         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20794         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20795         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20796         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20797         * m4/btowc.m4: Update callers.
20798         * m4/dirfd.m4: Likewise.
20799         * m4/duplocale.m4: Likewise.
20800         * m4/fchdir.m4: Likewise.
20801         * m4/fdopendir.m4: Likewise.
20802         * m4/inet_ntop.m4: Likewise.
20803         * m4/inet_pton.m4: Likewise.
20804         * m4/ioctl.m4: Likewise.
20805         * m4/mbrlen.m4: Likewise.
20806         * m4/mbrtowc.m4: Likewise.
20807         * m4/mbsinit.m4: Likewise.
20808         * m4/mbsnrtowcs.m4: Likewise.
20809         * m4/mbsrtowcs.m4: Likewise.
20810         * m4/poll.m4: Likewise.
20811         * m4/setlocale.m4: Likewise.
20812         * m4/wcrtomb.m4: Likewise.
20813         * m4/wcsnrtombs.m4: Likewise.
20814         * m4/wcsrtombs.m4: Likewise.
20815         * m4/wctob.m4: Likewise.
20816         * m4/wcwidth.m4: Likewise.
20817         * modules/posix_spawn: Likewise.
20818         * modules/posix_spawn_file_actions_addclose: Likewise.
20819         * modules/posix_spawn_file_actions_adddup2: Likewise.
20820         * modules/posix_spawn_file_actions_addopen: Likewise.
20821         * modules/posix_spawn_file_actions_destroy: Likewise.
20822         * modules/posix_spawn_file_actions_init: Likewise.
20823         * modules/posix_spawnattr_destroy: Likewise.
20824         * modules/posix_spawnattr_getflags: Likewise.
20825         * modules/posix_spawnattr_getpgroup: Likewise.
20826         * modules/posix_spawnattr_getschedparam: Likewise.
20827         * modules/posix_spawnattr_getschedpolicy: Likewise.
20828         * modules/posix_spawnattr_getsigdefault: Likewise.
20829         * modules/posix_spawnattr_getsigmask: Likewise.
20830         * modules/posix_spawnattr_init: Likewise.
20831         * modules/posix_spawnattr_setflags: Likewise.
20832         * modules/posix_spawnattr_setpgroup: Likewise.
20833         * modules/posix_spawnattr_setschedparam: Likewise.
20834         * modules/posix_spawnattr_setschedpolicy: Likewise.
20835         * modules/posix_spawnattr_setsigdefault: Likewise.
20836         * modules/posix_spawnattr_setsigmask: Likewise.
20837         * modules/posix_spawnp: Likewise.
20838
20839 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20840
20841         Add option to do-release-commit-and-tag to specify branch.
20842         * build-aux/do-release-commit-and-tag: Add --branch.
20843
20844 2011-05-03  Bruno Haible  <bruno@clisp.org>
20845
20846         Avoid unnecessary compilation units, through conditional dependencies.
20847         * modules/accept (Depends-on): Add conditions to the dependencies.
20848         * modules/acosl (Depends-on): Likewise.
20849         * modules/argz (Depends-on): Likewise.
20850         * modules/asinl (Depends-on): Likewise.
20851         * modules/atanl (Depends-on): Likewise.
20852         * modules/atoll (Depends-on): Likewise.
20853         * modules/bind (Depends-on): Likewise.
20854         * modules/btowc (Depends-on): Likewise.
20855         * modules/canonicalize-lgpl (Depends-on): Likewise.
20856         * modules/ceil (Depends-on): Likewise.
20857         * modules/ceilf (Depends-on): Likewise.
20858         * modules/ceill (Depends-on): Likewise.
20859         * modules/chdir-long (Depends-on): Likewise.
20860         * modules/chown (Depends-on): Likewise.
20861         * modules/close (Depends-on): Likewise.
20862         * modules/connect (Depends-on): Likewise.
20863         * modules/cosl (Depends-on): Likewise.
20864         * modules/dirfd (Depends-on): Likewise.
20865         * modules/dprintf (Depends-on): Likewise.
20866         * modules/dprintf-posix (Depends-on): Likewise.
20867         * modules/error (Depends-on): Likewise.
20868         * modules/euidaccess (Depends-on): Likewise.
20869         * modules/expl (Depends-on): Likewise.
20870         * modules/faccessat (Depends-on): Likewise.
20871         * modules/fchdir (Depends-on): Likewise.
20872         * modules/fclose (Depends-on): Likewise.
20873         * modules/fcntl (Depends-on): Likewise.
20874         * modules/fdopendir (Depends-on): Likewise.
20875         * modules/fflush (Depends-on): Likewise.
20876         * modules/floor (Depends-on): Likewise.
20877         * modules/floorf (Depends-on): Likewise.
20878         * modules/floorl (Depends-on): Likewise.
20879         * modules/fnmatch (Depends-on): Likewise.
20880         * modules/fopen (Depends-on): Likewise.
20881         * modules/fprintf-posix (Depends-on): Likewise.
20882         * modules/frexp (Depends-on): Likewise.
20883         * modules/frexp-nolibm (Depends-on): Likewise.
20884         * modules/frexpl (Depends-on): Likewise.
20885         * modules/frexpl-nolibm (Depends-on): Likewise.
20886         * modules/fseek (Depends-on): Likewise.
20887         * modules/fsusage (Depends-on): Likewise.
20888         * modules/ftell (Depends-on): Likewise.
20889         * modules/ftello (Depends-on): Likewise.
20890         * modules/futimens (Depends-on): Likewise.
20891         * modules/getcwd (Depends-on): Likewise.
20892         * modules/getcwd-lgpl (Depends-on): Likewise.
20893         * modules/getdelim (Depends-on): Likewise.
20894         * modules/getdomainname (Depends-on): Likewise.
20895         * modules/getgroups (Depends-on): Likewise.
20896         * modules/gethostname (Depends-on): Likewise.
20897         * modules/getline (Depends-on): Likewise.
20898         * modules/getlogin_r (Depends-on): Likewise.
20899         * modules/getopt-posix (Depends-on): Likewise.
20900         * modules/getpeername (Depends-on): Likewise.
20901         * modules/getsockname (Depends-on): Likewise.
20902         * modules/getsockopt (Depends-on): Likewise.
20903         * modules/getsubopt (Depends-on): Likewise.
20904         * modules/getusershell (Depends-on): Likewise.
20905         * modules/glob (Depends-on): Likewise.
20906         * modules/grantpt (Depends-on): Likewise.
20907         * modules/iconv_open (Depends-on): Likewise.
20908         * modules/iconv_open-utf (Depends-on): Likewise.
20909         * modules/inet_ntop (Depends-on): Likewise.
20910         * modules/inet_pton (Depends-on): Likewise.
20911         * modules/ioctl (Depends-on): Likewise.
20912         * modules/isapipe (Depends-on): Likewise.
20913         * modules/isfinite (Depends-on): Likewise.
20914         * modules/isinf (Depends-on): Likewise.
20915         * modules/lchown (Depends-on): Likewise.
20916         * modules/ldexpl (Depends-on): Likewise.
20917         * modules/link (Depends-on): Likewise.
20918         * modules/linkat (Depends-on): Likewise.
20919         * modules/listen (Depends-on): Likewise.
20920         * modules/logl (Depends-on): Likewise.
20921         * modules/lstat (Depends-on): Likewise.
20922         * modules/mbrlen (Depends-on): Likewise.
20923         * modules/mbrtowc (Depends-on): Likewise.
20924         * modules/mbsinit (Depends-on): Likewise.
20925         * modules/mbsnrtowcs (Depends-on): Likewise.
20926         * modules/mbsrtowcs (Depends-on): Likewise.
20927         * modules/mbtowc (Depends-on): Likewise.
20928         * modules/memcmp (Depends-on): Likewise.
20929         * modules/mkdir (Depends-on): Likewise.
20930         * modules/mkdtemp (Depends-on): Likewise.
20931         * modules/mkfifo (Depends-on): Likewise.
20932         * modules/mkfifoat (Depends-on): Likewise.
20933         * modules/mknod (Depends-on): Likewise.
20934         * modules/mkostemp (Depends-on): Likewise.
20935         * modules/mkostemps (Depends-on): Likewise.
20936         * modules/mkstemp (Depends-on): Likewise.
20937         * modules/mkstemps (Depends-on): Likewise.
20938         * modules/mktime (Depends-on): Likewise.
20939         * modules/nanosleep (Depends-on): Likewise.
20940         * modules/open (Depends-on): Likewise.
20941         * modules/openat (Depends-on): Likewise.
20942         * modules/perror (Depends-on): Likewise.
20943         * modules/poll (Depends-on): Likewise.
20944         * modules/popen (Depends-on): Likewise.
20945         * modules/posix_spawn (Depends-on): Likewise.
20946         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20947         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20948         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20949         * modules/posix_spawnp (Depends-on): Likewise.
20950         * modules/pread (Depends-on): Likewise.
20951         * modules/printf-posix (Depends-on): Likewise.
20952         * modules/ptsname (Depends-on): Likewise.
20953         * modules/putenv (Depends-on): Likewise.
20954         * modules/pwrite (Depends-on): Likewise.
20955         * modules/readline (Depends-on): Likewise.
20956         * modules/readlink (Depends-on): Likewise.
20957         * modules/readlinkat (Depends-on): Likewise.
20958         * modules/recv (Depends-on): Likewise.
20959         * modules/recvfrom (Depends-on): Likewise.
20960         * modules/regex (Depends-on): Likewise.
20961         * modules/remove (Depends-on): Likewise.
20962         * modules/rename (Depends-on): Likewise.
20963         * modules/renameat (Depends-on): Likewise.
20964         * modules/rmdir (Depends-on): Likewise.
20965         * modules/round (Depends-on): Likewise.
20966         * modules/roundf (Depends-on): Likewise.
20967         * modules/roundl (Depends-on): Likewise.
20968         * modules/rpmatch (Depends-on): Likewise.
20969         * modules/select (Depends-on): Likewise.
20970         * modules/send (Depends-on): Likewise.
20971         * modules/sendto (Depends-on): Likewise.
20972         * modules/setenv (Depends-on): Likewise.
20973         * modules/setlocale (Depends-on): Likewise.
20974         * modules/setsockopt (Depends-on): Likewise.
20975         * modules/shutdown (Depends-on): Likewise.
20976         * modules/sigaction (Depends-on): Likewise.
20977         * modules/signbit (Depends-on): Likewise.
20978         * modules/sigprocmask (Depends-on): Likewise.
20979         * modules/sinl (Depends-on): Likewise.
20980         * modules/sleep (Depends-on): Likewise.
20981         * modules/snprintf (Depends-on): Likewise.
20982         * modules/snprintf-posix (Depends-on): Likewise.
20983         * modules/socket (Depends-on): Likewise.
20984         * modules/sprintf-posix (Depends-on): Likewise.
20985         * modules/sqrtl (Depends-on): Likewise.
20986         * modules/stat (Depends-on): Likewise.
20987         * modules/strchrnul (Depends-on): Likewise.
20988         * modules/strdup-posix (Depends-on): Likewise.
20989         * modules/strerror (Depends-on): Likewise.
20990         * modules/strerror_r-posix (Depends-on): Likewise.
20991         * modules/strndup (Depends-on): Likewise.
20992         * modules/strnlen (Depends-on): Likewise.
20993         * modules/strptime (Depends-on): Likewise.
20994         * modules/strsep (Depends-on): Likewise.
20995         * modules/strsignal (Depends-on): Likewise.
20996         * modules/strstr-simple (Depends-on): Likewise.
20997         * modules/strtod (Depends-on): Likewise.
20998         * modules/strtoimax (Depends-on): Likewise.
20999         * modules/strtok_r (Depends-on): Likewise.
21000         * modules/strtoumax (Depends-on): Likewise.
21001         * modules/symlink (Depends-on): Likewise.
21002         * modules/symlinkat (Depends-on): Likewise.
21003         * modules/tanl (Depends-on): Likewise.
21004         * modules/tcgetsid (Depends-on): Likewise.
21005         * modules/tmpfile (Depends-on): Likewise.
21006         * modules/trunc (Depends-on): Likewise.
21007         * modules/truncf (Depends-on): Likewise.
21008         * modules/truncl (Depends-on): Likewise.
21009         * modules/uname (Depends-on): Likewise.
21010         * modules/unlink (Depends-on): Likewise.
21011         * modules/unlockpt (Depends-on): Likewise.
21012         * modules/unsetenv (Depends-on): Likewise.
21013         * modules/usleep (Depends-on): Likewise.
21014         * modules/utimensat (Depends-on): Likewise.
21015         * modules/vasprintf (Depends-on): Likewise.
21016         * modules/vdprintf (Depends-on): Likewise.
21017         * modules/vdprintf-posix (Depends-on): Likewise.
21018         * modules/vfprintf-posix (Depends-on): Likewise.
21019         * modules/vprintf-posix (Depends-on): Likewise.
21020         * modules/vsnprintf (Depends-on): Likewise.
21021         * modules/vsnprintf-posix (Depends-on): Likewise.
21022         * modules/vsprintf-posix (Depends-on): Likewise.
21023         * modules/wcrtomb (Depends-on): Likewise.
21024         * modules/wcscasecmp (Depends-on): Likewise.
21025         * modules/wcscspn (Depends-on): Likewise.
21026         * modules/wcsdup (Depends-on): Likewise.
21027         * modules/wcsncasecmp (Depends-on): Likewise.
21028         * modules/wcsnrtombs (Depends-on): Likewise.
21029         * modules/wcspbrk (Depends-on): Likewise.
21030         * modules/wcsrtombs (Depends-on): Likewise.
21031         * modules/wcsspn (Depends-on): Likewise.
21032         * modules/wcsstr (Depends-on): Likewise.
21033         * modules/wcstok (Depends-on): Likewise.
21034         * modules/wcswidth (Depends-on): Likewise.
21035         * modules/wctob (Depends-on): Likewise.
21036         * modules/wctomb (Depends-on): Likewise.
21037         * modules/wctype (Depends-on): Likewise.
21038         * modules/wcwidth (Depends-on): Likewise.
21039         * modules/write (Depends-on): Likewise.
21040
21041 2011-05-03  Bruno Haible  <bruno@clisp.org>
21042
21043         Support for conditional dependencies.
21044         * doc/gnulib.texi (Module description): Document the syntax of
21045         conditional dependencies.
21046         * gnulib-tool: New option --conditional-dependencies.
21047         (func_usage): Document it.
21048         (cond_dependencies): New variable.
21049         (func_get_automake_snippet_conditional,
21050         func_get_automake_snippet_unconditional): New functions, extracted from
21051         func_get_automake_snippet.
21052         (func_get_automake_snippet): Use them.
21053         (sed_first_32_chars): New variable.
21054         (func_module_shellfunc_name): New function.
21055         (func_module_shellvar_name): New function.
21056         (func_module_conditional_name): New function.
21057         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21058         func_cond_module_condition): New functions.
21059         (func_modules_transitive_closure): Add support for conditional
21060         dependencies.
21061         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21062         conditional automake snippet in an automake conditional.
21063         (func_emit_autoconf_snippets): Emit shell functions that contain the
21064         code for conditional modules.
21065         (func_import, func_create_testdir): Update specification.
21066
21067 2011-05-03  Eric Blake  <eblake@redhat.com>
21068
21069         test-getaddrinfo: report error information
21070         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21071
21072 2011-05-03  Jim Meyering  <meyering@redhat.com>
21073
21074         bootstrap: avoid build failure when $GZIP is set
21075         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21076         program name.  If defined at all, it is supposed to list gzip options.
21077         Reported by Alan Curry in http://debbugs.gnu.org/8609
21078
21079 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21080
21081         readme-release: new module with release instructions
21082         * modules/readme-release: New module.
21083         * top/README-release: New file, from coreutils, grep, diffutils.
21084         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21085
21086 2011-05-02  Eric Blake  <eblake@redhat.com>
21087
21088         fflush: also replace fclose when fixing fflush
21089         * modules/fflush (Depends-on): Add fclose.
21090         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21091         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21092         memstreams with no backing fd.
21093         * doc/posix-functions/fclose.texi (fclose): Document the use of
21094         fflush module to fix the bug.
21095         * tests/test-fclose.c (main): Relax test when fclose is used in
21096         isolation.
21097
21098         fclose: add some tests
21099         * modules/fclose-tests: New test module.
21100         * tests/test-fclose.c: New file.
21101         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21102
21103         fclose: reduced dependencies
21104         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21105         simpler lseek.
21106         * lib/fclose.c (rpl_fclose): Likewise.
21107         Reported by Simon Josefsson.
21108
21109         exit: drop remaining clients
21110         * modules/argmatch (Depends-on): Replace exit with stdlib.
21111         * modules/copy-file (Depends-on): Likewise.
21112         * modules/execute (Depends-on): Likewise.
21113         * modules/exitfail (Depends-on): Likewise.
21114         * modules/obstack (Depends-on): Likewise.
21115         * modules/pagealign_alloc (Depends-on): Likewise.
21116         * modules/pipe-filter-gi (Depends-on): Likewise.
21117         * modules/pipe-filter-ii (Depends-on): Likewise.
21118         * modules/savewd (Depends-on): Likewise.
21119         * modules/spawn-pipe (Depends-on): Likewise.
21120         * modules/wait-process (Depends-on): Likewise.
21121         * modules/xsetenv (Depends-on): Likewise.
21122         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21123         * modules/git-merge-changelog (Depends-on): Likewise.
21124         * modules/long-options (Depends-on): Likewise.
21125         * modules/pt_chown (Depends-on): Likewise.
21126         * modules/sysexits (Depends-on): Likewise.
21127
21128         freading: relax license from LGPLv3+ to LGPLv2+
21129         * modules/freading (License): Relax LGPL version.
21130
21131 2011-05-02  Bruno Haible  <bruno@clisp.org>
21132
21133         fchdir: Remove unused dependencies.
21134         * modules/fchdir (Depends-on): Remove include_next.
21135
21136 2011-05-02  Bruno Haible  <bruno@clisp.org>
21137
21138         gnulib-tool: Refactor.
21139         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21140         from func_emit_autoconf_snippets.
21141         (func_emit_autoconf_snippets): Use it.
21142
21143 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21144
21145         * NEWS: Document removal of 'exit'.
21146         * modules/exit: Remove file.
21147
21148 2011-05-01  Bruno Haible  <bruno@clisp.org>
21149
21150         Update DEPENDENCIES.
21151         * DEPENDENCIES (gettext): Recommend the newest release.
21152         Reported by Simon Josefsson.
21153
21154 2011-05-01  Bruno Haible  <bruno@clisp.org>
21155
21156         gnulib-tool: Reduce code duplication.
21157         * gnulib-tool (func_emit_autoconf_snippets): New function.
21158         (func_import, func_create_testdir): Use it.
21159
21160 2011-04-30  Eric Blake  <eblake@redhat.com>
21161
21162         fclose: don't fail on non-seekable input stream
21163         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21164         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21165         since fflush is allowed to fail in that case.
21166
21167 2011-04-30  Bruno Haible  <bruno@clisp.org>
21168
21169         dup3: cleanup
21170         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21171
21172 2011-04-30  Bruno Haible  <bruno@clisp.org>
21173
21174         netdb: Make it work in C++ mode.
21175         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21176         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21177         module.
21178         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21179         gl_MODULE_INDICATOR_FOR_TESTS.
21180         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21181         * modules/netdb-c++-tests: New file.
21182         * tests/test-netdb-c++.cc: New file.
21183
21184 2011-04-30  Bruno Haible  <bruno@clisp.org>
21185
21186         New modules 'vfscanf', 'vscanf'.
21187         * modules/vfscanf: New file.
21188         * modules/vscanf: New file.
21189         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21190         here.
21191         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21192         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21193
21194 2011-04-30  Bruno Haible  <bruno@clisp.org>
21195
21196         passfd: Add comments.
21197         * lib/passfd.c: Add comments about platforms.
21198
21199 2011-04-30  Bruno Haible  <bruno@clisp.org>
21200
21201         sys_uio: Make <sys/uio.h> self-contained.
21202         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21203         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21204
21205 2011-04-30  Bruno Haible  <bruno@clisp.org>
21206
21207         sys_socket: Ensure 'struct iovec' definition.
21208         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21209         <sys/socket.h>.
21210         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21211
21212 2011-04-30  Bruno Haible  <bruno@clisp.org>
21213
21214         sys_uio: Protect definition of 'struct iovec'.
21215         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21216         it as a C struct.
21217
21218 2011-04-30  Bruno Haible  <bruno@clisp.org>
21219
21220         manywarnings: fix indentation
21221         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21222
21223 2011-04-30  Pádraig Brady <P@draigBrady.com>
21224
21225         manywarnings: add -Wno-missing-field-initializers if needed.
21226         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21227         option if it's needed to allow initialization with { 0, }
21228
21229 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21230
21231         announce-gen: cosmetic improvement
21232         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21233
21234 2011-04-29  Jim Meyering  <meyering@redhat.com>
21235
21236         vc-list-files: indent with spaces, not TABs
21237         * build-aux/vc-list-files: Convert leading TABs to spaces,
21238         to match the style of most other files in gnulib.
21239
21240         announce-gen: indent with spaces, not TABs
21241         * build-aux/announce-gen: Convert all TABs to spaces, to match
21242         the style of most other files in gnulib.
21243
21244 2011-04-29  Eric Blake  <eblake@redhat.com>
21245
21246         quotearg: avoid uninitialized variable use
21247         * lib/quotearg.c (quoting_options_from_style): Initialize
21248         remaining fields, and ensure that custom styles are only used via
21249         quoting_options rather than quoting_style.
21250
21251 2011-04-29  Jim Meyering  <meyering@redhat.com>
21252
21253         maint.mk: remove unused VC-tag variable
21254         * top/maint.mk (VC-tag): Remove unused variable.
21255
21256 2011-04-29  Bruno Haible  <bruno@clisp.org>
21257
21258         netdb: fix gai_strerror replacements
21259         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21260         * modules/netdb: Substitute it.
21261
21262 2011-04-29  Jim Meyering  <meyering@redhat.com>
21263
21264         test-getcwd.c: avoid new set-but-not-used warning
21265         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21266         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21267         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21268         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21269
21270         test-hash.c: avoid a new shadowing warning
21271         * tests/test-hash.c (main): Don't shadow "dup".
21272
21273 2011-04-28  Eric Blake  <eblake@redhat.com>
21274
21275         getaddrinfo: fix gai_strerror signature
21276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21277         and work around mingw with UNICODE defined.
21278         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21279         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21280         * modules/netdb (Makefile.am): Substitute it.
21281         * lib/netdb.in.h (gai_strerror): Declare replacement.
21282         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21283         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21284         the fix.
21285
21286         getsockopt: avoid compiler warning
21287         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21288         Reported by Matthias Bolte.
21289
21290         tests: drop unused link dependency
21291         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21292         * modules/dirent-safer-tests (Makefile.am): Likewise.
21293         * modules/fdopendir-tests (Makefile.am): Likewise.
21294         * modules/mkfifoat-tests (Makefile.am): Likewise.
21295         * modules/openat-safer-tests (Makefile.am): Likewise.
21296         * modules/openat-tests (Makefile.am): Likewise.
21297         * modules/readlinkat-tests (Makefile.am): Likewise.
21298         * modules/symlinkat-tests (Makefile.am): Likewise.
21299         * modules/linkat-tests (Makefile.am): Likewise.
21300         (Depends-on): Switch to filenamecat-lgpl.
21301         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21302         LIBINTL.
21303         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21304         * tests/test-linkat.c (main): Don't require xalloc.
21305
21306         hash, mgetgroups: drop xalloc dependency
21307         * lib/hash.c (includes): Adjust includes.
21308         * lib/mgetgroups.c (includes): Likewise.
21309         (xgetgroups): Move...
21310         * lib/xgetgroups.c: ...to new file.
21311         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21312         * modules/xgetgroups: New file, split from...
21313         * modules/mgetgroups: ...here.
21314         (Depends-on): Add xalloc-oversized.
21315         * modules/hash (Depends-on): Likewise.
21316         * modules/hash-tests (Depends-on): Drop xalloc.
21317         (test_hash_LDADD): Drop unused library.
21318         * tests/test-hash.c (main): Break xalloc dependency.
21319         (includes): Drop unused include.
21320
21321         xalloc-oversized: new module
21322         * modules/xalloc-oversized: New module.
21323         * modules/xalloc (Depends-on): Add it.
21324         * lib/xalloc.h (xalloc_oversized): Move...
21325         * lib/xalloc-oversized.h: ...into new file.
21326
21327         utimecmp: drop dependency on xmalloc
21328         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21329         due to memory pressure.
21330         * modules/utimecmp (Depends-on): Drop xalloc.
21331
21332 2011-04-27  Eric Blake  <eblake@redhat.com>
21333
21334         getcwd: fix mingw bugs
21335         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21336         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21337         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21338
21339 2011-04-27  Bruno Haible  <bruno@clisp.org>
21340
21341         mkstemps: Ensure declaration on MacOS X 10.5.
21342         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21343         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21344         MacOS X.
21345
21346 2011-04-27  Bruno Haible  <bruno@clisp.org>
21347
21348         mkstemp: More documentation.
21349         * doc/posix-functions/mkstemp.texi: Document header file problem on
21350         MacOS X.
21351
21352 2011-04-27  Bruno Haible  <bruno@clisp.org>
21353
21354         mkstemp: Tweak configure message when cross-compiling.
21355         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21356         result as a guess.
21357
21358 2011-04-27  Bruno Haible  <bruno@clisp.org>
21359
21360         clean-temp: Clarify what it does.
21361         * lib/clean-temp.h: Add more comments.
21362         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21363         module.
21364         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21365         * doc/glibc-functions/mkstemps.texi: Likewise.
21366         * doc/glibc-functions/mkostemps.texi: Likewise.
21367
21368 2011-04-27  Eric Blake  <eblake@redhat.com>
21369
21370         fchdir: avoid extra chdir and fix test
21371         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21372         getcwd-lgpl.
21373         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21374         have to be canonical.
21375         (canonicalize_file_name): Drop unused macro.
21376         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21377
21378         filenamecat-lgpl: fix licence
21379         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21380         when it was first created.
21381
21382         linkat, renameat: add missing dependency
21383         * modules/linkat (Depends-on): Require getcwd-lgpl.
21384         * modules/renameat (Depends-on): Likewise.
21385
21386         tests: reduce dependencies
21387         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21388         * tests/test-renameat.c (main): Likewise.
21389         * modules/linkat-tests (Depends-on): Relax dependency.
21390         * modules/renameat-tests (Depends-on): Likewise.
21391         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21392         dependency explicit.
21393
21394         save-cwd: reduce default dependency
21395         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21396         * lib/save-cwd.c: Update comments.
21397         * NEWS: Document the semantic change.
21398
21399         getcwd: enhance tests
21400         * tests/test-getcwd-lgpl.c: New file, taken from...
21401         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21402         repeat long path stress tests from m4 probe.
21403         * modules/getcwd-lgpl-tests: New module.
21404         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21405         * m4/getcwd-abort-bug.m4: Update comment.
21406         * m4/getcwd-path-max.m4: Likewise.
21407
21408         getcwd-lgpl: new module
21409         * modules/getcwd-lgpl: New module.
21410         * lib/getcwd-lgpl.c: New file.
21411         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21412         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21413         * modules/getcwd (configure.ac): Set C witness.
21414         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21415
21416         getcwd: tweak comments
21417         * m4/getcwd-abort-bug.m4: Fix comments.
21418         * m4/getcwd-path-max.m4: Likewise.
21419         * m4/getcwd.m4: Likewise.
21420
21421 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21422         and Eric Blake  <eblake@redhat.com>
21423
21424         mkstemp: replace if system version uses wrong permissions
21425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21426         read/write mode bits set in file created by mkstemp.
21427         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21428
21429 2011-04-27  Eric Blake  <eblake@redhat.com>
21430
21431         passfd: avoid compiler warning
21432         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21433         Reported by Laine Stump.
21434
21435 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21436
21437         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21438         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21439
21440 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21441         and Eric Blake  <eblake@redhat.com>
21442
21443         mkstemp: mention clean-temp module
21444         * lib/mkstemp.c: Add comment.
21445         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21446
21447 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21448
21449         inttypes: also provide default values for 32-bit tests
21450         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21451         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21452
21453 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         strtoumax: remove dependency on strtoimax
21456         This is like the strtoull change of yesterday.
21457         * modules/strtoumax (Files): Add lib/strtoimax.c.
21458         (Depends-on): Remove strtoimax and add verify.
21459
21460         inttypes-incomplete: new module
21461         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21462         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21463         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21464         of gl_INTTYPES_H.
21465         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21466         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21467         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21468         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21469         * modules/strtoumax, modules/xstrtol (Depends-on):
21470         Depend on inttypes-incomplete, not inttypes.
21471         * modules/inttypes-incomplete: New module, containing the contents
21472         of the old modules/inttypes module, except that the Files: section
21473         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21474         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21475         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21476         (Depends-on): Depend only on inttypes-incomplete.
21477         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21478
21479         inttypes: omit now-redundant strtoimax and strtoumax work
21480         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21481         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21482
21483         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21484         This supports apps that need pointers to strtoimax and strtoumax,
21485         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21486         nonexistent functions.  See
21487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21488         et seq.
21489         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21490         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21491         a macro.
21492         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21493
21494 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21495
21496         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21497
21498 2011-04-25  Bruno Haible  <bruno@clisp.org>
21499
21500         strtol, strtoul: Mark modules as obsolete.
21501         * modules/strtol (Status, Notice): New sections.
21502         * modules/strtoul (Status, Notice): New sections.
21503
21504 2011-04-25  Bruno Haible  <bruno@clisp.org>
21505
21506         strtod: Remove check for strtod, unless supporting old platforms.
21507         * modules/strtod-obsolete: New file.
21508         * m4/strtod-obsolete.m4: New file.
21509         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21510         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21511         * modules/strtod (Depends-on): Add strtod-obsolete.
21512         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21513
21514 2011-04-25  Bruno Haible  <bruno@clisp.org>
21515
21516         strcase: Make module obsolete.
21517         * modules/strcase (Status, Notice): New sections.
21518
21519 2011-04-25  Bruno Haible  <bruno@clisp.org>
21520
21521         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21522         * modules/dup2-obsolete: New file.
21523         * m4/dup2-obsolete.m4: New file.
21524         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21525         gl_FUNC_DUP2_OBSOLETE is not also defined.
21526         * modules/dup2 (Depends-on): Add dup2-obsolete.
21527         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21528
21529 2011-04-25  Bruno Haible  <bruno@clisp.org>
21530
21531         strnlen: Avoid memchr related link error on old obsolete platforms.
21532         * modules/memchr-obsolete: New file.
21533         * m4/memchr-obsolete.m4: New file.
21534         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21535         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21536         * modules/memchr (Depends-on): Add memchr-obsolete.
21537         * modules/strnlen (Depends-on): Likewise.
21538         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21539
21540 2011-04-25  Jim Meyering  <meyering@redhat.com>
21541
21542         maint.mk: makefile_at_at_check extend and clean up
21543         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21544         in addition to */Makefile.am.
21545         Exempt legitimate uses of @VAR@ notation, e.g.,
21546         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21547         Remove obsolete coreutils-specific comment.
21548         Prompted by discussion here:
21549         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21550
21551 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         strtoul: remove dependency on strtol
21554         This is so that 'configure' need not check for strtol merely because
21555         the application needs strtoul.
21556         * modules/strtoul (Files): Add lib/strtol.c.
21557         (Depends-on): Remove strtol.
21558
21559         strtoull: remove dependency on strtoul
21560         This is like the strtoll change.
21561         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21562         (Depends-on): Remove strtoul.
21563
21564         strtoll: remove dependency on strtol
21565         This is so that 'configure' need not check for strtol merely because
21566         the application needs strtoll.
21567         * modules/strtoll (Files): Add lib/strtol.c.
21568         (Depends-on): Remove strtol.
21569
21570 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21571
21572         inttypes: Move some configure check to module 'imaxdiv'.
21573         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21574         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21575         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21576
21577 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21578
21579         inttypes: Move some configure check to module 'imaxabs'.
21580         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21581         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21582         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21583
21584 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21585
21586         inttypes: Remove configure tests that are not needed since 2009-12-31.
21587         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21588         gl_cv_header_working_inttypes_h.
21589
21590 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21591
21592         * modules/strnlen (Depends-on): Remove memchr.
21593         The strnlen implementation doesn't need the memchr module's fixes; see
21594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21595
21596         strtol: remove dependency on wchar
21597         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21598         * modules/strtol (Depends-on): Remove wchar.
21599
21600 2011-04-21  Eric Blake  <eblake@redhat.com>
21601
21602         passfd: fix test regression on Linux
21603         * modules/passfd-tests (configure.ac): Correct socketpair check.
21604
21605         passfd: speed up configure and drop unused code
21606         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21607         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21608         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21609         Instead of probing at configure for unix_scm_rights_bsd44_way,
21610         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21611         check to a struct member probe.
21612         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21613         (sendfd, recvfd): Update preprocessor checks.
21614         * modules/passfd (Files): Reflect rename, and drop unused file.
21615         (Depends-on): Drop unused dependency.
21616
21617         passfd: allow compilation on mingw
21618         * modules/sys_socket (Depends-on): Add sys_uio.
21619         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21620         iovec and a minimal struct msghdr.
21621         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21622         * tests/test-sys_socket.c (main): Enhance test.
21623         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21624         guaranteed to provide what we need.
21625         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21626         * modules/passfd-tests (Depends-on): Add sys_wait.
21627         * tests/test-passfd.c (main): Skip test on mingw, for now.
21628         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21629         partial 'struct msghdr' implementation.
21630
21631         sys_uio: new module
21632         * modules/sys_uio: New module.
21633         * modules/sys_uio-tests: Likewise.
21634         * lib/sys_uio.in.h: New file.
21635         * m4/sys_uio_h.m4: Likewise.
21636         * tests/test-sys_uio.c: Likewise.
21637         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21638         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21639
21640 2011-04-20  Jim Meyering  <meyering@redhat.com>
21641
21642         useless-if-before-free: avoid false-positive
21643         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21644         disjunct so that it too requires a terminating ";".  Without that,
21645         this script would identify as useless one statement from gcc that
21646         was not:
21647           if (aligned_ptr)
21648             free (((void **) aligned_ptr) [-1]);
21649
21650 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21651
21652         doc: update users.txt.
21653         * users.txt: Add barcode.
21654
21655 2011-04-19  Bruno Haible  <bruno@clisp.org>
21656
21657         ioctl: Remove link dependency on native Windows.
21658         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21659         (gl_close_fn, gl_ioctl_fn): New types.
21660         (struct fd_hook): Renamed from struct close_hook. Change type of
21661         private_close_fn field. Add private_ioctl_fn field.
21662         (close_hook_fn): Add parameter for primary close method.
21663         (execute_close_hooks, execute_all_close_hooks): Likewise.
21664         (ioctl_hook_fn): New type.
21665         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21666         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21667         argument.
21668         (unregister_fd_hook): Renamed from unregister_close_hook.
21669         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21670         Don't include <unistd.h>.
21671         (close): Remove undef.
21672         (anchor): Update.
21673         (execute_close_hooks): Add argument for primary close method.
21674         (execute_all_close_hooks): Likewise.
21675         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21676         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21677         argument. Allow each argument to be NULL.
21678         (unregister_fd_hook): Renamed from unregister_close_hook.
21679         * lib/close.c (rpl_close): Pass 'close' function pointer to
21680         execute_all_close_hooks.
21681         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21682         (primary_ioctl): New function.
21683         (ioctl): Don't call ioctlsocket here. Instead, call
21684         execute_all_ioctl_hooks.
21685         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21686         close method.
21687         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21688         (fd_sockets_hook): Renamed from close_sockets_hook.
21689         (gl_sockets_startup, gl_sockets_cleanup): Update.
21690         * modules/fd-hook: Renamed from modules/close-hook. Update.
21691         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21692         * modules/sockets (Depends-on): Likewise.
21693         * modules/ioctl (Depends-on): Add fd-hook.
21694         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21695         GNULIB_SOCKET.
21696
21697 2011-04-19  Bruno Haible  <bruno@clisp.org>
21698
21699         Move the support of O_NONBLOCK in open() to the 'open' module.
21700         * modules/nonblocking (Depends-on): Remove 'open'.
21701         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21702         gl_cv_have_open_O_NONBLOCK.
21703         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21704         O_NONBLOCK support.
21705         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21706
21707 2011-04-17  Bruno Haible  <bruno@clisp.org>
21708
21709         pipe2: Simplify code.
21710         * lib/pipe2.c (pipe2): Reduce code duplication.
21711
21712 2011-04-17  Bruno Haible  <bruno@clisp.org>
21713
21714         nonblocking: Add comment.
21715         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21716
21717 2011-04-17  Bruno Haible  <bruno@clisp.org>
21718
21719         nonblocking: Add tests for sockets.
21720         * tests/test-nonblocking-socket.sh: New file.
21721         * tests/test-nonblocking-socket-main.c: New file.
21722         * tests/test-nonblocking-socket-child.c: New file.
21723         * tests/test-nonblocking-socket.h: New file.
21724         * tests/socket-server.h: New file.
21725         * tests/socket-client.h: New file.
21726         * modules/nonblocking-socket-tests: New file.
21727         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21728
21729 2011-04-17  Bruno Haible  <bruno@clisp.org>
21730
21731         nonblocking: Add tests for pipes.
21732         * tests/test-nonblocking-pipe.sh: New file.
21733         * tests/test-nonblocking-pipe-main.c: New file.
21734         * tests/test-nonblocking-pipe-child.c: New file.
21735         * tests/test-nonblocking-pipe.h: New file.
21736         * tests/test-nonblocking-writer.h: New file.
21737         * tests/test-nonblocking-reader.h: New file.
21738         * tests/test-nonblocking-misc.h: New file.
21739         * modules/nonblocking-pipe-tests: New file.
21740         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21741
21742 2011-04-16  Bruno Haible  <bruno@clisp.org>
21743
21744         gettext: Clarify the needed programmer actions.
21745         * modules/gettext (Notice): New field.
21746         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21747
21748 2011-04-16  Bruno Haible  <bruno@clisp.org>
21749
21750         strchrnul: Tweak last commit.
21751         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21752         bug.
21753         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21754         as in _GL_FUNCDECL_SYS.
21755         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21756         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21757
21758 2011-04-15  Eric Blake  <eblake@redhat.com>
21759
21760         strchrnul: work around cygwin bug
21761         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21762         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21764         * modules/string (Makefile.am): Substitute it.
21765         * lib/string.in.h (strchrnul): Use it.
21766
21767 2011-04-15  Bruno Haible  <bruno@clisp.org>
21768
21769         Don't require lib/stdio-write.c when only module 'stdio' is used.
21770         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21771         invocation.
21772         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21773
21774 2011-04-14  Bruno Haible  <bruno@clisp.org>
21775
21776         Support non-blocking pipe I/O in read() on native Windows.
21777         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21778         (read): New declaration.
21779         * lib/read.c: New file.
21780         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21781         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21782         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21783         vscanf): New declarations.
21784         * lib/stdio-read.c: New file.
21785         * m4/read.m4: New file.
21786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21787         REPLACE_READ.
21788         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21789         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21790         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21791         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21792         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21793         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21794         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21795         * modules/read: New file.
21796         * modules/nonblocking (Files): Add lib/stdio-read.c.
21797         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21798         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21799         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21800         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21801         * modules/pread (Depends-on): Add read.
21802         * modules/safe-read (Depends-on): Likewise.
21803         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21804         gets, scanf, vfscanf, vscanf): Verify signatures.
21805         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21806         problem with non-blocking pipes.
21807         * doc/posix-functions/fgetc.texi: Likewise.
21808         * doc/posix-functions/fgets.texi: Likewise.
21809         * doc/posix-functions/fread.texi: Likewise.
21810         * doc/posix-functions/fscanf.texi: Likewise.
21811         * doc/posix-functions/getc.texi: Likewise.
21812         * doc/posix-functions/getchar.texi: Likewise.
21813         * doc/posix-functions/gets.texi: Likewise.
21814         * doc/posix-functions/scanf.texi: Likewise.
21815         * doc/posix-functions/vfscanf.texi: Likewise.
21816         * doc/posix-functions/vscanf.texi: Likewise.
21817
21818 2011-04-14  Bruno Haible  <bruno@clisp.org>
21819
21820         Support non-blocking pipe I/O in write() on native Windows.
21821         * lib/write.c (rpl_write): Split a write request that failed merely
21822         because the byte count was larger than the pipe buffer's size.
21823         * doc/posix-functions/write.texi: Mention the problem with large byte
21824         counts.
21825
21826 2011-04-14  Bruno Haible  <bruno@clisp.org>
21827
21828         wchar: Ensure that wchar_t gets defined on uClibc.
21829         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21830         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21831
21832 2011-04-13  Bruno Haible  <bruno@clisp.org>
21833
21834         safe-write, full-read: Avoid unnecessary compilation units.
21835         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21836         (Depends-on): Remove safe-read. Add ssize_t.
21837         * modules/full-read (Files): Add lib/full-write.c.
21838         (Depends-on): Add full-write.
21839
21840 2011-04-13  Bruno Haible  <bruno@clisp.org>
21841
21842         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21843         * modules/pwrite (Depends-on): Add 'write'.
21844
21845 2011-04-13  Bruno Haible  <bruno@clisp.org>
21846
21847         Support non-blocking pipe I/O in write() on native Windows.
21848         * lib/unistd.in.h (write): Enable replacement also if
21849         GNULIB_UNISTD_H_NONBLOCKING is 1.
21850         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21851         (rpl_write): When failing to write on a non-blocking pipe, change
21852         errno from ENOSPC to EAGAIN.
21853         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21854         putchar, puts, vfprintf, vprintf): Enable replacement also if
21855         GNULIB_STDIO_H_NONBLOCKING is 1.
21856         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21857         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21858         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21859         CALL_WITH_SIGPIPE_EMULATION.
21860         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21861         * m4/nonblocking.m4: New file.
21862         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21863         for non-blocking I/O support.
21864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21865         GNULIB_UNISTD_H_NONBLOCKING.
21866         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21867         required for non-blocking I/O support.
21868         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21869         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21870         lib/stdio-write.c, m4/asm-underscore.m4.
21871         (Depends-on): Add stdio, unistd.
21872         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21873         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21874         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21875         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21876         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21877         problem with non-blocking pipes.
21878         * doc/posix-functions/fputc.texi: Likewise.
21879         * doc/posix-functions/fputs.texi: Likewise.
21880         * doc/posix-functions/fwrite.texi: Likewise.
21881         * doc/posix-functions/printf.texi: Likewise.
21882         * doc/posix-functions/putc.texi: Likewise.
21883         * doc/posix-functions/putchar.texi: Likewise.
21884         * doc/posix-functions/puts.texi: Likewise.
21885         * doc/posix-functions/vfprintf.texi: Likewise.
21886         * doc/posix-functions/vprintf.texi: Likewise.
21887         * doc/posix-functions/write.texi: Likewise.
21888
21889 2011-04-10  Jim Meyering  <meyering@redhat.com>
21890
21891         maint.mk: prohibit doubled words
21892         Detect them also when they're separated by a newline.
21893         There are 3 ways to customize it:
21894           - disable the test on a per file basis, as usual with rules using
21895             $(VC_LIST_EXCEPT)
21896           - replace the default doubled-word-selecting regexp (affects all files)
21897           - ignore a particular file-vs-doubled-word match
21898         I nearly used that last one to ignore the "is is" match in
21899         coreutils' NEWS file, since the text was "ls -is is ..."
21900         To do that, I would have added this line to cfg.mk:
21901           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21902         but it would have ignored any "is is" match in NEWS.
21903         Low probability, but still...
21904         Instead, I changed the text, slightly:
21905           -  ls -is is now consistent with ls -lis in ignoring values returned
21906           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21907         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21908         (prohibit_doubled_word_): Define.
21909         (sc_prohibit_doubled_word): New rule.
21910         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21911
21912 2011-04-10  Jim Meyering  <meyering@redhat.com>
21913
21914         maint: fix doubled-word typo in comment
21915         * m4/gethostname.m4: s/is is/it is/
21916         * m4/getdomainname.m4: Likewise.
21917
21918 2011-04-10  Jim Meyering  <meyering@redhat.com>
21919
21920         maint: remove doubled word: s/it it/it/
21921         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21922
21923 2011-04-10  Jim Meyering  <meyering@redhat.com>
21924
21925         maint.mk: remove useless semicolon and backslash
21926         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21927         semicolon and backslash.
21928
21929 2011-04-10  Bruno Haible  <bruno@clisp.org>
21930
21931         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21932         * modules/stdint-tests (Depends-on): Add wchar.
21933
21934 2011-04-10  Jim Meyering  <meyering@redhat.com>
21935
21936         maint: remove doubled words in comments, e.g., s/a a/a/
21937         * lib/strptime.c (day_of_the_week): s/the the/the/
21938         * tests/test-chown.h (test_chown): s/a a/a/
21939
21940         test-chown.h: correct a cast
21941         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21942         when the destination is a stat.st_gid.
21943
21944 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21945
21946         getaddrinfo: Fix test for sa_len member.
21947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21948         include <sys/types.h> before <sys/socket.h>.
21949
21950 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         maint: change "can not" to "cannot"
21953         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21954         boundaries.
21955
21956 2011-04-09  Jim Meyering  <meyering@redhat.com>
21957
21958         maint: change "a a" to "a"
21959         * tests/test-lchown.h (test_lchown): s/a a/a/
21960
21961         maint.mk: prohibit \<the the\>
21962         * top/maint.mk (sc_prohibit_the_the): New rule.
21963
21964         maint: fix "the the" in comment
21965         * lib/count-one-bits.h: s/the the/the/
21966
21967         maint: change "can not" to "cannot"
21968         But do not change the occurrences in maintain.texi or in
21969         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21970         * doc/gnulib-tool.texi: s/can not/cannot/
21971         * doc/posix-functions/accept.texi (accept): Likewise.
21972         * doc/posix-functions/socket.texi (socket): Likewise.
21973         * lib/mbrtowc.c: Likewise.
21974
21975         maint.mk: prohibit use of "can not"
21976         * top/maint.mk (sc_prohibit_can_not): New rule.
21977         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21978
21979 2011-04-09  Bruno Haible  <bruno@clisp.org>
21980
21981         careadlinkat: Guard against misuse of careadlinkatcwd.
21982         * lib/careadlinkat.c: Include <stdlib.h>.
21983         (careadlinkatcwd): Check that the fd argument is as expected.
21984
21985 2011-04-09  Bruno Haible  <bruno@clisp.org>
21986
21987         careadlinkat: Use common coding style.
21988         * lib/careadlinkat.c: Move gnulib includes after system includes.
21989
21990 2011-04-09  Bruno Haible  <bruno@clisp.org>
21991
21992         careadlinkat: Clarify specification.
21993         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21994         (careadlinkatcwd): Add comment.
21995         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21996
21997 2011-04-09  Bruno Haible  <bruno@clisp.org>
21998
21999         areadlinkat: Avoid link error on many platforms.
22000         * modules/areadlinkat (Depends-on): Add areadlink.
22001
22002 2011-04-09  Bruno Haible  <bruno@clisp.org>
22003
22004         allocator, careadlinkat: Fix double-inclusion guard.
22005         * lib/allocator.h: Fix double-inclusion guard.
22006         * lib/careadlinkat.h: Likewise.
22007
22008 2011-04-09  Bruno Haible  <bruno@clisp.org>
22009
22010         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22011         * lib/relocwrapper.c: Update dependencies hierarchy.
22012         * build-aux/install-reloc: Update list of files to be compiled.
22013         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22014         lib/allocator.[hc].
22015
22016 2011-04-08  Eric Blake  <eblake@redhat.com>
22017
22018         strftime: silence gnulib-tool warning
22019         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22020
22021 2011-04-08  Bruno Haible  <bruno@clisp.org>
22022
22023         verify: Fix syntax error with GCC 4.6 in C++ mode.
22024         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22025         (HAVE_STATIC_ASSERT): New macro.
22026         (verify_true, verify): Use 'static_assert' if it is supported and
22027         '_Static_assert' is not supported.
22028
22029 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         allocator: New module.
22032         * modules/allocator, lib/allocator.c: New files.
22033         * lib/allocator.h (stdlib_allocator): New decl.
22034         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22035         Remove.  Do not include <stdlib.h>.
22036         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22037         * modules/careadlinkat (Files): Remove lib/allocator.h.
22038         (Depends-on): Add allocator.
22039
22040         stdlib: let modules use system malloc, realloc
22041         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22042         if !_GL_USE_STDLIB_ALLOC.
22043         (malloc, realloc): Limit this change to a smaller scope.
22044
22045         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22046         (malloc, realloc): Don't #undef; no longer needed.
22047         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22048         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22049         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22050         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22051         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22052         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22053         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22054         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22055
22056         careadlinkat: rename members to avoid problem
22057         * lib/allocator.h (struct allocator): Rename members from
22058         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22059         and realloc are #define'd.  Reported by Eric Blake in
22060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22061         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22062
22063 2011-04-08  Eric Blake  <eblake@redhat.com>
22064
22065         nonblocking: reduce dependency
22066         * tests/test-nonblocking.c: Only test sockets when in use.
22067         * modules/nonblocking-tests (Depends-on): Drop socket.
22068         (Makefile.am): Link even if sockets are not present.
22069         * modules/pipe2-tests (Makefile.am): Likewise.
22070         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22071
22072         pipe2: fix O_NONBLOCK support on mingw
22073         * modules/pipe2 (Depends-on): Add nonblocking.
22074         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22075         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22076         * tests/test-nonblocking.c (main): Likewise.
22077         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22078
22079         fcntl-h: fix O_ACCMODE on cygwin
22080         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22081         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22082
22083         pipe-filter: drop O_NONBLOCK workarounds
22084         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22085         * modules/pipe-filter-ii (Depends-on): Likewise.
22086         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22087
22088         nonblocking: provide O_NONBLOCK for mingw
22089         * modules/nonblocking (Depends-on): Add open.
22090         (configure.ac): Set new witness macro.
22091         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22092         * modules/fcntl-h (Makefile.am): Substitute it.
22093         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22094         nonblocking module is in use.
22095         * lib/nonblocking.c: Adjust portability test.
22096         * lib/open.c (open): Don't let native open see gnulib flag.
22097         * tests/test-fcntl-h.c (main): Enhance test.
22098         * tests/test-open.h (test_open): Likewise.
22099         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22100
22101         careadlinkat: fix compilation error on mingw
22102         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22103         within struct allocator.
22104
22105 2011-04-06  Eric Blake  <eblake@redhat.com>
22106
22107         binary-io: relicense under LGPLv2+
22108         * modules/binary-io (License): Relax to LGPLv2+.
22109         Requested for libvirt, and required by pipe2.
22110
22111 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22112
22113         verify: use _Static_assert if available
22114         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22115         (verify_true, verify): Use it if available.  This generates better
22116         diagnostics with GCC 4.6.0 and later.
22117
22118 2011-04-05  Bruno Haible  <bruno@clisp.org>
22119
22120         Remove leftover generated .h files after config.status changed.
22121
22122         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22123         GL_GENERATE_ALLOCA_H.
22124         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22125         GL_GENERATE_ALLOCA_H evaluates to false.
22126
22127         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22128         GL_GENERATE_ARGZ_H.
22129         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22130         evaluates to false.
22131
22132         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22133         GL_GENERATE_BYTESWAP_H.
22134         * modules/byteswap (Makefile.am): Remove byteswap.h if
22135         GL_GENERATE_BYTESWAP_H evaluates to false.
22136
22137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22138         GL_GENERATE_ERRNO_H.
22139         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22140         evaluates to false.
22141
22142         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22143         GL_GENERATE_FLOAT_H.
22144         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22145         evaluates to false.
22146
22147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22148         GL_GENERATE_FNMATCH_H.
22149         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22150         GL_GENERATE_FNMATCH_H evaluates to false.
22151
22152         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22153         GL_GENERATE_GLOB_H.
22154         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22155         evaluates to false.
22156
22157         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22158         automake conditional GL_GENERATE_ICONV_H.
22159         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22160         evaluates to false.
22161
22162         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22163         GL_GENERATE_NETINET_IN_H.
22164         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22165         GL_GENERATE_NETINET_IN_H evaluates to false.
22166
22167         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22168         conditional GL_GENERATE_PTHREAD_H.
22169         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22170         * modules/pthread (Makefile.am): Remove pthread.h if
22171         GL_GENERATE_PTHREAD_H evaluates to false.
22172
22173         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22174         GL_GENERATE_SCHED_H.
22175         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22176         evaluates to false.
22177
22178         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22179         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22180         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22181         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22182
22183         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22184         GL_GENERATE_STDARG_H.
22185         * modules/stdarg (Makefile.am): Remove stdarg.h if
22186         GL_GENERATE_STDARG_H evaluates to false.
22187
22188         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22189         GL_GENERATE_STDBOOL_H.
22190         * modules/stdbool (Makefile.am): Remove stdbool.h if
22191         GL_GENERATE_STDBOOL_H evaluates to false.
22192
22193         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22194         conditional GL_GENERATE_STDDEF_H.
22195         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22196         * modules/stddef (Makefile.am): Remove stddef.h if
22197         GL_GENERATE_STDDEF_H evaluates to false.
22198
22199         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22200         GL_GENERATE_STDINT_H.
22201         * modules/stdint (Makefile.am): Remove stdint.h if
22202         GL_GENERATE_STDINT_H evaluates to false.
22203
22204         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22205         GL_GENERATE_SYSEXITS_H.
22206         * modules/sysexits (Makefile.am): Remove sysexits.h if
22207         GL_GENERATE_SYSEXITS_H evaluates to false.
22208
22209         Reported by Karl Berry and Ralf Wildenhues.
22210
22211 2011-04-05  Bruno Haible  <bruno@clisp.org>
22212
22213         Ensure to rebuild generated .h files when config.status has changed.
22214         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22215         config.status.
22216         * modules/ctype (Makefile.am): Likewise.
22217         * modules/dirent (Makefile.am): Likewise.
22218         * modules/errno (Makefile.am): Likewise.
22219         * modules/fcntl-h (Makefile.am): Likewise.
22220         * modules/float (Makefile.am): Likewise.
22221         * modules/getopt-posix (Makefile.am): Likewise.
22222         * modules/glob (Makefile.am): Likewise.
22223         * modules/iconv-h (Makefile.am): Likewise.
22224         * modules/inttypes (Makefile.am): Likewise.
22225         * modules/langinfo (Makefile.am): Likewise.
22226         * modules/locale (Makefile.am): Likewise.
22227         * modules/math (Makefile.am): Likewise.
22228         * modules/netdb (Makefile.am): Likewise.
22229         * modules/netinet_in (Makefile.am): Likewise.
22230         * modules/poll-h (Makefile.am): Likewise.
22231         * modules/pthread (Makefile.am): Likewise.
22232         * modules/pty (Makefile.am): Likewise.
22233         * modules/sched (Makefile.am): Likewise.
22234         * modules/search (Makefile.am): Likewise.
22235         * modules/selinux-h (Makefile.am): Likewise.
22236         * modules/signal (Makefile.am): Likewise.
22237         * modules/spawn (Makefile.am): Likewise.
22238         * modules/stdarg (Makefile.am): Likewise.
22239         * modules/stdbool (Makefile.am): Likewise.
22240         * modules/stddef (Makefile.am): Likewise.
22241         * modules/stdint (Makefile.am): Likewise.
22242         * modules/stdio (Makefile.am): Likewise.
22243         * modules/stdlib (Makefile.am): Likewise.
22244         * modules/string (Makefile.am): Likewise.
22245         * modules/strings (Makefile.am): Likewise.
22246         * modules/sys_file (Makefile.am): Likewise.
22247         * modules/sys_ioctl (Makefile.am): Likewise.
22248         * modules/sys_select (Makefile.am): Likewise.
22249         * modules/sys_socket (Makefile.am): Likewise.
22250         * modules/sys_stat (Makefile.am): Likewise.
22251         * modules/sys_time (Makefile.am): Likewise.
22252         * modules/sys_times (Makefile.am): Likewise.
22253         * modules/sys_utsname (Makefile.am): Likewise.
22254         * modules/sys_wait (Makefile.am): Likewise.
22255         * modules/sysexits (Makefile.am): Likewise.
22256         * modules/termios (Makefile.am): Likewise.
22257         * modules/time (Makefile.am): Likewise.
22258         * modules/unistd (Makefile.am): Likewise.
22259         * modules/wchar (Makefile.am): Likewise.
22260         * modules/wctype-h (Makefile.am): Likewise.
22261         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22262
22263 2011-04-05  Bruno Haible  <bruno@clisp.org>
22264
22265         pipe2: Relicense under LGPLv2+.
22266         * modules/pipe2 (License): Change to LGPLv2+.
22267         Requested by Eric Blake, for libvirt.
22268
22269 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22270
22271         bootstrap: compute gnulib_extra_files after updating build_aux
22272         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22273         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22274
22275 2011-04-05  Eric Blake  <eblake@redhat.com>
22276
22277         bootstrap: preserve git whitelist item sorting
22278         * build-aux/bootstrap (sort_patterns): New function.
22279         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22280
22281 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22282
22283         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22284         sc_space_tab check.
22285
22286 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22287
22288         areadlink, areadlinkat: rewrite in terms of careadlinkat
22289         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22290         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22291         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22292         (malloc, realloc): Remove #undefs.
22293         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22294         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22295         readlink, ssize_t, stdint, unistd.
22296         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22297         areadlink, stdint.
22298
22299         careadlinkat: new module
22300         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22301         * modules/careadlinkat: New files, written by me with
22302         a review and feedback from Ben Pfaff in
22303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22304
22305 2011-04-01  Bruno Haible  <bruno@clisp.org>
22306
22307         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22308         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22309         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22310         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22311         Reported by Bruce Korb <bruce.korb@gmail.com>.
22312
22313 2011-04-01  Bruno Haible  <bruno@clisp.org>
22314
22315         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22316         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22317         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22318         * modules/wcpcpy (Depends-on): Add extensions.
22319         * modules/wcpncpy (Depends-on): Likewise.
22320         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22321         systems.
22322         * doc/posix-functions/wcpncpy.texi: Likewise.
22323         * doc/posix-functions/wcwidth.texi: Likewise.
22324
22325 2011-03-31  Eric Blake  <eblake@redhat.com>
22326
22327         nonblocking: fix mingw test failures
22328         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22329         non-blocking flag on regular file.
22330         (get_nonblocking_flag): Set errno on invalid fd.
22331         * tests/test-nonblocking.c (main): Avoid test failure on
22332         directories if fchdir is not active.
22333         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22334
22335 2011-03-31  Bruno Haible  <bruno@clisp.org>
22336
22337         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22338         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22339         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22340         Reported by Simon Josefsson <simon@josefsson.org>.
22341
22342 2011-03-31  Bruno Haible  <bruno@clisp.org>
22343         and Eric Blake  <eblake@redhat.com>
22344
22345         nonblocking: new module
22346         * modules/nonblocking: New module.
22347         * modules/nonblocking-tests: Likewise.
22348         * lib/nonblocking.h: New file.
22349         * lib/nonblocking.c: Likewise.
22350         * tests/test-nonblocking.c: New test.
22351         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22352
22353 2011-03-30  Bruno Haible  <bruno@clisp.org>
22354
22355         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22356         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22357         instead of 'printf' format for GCC >= 4.4.
22358         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22359         (fprintf, printf, vfprintf, vprintf): Declare with
22360         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22361         the system's vfprintf() function.
22362         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22363
22364 2011-03-30  Eric Blake  <eblake@redhat.com>
22365
22366         passfd: fix scoping bug
22367         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22368         before sendmsg/recvmsg.
22369
22370         passfd: standardize coding conventions
22371         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22372         can be learned at compile time.
22373         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22374         ifdefs.
22375         (sendfd, recvfd): Follow gnulib code conventions.
22376
22377         passfd: fix incorrect sendmsg arguments
22378         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22379         incorrect msg_controllen value.
22380         * modules/passfd-tests (Depends-on): Check for alarm.
22381         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22382         Reported by Bastien ROUCARIES.
22383
22384 2011-03-30  Bruno Haible  <bruno@clisp.org>
22385
22386         c-strcasestr: Relicense under LGPLv2+.
22387         * modules/c-strcasestr (License): Change to LGPLv2+.
22388         Requested by Eric Blake, for libvirt.
22389
22390 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22391
22392         * users.txt: Add libidn2.  Fix libtasn1 link.
22393
22394 2011-03-30  Jim Meyering  <meyering@redhat.com>
22395
22396         tests: readlink* ("",... fails with EINVAL on newer kernels
22397         readlink and readlinkat have typically failed with ENOENT for
22398         the invalid, empty file name,  "".  However, with the advent
22399         of linux-2.6.39, they fail with EINVAL.
22400         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22401         when operating on the empty file name.
22402         * tests/test-readlink.h (test_readlink): Likewise.
22403
22404 2011-03-29  Bruno Haible  <bruno@clisp.org>
22405
22406         Relicense some modules under LGPLv2+, for libidn2.
22407         * modules/array-mergesort (License): Change to LGPLv2+.
22408         * modules/c-strcaseeq (License): Likewise.
22409         * modules/striconveh (License): Likewise.
22410         * modules/striconveha (License): Likewise.
22411         * modules/uniconv/base (License): Likewise.
22412         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22413         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22414         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22415         * modules/unictype/base (License): Likewise.
22416         * modules/unictype/bidiclass-of (License): Likewise.
22417         * modules/unictype/category-M (License): Likewise.
22418         * modules/unictype/category-none (License): Likewise.
22419         * modules/unictype/category-of (License): Likewise.
22420         * modules/unictype/category-test (License): Likewise.
22421         * modules/unictype/category-test-withtable (License): Likewise.
22422         * modules/unictype/combining-class (License): Likewise.
22423         * modules/unictype/joiningtype-of (License): Likewise.
22424         * modules/unictype/scripts (License): Likewise.
22425         * modules/uninorm/base (License): Likewise.
22426         * modules/uninorm/canonical-decomposition (License): Likewise.
22427         * modules/uninorm/composition (License): Likewise.
22428         * modules/uninorm/decompose-internal (License): Likewise.
22429         * modules/uninorm/decomposition-table (License): Likewise.
22430         * modules/uninorm/nfc (License): Likewise.
22431         * modules/uninorm/nfd (License): Likewise.
22432         * modules/uninorm/u32-normalize (License): Likewise.
22433         * modules/unistr/base (License): Likewise.
22434         * modules/unistr/u32-cpy (License): Likewise.
22435         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22436         * modules/unistr/u32-to-u8 (License): Likewise.
22437         * modules/unistr/u32-uctomb (License): Likewise.
22438         * modules/unistr/u8-check (License): Likewise.
22439         * modules/unistr/u8-mblen (License): Likewise.
22440         * modules/unistr/u8-mbtouc (License): Likewise.
22441         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22442         * modules/unistr/u8-mbtoucr (License): Likewise.
22443         * modules/unistr/u8-prev (License): Likewise.
22444         * modules/unistr/u8-strlen (License): Likewise.
22445         * modules/unistr/u8-to-u32 (License): Likewise.
22446         * modules/unistr/u8-uctomb (License): Likewise.
22447         * modules/unitypes (License): Likewise.
22448         Requested by Simon Josefsson.
22449
22450 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22451
22452         lib-symbol-visibility: Add a notice.
22453         * modules/lib-symbol-visibility (Notice): New field.
22454
22455 2011-03-29  Bruno Haible  <bruno@clisp.org>
22456
22457         getaddrinfo: Doc fix.
22458         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22459         section "fixed in Gnulib".
22460
22461 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22462
22463         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22464         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22465
22466 2011-03-26  Bruno Haible  <bruno@clisp.org>
22467
22468         unictype/property-byname: Reduce the number of load-time relocations.
22469         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22470         (UC_PROPERTY_INDEX_*): New enumeration values.
22471         (uc_property_byname): Convert an index from the lookup table to an
22472         uc_property_t.
22473         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22474         values.
22475
22476 2011-03-26  Bruno Haible  <bruno@clisp.org>
22477
22478         unictype/property-byname: Allow omitted word separators and aliases.
22479         * lib/unictype/pr_byname.gperf: Add property names without word
22480         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22481         for 'space'.
22482
22483 2011-03-26  Bruno Haible  <bruno@clisp.org>
22484
22485         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22486         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22487         also hyphens to space.
22488         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22489         without spaces.
22490         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22491
22492 2011-03-26  Bruno Haible  <bruno@clisp.org>
22493
22494         unictype/joiningtype-byname: Recognize long names as well.
22495         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22496         a long name.
22497         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22498         unictype/joiningtype_byname.h.
22499         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22500         * lib/unictype/joiningtype_byname.gperf: New file.
22501         * modules/unictype/joiningtype-byname (Files): Add
22502         lib/unictype/joiningtype_byname.gperf.
22503         (Depends-on): Add gperf.
22504         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22505         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22506         long names.
22507
22508         Tests for module 'unictype/joiningtype-longname'.
22509         * modules/unictype/joiningtype-longname-tests: New file.
22510         * tests/unictype/test-joiningtype_longname.c: New file.
22511
22512         New module 'unictype/joiningtype-longname'.
22513         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22514         * lib/unictype/joiningtype_longname.c: New file.
22515         * modules/unictype/joiningtype-longname: New file.
22516         * modules/unictype/joiningtype-all (Depends-on): Add
22517         unictype/joiningtype-longname.
22518
22519 2011-03-26  Bruno Haible  <bruno@clisp.org>
22520
22521         unictype/bidiclass-byname: Recognize long names as well.
22522         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22523         name.
22524         * lib/unictype/bidi_byname.c: Include <string.h>,
22525         unictype/bidi_byname.h.
22526         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22527         * lib/unictype/bidi_byname.gperf: New file.
22528         * modules/unictype/bidiclass-byname (Files): Add
22529         lib/unictype/bidi_byname.gperf.
22530         (Depends-on): Add gperf.
22531         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22532         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22533         long names.
22534
22535         Tests for module 'unictype/bidiclass-longname'.
22536         * modules/unictype/bidiclass-longname-tests: New file.
22537         * tests/unictype/test-bidi_longname.c: New file.
22538
22539         New module 'unictype/bidiclass-longname'.
22540         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22541         * lib/unictype/bidi_longname.c: New file.
22542         * modules/unictype/bidiclass-longname: New file.
22543         * modules/unictype/bidiclass-all (Depends-on): Add
22544         unictype/bidiclass-longname.
22545
22546 2011-03-26  Bruno Haible  <bruno@clisp.org>
22547
22548         unictype/bidi*: Rename modules.
22549         * modules/unictype/bidiclass-all: Renamed from
22550         modules/unictype/bidicategory-all.
22551         * modules/unictype/bidiclass-name: Renamed from
22552         modules/unictype/bidiclass-name.
22553         (Description): Update.
22554         * modules/unictype/bidiclass-name-tests: Renamed from
22555         modules/unictype/bidicategory-name-tests.
22556         * modules/unictype/bidiclass-byname: Renamed from
22557         modules/unictype/bidicategory-byname.
22558         (Description): Update.
22559         * modules/unictype/bidiclass-byname-tests: Renamed from
22560         modules/unictype/bidicategory-byname-tests.
22561         * modules/unictype/bidiclass-of: Renamed from
22562         modules/unictype/bidicategory-of.
22563         (Description): Update.
22564         * modules/unictype/bidiclass-of-tests: Renamed from
22565         modules/unictype/bidicategory-of-tests.
22566         * modules/unictype/bidiclass-test: Renamed from
22567         modules/unictype/bidicategory-test.
22568         (Description): Update.
22569         * modules/unictype/bidiclass-test-tests: Renamed from
22570         modules/unictype/bidicategory-test-tests.
22571         * modules/unictype/bidicategory-all: New file, a simple redirection.
22572         * modules/unictype/bidicategory-name: Likewise.
22573         * modules/unictype/bidicategory-byname: Likewise.
22574         * modules/unictype/bidicategory-of: Likewise.
22575         * modules/unictype/bidicategory-test: Likewise.
22576         * modules/unictype/property-bidi-* (Dependencies): Update.
22577         * lib/unictype/bidi_*.c: Update comment.
22578
22579 2011-03-26  Bruno Haible  <bruno@clisp.org>
22580
22581         unictype/bidi*: Rename functions, part 2.
22582         * modules/unictype/bidicategory-name (configure.ac): Update required
22583         libunistring version.
22584         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22585
22586 2011-03-25  Bruno Haible  <bruno@clisp.org>
22587
22588         New module 'unictype/combining-class-all'.
22589         * modules/unictype/combining-class-all: New file.
22590
22591         Tests for module 'unictype/combining-class-byname'.
22592         * modules/unictype/combining-class-byname-tests: New file.
22593         * tests/unictype/test-combiningclass_byname.c: New file.
22594
22595         New module 'unictype/combining-class-byname'.
22596         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22597         * lib/unictype/combiningclass_byname.c: New file.
22598         * lib/unictype/combiningclass_byname.gperf: New file.
22599         * modules/unictype/combining-class-byname: New file.
22600
22601         Tests for module 'unictype/combining-class-longname'.
22602         * modules/unictype/combining-class-longname-tests: New file.
22603         * tests/unictype/test-combiningclass_longname.c: New file.
22604
22605         New module 'unictype/combining-class-longname'.
22606         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22607         * lib/unictype/combiningclass_longname.c: New file.
22608         * modules/unictype/combining-class-longname: New file.
22609
22610         Tests for module 'unictype/combining-class-name'.
22611         * modules/unictype/combining-class-name-tests: New file.
22612         * tests/unictype/test-combiningclass_name.c: New file.
22613
22614         New module 'unictype/combining-class-name'.
22615         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22616         * lib/unictype/combiningclass_name.c: New file.
22617         * modules/unictype/combining-class-name: New file.
22618
22619 2011-03-25  Bruno Haible  <bruno@clisp.org>
22620
22621         unictype/combining-class: Rename source files.
22622         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22623         of unictype/combining.h.
22624         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22625         Update.
22626         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22627         * modules/unictype/combining-class (Description): Fix.
22628         (Files, Makefile.am): Update.
22629         * tests/unictype/test-combiningclass.c: Renamed from
22630         tests/unictype/test-combining.c.
22631         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22632
22633 2011-03-25  Bruno Haible  <bruno@clisp.org>
22634
22635         unictype: Update list of canonical combining classes.
22636         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22637
22638 2011-03-25  Bruno Haible  <bruno@clisp.org>
22639
22640         unictype/category-byname: Recognize long names as well.
22641         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22642         a long name.
22643         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22644         unictype/categ_byname.h.
22645         (UC_CATEGORY_INDEX_*): New enumeration values.
22646         (uc_general_category_byname): Use uc_general_category_lookup and
22647         convert from index to value.
22648         * lib/unictype/categ_byname.gperf: New file.
22649         * modules/unictype/category-byname (Files): Add
22650         lib/unictype/categ_byname.gperf.
22651         (Depends-on): Add gperf.
22652         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22653         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22654         long names.
22655
22656         Tests for module 'unictype/category-longname'.
22657         * modules/unictype/category-longname-tests: New file.
22658         * tests/unictype/test-categ_longname.c: New file.
22659
22660         New module 'unictype/category-longname'.
22661         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22662         * lib/unictype/categ_longname.c: New file.
22663         * modules/unictype/category-longname: New file.
22664         * modules/unictype/category-all (Depends-on): Add it.
22665
22666 2011-03-25  Bruno Haible  <bruno@clisp.org>
22667
22668         Tests for module 'unictype/category-LC'.
22669         * modules/unictype/category-LC-tests: New file.
22670         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22671
22672         New module 'unictype/category-LC'.
22673         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22674         (UC_CATEGORY_LC): New declaration.
22675         (UC_CASED_LETTER): New macro.
22676         * lib/gen-uni-tables.c (is_category_LC): New function.
22677         (output_categories): Also handle category LC.
22678         (UC_CATEGORY_MASK_LC): New enumeration value.
22679         (general_category_byname): Also handle category LC.
22680         * lib/unictype/categ_LC.c: New file.
22681         * lib/unictype/categ_LC.h: New file, automatically generated.
22682         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22683         category LC.
22684         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22685         * modules/unictype/category-LC: New file.
22686         * modules/unictype/category-byname (Depends-on): Add
22687         unictype/category-LC.
22688         * modules/unictype/category-all (Depends-on): Likewise.
22689
22690 2011-03-25  Eric Blake  <eblake@redhat.com>
22691
22692         xmalloc: revert yesterday's regression
22693         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22694         realloc's underlying behavior (allowing allocation of zero-size
22695         objects, especially if malloc-gnu is also in use).
22696
22697 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22698
22699         maint.mk: add missing version to VC-tag
22700         * top/maint.mk: git tag was missing actual tag name; add it.
22701
22702         valgrind: do leak checking, and exit with code 1 on error (not 0)
22703         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22704         to VALGRIND.
22705
22706 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22707
22708         posix-modules: say what it does.
22709         * posix-modules: Add a line to the --help output saying what it does.
22710
22711 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22712
22713         xmalloc: Do not leak if underlying realloc is C99 compatible.
22714         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22715         This avoids a leak on C99-based systems.  See
22716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22717
22718 2011-03-24  Eric Blake  <eblake@redhat.com>
22719
22720         realloc: document portability problem
22721         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22722         passing 0 size to realloc.
22723
22724 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22725
22726         doc: update users.txt
22727         * users.txt: Add cvsps, tmpwatch
22728
22729 2011-03-23  Matt Rice  <ratmice@gmail.com>
22730
22731         doc: update users.txt
22732         * users.txt: Add gdb.
22733
22734 2011-03-23  Jim Meyering  <meyering@redhat.com>
22735
22736         doc: update users.txt
22737         Looking through matches up to the following URL (there are still
22738         several more pages), I found several projects that use gnulib:
22739         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22740         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22741         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22742
22743 2011-03-22  Bruno Haible  <bruno@clisp.org>
22744
22745         unictype/bidi*: Rename functions.
22746         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22747         uc_bidi_class, uc_is_bidi_class): New declarations.
22748         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22749         uc_bidi_category_byname.
22750         (uc_bidi_category_byname): New function.
22751         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22752         u_bidi_category_name.
22753         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22754         (uc_bidi_category_name): New function.
22755         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22756         uc_bidi_category.
22757         (uc_bidi_category): New function.
22758         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22759         uc_is_bidi_category. Invoke uc_bidi_class.
22760         (uc_is_bidi_category): New function.
22761         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22762         instead of uc_bidi_category_byname.
22763         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22764         instead of uc_bidi_category_name.
22765         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22766         uc_bidi_category.
22767         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22768         instead of uc_is_bidi_category.
22769
22770 2011-03-21  Bruno Haible  <bruno@clisp.org>
22771
22772         New module 'unictype/joininggroup-all'.
22773         * modules/unictype/joininggroup-all: New file.
22774
22775         Tests for module 'unictype/joininggroup-of'.
22776         * modules/unictype/joininggroup-of-tests: New file.
22777         * tests/unictype/test-joininggroup_of.c: New file.
22778         * tests/unictype/test-joininggroup_of.h: New file, automatically
22779         generated by gen-uni-tables.
22780
22781         New module 'unictype/joininggroup-of'.
22782         * modules/unictype/joininggroup-of: New file.
22783         * lib/unictype/joininggroup_of.c: New file.
22784         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22785         gen-uni-tables.
22786
22787         Tests for module 'unictype/joininggroup-byname'.
22788         * modules/unictype/joininggroup-byname-tests: New file.
22789         * tests/unictype/test-joininggroup_byname.c: New file.
22790
22791         New module 'unictype/joininggroup-byname'.
22792         * modules/unictype/joininggroup-byname: New file.
22793         * lib/unictype/joininggroup_byname.c: New file.
22794         * lib/unictype/joininggroup_byname.gperf: New file.
22795
22796         Tests for module 'unictype/joininggroup-name'.
22797         * modules/unictype/joininggroup-name-tests: New file.
22798         * tests/unictype/test-joininggroup_name.c: New file.
22799
22800         New module 'unictype/joininggroup-name'.
22801         * modules/unictype/joininggroup-name: New file.
22802         * lib/unictype/joininggroup_name.c: New file.
22803         * lib/unictype/joininggroup_name.h: New file.
22804
22805         New module 'unictype/joiningtype-all'.
22806         * modules/unictype/joiningtype-all: New file.
22807
22808         Tests for module 'unictype/joiningtype-of'.
22809         * modules/unictype/joiningtype-of-tests: New file.
22810         * tests/unictype/test-joiningtype_of.c: New file.
22811         * tests/unictype/test-joiningtype_of.h: New file, automatically
22812         generated by gen-uni-tables.
22813
22814         New module 'unictype/joiningtype-of'.
22815         * modules/unictype/joiningtype-of: New file.
22816         * lib/unictype/joiningtype_of.c: New file.
22817         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22818         gen-uni-tables.
22819
22820         Tests for module 'unictype/joiningtype-byname'.
22821         * modules/unictype/joiningtype-byname-tests: New file.
22822         * tests/unictype/test-joiningtype_byname.c: New file.
22823
22824         New module 'unictype/joiningtype-byname'.
22825         * modules/unictype/joiningtype-byname: New file.
22826         * lib/unictype/joiningtype_byname.c: New file.
22827
22828         Tests for module 'unictype/joiningtype-name'.
22829         * modules/unictype/joiningtype-name-tests: New file.
22830         * tests/unictype/test-joiningtype_name.c: New file.
22831
22832         New module 'unictype/joiningtype-name'.
22833         * modules/unictype/joiningtype-name: New file.
22834         * lib/unictype/joiningtype_name.c: New file.
22835
22836         unictype: Add support for Arabic shaping properties.
22837         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22838         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22839         declarations.
22840         (UC_JOINING_GROUP_*): New enumeration values.
22841         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22842         declarations.
22843         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22844         (unicode_joining_type): New variable.
22845         (UC_JOINING_GROUP_*): New enumeration values.
22846         (unicode_joining_group): New variable.
22847         (fill_arabicshaping, joining_type_as_c_identifier,
22848         output_joining_type_test, output_joining_type,
22849         joining_group_as_c_identifier, output_joining_group_test,
22850         output_joining_group): New functions.
22851         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22852         fill_arabicshaping and output_joining_type_test, output_joining_type,
22853         output_joining_group_test, output_joining_group.
22854         Reported by Simon Josefsson.
22855
22856 2011-03-21  Jim Meyering  <meyering@redhat.com>
22857
22858         strftime: fix a bug in yesterday's change
22859         * lib/strftime.c (add): Accommodate width's initial value of -1.
22860         Otherwise, nstrftime would copy uninitialized data into
22861         the result buffer.
22862
22863 2011-03-21  Jim Meyering  <meyering@redhat.com>
22864
22865         tests: add strftime-tests module
22866         * tests/test-strftime.c: New file.
22867         * modules/strftime-tests: New module.
22868
22869 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22870
22871         strftime: don't assume a byte count fits in 'int'
22872         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22873         found this problem by static analysis, using gcc -Wstrict-overflow
22874         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22875         on an integer overflow having undefined behavior, but it turns out
22876         that the argument is a size, which might not fit in 'int' anyway,
22877
22878 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22879
22880         stdio: don't require ignore_value around fwrite
22881
22882         This patch works around libc bug 11959
22883         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22884         Without this patch, applications must often write
22885         ignore_value (fwrite (...)) even though the ignore_value is
22886         not helpful here.  It's common to write many objects, using
22887         fwrite/printf/etc., and then use ferror to detect output error.
22888
22889         I considered making this patch optional, but decided against it,
22890         because libc is obviously being inconsistent here: there is no
22891         reason libc should insist that user code must inspect fwrite
22892         return's value without also insisting that it inspect printf's,
22893         putchar's, etc.  If user code wants to have a strict style where
22894         all these functions' values are checked (so that ferror need not
22895         be checked), we could add support for that style in a new gnulib
22896         module, but in the meantime it's better to be consistent and to
22897         support common usage.
22898
22899         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22900         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22901         that we are compiling in checking mode, and if not C++, and
22902         if not already wrapping fwrite for some other reason.
22903         (fwrite): #define to rpl_fwrite if the latter is defined.
22904
22905 2011-03-20  Bruno Haible  <bruno@clisp.org>
22906
22907         verror: Fix compilation error introduced on 2011-02-13.
22908         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22909         instead of __attribute__.
22910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22911
22912 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22913             Bruno Haible  <bruno@clisp.org>
22914
22915         socklen: do not depend on sys_socket
22916         While trying to modify Emacs to use gnulib's socklen module,
22917         I discovered a circular dependency: socklen depends on sys_socket
22918         and vice versa.  Emacs can use socklen, but it does not need
22919         sys_socket because it has its own substitute for sys/socket.h.
22920         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22921         gl_TYPE_SOCKLEN_T.
22922         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22923         gl_PREREQ_SYS_H_SOCKET.
22924         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22925         gl_PREREQ_SYS_H_SOCKET.
22926         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22927         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22928         * modules/socklen (Depends-on): Do not depend on sys_socket.
22929         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22930
22931 2011-03-20  Jim Meyering  <meyering@redhat.com>
22932
22933         maint.mk: sort file names *after* new transformation
22934         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22935         prefix would have led to an unwarranted failure in GNU parted.
22936         Sort after that transformation.
22937
22938 2011-03-19  Jim Meyering  <meyering@redhat.com>
22939
22940         maint.mk: fix po-file syntax-check rule
22941         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22942         Patch by Bruno Haible.
22943
22944 2011-03-19  Bruno Haible  <bruno@clisp.org>
22945
22946         socklen: Update comment.
22947         * m4/socklen.m4: Update comment about platforms.
22948
22949 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22950             Bruno Haible  <bruno@clisp.org>
22951
22952         inet_ntop, inet_pton: Simplify.
22953         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22954         documented to provide socklen_t and we already depend on sys_socket.
22955         * modules/inet_pton (Depends-on): Likewise.
22956         * lib/arpa_inet.in.h: Adjust comment.
22957
22958 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22959             Bruno Haible  <bruno@clisp.org>
22960
22961         netdb: Simplify.
22962         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22963         documented to provide socklen_t and we already depend on sys_socket.
22964         * lib/netdb.in.h: Adjust comment.
22965
22966 2011-03-19  Bruno Haible  <bruno@clisp.org>
22967
22968         sys_socket, netdb: Document problem with socklen_t.
22969         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22970         platforms.
22971         * doc/posix-headers/netdb.texi: Likewise.
22972
22973 2011-03-18  Eric Blake  <eblake@redhat.com>
22974
22975         maint.mk: let po check work in VPATH build
22976         * top/maint.mk (po_file): Allow cfg.mk override.
22977         (sc_po_check): Allow VPATH use.
22978         Reported by Jiri Denemark.
22979
22980 2011-03-16  Jim Meyering  <meyering@redhat.com>
22981
22982         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22983         Before, you would have had to create one .x-sc_ file per rule in order
22984         to exempt offending files.  Now, you may instead use a Make variable --
22985         usually defined in cfg.mk -- whose name identifies the affected rule.
22986         * top/maint.mk (_sc_excl): Define.
22987         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22988         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22989
22990 2011-03-13  Bruno Haible  <bruno@clisp.org>
22991
22992         ignore-value tests: Avoid warnings.
22993         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22994         empty for gcc < 3.4.
22995
22996 2011-03-13  Bruno Haible  <bruno@clisp.org>
22997
22998         passfd: Fix link error on Solaris.
22999         * modules/passfd (Description): Correct.
23000         (Depends-on): Add socketlib.
23001         (Link): New section.
23002         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23003
23004 2011-03-13  Bruno Haible  <bruno@clisp.org>
23005
23006         passfd: Fix link error on AIX 5.2.
23007         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23008
23009 2011-03-13  Bruno Haible  <bruno@clisp.org>
23010
23011         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23012         * lib/sys_socket.in.h: Include <stddef.h>.
23013         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23014         CMSG_FIRSTHDR. Remove unused variable.
23015
23016 2011-03-13  Bruno Haible  <bruno@clisp.org>
23017
23018         passfd: Fix compilation error on OpenBSD.
23019         * lib/passfd.c: Include <sys/uio.h>.
23020
23021 2011-03-13  Bruno Haible  <bruno@clisp.org>
23022
23023         passfd test: Fix warnings.
23024         * tests/test-passfd.c: Include <sys/wait.h>.
23025         (main): Fix typo.
23026
23027 2011-03-13  Bruno Haible  <bruno@clisp.org>
23028
23029         passfd module, part 4, tweaks.
23030         * tests/test-passfd.c: Reorder includes.
23031         (main): Fix perror and printf calls.
23032
23033 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23034
23035         passfd module, part 4.
23036         * modules/passfd-tests: New file.
23037         * tests/test-passfd.c: New file.
23038
23039 2011-03-13  Jim Meyering  <meyering@redhat.com>
23040
23041         Makefile: rely on GNU make; derive syntax-check rule names
23042         Rather than requiring that each sc_ rule be listed as a dependent
23043         of "check", use features of GNU make to derive the list.
23044         * Makefile (syntax-check-rules): Define.
23045         (check): Depend on the new variable, not the hard-coded list.
23046
23047 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23048             Bruno Haible  <bruno@clisp.org>
23049
23050         passfd module, part 3.
23051         * lib/passfd.h (recvfd): Add a flags argument.
23052         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23053         (recvfd): Add a flags argument.
23054         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23055         exists.
23056         * modules/passfd (Depends-on): Add cloexec.
23057         Suggested by Eric Blake.
23058
23059 2011-03-13  Bruno Haible  <bruno@clisp.org>
23060
23061         passfd module, part 2, tweaks.
23062         * modules/passfd (Files): Reorder.
23063         (Depends-on): Remove errno.
23064         (Include): Remove <sys/socket.h>, <sys/un.h>.
23065         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23066         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23067         specification header. Include <sys/socket.h> always. Don't include
23068         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23069         (sendfd): Clarify that it sets errno when it fails.
23070         (recvfd): Fix specification.
23071
23072 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23073
23074         passfd module, part 2.
23075         * modules/passfd: New file.
23076         * lib/passfd.h: New file.
23077         * lib/passfd.c: New file.
23078
23079 2011-03-12  Bruno Haible  <bruno@clisp.org>
23080
23081         wcswidth, mbswidth: Avoid integer overflow.
23082         * lib/wcswidth.c: Include <limits.h>.
23083         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23084         * lib/mbswidth.c: Include <limits.h>.
23085         (mbsnwidth): Avoid 'int' overflow.
23086         Reported by Jim Meyering.
23087
23088 2011-03-12  Bruno Haible  <bruno@clisp.org>
23089
23090         futimens, utimensat: Avoid endless recursion on Solaris 10.
23091         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23092         Solaris.
23093         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23094         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23095
23096 2011-03-11  Jim Meyering  <meyering@redhat.com>
23097
23098         maint.mk: relax a regexp to accommodate other formatting styles
23099         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23100         between "ngettext" and the following "(".
23101
23102 2011-03-11  Pádraig Brady <P@draigBrady.com>
23103
23104         maint.mk: suppress a false positive warning
23105         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23106         diagnostics are marked with ngettext.
23107
23108 2011-03-10  Eric Blake  <eblake@redhat.com>
23109
23110         wchar: add explicit dependencies, for Tru64
23111         * modules/mbmemcasecoll (Depends-on): Add wchar.
23112         * modules/mbtowc (Depends-on): Likewise.
23113         * modules/vasnprintf (Depends-on): Likewise.
23114         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23115         * modules/wctomb (Depends-on): Likewise.
23116         Reported by Peter O'Gorman.
23117
23118 2011-03-08  Bruno Haible  <bruno@clisp.org>
23119
23120         passfd module, part 1, tweaks.
23121         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23122         Improve indentation. Improve AC_MSG_CHECKING messages.
23123         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23124         gl_SOCKET_FAMILIES.
23125
23126 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23127
23128         passfd module, part 1.
23129         * m4/afunix.m4: New file.
23130         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23131         sockets.
23132
23133 2011-03-08  Bruno Haible  <bruno@clisp.org>
23134
23135         regex-quote: New API.
23136         * lib/regex-quote.h: Include <stdbool.h>.
23137         (struct regex_quote_spec): New type.
23138         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23139         New declarations.
23140         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23141         'const struct regex_quote_spec *' argument.
23142         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23143         (pcre_special): New constant.
23144         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23145         New functions.
23146         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23147         'const struct regex_quote_spec *' argument.
23148         * modules/regex-quote (Depends-on): Add stdbool.
23149         * tests/test-regex-quote.c (check): Update for new API. Add test for
23150         anchored results.
23151         * NEWS: Mention the API change.
23152         Reported by Reuben Thomas and Eric Blake.
23153
23154 2011-03-06  Bruno Haible  <bruno@clisp.org>
23155
23156         regex-quote: Fix creation of POSIX extended regular expressions.
23157         * lib/regex-quote.c (ere_special): Add grouping and alternation
23158         operators.
23159
23160 2011-03-05  Bruno Haible  <bruno@clisp.org>
23161
23162         doc: Improve doc regarding autopoint vs. gnulib.
23163         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23164         disable autopoint while running autoreconf.
23165         Suggested by Ralf Wildenhues.
23166
23167 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23168
23169         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23170         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23171
23172 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23173
23174         parse-duration: remove xalloc.h dependency
23175         * lib/parse-duration.c (parse_period): handle NULL return from
23176         strdup instead of calling xstrdup().
23177         * modules/parse-duration: remove "xalloc" dependency
23178
23179 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23180
23181         bootstrap: honor m4_base when running aclocal
23182         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23183
23184 2011-03-02  Jim Meyering  <meyering@redhat.com>
23185
23186         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23187         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23188         on request from Matt Booth.
23189
23190 2011-03-01  Eric Blake  <eblake@redhat.com>
23191
23192         test-link: work on Hurd
23193         * tests/test-link.h (test_link): Hurd rejects linking directories
23194         with EISDIR instead of the POSIX-mandated EPERM.
23195
23196 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23197
23198         stdio: simplify by moving files to printf-posix, sigpipe
23199         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23200         since this symbol is needed only if printf is replaced.
23201         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23202         Require gl_ASM_SYMBOL_PREFIX.
23203         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23204         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23205         (Depends-on): Add 'raise'.
23206         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23207         * modules/stdio (Files): Remove lib/stdio-write.c,
23208         m4/asm-underscore.m4.
23209         (Depends-on): Remove 'raise'.
23210
23211         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23212         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23213         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23214         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23215
23216 2011-02-28  Bruno Haible  <bruno@clisp.org>
23217
23218         localcharset: Assume ANSI C behaviour of free().
23219         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23220         calling free().
23221         Suggested by Simon Josefsson <simon@josefsson.org>.
23222
23223 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23224             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23225             Bruno Haible  <bruno@clisp.org>  (tiny change)
23226
23227         On Cygwin, use /proc file system instead of win32 API.
23228         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23229         Win32 file names.
23230         (DllMain): Simplify by removing Cygwin specific code.
23231         (find_shared_library_fullname): Use Linux specific implementation also
23232         for Cygwin.
23233         (get_shared_library_fullname): Update accordingly.
23234         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23235         Win32 file names.
23236         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23237         Cygwin specific code.
23238
23239 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23240             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23241
23242         Fix OpenMP flag detection for various Fortran compilers.
23243         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23244         OpenMP-conditional compilation construct, to force compile
23245         failure with missing OpenMP flag.
23246         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23247
23248 2011-02-25  Eric Blake  <eblake@redhat.com>
23249
23250         strstr: expand test coverage
23251         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23252         compilation.
23253         * tests/test-memmem.c (main): Duplicate tests.
23254         * tests/test-strcasestr.c (main): Likewise.
23255         * tests/test-c-strcasestr.c (main): Likewise.
23256
23257 2011-02-25  Jim Meyering  <meyering@redhat.com>
23258
23259         maint.mk: detect missing-NL-at-EOF, too
23260         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23261         it also detects when a file lacks a newline at EOF.
23262         (require_exactly_one_NL_at_EOF_): Renamed from
23263         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23264         since people may well have .x-sc_... file names tied to the
23265         existing name.  Suggested by Eric Blake.
23266
23267 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23268
23269         dirname: move m4/dos.m4 functionality into lib/dosname.h
23270
23271         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23272         extracts symbols from it, puts them into config.h; but it's much
23273         easier to use the symbols directly.  filename.h already does this,
23274         but it disagrees with dos.m4 in some respects.  This patch
23275         introduces a different include file dosname.h that packages up
23276         dos.m4, and then later we can work on merging filename.h and
23277         dosname.h.  Applications that need only the easy-to-configure
23278         symbols should consider including dosname.h rather than dirname.h.
23279         * NEWS: Mention incompatible changes.
23280         * m4/dos.m4: Remove.
23281         * lib/dosname.h, modules/dosname: New files.
23282         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23283         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23284         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23285         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23286         Include dosname.h, not dirname.h.
23287         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23288         Include dosname.h, for definitions of symbols like ISSLASH
23289         that used to be in config.h.
23290         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23291         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23292         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23293         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23294         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23295         * modules/rmdir (Files): Likewise.
23296         * modules/stat (Files): Likewise.
23297         * modules/unlink (Files): Likewise.
23298         * modules/dirname-lgpl (Depends-on): Add dosname.
23299         * modules/lstat (Depends-on): Likewise.
23300         * modules/openat (Depends-on): Likewise.
23301         * modules/rmdir (Depends-on): Likewise.
23302         * modules/savewd (Depends-on): Likewise.
23303         * modules/stat (Depends-on): Likewise.
23304         * modules/unlink (Depends-on): Likewise.
23305         * modules/openat (Depends-on): Remove dirname-lgpl.
23306         * modules/savewd (Depends-on): Likewise.
23307         * tests/test-dirname.c: Do not use removed symbols like
23308         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23309         the remaining symbols, e.g., ISSLASH ('\\').
23310
23311 2011-02-25  Eric Blake  <eblake@redhat.com>
23312
23313         strstr: revert patches that introduced bug and pessimization
23314         * lib/str-two-way.h: Add another reference.
23315         (two_way_short_needle, two_way_long_needle): Revert changes from
23316         2011-02-24; they pessimize search speed.
23317         (critical_factorization): Partially revert changes from
23318         2010-06-22; they violate the requirement that the left half of the
23319         needle be smaller than the period of the needle.
23320
23321 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23322
23323         filenamecat: remove unnecessary dependency on dirname-lgpl
23324         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23325         is no direct dependency, just an indirect one via filenamecat-lgpl.
23326
23327         remove: remove unnecessary use of m4/dos.m4
23328         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23329         * modules/remove (FILES): Remove m4/dos.m4.
23330
23331         * lib/openat-proc.c: Don't include dirname.h; not needed.
23332
23333         backupfile: remove unnecessary use of m4/dos.m4
23334         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23335         of its symbols are used by the backupfile code.  backupfile.c does
23336         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23337         for the rare case of programs that want all their backup file
23338         names to live within 8+3 limits, and dos.m4 doesn't address that.
23339         * modules/backupfile (Files): Remove m4/dos.m4.
23340
23341 2011-02-24  Jim Meyering  <meyering@redhat.com>
23342
23343         strstr: fix a bug whereby strstr would mistakenly return NULL
23344         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23345         in period calculation.
23346         (two_way_long_needle): Likewise.
23347         The original problem was reported by Mike Stump in
23348         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23349         Ralf Wildenhues provided the short needle and haystack.
23350         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23351         Add a more involved test to trigger the bug in two_way_long_needle.
23352
23353 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23354
23355         gnulib-tool: remove use of bold display in help screen
23356         * gnulib-tool (func_usage): Do not use bold display anymore in the
23357         help screen.  That was just meant to be a temporary emphasis for a
23358         backward-incompatible change.
23359
23360 2011-02-23  Bruno Haible  <bruno@clisp.org>
23361
23362         Fix misindentation of preprocessor directives.
23363         * lib/argp-namefrob.h: Reindent preprocessor directives.
23364         * lib/getopt_int.h (struct _getopt_data): Likewise.
23365         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23366         * lib/vasnprintf.c (decode_long_double): Likewise.
23367         * tests/test-argmatch.c: Insert blank lines, for clarity.
23368         * tests/test-exclude.c: Likewise.
23369
23370 2011-02-22  Bruno Haible  <bruno@clisp.org>
23371
23372         ioctl: Fix for MacOS X in 64-bit mode.
23373         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23374         value.
23375         Suggested by Eric Blake.
23376         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23377
23378 2011-02-22  Jim Meyering  <meyering@redhat.com>
23379
23380         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23381         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23382         in lib/.
23383
23384 2011-02-22  Eric Blake  <eblake@redhat.com>
23385
23386         maint: avoid any CDPATH issue
23387         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23388
23389         maint: adjust cpp indentation for my modules, as well
23390         * Makefile (sc_cpp_indent_check): Add my name.
23391         * lib/fbufmode.c: Filter through cppi.
23392         * lib/fpurge.c: Likewise.
23393         * lib/freadable.c: Likewise.
23394         * lib/freading.c: Likewise.
23395         * lib/fwritable.c: Likewise.
23396         * lib/fwriting.c: Likewise.
23397         * lib/sigaction.c: Likewise.
23398
23399 2011-02-22  Jim Meyering  <meyering@redhat.com>
23400
23401         maint: adjust cpp indentation to reflect nesting depth
23402         I.e., in a block of code that begins with an unnested "#if",
23403         put one space between the "#" in column 1 and following token.
23404         For example,
23405         -#include <sys/vfs.h>
23406         +# include <sys/vfs.h>
23407         Do this only in .c files that are part of a module I maintain.
23408         * lib/linkat.c: Filter through cppi.
23409         * lib/nanosleep.c: Likewise.
23410         * lib/openat.c: Likewise.
23411         * lib/openat-die.c: Likewise.
23412         * lib/dup3.c: Likewise.
23413         * lib/fchownat.c: Likewise.
23414         * lib/flock.c: Likewise.
23415         * lib/fsync.c: Likewise.
23416         * lib/fts.c: Likewise.
23417         * lib/getpass.c: Likewise.
23418         * lib/gettimeofday.c: Likewise.
23419         * lib/userspec.c: Likewise.
23420         * Makefile (sc_cpp_indent_check): New rule, to check this.
23421
23422 2011-02-22  Bruno Haible  <bruno@clisp.org>
23423
23424         New module 'wctomb'.
23425         * lib/stdlib.in.h (wctomb): New declaration.
23426         * lib/wctomb.c: New file.
23427         * lib/wctomb-impl.h: New file.
23428         * m4/wctomb.m4: New file.
23429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23430         REPLACE_WCTOMB.
23431         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23432         REPLACE_WCTOMB.
23433         * modules/wctomb: New file.
23434         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23435         * doc/posix-functions/wctomb.texi: Mention the new module.
23436         * modules/wctob (Depends-on): Add wctomb.
23437
23438 2011-02-22  Bruno Haible  <bruno@clisp.org>
23439
23440         New module 'mbtowc'.
23441         * lib/stdlib.in.h (mbtowc): New declaration.
23442         * lib/mbtowc.c: New file.
23443         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23444         * m4/mbtowc.m4: New file.
23445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23446         REPLACE_MBTOWC.
23447         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23448         REPLACE_MBTOWC.
23449         * modules/mbtowc: New file.
23450         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23451         * doc/posix-functions/mbtowc.texi: Mention the new module.
23452         * modules/btowc (Depends-on): Add mbtowc.
23453
23454 2011-02-22  Bruno Haible  <bruno@clisp.org>
23455
23456         wcrtomb: Add more tests for native Windows platforms.
23457         * tests/test-wcrtomb-w32-1.sh: New file.
23458         * tests/test-wcrtomb-w32-2.sh: New file.
23459         * tests/test-wcrtomb-w32-3.sh: New file.
23460         * tests/test-wcrtomb-w32-4.sh: New file.
23461         * tests/test-wcrtomb-w32-5.sh: New file.
23462         * tests/test-wcrtomb-w32.c: New file.
23463         * modules/wcrtomb-tests (Files): Add them.
23464         (Makefile.am): Arrange to run these tests.
23465         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23466         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23467
23468 2011-02-20  Bruno Haible  <bruno@clisp.org>
23469
23470         wcrtomb: Enhance test.
23471         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23472
23473 2011-02-20  Bruno Haible  <bruno@clisp.org>
23474
23475         mbrtowc: Tiny optimization.
23476         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23477
23478 2011-02-20  Jim Meyering  <meyering@redhat.com>
23479
23480         test-exclude.c: remove unmatched #endif
23481         * tests/test-exclude.c: Remove stray #endif, left over from
23482         the change of a week ago.
23483
23484 2011-02-19  Jim Meyering  <meyering@redhat.com>
23485
23486         git-version-gen: skip "-dirty" check when appropriate
23487         * build-aux/git-version-gen: Don't run any git commands when the
23488         version string comes from .tarball-version.  Prior to this, we
23489         would run git update-index --refresh even from a just-unpacked
23490         tarball directory, and that could affect a .git/ directory in a
23491         parent of the build directory.  Reported by Mike Frysinger.
23492
23493 2011-02-19  Bruno Haible  <bruno@clisp.org>
23494
23495         unictype/property-byname: Reduce the size of the 'data' segment.
23496         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23497
23498 2011-02-19  Bruno Haible  <bruno@clisp.org>
23499
23500         unictype/scripts: Reduce the size of the 'data' segment.
23501         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23502         '%pic'.
23503         * lib/unictype/scripts_byname.gperf: Regenerated.
23504
23505 2011-02-19  Bruno Haible  <bruno@clisp.org>
23506
23507         stdint: Update documentation.
23508         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23509
23510 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         stdint: omit redundant check for wchar.h
23513         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23514         always tests whether wchar.h exists, so remove the now-redundant test.
23515
23516 2011-02-18  Bruno Haible  <bruno@clisp.org>
23517
23518         stdint: Cut dependency to module 'wchar'.
23519         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23520         include the necessary prerequisites.
23521         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23522         * modules/stdint (Depends-on): Remove wchar.
23523         (Makefile.am): Substitute HAVE_WCHAR_H.
23524         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23525
23526 2011-02-18  Eric Blake  <eblake@redhat.com>
23527
23528         longlong: skip, rather than fail, on cross-compilation
23529         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23530         when cross-compiling; regression from 2011-02-16.
23531
23532 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23533
23534         * NEWS: Mention 2011-02-08 change to stdlib.
23535
23536 2011-02-17  Bruno Haible  <bruno@clisp.org>
23537
23538         getloadavg: Add comments about platforms.
23539         * m4/getloadavg.m4: Add comment.
23540         * lib/getloadavg.c: Likewise.
23541
23542 2011-02-17  Bruno Haible  <bruno@clisp.org>
23543
23544         getloadavg: Fix link error on Solaris 2.6.
23545         * modules/getloadavg (Link): New section.
23546         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23547         linking test-getloadavg.
23548         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23549         getloadavg.
23550
23551 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23552
23553         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23554         It was 'int', but this doesn't match the IRIX 6.5 manual.
23555         Suggested by Bruno Haible in
23556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23557
23558 2011-02-17  Bruno Haible  <bruno@clisp.org>
23559
23560         havelib: Fix comments.
23561         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23562         change.
23563
23564 2011-02-17  Bruno Haible  <bruno@clisp.org>
23565
23566         havelib: Update config.rpath.
23567         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23568
23569 2011-02-17  Bruno Haible  <bruno@clisp.org>
23570
23571         getloadavg test: Add some plausibility checks.
23572         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23573         is improbable.
23574
23575 2011-02-16  Eric Blake  <eblake@redhat.com>
23576
23577         maintainer-makefile: make syntax-check a no-op from tarballs
23578         * top/maint.mk (no-vc-detected): New rule.
23579         (local-checks-available): Use it to avoid hanging if someone tries
23580         'make syntax-check' from a tarball.  Also append to any non-syntax
23581         checks already defined in cfg.mk.
23582
23583 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         longlong: tune, particularly for common case of c99
23586
23587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23588         or running anything if c99, or if unsigned long long int does not
23589         work.  In either case, we know the answer without further tests.
23590         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23591         it at most once, and use its results for both long long int and
23592         unsigned long long int.  This is more likely to be efficient in
23593         the common case where the program wants to check for both long
23594         long int and unsigned long long int.
23595         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23596         since the answer is already known.
23597
23598 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23599
23600         getloadavg: set errno
23601         * lib/getloadavg.c: Set errno when returning -1.  If no other
23602         error number looks appropriate, set it to ENOSYS if the getloadavg
23603         looks like it can't possibly ever work, ENOTSUP otherwise.
23604         Suggested by Bruno Haible in
23605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23606
23607         getloadavg: trim unused parts and speed up 'configure'
23608         * NEWS: Document this.
23609         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23610         always compiled if getloadavg is absent.
23611         Move test code to ...
23612         * tests/test-getloadavg.c: New file, containing previous
23613         contents of test from lib/getloadavg.c.  It also contains
23614         suggestions by Bruno Haible in
23615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23616         * modules/getloadavg-tests: New file.
23617         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23618         Do tests in the same order as they're needed for getloadavg.c.
23619         Omit setgid-related tests that generate symbols KMEM_GROUP,
23620         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23621         Do only the tests that are needed to see whether the system has
23622         getloadavg, moving the other tests into ...
23623         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23624         NLIST_NAME_UNION; nobody should be using it.  Do not define
23625         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23626         relevant, as the user of this module shouldn't care how getloadavg
23627         is implemented.
23628
23629         getloadavg: omit unused var
23630         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23631
23632 2011-02-15  Jim Meyering  <meyering@redhat.com>
23633
23634         doc: update users.txt
23635         * users.txt: Update iwhd's URL.
23636
23637 2011-02-13  Bruno Haible  <bruno@clisp.org>
23638
23639         Consistent macro naming for macros that use GCC __attribute__.
23640         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23641         _ATTRIBUTE_NONNULL_.
23642         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23643         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23644         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23645         ATTRIBUTE_DEPRECATED.
23646         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23647         ATTRIBUTE_NORETURN.
23648         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23649         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23650         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23651         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23652         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23653         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23654         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23655         ATTRIBUTE_SENTINEL.
23656         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23657         ATTRIBUTE_RETURN_CHECK.
23658         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23659         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23660         ATTRIBUTE_NORETURN.
23661         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23662         Reported by Paul Eggert.
23663
23664 2011-02-13  Bruno Haible  <bruno@clisp.org>
23665
23666         Don't interfere with a program's definition of __attribute__.
23667         * lib/argp.h (__attribute__): Remove definition.
23668         (_GL_ATTRIBUTE_FORMAT): New macro.
23669         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23670         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23671         (_GL_ATTRIBUTE_FORMAT): New macro.
23672         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23673         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23674         GCC 3 or newer.
23675         * lib/error.h (__attribute__): Remove definition.
23676         (_GL_ATTRIBUTE_FORMAT): New macro.
23677         (error, error_at_line): Use it.
23678         * lib/hash.h (__attribute__): Remove definition.
23679         (ATTRIBUTE_WUR): Update definition. Define always.
23680         * lib/openat.h (__attribute__): Remove definition.
23681         (ATTRIBUTE_NORETURN): Update definition. Define always.
23682         * lib/sigpipe-die.h (__attribute__): Remove definition.
23683         (ATTRIBUTE_NORETURN): Update definition. Define always.
23684         * lib/vasnprintf.h (__attribute__): Remove definition.
23685         (_GL_ATTRIBUTE_FORMAT): New macro.
23686         (asnprintf, vasnprintf): Use it.
23687         * lib/xalloc.h (__attribute__): Remove definition.
23688         (ATTRIBUTE_NORETURN): Update definition. Define always.
23689         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23690         * lib/xmemdup0.h (__attribute__): Remove definition.
23691         (ATTRIBUTE_NORETURN): Update definition. Define always.
23692         * lib/xprintf.h (__attribute__): Remove definition.
23693         (_GL_ATTRIBUTE_FORMAT): New macro.
23694         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23695         * lib/xstrtol.h (__attribute__): Remove definition.
23696         (ATTRIBUTE_NORETURN): Update definition. Define always.
23697         * lib/xvasprintf.h (__attribute__): Remove definition.
23698         (_GL_ATTRIBUTE_FORMAT): New macro.
23699         (xasprintf, xvasprintf): Use it.
23700         * tests/test-argmatch.c (__attribute__): Remove definition.
23701         (ATTRIBUTE_NORETURN): Update definition. Define always.
23702         * tests/test-exclude.c (__attribute__): Remove definition.
23703         (ATTRIBUTE_NORETURN): Update definition. Define always.
23704         Reported by Paul Eggert.
23705
23706 2011-02-13  Bruno Haible  <bruno@clisp.org>
23707
23708         mbrtowc: Add more tests for native Windows platforms.
23709         * tests/test-mbrtowc-w32-1.sh: New file.
23710         * tests/test-mbrtowc-w32-2.sh: New file.
23711         * tests/test-mbrtowc-w32-3.sh: New file.
23712         * tests/test-mbrtowc-w32-4.sh: New file.
23713         * tests/test-mbrtowc-w32-5.sh: New file.
23714         * tests/test-mbrtowc-w32.c: New file.
23715         * modules/mbrtowc-tests (Files): Add them.
23716         (Makefile.am): Arrange to run these tests.
23717         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23718         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23719
23720 2011-02-13  Bruno Haible  <bruno@clisp.org>
23721
23722         mbrtowc: Work around native Windows bug.
23723         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23724         guess when no suitable locale for testing was found.
23725         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23726
23727 2011-02-13  Bruno Haible  <bruno@clisp.org>
23728
23729         mbsinit: Work around mingw bug.
23730         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23731         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23732         Windows.
23733         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23734
23735 2011-02-13  Bruno Haible  <bruno@clisp.org>
23736
23737         mbsinit: Don't crash for a NULL argument.
23738         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23739         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23740
23741 2011-02-13  Bruno Haible  <bruno@clisp.org>
23742
23743         Don't interfere with a program's definition of __attribute__.
23744         * lib/stdio.in.h (__attribute__): Remove definition.
23745         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23746         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23747         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23748         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23749         * lib/string.in.h (__attribute__): Remove definition.
23750         Reported by Paul Eggert.
23751
23752 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23753
23754         stdlib: don't get in the way of non-GCC __attribute__
23755         See thread starting at
23756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23757         Revert previous stdlib change, installing the following instead:
23758         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23759         to get in the way of a non-GCC compiler that supports __attribute__.
23760         (_GL_ATTRIBUTE_RETURN): New macro.
23761         (_Exit): Use it instead of __attribute__.
23762
23763 2011-02-12  Bruno Haible  <bruno@clisp.org>
23764
23765         quotearg test: Avoid test failure on mingw.
23766         * tests/test-quotearg.sh: Convert the locale identifier from native
23767         Windows syntax to Unix syntax.
23768
23769 2011-02-12  Bruno Haible  <bruno@clisp.org>
23770
23771         setlocale: Prefer gnulib's override over libintl's override.
23772         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23773         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23774         GNULIB_defined_setlocale is set.
23775
23776 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         stdlib: support non-GCC __attribute__
23779
23780         Fix a serious and tricky problem encountered when attempting to
23781         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23782         5.5, but it crashed due to memory corruption on Solaris 10 with
23783         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23784         bits that are otherwise zero.  This tagging is optional inside
23785         Emacs but is preferred and is used when __attribute__ ((__aligned
23786         (8))) works, as it does with both recent-enough GCC and with Sun C
23787         5.11.  However, Sun C 5.11 is not GCC and does not #define
23788         __GNUC__ and __GNUC_MINOR__.
23789
23790         When I added the getloadavg module to Emacs, it brought in
23791         stdlib.in.h, which contained this fragment:
23792
23793            #ifndef __attribute__
23794            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23795            #  define __attribute__(Spec)   /* empty */
23796            # endif
23797            #endif
23798
23799         When files that include <stdlib.h> were compiled with Sun C 5.11,
23800         the above code disabled __attribute__ ((__aligned (8))), which
23801         caused variables to not be properly aligned, which eventually led
23802         to the pointer corruption mentioned above.  (This was a bit hard
23803         to diagnose, unfortunately.)
23804
23805         Several "#define __attribute__(X) /* empty */" code snippets need
23806         to be eradicated from Gnulib to work with non-GCC compilers that
23807         support __attribute__.  The Autoconf way to do this is to test for
23808         each kind of attribute that we want support for, and selectively
23809         enable that in source code.
23810
23811         Fix this problem just for stdlib.h, by adding a test for the
23812         __noreturn__ attribute, and change stdlib.in.h to use that test
23813         when needed.  This technique can be easily generalized to the
23814         other *.in.h files and attributes, and a similar technique can be
23815         used for *.h and *.c files.  This patch is enough to solve the
23816         problem for Emacs + getloadavg, and I thought I'd publish it for
23817         feedback before undertaking further, similar fixes in other
23818         modules.
23819
23820         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23821         because it's not needed for stdlib.h.  It merely substitutes the
23822         value directly into stdlib.h.  We may well need to #define it, or
23823         similar symbols, for other modules, but it's nice to also have an
23824         option to not #define it for applications like Emacs that do not
23825         need it.
23826
23827         * lib/stdlib.in.h (__attribute__): Do not #define.
23828         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23829         be defined only if the _Exit module is also used.
23830         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23832         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23833         platforms.
23834         * modules/_Exit (Files): Add m4/attribute.m4.
23835         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23836         * m4/attribute.m4: New file.
23837
23838 2011-02-12  Bruno Haible  <bruno@clisp.org>
23839
23840         wcsrtombs: Work around bug on native Windows.
23841         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23842         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23843         instead of len.
23844         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23845
23846 2011-02-12  Bruno Haible  <bruno@clisp.org>
23847
23848         mbsrtowcs: Work around bug on native Windows.
23849         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23850         against mingw bug.
23851         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23852
23853 2011-02-12  Bruno Haible  <bruno@clisp.org>
23854
23855         Avoid setlocale bugs in tests.
23856         * modules/btowc (Dependencies): Add setlocale.
23857         * modules/c-strcase (Dependencies): Likewise.
23858         * modules/mbmemcasecmp (Dependencies): Likewise.
23859         * modules/mbmemcasecoll (Dependencies): Likewise.
23860         * modules/mbrtowc (Dependencies): Likewise.
23861         * modules/mbscasecmp (Dependencies): Likewise.
23862         * modules/mbscasestr (Dependencies): Likewise.
23863         * modules/mbschr (Dependencies): Likewise.
23864         * modules/mbscspn (Dependencies): Likewise.
23865         * modules/mbsinit (Dependencies): Likewise.
23866         * modules/mbsncasecmp (Dependencies): Likewise.
23867         * modules/mbsnrtowcs (Dependencies): Likewise.
23868         * modules/mbspbrk (Dependencies): Likewise.
23869         * modules/mbspcasecmp (Dependencies): Likewise.
23870         * modules/mbsrchr (Dependencies): Likewise.
23871         * modules/mbsrtowcs (Dependencies): Likewise.
23872         * modules/mbsspn (Dependencies): Likewise.
23873         * modules/mbsstr (Dependencies): Likewise.
23874         * modules/nl_langinfo (Dependencies): Likewise.
23875         * modules/quotearg (Dependencies): Likewise.
23876         * modules/unicase/locale-language (Dependencies): Likewise.
23877         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23878         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23879         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23880         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23881         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23882         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23883         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23884         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23885         * modules/vasnprintf-posix (Dependencies): Likewise.
23886         * modules/wcrtomb (Dependencies): Likewise.
23887         * modules/wcsnrtombs (Dependencies): Likewise.
23888         * modules/wcsrtombs (Dependencies): Likewise.
23889
23890 2011-02-12  Bruno Haible  <bruno@clisp.org>
23891
23892         setlocale: Workaround native Windows bug.
23893         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23894         succeeds but sets LC_CTYPE to "C", report a failure.
23895         * tests/test-setlocale2.sh: New file.
23896         * tests/test-setlocale2.c: New file.
23897         * modules/setlocale-tests (Files): Add the new files.
23898         (Makefile.am): Enable test-setlocale2.sh test.
23899         * doc/posix-functions/setlocale.texi: Mention workaround.
23900
23901 2011-02-11  Bruno Haible  <bruno@clisp.org>
23902
23903         Tests for module 'setlocale'.
23904         * modules/setlocale-tests: New file.
23905         * tests/test-setlocale1.sh: New file.
23906         * tests/test-setlocale1.c: New file.
23907
23908         New module 'setlocale'.
23909         * lib/locale.in.h (setlocale): New declaration.
23910         * lib/setlocale.c: New file, based on
23911         gettext/gettext-runtime/intl/setlocale.c.
23912         * m4/setlocale.m4: New file.
23913         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23914         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23915         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23916         REPLACE_SETLOCALE.
23917         * modules/setlocale: New file.
23918         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23919         * doc/posix-functions/setlocale.texi: Mention the new module.
23920
23921 2011-02-11  Bruno Haible  <bruno@clisp.org>
23922
23923         Prepare for locale dependent tests on mingw.
23924         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23925         because it has the wrong locale encoding.
23926         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23927         French_France.1252 instead of "fr".
23928         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23929         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23930         because it has the wrong locale encoding.
23931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23932         native Windows, try Turkish_Turkey.65001.
23933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23934         Chinese_China.54936.
23935
23936         Prepare for locale dependent tests on mingw.
23937         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23938         differently.
23939         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23940         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23942         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23943
23944 2011-02-11  Eric Blake  <eblake@redhat.com>
23945
23946         strptime: avoid compiler warnings
23947         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23948         compiler warnings about dead code.
23949         Reported by Daniel P. Berrange.
23950
23951 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23952
23953         doc: update users.txt
23954         * users.txt: Add rcs.
23955
23956 2011-02-10  John W. Eaton  <jwe@gnu.org>
23957
23958         doc: update users.txt
23959         * users.txt: Add octave.
23960
23961 2011-02-10  Jim Meyering  <meyering@redhat.com>
23962
23963         doc: update users.txt
23964         * users.txt: Add iwhd.
23965
23966 2011-02-09  Bruno Haible  <bruno@clisp.org>
23967
23968         gnulib-tool: Make copyright notice adjustment more robust.
23969         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23970         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23971         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23972         License".
23973         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23974
23975 2011-02-06  Bruno Haible  <bruno@clisp.org>
23976
23977         New module 'towctrans'.
23978         * modules/towctrans: New file.
23979         * lib/wctype.in.h (towctrans): New declaration.
23980         * lib/towctrans.c: New file.
23981         * lib/towctrans-impl.h: New file.
23982         * m4/towctrans.m4: New file.
23983         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23984         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23985         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23986         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23987         * doc/posix-functions/towctrans.texi: Mention the new module.
23988
23989 2011-02-06  Bruno Haible  <bruno@clisp.org>
23990
23991         New module 'wctrans'.
23992         * modules/wctrans: New file.
23993         * lib/wctype.in.h (wctrans): New declaration.
23994         * lib/wctrans.c: New file.
23995         * lib/wctrans-impl.h: New file.
23996         * m4/wctrans.m4: New file.
23997         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23998         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23999         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24000         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24001         * doc/posix-functions/wctrans.texi: Mention the new module.
24002
24003 2011-02-06  Bruno Haible  <bruno@clisp.org>
24004
24005         New module 'iswctype'.
24006         * modules/iswctype: New file.
24007         * lib/wctype.in.h (iswctype): New declaration.
24008         * lib/iswctype.c: New file.
24009         * lib/iswctype-impl.h: New file.
24010         * m4/iswctype.m4: New file.
24011         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24012         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24013         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24014         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24015         * doc/posix-functions/iswctype.texi: Mention the new module and the
24016         HP-UX 11.00 problem.
24017
24018 2011-02-06  Bruno Haible  <bruno@clisp.org>
24019
24020         New module 'wctype'.
24021         * modules/wctype: Change to represent the wctype() substitute.
24022         * lib/wctype.in.h (wctype): New declaration.
24023         * lib/wctype.c: New file.
24024         * lib/wctype-impl.h: New file.
24025         * m4/wctype.m4: New file.
24026         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24027         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24028         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24029         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24030         * doc/posix-functions/wctype.texi: Mention the new module and the
24031         HP-UX 11.00 problem.
24032
24033 2011-02-06  Bruno Haible  <bruno@clisp.org>
24034
24035         wctype-h: Ensure wctype_t and wctrans_t are defined.
24036         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24037         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24038         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24039         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24040         HAVE_WCTRANS_T.
24041         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24042
24043 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24044
24045         flock: fix license typo
24046
24047         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24048         omitted.
24049
24050 2011-02-08  Bruno Haible  <bruno@clisp.org>
24051
24052         Split large sed scripts, for HP-UX sed.
24053         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24054         to avoid HP-UX limit of 99 commands, in the near future.
24055         * modules/stdlib (Makefile.am): Likewise.
24056         * modules/unistd (Makefile.am): Likewise.
24057         * modules/wchar (Makefile.am): Likewise.
24058         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24059         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24061
24062 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24063             Bruno Haible  <bruno@clisp.org>
24064
24065         stdlib: improve random_r modularization
24066         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24067         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24068         you also need the random_r module to get this material right.
24069         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24070         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24071         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24072
24073 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24074
24075         stdlib: don't depend on stdint
24076         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24077         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24078         be independent of whether stdint.h is needed.
24079         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24080         here, instead of ...
24081         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24082         struct random_data should be using the random_r module, not just
24083         the stdlib module (which wouldn't make sense: what package needs
24084         just struct random_data without also needing random_r?).
24085         * modules/stdlib (Depends-on): Remove stdint.
24086
24087         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24088         See the thread rooted at
24089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24090         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24091         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24092         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24093         __VMS)); previously it was always included (via fcntl--.h).
24094         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24095         hand; this is good enough for load averages.  Also, do not use
24096         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24097         flags directly if available and don't bother otherwise.  (Packages
24098         that need the extra reliability should use the modules that define
24099         these flags on older platforms that lack them.)
24100         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24101         fcntl-safer.
24102
24103 2011-02-08  Jim Meyering  <meyering@redhat.com>
24104
24105         di-set.h, ino-map.h: add multiple-inclusion guard
24106         Technically, the guard is required only for ino-map.h, due to its
24107         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24108         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24109         * lib/ino-map.h: Likewise.
24110
24111 2011-02-06  Bruno Haible  <bruno@clisp.org>
24112
24113         iswblank: Ensure declaration on glibc systems.
24114         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24115         * modules/iswblank (Dependencies): Add 'extensions'.
24116         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24117
24118 2011-02-06  Bruno Haible  <bruno@clisp.org>
24119
24120         New module 'iswblank'.
24121         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24122         * modules/iswblank: New file.
24123         * modules/wctype-h (Files): Remove lib/iswblank.c.
24124         (Makefile.am): Substitute GNULIB_ISWBLANK.
24125         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24126         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24127         (gl_WCTYPE_H_DEFAULTS): New macro.
24128         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24129         * modules/iswblank-tests: New file.
24130         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24131         * tests/test-wctype-h.c (main): Remove iswblank tests.
24132         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24133         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24134         of 'wctype-h'.
24135         * NEWS: Mention the change.
24136         * modules/mbchar (Depends-on): Add iswblank.
24137
24138 2011-02-08  Bruno Haible  <bruno@clisp.org>
24139
24140         di-set tests: Refactor.
24141         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24142         unnecessary includes.
24143         (ASSERT): Remove macro.
24144         (main): Make C90 compliant by avoiding variable declaration after
24145         statement.
24146         * modules/di-set-tests (Files): Add tests/macros.h.
24147
24148 2011-02-08  Bruno Haible  <bruno@clisp.org>
24149
24150         ino-map tests: Refactor.
24151         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24152         unnecessary includes.
24153         (ASSERT): Remove macro.
24154         (main): Make C90 compliant by avoiding variable declaration after
24155         statement.
24156         * modules/ino-map-tests (Files): Add tests/macros.h.
24157
24158 2011-02-08  Jim Meyering  <meyering@redhat.com>
24159
24160         di-set: add "const" to a cast
24161         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24162         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24163
24164 2011-02-06  Bruno Haible  <bruno@clisp.org>
24165
24166         Rename module 'wctype' to 'wctype-h'.
24167         * modules/wctype-h: Renamed from modules/wctype.
24168         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24169         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24170         (Files, Depends-on, Makefile.am): Update.
24171         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24172         (Files, Makefile.am): Update.
24173         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24174         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24175         * doc/posix-headers/wctype.texi: Update.
24176         * doc/posix-functions/iswalnum.texi: Update.
24177         * doc/posix-functions/iswalpha.texi: Update.
24178         * doc/posix-functions/iswblank.texi: Update.
24179         * doc/posix-functions/iswcntrl.texi: Update.
24180         * doc/posix-functions/iswdigit.texi: Update.
24181         * doc/posix-functions/iswgraph.texi: Update.
24182         * doc/posix-functions/iswlower.texi: Update.
24183         * doc/posix-functions/iswprint.texi: Update.
24184         * doc/posix-functions/iswpunct.texi: Update.
24185         * doc/posix-functions/iswspace.texi: Update.
24186         * doc/posix-functions/iswupper.texi: Update.
24187         * doc/posix-functions/iswxdigit.texi: Update.
24188         * doc/posix-functions/towlower.texi: Update.
24189         * doc/posix-functions/towupper.texi: Update.
24190         * NEWS: Mention the change.
24191         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24192         * modules/mbchar (Dependencies): Likewise.
24193         * modules/mbswidth (Dependencies): Likewise.
24194         * modules/quotearg (Dependencies): Likewise.
24195         * modules/regex (Dependencies): Likewise.
24196         * modules/wcscasecmp (Dependencies): Likewise.
24197         * modules/wcsncasecmp (Dependencies): Likewise.
24198         * modules/wcwidth (Dependencies): Likewise.
24199
24200 2011-02-06  Bruno Haible  <bruno@clisp.org>
24201
24202         New module 'wcswidth'.
24203         * modules/wcswidth: New file.
24204         * lib/wchar.in.h (wcswidth): New declaration.
24205         * lib/wcswidth.c: New file.
24206         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24207         * m4/wcswidth.m4: New file.
24208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24210         REPLACE_WCSWIDTH.
24211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24212         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24213         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24214         * doc/posix-functions/wcswidth.texi: Mention the new module.
24215
24216 2011-02-06  Bruno Haible  <bruno@clisp.org>
24217
24218         New module 'wcstok'.
24219         * modules/wcstok: New file.
24220         * lib/wchar.in.h (wcstok): New declaration.
24221         * lib/wcstok.c: New file.
24222         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24223         * m4/wcstok.m4: New file.
24224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24227         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24228         * doc/posix-functions/wcstok.texi: Mention the new module.
24229
24230 2011-02-06  Bruno Haible  <bruno@clisp.org>
24231
24232         New module 'wcsstr'.
24233         * modules/wcsstr: New file.
24234         * lib/wchar.in.h (wcsstr): New declaration.
24235         * lib/wcsstr.c: New file.
24236         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24237         * m4/wcsstr.m4: New file.
24238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24241         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24242         * doc/posix-functions/wcsstr.texi: Mention the new module.
24243
24244 2011-02-06  Bruno Haible  <bruno@clisp.org>
24245
24246         New module 'wcspbrk'.
24247         * modules/wcspbrk: New file.
24248         * lib/wchar.in.h (wcspbrk): New declaration.
24249         * lib/wcspbrk.c: New file.
24250         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24251         * m4/wcspbrk.m4: New file.
24252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24255         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24256         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24257
24258 2011-02-06  Bruno Haible  <bruno@clisp.org>
24259
24260         New module 'wcsspn'.
24261         * modules/wcsspn: New file.
24262         * lib/wchar.in.h (wcsspn): New declaration.
24263         * lib/wcsspn.c: New file.
24264         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24265         * m4/wcsspn.m4: New file.
24266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24269         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24270         * doc/posix-functions/wcsspn.texi: Mention the new module.
24271
24272 2011-02-06  Bruno Haible  <bruno@clisp.org>
24273
24274         New module 'wcscspn'.
24275         * modules/wcscspn: New file.
24276         * lib/wchar.in.h (wcscspn): New declaration.
24277         * lib/wcscspn.c: New file.
24278         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24279         * m4/wcscspn.m4: New file.
24280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24283         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24284         * doc/posix-functions/wcscspn.texi: Mention the new module.
24285
24286 2011-02-06  Bruno Haible  <bruno@clisp.org>
24287
24288         New module 'wcsrchr'.
24289         * modules/wcsrchr: New file.
24290         * lib/wchar.in.h (wcsrchr): New declaration.
24291         * lib/wcsrchr.c: New file.
24292         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24293         * m4/wcsrchr.m4: New file.
24294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24297         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24298         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24299
24300 2011-02-06  Bruno Haible  <bruno@clisp.org>
24301
24302         New module 'wcschr'.
24303         * modules/wcschr: New file.
24304         * lib/wchar.in.h (wcschr): New declaration.
24305         * lib/wcschr.c: New file.
24306         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24307         * m4/wcschr.m4: New file.
24308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24311         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24312         * doc/posix-functions/wcschr.texi: Mention the new module.
24313
24314 2011-02-06  Bruno Haible  <bruno@clisp.org>
24315
24316         New module 'wcsdup'.
24317         * modules/wcsdup: New file.
24318         * lib/wchar.in.h (wcsdup): New declaration.
24319         * lib/wcsdup.c: New file.
24320         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24321         * m4/wcsdup.m4: New file.
24322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24325         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24326         * doc/posix-functions/wcsdup.texi: Mention the new module.
24327
24328 2011-02-06  Bruno Haible  <bruno@clisp.org>
24329
24330         New module 'wcsxfrm'.
24331         * modules/wcsxfrm: New file.
24332         * lib/wchar.in.h (wcsxfrm): New declaration.
24333         * lib/wcsxfrm.c: New file.
24334         * lib/wcsxfrm-impl.h: New file.
24335         * m4/wcsxfrm.m4: New file.
24336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24339         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24340         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24341
24342 2011-02-06  Bruno Haible  <bruno@clisp.org>
24343
24344         New module 'wcscoll'.
24345         * modules/wcscoll: New file.
24346         * lib/wchar.in.h (wcscoll): New declaration.
24347         * lib/wcscoll.c: New file.
24348         * lib/wcscoll-impl.h: New file.
24349         * m4/wcscoll.m4: New file.
24350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24353         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24354         * doc/posix-functions/wcscoll.texi: Mention the new module.
24355
24356 2011-02-06  Bruno Haible  <bruno@clisp.org>
24357
24358         New module 'wcsncasecmp'.
24359         * modules/wcsncasecmp: New file.
24360         * lib/wchar.in.h (wcsncasecmp): New declaration.
24361         * lib/wcsncasecmp.c: New file.
24362         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24363         * m4/wcsncasecmp.m4: New file.
24364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24367         HAVE_WCSNCASECMP.
24368         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24369         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24370
24371 2011-02-06  Bruno Haible  <bruno@clisp.org>
24372
24373         New module 'wcscasecmp'.
24374         * modules/wcscasecmp: New file.
24375         * lib/wchar.in.h (wcscasecmp): New declaration.
24376         * lib/wcscasecmp.c: New file.
24377         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24378         * m4/wcscasecmp.m4: New file.
24379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24382         HAVE_WCSCASECMP.
24383         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24384         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24385
24386 2011-02-05  Bruno Haible  <bruno@clisp.org>
24387
24388         New module 'wcsncmp'.
24389         * modules/wcsncmp: New file.
24390         * lib/wchar.in.h (wcsncmp): New declaration.
24391         * lib/wcsncmp.c: New file.
24392         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24393         * m4/wcsncmp.m4: New file.
24394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24397         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24398         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24399
24400 2011-02-05  Bruno Haible  <bruno@clisp.org>
24401
24402         New module 'wcscmp'.
24403         * modules/wcscmp: New file.
24404         * lib/wchar.in.h (wcscmp): New declaration.
24405         * lib/wcscmp.c: New file.
24406         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24407         * m4/wcscmp.m4: New file.
24408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24411         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24412         * doc/posix-functions/wcscmp.texi: Mention the new module.
24413
24414 2011-02-05  Bruno Haible  <bruno@clisp.org>
24415
24416         New module 'wcsncat'.
24417         * modules/wcsncat: New file.
24418         * lib/wchar.in.h (wcsncat): New declaration.
24419         * lib/wcsncat.c: New file.
24420         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24421         * m4/wcsncat.m4: New file.
24422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24425         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24426         * doc/posix-functions/wcsncat.texi: Mention the new module.
24427
24428 2011-02-05  Bruno Haible  <bruno@clisp.org>
24429
24430         New module 'wcscat'.
24431         * modules/wcscat: New file.
24432         * lib/wchar.in.h (wcscat): New declaration.
24433         * lib/wcscat.c: New file.
24434         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24435         * m4/wcscat.m4: New file.
24436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24439         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24440         * doc/posix-functions/wcscat.texi: Mention the new module.
24441
24442 2011-02-05  Bruno Haible  <bruno@clisp.org>
24443
24444         New module 'wcpncpy'.
24445         * modules/wcpncpy: New file.
24446         * lib/wchar.in.h (wcpncpy): New declaration.
24447         * lib/wcpncpy.c: New file.
24448         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24449         * m4/wcpncpy.m4: New file.
24450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24452         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24453         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24454         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24455
24456 2011-02-05  Bruno Haible  <bruno@clisp.org>
24457
24458         New module 'wcsncpy'.
24459         * modules/wcsncpy: New file.
24460         * lib/wchar.in.h (wcsncpy): New declaration.
24461         * lib/wcsncpy.c: New file.
24462         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24463         * m4/wcsncpy.m4: New file.
24464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24467         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24468         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24469
24470 2011-02-05  Bruno Haible  <bruno@clisp.org>
24471
24472         New module 'wcpcpy'.
24473         * modules/wcpcpy: New file.
24474         * lib/wchar.in.h (wcpcpy): New declaration.
24475         * lib/wcpcpy.c: New file.
24476         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24477         * m4/wcpcpy.m4: New file.
24478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24480         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24481         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24482         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24483
24484 2011-02-05  Bruno Haible  <bruno@clisp.org>
24485
24486         New module 'wcscpy'.
24487         * modules/wcscpy: New file.
24488         * lib/wchar.in.h (wcscpy): New declaration.
24489         * lib/wcscpy.c: New file.
24490         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24491         * m4/wcscpy.m4: New file.
24492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24495         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24496         * doc/posix-functions/wcscpy.texi: Mention the new module.
24497
24498 2011-02-05  Bruno Haible  <bruno@clisp.org>
24499
24500         New module 'wcsnlen'.
24501         * modules/wcsnlen: New file.
24502         * lib/wchar.in.h (wcsnlen): New declaration.
24503         * lib/wcsnlen.c: New file.
24504         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24505         * m4/wcsnlen.m4: New file.
24506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24509         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24510         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24511
24512 2011-02-05  Bruno Haible  <bruno@clisp.org>
24513
24514         New module 'wcslen'.
24515         * modules/wcslen: New file.
24516         * lib/wchar.in.h (wcslen): New declaration.
24517         * lib/wcslen.c: New file.
24518         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24519         * m4/wcslen.m4: New file.
24520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24523         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24524         * doc/posix-functions/wcslen.texi: Mention the new module.
24525
24526 2011-02-05  Bruno Haible  <bruno@clisp.org>
24527
24528         New module 'wmemset'.
24529         * modules/wmemset: New file.
24530         * lib/wchar.in.h (wmemset): New declaration.
24531         * lib/wmemset.c: New file.
24532         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24533         * m4/wmemset.m4: New file.
24534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24536         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24537         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24538         * doc/posix-functions/wmemset.texi: Mention the new module.
24539
24540 2011-02-05  Bruno Haible  <bruno@clisp.org>
24541
24542         New module 'wmemmove'.
24543         * modules/wmemmove: New file.
24544         * lib/wchar.in.h (wmemmove): New declaration.
24545         * lib/wmemmove.c: New file.
24546         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24547         * m4/wmemmove.m4: New file.
24548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24550         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24551         HAVE_WMEMMOVE.
24552         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24553         * doc/posix-functions/wmemmove.texi: Mention the new module.
24554
24555 2011-02-05  Bruno Haible  <bruno@clisp.org>
24556
24557         New module 'wmemcpy'.
24558         * modules/wmemcpy: New file.
24559         * lib/wchar.in.h (wmemcpy): New declaration.
24560         * lib/wmemcpy.c: New file.
24561         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24562         * m4/wmemcpy.m4: New file.
24563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24565         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24566         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24567         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24568
24569 2011-02-05  Bruno Haible  <bruno@clisp.org>
24570
24571         New module 'wmemcmp'.
24572         * modules/wmemcmp: New file.
24573         * lib/wchar.in.h (wmemcmp): New declaration.
24574         * lib/wmemcmp.c: New file.
24575         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24576         * m4/wmemcmp.m4: New file.
24577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24579         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24580         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24581         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24582
24583 2011-02-07  Jim Meyering  <meyering@redhat.com>
24584
24585         di-set, ino-map: new modules, from coreutils
24586         * lib/di-set.c: New file.
24587         * lib/di-set.h: Likewise.
24588         * lib/ino-map.c: Likewise.
24589         * lib/ino-map.h: Likewise.
24590         * modules/di-set: Likewise.
24591         * modules/di-set-tests: Likewise.
24592         * modules/ino-map: Likewise.
24593         * modules/ino-map-tests: Likewise.
24594         * tests/test-di-set.c: Likewise.
24595         * tests/test-ino-map.c: Likewise.
24596
24597 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         getloadavg: merge minor changes from Emacs
24600
24601         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24602         (getloadavg): Use memset, not bzero.
24603
24604         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24605         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24606         clash (bug#86).
24607
24608 2010-11-14  Bruno Haible  <bruno@clisp.org>
24609
24610         Allow multiple gnulib generated replacements to coexist.
24611         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24612         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24613         * lib/langinfo.in.h (nl_item): Likewise.
24614         * lib/math.in.h (_NaN, NAN): Likewise.
24615         * lib/netdb.in.h (struct addrinfo): Likewise.
24616         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24617         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24618         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24619         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24620         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24621         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24622         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24623         pthread_mutexattr_init, pthread_mutexattr_settype,
24624         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24625         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24626         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24627         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24628         * lib/sched.in.h (struct sched_param): Likewise.
24629         * lib/se-selinux.in.h (security_class_t, security_context_t,
24630         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24631         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24632         lsetfilecon, fsetfilecon, security_check_context,
24633         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24634         Likewise.
24635         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24636         Likewise.
24637         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24638         _gl_function_taking_int_returning_void_t, union sigval,
24639         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24640         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24641         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24642         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24643         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24644         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24645         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24646         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24647         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24648         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24649         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24650         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24651         socklen_t, rpl_fd_isset): Likewise.
24652         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24653         * lib/sys_time.in.h (struct timeval): Likewise.
24654         * lib/sys_times.in.h (struct tms): Likewise.
24655         * lib/sys_utsname.in.h (struct utsname):
24656         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24657         * lib/unistd.in.h (getpagesize): Likewise.
24658         * lib/wchar.in.h (mbstate_t): Likewise.
24659         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24660         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24661         towlower, towupper): Likewise.
24662         Reported by Sam Steingold <sds@gnu.org>.
24663
24664 2011-02-05  Eric Blake  <eblake@redhat.com>
24665
24666         unsetenv: work around Haiku issues
24667         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24668         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24669
24670 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24671
24672         libposix: avoid calling error() within libposix
24673         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24674         is defined.
24675
24676 2011-02-05  Eric Blake  <eblake@redhat.com>
24677
24678         strerror_r-posix: port to cygwin
24679         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24680         implementation.
24681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24682         * tests/test-strerror_r.c (main): Fix test.
24683         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24684         issue.
24685
24686 2011-02-05  Bruno Haible  <bruno@clisp.org>
24687
24688         New module 'wmemchr'.
24689         * modules/wmemchr: New file.
24690         * lib/wchar.in.h (wmemchr): New declaration.
24691         * lib/wmemchr.c: New file.
24692         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24693         * m4/wmemchr.m4: New file.
24694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24696         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24697         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24698         * doc/posix-functions/wmemchr.texi: Mention the new module.
24699
24700 2011-02-04  Eric Blake  <eblake@redhat.com>
24701
24702         fdopendir: detect FreeBSD bug
24703         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24704         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24705
24706 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24707
24708         stdbool: do not define HAVE_STDBOOL_H
24709         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24710         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24711         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24712         imported from the latest Autoconf git.  It was motivated by Emacs,
24713         which uses gnulib but does not need HAVE_STDBOOL_H.
24714
24715 2011-02-04  Bruno Haible  <bruno@clisp.org>
24716
24717         wcsnrtombs: Prepare for new module wwcsnrtombs.
24718         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24719         * lib/wcsnrtombs.c: Include it.
24720         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24721
24722         wcsrtombs: Prepare for new module wwcsrtombs.
24723         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24724         * lib/wcsrtombs.c: Include it.
24725         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24726
24727         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24728         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24729         * lib/mbsnrtowcs.c: Include it.
24730         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24731
24732         mbsrtowcs: Prepare for new module mbsrtowwcs.
24733         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24734         * lib/mbsrtowcs.c: Include it.
24735         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24736
24737 2011-02-04  Bruno Haible  <bruno@clisp.org>
24738
24739         vasnprintf: Reduce use of malloc for small format strings.
24740         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24741         (arguments): Add room for the first 7 arguments.
24742         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24743         (char_directives, u8_directives, u16_directives, u32_directives): Add
24744         room for the first 7 directives.
24745         * lib/printf-parse.c: Include <string.h>.
24746         (PRINTF_PARSE): Change memory handling code so that it uses the first
24747         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24748         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24749         Reported by Pádraig Brady <P@draigbrady.com>.
24750
24751 2011-01-31  Eric Blake  <eblake@redhat.com>
24752
24753         dup2: work around Haiku bug
24754         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24755         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24756         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24757         * tests/test-dup2.c (main): Enhance test.
24758
24759 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24760
24761         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24762         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24763         declared by eglibc 2.11.2.
24764         * lib/stdio.in.h: Likewise.
24765
24766 2011-01-31  Eric Blake  <eblake@redhat.com>
24767
24768         ignore-value: add missing test dependency
24769         * tests/test-ignore-value.c: Revert previous change; stdio.h
24770         provides off_t.
24771         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24772
24773 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24774
24775         mktime: clarify long_int width checking
24776         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24777         the top level, to make it clearer that the assumption about
24778         long_int width is being checked.  See
24779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24780
24781 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24782
24783         ignore-value: Fix self-test.
24784         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24785
24786 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24787
24788         TYPE_MAXIMUM: avoid theoretically undefined behavior
24789         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24790         negative number, which the C Standard says has undefined behavior.
24791         In practice this is not a problem, but might as well do it by the book.
24792         Reported by Rich Felker and Eric Blake; see
24793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24794         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24795         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24797         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24798         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24799         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24800
24801         mktime: #undef mktime before #defining it
24802         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24803
24804         mktime: systematically normalize tm_isdst comparisons
24805         * lib/mktime.c (isdst_differ): New function.
24806         (__mktime_internal): Use it systematically for all isdst comparisons.
24807         This completes the fix for libc BZ #6723, and removes the need for
24808         normalizing tm_isdst.  See
24809         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24810         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24811
24812         mktime: fix some integer overflow issues and sidestep the rest
24813
24814         This was prompted by a bug report by Benjamin Lindner for MinGW
24815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24816         His bug is due to signed integer overflow (0 - INT_MIN), and I
24817         I scanned through mktime.c looking for other integer overflow
24818         problems, fixing all the bugs I found.
24819
24820         Although the C Standard says the resulting code is still not safe
24821         in the presence of integer overflow, in practice it should be good
24822         enough for all real-world two's-complement implementations, except
24823         for debugging environments that deliberately trap on integer
24824         overflow (e.g., gcc -ftrapv).
24825
24826         * lib/mktime.c (WRAPV): New macro.
24827         (SHR): Also check that long_int and time_t shift right in the
24828         usual way, before using the fast-but-unportable method.
24829         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24830         used.  The code already assumed two's complement, so there's
24831         no need to test for alternatives.  All uses removed.
24832         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24833         the C standard.  Problem reported by Rich Felker in
24834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24835         (twos_complement_arithmetic): Also check long_int and time_t.
24836         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24837         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24838         (__mktime_internal): Avoid integer overflow with unary subtraction
24839         in two instances where -1 - X is an adequate replacement for -X,
24840         since the calculations are approximate.
24841
24842 2011-01-29  Eric Blake  <eblake@redhat.com>
24843
24844         mktime: avoid infinite loop
24845         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24846         type; behavior is still undefined but portable to all known targets.
24847         Reported by Rich Felker.
24848
24849 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24850
24851         rename, unlink, same-inode: Relicense.
24852         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24853         * modules/unlink (License): Likewise.
24854         * modules/same-inode (License): Likewise.
24855
24856 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         mktime: avoid problems on NetBSD 5 / i386
24859         * lib/mktime.c (long_int): New type.  This works around a problem
24860         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24861         but time_t is 64 bits, and where I expect the existing code is
24862         wrong in some cases.
24863         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24864         (ydhms_diff): Bring back the compile-time check for wide-enough
24865         year and yday.
24866
24867         mktime: fix misspelling in comment
24868         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24869         This merges all recent glibc changes of importance.
24870
24871 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24872
24873         move-if-change: cope with concurrent mv of identical file.
24874         * build-aux/move-if-change (CMPPROG): Accept environment
24875         variable as an override for `cmp'.
24876         (usage): Document CMPPROG.
24877         Adjust comparison to drop stdout.  Cope with failure of mv if
24878         the target file exists and is identical to the source, for
24879         parallel builds.
24880         Report from H.J. Lu against binutils in PR binutils/12283.
24881
24882 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24883
24884         * users.txt: Mention sharutils.
24885
24886 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24887
24888         * users.txt: Mention OATH Toolkit.
24889
24890 2011-01-27  Bruno Haible  <bruno@clisp.org>
24891
24892         Prepare for supporting FreeBSD 10.
24893         * build-aux/config.libpath: Remove handling of freebsd1*.
24894
24895 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24896
24897         Prepare for supporting FreeBSD 10.
24898         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24899         match FreeBSD 10.0.
24900
24901 2011-01-27  Bruno Haible  <bruno@clisp.org>
24902
24903         vma-iter, get-rusage-as: Add OpenBSD support.
24904         * modules/vma-iter (configure.ac): Test for mquery.
24905         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24906         * lib/vma-iter.c: Include <sys/mman.h>.
24907         (vma_iterate): Add an implementation based on mquery().
24908         * lib/resource-ext.h (get_rusage_as): Update comments.
24909         * lib/get-rusage-as.c: Likewise.
24910         * lib/get-rusage-data.c: Likewise.
24911
24912 2011-01-26  Karl Berry  <karl@gnu.org>
24913
24914         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24915         variables to make it easier to override the makeinfo program used.
24916
24917 2011-01-26  Eric Blake  <eblake@redhat.com>
24918
24919         fcntl: work around Haiku F_DUPFD bugs
24920         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24921         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24922         cloexec bit on duplication.
24923         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24924
24925 2011-01-26  Bruno Haible  <bruno@clisp.org>
24926
24927         Enable memory leak tests on AIX.
24928         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24929         * tests/test-fprintf-posix3.c (main): Likewise.
24930
24931 2011-01-26  Bruno Haible  <bruno@clisp.org>
24932
24933         Tests for module 'get-rusage-data'.
24934         * modules/get-rusage-data-tests: New file.
24935         * tests/test-get-rusage-data.c: New file.
24936
24937         New module 'get-rusage-data'.
24938         * lib/resource-ext.h (get_rusage_data): New declaration.
24939         * lib/get-rusage-data.c: New file.
24940         * modules/get-rusage-data: New file.
24941
24942 2011-01-25  Bruno Haible  <bruno@clisp.org>
24943
24944         get-rusage-as: Allow for easier testing.
24945         * lib/resource-ext.h (get_rusage_as): Add comment.
24946         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24947         (main): New function for interactive testing.
24948
24949 2011-01-25  Bruno Haible  <bruno@clisp.org>
24950
24951         vma-iter: Treat Haiku like BeOS.
24952         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24953         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24954
24955 2011-01-25  Eric Blake  <eblake@redhat.com>
24956
24957         c-stack: fix regression on cygwin when libsigsegv is present
24958         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24959
24960 2011-01-24  Bruno Haible  <bruno@clisp.org>
24961
24962         vma-iter: Avoid empty intervals.
24963         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24964         on an empty interval.
24965
24966 2011-01-24  Jim Meyering  <meyering@redhat.com>
24967
24968         u64: remove unnecessary #include
24969         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24970
24971 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24972
24973         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24974         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24975
24976 2011-01-23  Bruno Haible  <bruno@clisp.org>
24977
24978         New module 'vma-iter'.
24979         * lib/vma-iter.h: New file.
24980         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24981         * modules/vma-iter: New file.
24982         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24983         for get_rusage_as_via_iterator.
24984         (vma_iterate_callback): New function.
24985         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24986         * modules/get-rusage-as (Depends-on): Add vma-iter.
24987
24988 2011-01-23  Bruno Haible  <bruno@clisp.org>
24989
24990         uninorm: Tweak includes.
24991         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24992         Reported by Jim Meyering.
24993
24994 2011-01-23  Bruno Haible  <bruno@clisp.org>
24995
24996         get-rusage-as: Improve on NetBSD.
24997         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24998         /proc, like on FreeBSD.
24999
25000 2011-01-23  Jim Meyering  <meyering@redhat.com>
25001
25002         xreadlink.h: remove unnecessary #include
25003         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25004
25005         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25006         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25007
25008 2011-01-23  Bruno Haible  <bruno@clisp.org>
25009
25010         get-rusage-as: Fix bug.
25011         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25012         original limit when aborting the first loop.
25013
25014 2011-01-23  Bruno Haible  <bruno@clisp.org>
25015
25016         wctype: Ensure valid C syntax.
25017         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25018         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25019
25020 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25021
25022         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25024         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25025         as they are needed only for configure's test case.
25026         This removes two unnecessary symbols from config.h.
25027
25028         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25029         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25031         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25032         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25033         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25034         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25035         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25036         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25037         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25038         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25040         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25041         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25042         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25043         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25044         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25045         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25046
25047 2011-01-21  Eric Blake  <eblake@redhat.com>
25048
25049         maintainer-makefile: work with older git for submodule check
25050         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25051         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25052         Reported by Matthias Bolte.
25053
25054         bootstrap: minor portability fixes
25055         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25056         (usage): Omit leading capital and trailing . on help phrases, per
25057         GNU Coding Standards.
25058         (check_versions, top level): Prefix messages with script name.
25059
25060 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25061
25062         bootstrap: support --no-git option
25063         * build-aux/bootstrap: Add --no-git option, to be used when
25064         --gnulib-srcdir points to the exact desired checkout.
25065
25066 2011-01-21  Eric Blake  <eblake@redhat.com>
25067
25068         strerror_r-posix: work with glibc 2.13
25069         * lib/strerror_r.c (strerror_r): Fix return type.
25070
25071 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25072             Bruno Haible  <bruno@clisp.org>
25073
25074         uN_strstr: New unit tests.
25075         * modules/unistr/u8-strstr-tests: New file.
25076         * modules/unistr/u16-strstr-tests: New file.
25077         * modules/unistr/u32-strstr-tests: New file.
25078         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25079         * tests/unistr/test-u8-strstr.c: New file.
25080         * tests/unistr/test-u16-strstr.c: New file.
25081         * tests/unistr/test-u32-strstr.c: New file.
25082
25083 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25084             Bruno Haible  <bruno@clisp.org>
25085
25086         Make uN_strstr functions O(n) worst-case.
25087         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25088         16-bit and 32-bit unit cases, use the unibyte algorithm from
25089         lib/mbsstr.c.
25090         * lib/unistr/u8-strstr.c: Include <string.h>.
25091         (UNIT_IS_UINT8_T): New macro.
25092         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25093         (U_STRLEN, U_STRNLEN): New macros.
25094         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25095         (U_STRLEN, U_STRNLEN): New macros.
25096         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25097         (configure.ac): Update required libunistring version.
25098         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25099         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25100         malloca.
25101         (configure.ac): Update required libunistring version.
25102         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25103         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25104         malloca.
25105         (configure.ac): Update required libunistring version.
25106
25107 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25108             Bruno Haible  <bruno@clisp.org>
25109
25110         Prepare for faster uN_strstr functions.
25111         * lib/str-kmp.h: Support definable UNITs.
25112         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25113         needle_len argument.
25114         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25115         * lib/mbscasestr.c (mbscasestr): Likewise.
25116
25117 2011-01-21  Pádraig Brady <P@draigBrady.com>
25118
25119         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25120         * tests/test-malloca.c (main): Unset the environment variable
25121         to greatly speed up the test.
25122         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25123         * modules/malloca-tests: Depend on unsetenv.
25124
25125 2011-01-21  Pádraig Brady <P@draigBrady.com>
25126
25127         ignore-value: remove stdint dependency
25128         * lib/ignore-value.h: Remove <stdint.h>
25129         * modules/ignore-value: Remove stdint dependency.
25130
25131 2011-01-21  Jim Meyering  <meyering@redhat.com>
25132
25133         maint.mk: adjust variable name to be consistent with other gl_ vars
25134         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25135         to be lower case.
25136
25137 2011-01-20  Jim Meyering  <meyering@redhat.com>
25138
25139         maint.mk: make "check" depend on public-submodule-commit by default
25140         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25141
25142 2011-01-20  Bruno Haible  <bruno@clisp.org>
25143
25144         mbfile, mbiter: Complete change from 2008-12-21.
25145         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25146         * m4/mbiter.m4 (gl_MBITER): Likewise.
25147
25148 2011-01-20  Jim Meyering  <meyering@redhat.com>
25149
25150         init.sh: insert space between each function name and "()"
25151         * tests/init.sh: Make it a little easier to see that a function's
25152         name is "warn_", and not "warn" when looking at the first part of
25153         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25154
25155 2011-01-20  Jim Meyering  <meyering@redhat.com>
25156
25157         mountlist: clean up code formatting
25158         * lib/mountlist.c (read_file_system_list): Split a long line,
25159         correct bracing style, use NULL in place of "(struct statfs *)0",
25160         don't parenthesize return value, add spaces around "=" and after
25161         ";-in-for-stmt".
25162
25163 2011-01-14  Markus Duft <mduft@gentoo.org>
25164
25165         mountlist: add support for Interix
25166         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25167         Apply statvfs to all entries of /dev/fs.
25168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25169         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25170
25171 2011-01-20  Jim Meyering  <meyering@redhat.com>
25172
25173         maint.mk: improve the public-submodule-commit rule
25174         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25175         to suppress printing of its commands... unless V=1.
25176         Add git submodule's --quiet option to suppress printing of e.g.,
25177         "Entering gnulib" output.
25178         "cd" into $(srcdir) before running git submodule.
25179
25180 2011-01-20  Bruno Haible  <bruno@clisp.org>
25181
25182         include_next: Fix bug introduced on 2011-01-18.
25183         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25184         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25185         ac_cv_header_... variable if the second argument is not 'check'.
25186         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25187         gl_NEXT_HEADERS_INTERNAL.
25188
25189 2011-01-20  Bruno Haible  <bruno@clisp.org>
25190
25191         Allow the user to avoid the GNULIB_TEST_* macros.
25192         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25193         Suggested by Paul Eggert.
25194
25195 2011-01-14  Jim Meyering  <meyering@redhat.com>
25196
25197         bootstrap: avoid failure when there is no .gitmodules file
25198         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25199         has been assigned to, even when its value is the empty string.
25200         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25201         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25202         Reported by John W. Eaton <jwe@gnu.org>.
25203
25204 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25205
25206         assume <ctype.h>, ..., <time.h> exist
25207         For years gnulib has been assuming the existence of the headers
25208         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25209         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25210         them, since they don't appear to be needed.
25211         * README (Portability guidelines): Document this.
25212         * lib/flock.c: Assume <fcntl.h> exists.
25213         * lib/regex_internal.h: Assume <locale.h> exists.
25214         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25216         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25217         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25218         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25219         * m4/regex.m4 (gl_REGEX): Likewise.
25220         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25221         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25222         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25223         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25224         * tests/test-argp.c: Likewise.
25225         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25226
25227         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25228         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25229         AA_APPLE_UNIVERSAL_BUILD.  See
25230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25231         * NEWS: Document this.
25232
25233 2011-01-19  Eric Blake  <eblake@redhat.com>
25234
25235         c-stack: assume stack overflow if SA_SIGINFO unsupported
25236         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25237         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25238         sigaction will work.
25239         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25240         behavior match Linux.
25241         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25242
25243         stdbool-tests: accommodate Haiku
25244         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25245
25246         binary-io: fix O_TEXT on Haiku
25247         * modules/binary-io (Depends-on): Add fcntl-h.
25248         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25249         than blindly undefining O_TEXT.
25250         Reported by Scott McCreary.
25251
25252 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25253
25254         include_next: do not check for standard headers like stddef.h
25255
25256         I found this problem when modifying Emacs to use gnulib.
25257         I noticed that it added HAVE_STDDEF_H to config.h, even though
25258         gnulib always assumes <stddef.h> exists as per README and this
25259         symbol is unnecessary.
25260         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25261         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25262         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25263         faster for headers like stddef.h that are known to exist.
25264         (gl_CHECK_NEXT_HEADERS): Use it.
25265         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25266         rather than gl_CHECK_NEXT_HEADERS.
25267         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25268         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25269
25270 2011-01-18  Eric Blake  <eblake@redhat.com>
25271
25272         ansi-c++-opt: skip C++ dependency style if C++ is unused
25273         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25274         tests when we know C++ compilation is not desired.
25275         Reported by Scott McCreary.
25276
25277 2011-01-18  Bruno Haible  <bruno@clisp.org>
25278
25279         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25280         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25281         (main): Perform test also when getrlimit and setrlimit don't exist or
25282         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25283         limiting the address space size using setrlimit, compare the address
25284         space size before and after the the test.
25285         * tests/test-dprintf-posix2.c: Likewise.
25286         * tests/test-fprintf-posix3.sh: Update skip messages.
25287         * tests/test-dprintf-posix2.sh: Likewise.
25288         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25289         * modules/dprintf-posix-tests (Depends-on): Likewise.
25290         Reported by Bruce Korb <bkorb@gnu.org> and
25291         Gary V. Vaughan <gary@gnu.org>.
25292
25293 2011-01-18  Bruno Haible  <bruno@clisp.org>
25294
25295         get-rusage-as: Improvement for Cygwin.
25296         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25297         areas that are merely reserved.
25298
25299 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25300
25301         strftime: remove dependencies on multibyte modules
25302
25303         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25304         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25305         only if __osf__ is defined, and I suspect OSF doesn't need these
25306         other modules.  If my guess is wrong, we'll need to come up with a
25307         variant of strftime that doesn't need the multibyte modules.
25308
25309         I discovered this problem when attempting modify Emacs to use the
25310         strftime module.  With the previous gnulib, this caused Emacs to
25311         need 31 new files, ranging from lib/config.charset to
25312         m4/wint_t.m4.  This was overkill and I expect would be offputting
25313         to the Emacs maintainers.  After this change, only 6 new files are
25314         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25315         stdbool.m4, and tm_gmtoff.m4.
25316
25317         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25318         Suggested by Bruno Haible in
25319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25321         and do not check for wchar.h.
25322         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25323         (Depends-on): Remove mbrlen, mbsinit, wchar.
25324
25325 2011-01-18  Bruno Haible  <bruno@clisp.org>
25326
25327         Tests for module 'get-rusage-as'.
25328         * modules/get-rusage-as-tests: New file.
25329         * tests/test-get-rusage-as.c: New file.
25330
25331         New module 'get-rusage-as'.
25332         * modules/get-rusage-as: New file.
25333         * lib/resource-ext.h: New file.
25334         * lib/get-rusage-as.c: New file.
25335
25336 2011-01-17  Eric Blake  <eblake@redhat.com>
25337
25338         sigaction: relax license from LGPLv3+ to LGPLv2+
25339         * modules/sigaction (License): Relax to LGPLv2+.
25340
25341 2011-01-14  Bruno Haible  <bruno@clisp.org>
25342
25343         filemode: Make function declarations usable in C++ mode.
25344         * lib/filemode.h: Enclose function declarations in extern "C" block.
25345         Reported by John W. Eaton <jwe@gnu.org>.
25346
25347 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25348
25349         save-cwd: no longer include "xgetcwd.h"
25350         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25351         This avoids a compilation failure in projects that use save-cwd
25352         without also using the xgetcwd module.
25353
25354 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25355
25356         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25357         This is so that a program like Emacs, which needs only dtoastr,
25358         does not have to bother with distributing and compiling ftoastr
25359         and ldtoastr.
25360         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25361         * modules/dtoastr, modules/ldtoastr: New files.
25362         * modules/ftoastr: Now works just for 'float'.
25363         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25364         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25365         dtoastr.c, ldtoastr.c.
25366
25367 2011-01-11  Jim Meyering  <meyering@redhat.com>
25368
25369         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25370         There is no need to work around the lack of the fchdir function,
25371         since gnulib can now provide a replacement when required.
25372         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25373         * modules/save-cwd (Depends-on): Add fchdir.
25374
25375 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25376
25377         openat, save-cwd: avoid xmalloc
25378
25379         This removes a direct (but undocumented) dependency of openat on
25380         xalloc, along with an indirect dependency via save-cwd.  It also
25381         removes a dependency of save-cwd on xgetcwd, and thereby
25382         indirectly on xalloc.  This change causes the openat substitute
25383         to fall back on save_cwd when memory is tight, and for save_cwd to
25384         fail instead of dying when memory is tight, but that's good enough.
25385         Problem and initial idea for fix reported by Bastien Roucaries in
25386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25387
25388         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25389         xalloc.h (for xmalloc).
25390         (openat_proc_name): Use malloc, not xmalloc.
25391         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25392         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25393
25394         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25395         This avoids heap allocation for file names whose lengths are in
25396         the range 512..1023, with the upper bound increasing to at most
25397         4031 depending on the platform's PATH_MAX.  (We do not want
25398         pathmax.h here as it might supply a non-constant PATH_MAX.)
25399         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25400         Perhaps they should be moved to malloca.h?
25401         (OPENAT_BUFFER_SIZE): Use them.
25402
25403 2011-01-10  Bruno Haible  <bruno@clisp.org>
25404
25405         doc: Update users.txt.
25406         * users.txt: Add recutils.
25407
25408 2011-01-09  Karl Berry  <karl@gnu.org>
25409
25410         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25411
25412         * doc/configmake.texi: New file.
25413         * doc/gnulib.texi: Include it.
25414         * modules/configmake: Move documentation from here.
25415
25416 2011-01-09  Bruno Haible  <bruno@clisp.org>
25417
25418         Update to Unicode 6.0.0.
25419         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25420         (get_lbp): Update for Unicode 6.0.0.
25421         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25422         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25423         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25424         U+11001, U+11038..U+11046. Remove U+06DE.
25425         (uc_width): Fix bounds of planes.
25426         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25427         lib/uniwidth/width.c.
25428         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25429         trailing whitespace removed.
25430         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25431         without comments, but with the original copyright notice.
25432         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25433         * lib/unicase/ignorable.h: Likewise.
25434         * lib/unicase/tocasefold.h: Likewise.
25435         * lib/unicase/tolower.h: Likewise.
25436         * lib/unicase/totitle.h: Likewise.
25437         * lib/unicase/toupper.h: Likewise.
25438         * lib/unictype/bidi_of.h: Likewise.
25439         * lib/unictype/blocks.h: Likewise.
25440         * lib/unictype/categ_C.h: Likewise.
25441         * lib/unictype/categ_Cn.h: Likewise.
25442         * lib/unictype/categ_L.h: Likewise.
25443         * lib/unictype/categ_Ll.h: Likewise.
25444         * lib/unictype/categ_Lm.h: Likewise.
25445         * lib/unictype/categ_Lo.h: Likewise.
25446         * lib/unictype/categ_Lu.h: Likewise.
25447         * lib/unictype/categ_M.h: Likewise.
25448         * lib/unictype/categ_Mc.h: Likewise.
25449         * lib/unictype/categ_Me.h: Likewise.
25450         * lib/unictype/categ_Mn.h: Likewise.
25451         * lib/unictype/categ_N.h: Likewise.
25452         * lib/unictype/categ_Nd.h: Likewise.
25453         * lib/unictype/categ_No.h: Likewise.
25454         * lib/unictype/categ_P.h: Likewise.
25455         * lib/unictype/categ_Po.h: Likewise.
25456         * lib/unictype/categ_S.h: Likewise.
25457         * lib/unictype/categ_Sc.h: Likewise.
25458         * lib/unictype/categ_Sk.h: Likewise.
25459         * lib/unictype/categ_Sm.h: Likewise.
25460         * lib/unictype/categ_So.h: Likewise.
25461         * lib/unictype/categ_of.h: Likewise.
25462         * lib/unictype/combining.h: Likewise.
25463         * lib/unictype/ctype_alnum.h: Likewise.
25464         * lib/unictype/ctype_alpha.h: Likewise.
25465         * lib/unictype/ctype_graph.h: Likewise.
25466         * lib/unictype/ctype_lower.h: Likewise.
25467         * lib/unictype/ctype_print.h: Likewise.
25468         * lib/unictype/ctype_punct.h: Likewise.
25469         * lib/unictype/ctype_upper.h: Likewise.
25470         * lib/unictype/decdigit.h: Likewise.
25471         * lib/unictype/digit.h: Likewise.
25472         * lib/unictype/numeric.h: Likewise.
25473         * lib/unictype/pr_alphabetic.h: Likewise.
25474         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25475         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25476         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25477         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25478         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25479         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25480         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25481         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25482         * lib/unictype/pr_case_ignorable.h: Likewise.
25483         * lib/unictype/pr_cased.h: Likewise.
25484         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25485         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25486         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25487         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25488         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25489         * lib/unictype/pr_combining.h: Likewise.
25490         * lib/unictype/pr_composite.h: Likewise.
25491         * lib/unictype/pr_currency_symbol.h: Likewise.
25492         * lib/unictype/pr_decimal_digit.h: Likewise.
25493         * lib/unictype/pr_deprecated.h: Likewise.
25494         * lib/unictype/pr_format_control.h: Likewise.
25495         * lib/unictype/pr_grapheme_base.h: Likewise.
25496         * lib/unictype/pr_grapheme_extend.h: Likewise.
25497         * lib/unictype/pr_grapheme_link.h: Likewise.
25498         * lib/unictype/pr_id_continue.h: Likewise.
25499         * lib/unictype/pr_id_start.h: Likewise.
25500         * lib/unictype/pr_ideographic.h: Likewise.
25501         * lib/unictype/pr_lowercase.h: Likewise.
25502         * lib/unictype/pr_math.h: Likewise.
25503         * lib/unictype/pr_numeric.h: Likewise.
25504         * lib/unictype/pr_other_alphabetic.h: Likewise.
25505         * lib/unictype/pr_other_id_continue.h: Likewise.
25506         * lib/unictype/pr_other_math.h: Likewise.
25507         * lib/unictype/pr_punctuation.h: Likewise.
25508         * lib/unictype/pr_sentence_terminal.h: Likewise.
25509         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25510         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25511         * lib/unictype/pr_unified_ideograph.h: Likewise.
25512         * lib/unictype/pr_uppercase.h: Likewise.
25513         * lib/unictype/pr_xid_continue.h: Likewise.
25514         * lib/unictype/pr_xid_start.h: Likewise.
25515         * lib/unictype/scripts.h: Likewise.
25516         * lib/unictype/scripts_byname.gperf: Likewise.
25517         * lib/unictype/sy_java_ident.h: Likewise.
25518         * lib/unigbrk/gbrkprop.h: Likewise.
25519         * lib/unilbrk/lbrkprop1.h: Likewise.
25520         * lib/unilbrk/lbrkprop2.h: Likewise.
25521         * lib/uninorm/decomposition-table2.h: Likewise.
25522         * lib/uniwbrk/wbrkprop.h: Likewise.
25523         * tests/unicase/test-cased.c: Likewise.
25524         * tests/unicase/test-ignorable.c: Likewise.
25525         * tests/unicase/test-uc_tolower.c: Likewise.
25526         * tests/unicase/test-uc_totitle.c: Likewise.
25527         * tests/unicase/test-uc_toupper.c: Likewise.
25528         * tests/unictype/test-categ_C.c: Likewise.
25529         * tests/unictype/test-categ_Cn.c: Likewise.
25530         * tests/unictype/test-categ_L.c: Likewise.
25531         * tests/unictype/test-categ_Ll.c: Likewise.
25532         * tests/unictype/test-categ_Lm.c: Likewise.
25533         * tests/unictype/test-categ_Lo.c: Likewise.
25534         * tests/unictype/test-categ_Lu.c: Likewise.
25535         * tests/unictype/test-categ_M.c: Likewise.
25536         * tests/unictype/test-categ_Mc.c: Likewise.
25537         * tests/unictype/test-categ_Me.c: Likewise.
25538         * tests/unictype/test-categ_Mn.c: Likewise.
25539         * tests/unictype/test-categ_N.c: Likewise.
25540         * tests/unictype/test-categ_Nd.c: Likewise.
25541         * tests/unictype/test-categ_No.c: Likewise.
25542         * tests/unictype/test-categ_P.c: Likewise.
25543         * tests/unictype/test-categ_Po.c: Likewise.
25544         * tests/unictype/test-categ_S.c: Likewise.
25545         * tests/unictype/test-categ_Sc.c: Likewise.
25546         * tests/unictype/test-categ_Sk.c: Likewise.
25547         * tests/unictype/test-categ_Sm.c: Likewise.
25548         * tests/unictype/test-categ_So.c: Likewise.
25549         * tests/unictype/test-ctype_alnum.c: Likewise.
25550         * tests/unictype/test-ctype_alpha.c: Likewise.
25551         * tests/unictype/test-ctype_graph.c: Likewise.
25552         * tests/unictype/test-ctype_lower.c: Likewise.
25553         * tests/unictype/test-ctype_print.c: Likewise.
25554         * tests/unictype/test-ctype_punct.c: Likewise.
25555         * tests/unictype/test-ctype_upper.c: Likewise.
25556         * tests/unictype/test-decdigit.h: Likewise.
25557         * tests/unictype/test-digit.h: Likewise.
25558         * tests/unictype/test-numeric.h: Likewise.
25559         * tests/unictype/test-pr_alphabetic.c: Likewise.
25560         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25561         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25562         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25563         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25564         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25565         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25566         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25567         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25568         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25569         * tests/unictype/test-pr_cased.c: Likewise.
25570         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25571         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25572         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25573         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25574         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25575         * tests/unictype/test-pr_combining.c: Likewise.
25576         * tests/unictype/test-pr_composite.c: Likewise.
25577         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25578         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25579         * tests/unictype/test-pr_deprecated.c: Likewise.
25580         * tests/unictype/test-pr_format_control.c: Likewise.
25581         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25582         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25583         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25584         * tests/unictype/test-pr_id_continue.c: Likewise.
25585         * tests/unictype/test-pr_id_start.c: Likewise.
25586         * tests/unictype/test-pr_ideographic.c: Likewise.
25587         * tests/unictype/test-pr_lowercase.c: Likewise.
25588         * tests/unictype/test-pr_math.c: Likewise.
25589         * tests/unictype/test-pr_numeric.c: Likewise.
25590         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25591         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25592         * tests/unictype/test-pr_other_math.c: Likewise.
25593         * tests/unictype/test-pr_punctuation.c: Likewise.
25594         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25595         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25596         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25597         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25598         * tests/unictype/test-pr_uppercase.c: Likewise.
25599         * tests/unictype/test-pr_xid_continue.c: Likewise.
25600         * tests/unictype/test-pr_xid_start.c: Likewise.
25601         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25602         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25603         changes.
25604         * lib/unictype/categ_Cc.h: Likewise.
25605         * lib/unictype/categ_Cf.h: Likewise.
25606         * lib/unictype/categ_Co.h: Likewise.
25607         * lib/unictype/categ_Cs.h: Likewise.
25608         * lib/unictype/categ_Lt.h: Likewise.
25609         * lib/unictype/categ_Nl.h: Likewise.
25610         * lib/unictype/categ_Pc.h: Likewise.
25611         * lib/unictype/categ_Pd.h: Likewise.
25612         * lib/unictype/categ_Pe.h: Likewise.
25613         * lib/unictype/categ_Pf.h: Likewise.
25614         * lib/unictype/categ_Pi.h: Likewise.
25615         * lib/unictype/categ_Ps.h: Likewise.
25616         * lib/unictype/categ_Z.h: Likewise.
25617         * lib/unictype/categ_Zl.h: Likewise.
25618         * lib/unictype/categ_Zp.h: Likewise.
25619         * lib/unictype/categ_Zs.h: Likewise.
25620         * lib/unictype/ctype_blank.h: Likewise.
25621         * lib/unictype/ctype_cntrl.h: Likewise.
25622         * lib/unictype/ctype_digit.h: Likewise.
25623         * lib/unictype/ctype_space.h: Likewise.
25624         * lib/unictype/ctype_xdigit.h: Likewise.
25625         * lib/unictype/mirror.h: Likewise.
25626         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25627         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25628         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25629         * lib/unictype/pr_bidi_control.h: Likewise.
25630         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25631         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25632         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25633         * lib/unictype/pr_bidi_pdf.h: Likewise.
25634         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25635         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25636         * lib/unictype/pr_dash.h: Likewise.
25637         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25638         * lib/unictype/pr_diacritic.h: Likewise.
25639         * lib/unictype/pr_extender.h: Likewise.
25640         * lib/unictype/pr_hex_digit.h: Likewise.
25641         * lib/unictype/pr_hyphen.h: Likewise.
25642         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25643         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25644         * lib/unictype/pr_ignorable_control.h: Likewise.
25645         * lib/unictype/pr_iso_control.h: Likewise.
25646         * lib/unictype/pr_join_control.h: Likewise.
25647         * lib/unictype/pr_left_of_pair.h: Likewise.
25648         * lib/unictype/pr_line_separator.h: Likewise.
25649         * lib/unictype/pr_logical_order_exception.h: Likewise.
25650         * lib/unictype/pr_non_break.h: Likewise.
25651         * lib/unictype/pr_not_a_character.h: Likewise.
25652         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25653         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25654         * lib/unictype/pr_other_id_start.h: Likewise.
25655         * lib/unictype/pr_other_lowercase.h: Likewise.
25656         * lib/unictype/pr_other_uppercase.h: Likewise.
25657         * lib/unictype/pr_paired_punctuation.h: Likewise.
25658         * lib/unictype/pr_paragraph_separator.h: Likewise.
25659         * lib/unictype/pr_pattern_syntax.h: Likewise.
25660         * lib/unictype/pr_pattern_white_space.h: Likewise.
25661         * lib/unictype/pr_private_use.h: Likewise.
25662         * lib/unictype/pr_quotation_mark.h: Likewise.
25663         * lib/unictype/pr_radical.h: Likewise.
25664         * lib/unictype/pr_soft_dotted.h: Likewise.
25665         * lib/unictype/pr_space.h: Likewise.
25666         * lib/unictype/pr_titlecase.h: Likewise.
25667         * lib/unictype/pr_variation_selector.h: Likewise.
25668         * lib/unictype/pr_white_space.h: Likewise.
25669         * lib/unictype/pr_zero_width.h: Likewise.
25670         * lib/unictype/sy_c_ident.h: Likewise.
25671         * lib/unictype/sy_c_whitespace.h: Likewise.
25672         * lib/unictype/sy_java_whitespace.h: Likewise.
25673         * lib/uninorm/composition-table.gperf: Likewise.
25674         * lib/uninorm/decomposition-table1.h: Likewise.
25675         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25676         LB8.
25677         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25678         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25679         * modules/unictype/*: Bump version number of expected libunistring
25680         version.
25681
25682 2011-01-09  Bruno Haible  <bruno@clisp.org>
25683
25684         Update to Unicode 5.2.0.
25685         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25686         trailing whitespace removed.
25687
25688 2011-01-09  Bruno Haible  <bruno@clisp.org>
25689
25690         New Unicode character properties, from Unicode 5.2.0.
25691         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25692         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25693         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25694         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25695         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25696         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25697         uc_is_property_cased, uc_is_property_case_ignorable,
25698         uc_is_property_changes_when_lowercased,
25699         uc_is_property_changes_when_uppercased,
25700         uc_is_property_changes_when_titlecased,
25701         uc_is_property_changes_when_casefolded,
25702         uc_is_property_changes_when_casemapped): New declarations.
25703         * lib/unictype/pr_byname.gperf: Add the new properties.
25704         * modules/unictype/property-byname (Depends-on): Depend on the new
25705         properties modules.
25706         * modules/unictype/property-all (Depends-on): Likewise.
25707         * MODULES.html.sh (Unicode string functions): Add
25708         unictype/property-case-ignorable, unictype/property-cased,
25709         unictype/property-changes-when-casefolded,
25710         unictype/property-changes-when-casemapped,
25711         unictype/property-changes-when-lowercased,
25712         unictype/property-changes-when-titlecased,
25713         unictype/property-changes-when-uppercased.
25714
25715         New module 'unictype/property-changes-when-casemapped'.
25716         * modules/unictype/property-changes-when-casemapped: New file.
25717         * lib/unictype/pr_changes_when_casemapped.c: New file.
25718         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25719         generated by gen-uni-tables.
25720         * modules/unictype/property-changes-when-casemapped-tests: New file.
25721         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25722         automatically generated by gen-uni-tables.
25723
25724         New module 'unictype/property-changes-when-casefolded'.
25725         * modules/unictype/property-changes-when-casefolded: New file.
25726         * lib/unictype/pr_changes_when_casefolded.c: New file.
25727         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25728         generated by gen-uni-tables.
25729         * modules/unictype/property-changes-when-casefolded-tests: New file.
25730         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25731         automatically generated by gen-uni-tables.
25732
25733         New module 'unictype/property-changes-when-titlecased'.
25734         * modules/unictype/property-changes-when-titlecased: New file.
25735         * lib/unictype/pr_changes_when_titlecased.c: New file.
25736         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25737         generated by gen-uni-tables.
25738         * modules/unictype/property-changes-when-titlecased-tests: New file.
25739         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25740         automatically generated by gen-uni-tables.
25741
25742         New module 'unictype/property-changes-when-uppercased'.
25743         * modules/unictype/property-changes-when-uppercased: New file.
25744         * lib/unictype/pr_changes_when_uppercased.c: New file.
25745         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25746         generated by gen-uni-tables.
25747         * modules/unictype/property-changes-when-uppercased-tests: New file.
25748         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25749         automatically generated by gen-uni-tables.
25750
25751         New module 'unictype/property-changes-when-lowercased'.
25752         * modules/unictype/property-changes-when-lowercased: New file.
25753         * lib/unictype/pr_changes_when_lowercased.c: New file.
25754         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25755         generated by gen-uni-tables.
25756         * modules/unictype/property-changes-when-lowercased-tests: New file.
25757         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25758         automatically generated by gen-uni-tables.
25759
25760         New module 'unictype/property-case-ignorable'.
25761         * modules/unictype/property-case-ignorable: New file.
25762         * lib/unictype/pr_case_ignorable.c: New file.
25763         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25764         by gen-uni-tables.
25765         * modules/unictype/property-case-ignorable-tests: New file.
25766         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25767         generated by gen-uni-tables.
25768
25769         New module 'unictype/property-cased'.
25770         * modules/unictype/property-cased: New file.
25771         * lib/unictype/pr_cased.c: New file.
25772         * lib/unictype/pr_cased.h: New file, automatically generated by
25773         gen-uni-tables.
25774         * modules/unictype/property-cased-tests: New file.
25775         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25776         gen-uni-tables.
25777
25778 2011-01-09  Bruno Haible  <bruno@clisp.org>
25779
25780         Update to Unicode 5.2.0.
25781         * lib/gen-uni-tables.c (output_predicate, output_category,
25782         output_combclass, output_bidi_category, output_decimal_digit_test,
25783         output_decimal_digit, output_digit_test, output_digit,
25784         output_numeric_test, output_numeric, output_mirror, output_scripts,
25785         output_scripts_byname, output_blocks, output_ident_category): Fix
25786         comment header.
25787         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25788         get_wbp.
25789         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25790         items.
25791         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25792         Changes_When_Lowercased, Changes_When_Uppercased,
25793         Changes_When_Titlecased, Changes_When_Casefolded,
25794         Changes_When_Casemapped.
25795         (is_property_alphabetic, is_property_default_ignorable_code_point):
25796         Update for Unicode 5.2.0.
25797         (is_property_cased, is_property_case_ignorable,
25798         is_property_changes_when_lowercased,
25799         is_property_changes_when_uppercased,
25800         is_property_changes_when_titlecased,
25801         is_property_changes_when_casefolded,
25802         is_property_changes_when_casemapped): New functions.
25803         (output_properties): Output also the properties cased, case_ignorable,
25804         changes_when_lowercased, changes_when_uppercased,
25805         changes_when_titlecased, changes_when_casefolded,
25806         changes_when_casemapped.
25807         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25808         Unicode TR#11 revision 17 -> 19.
25809         (LBP_CP): New enumeration value.
25810         (LBP_*): Adjust values accordingly.
25811         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25812         TR#14 revision 22 -> 24.
25813         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25814         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25815         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25816         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25817         is_WBP_MIDLETTER.
25818         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25819         the code1 and code2 of each composition rule.
25820         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25821         * lib/unicase/ignorable.h: Likewise.
25822         * lib/unicase/tocasefold.h: Likewise.
25823         * lib/unicase/tolower.h: Likewise.
25824         * lib/unicase/totitle.h: Likewise.
25825         * lib/unicase/toupper.h: Likewise.
25826         * lib/unictype/bidi_of.h: Likewise.
25827         * lib/unictype/blocks.h: Likewise.
25828         * lib/unictype/categ_C.h: Likewise.
25829         * lib/unictype/categ_Cf.h: Likewise.
25830         * lib/unictype/categ_Cn.h: Likewise.
25831         * lib/unictype/categ_L.h: Likewise.
25832         * lib/unictype/categ_Ll.h: Likewise.
25833         * lib/unictype/categ_Lm.h: Likewise.
25834         * lib/unictype/categ_Lo.h: Likewise.
25835         * lib/unictype/categ_Lu.h: Likewise.
25836         * lib/unictype/categ_M.h: Likewise.
25837         * lib/unictype/categ_Mc.h: Likewise.
25838         * lib/unictype/categ_Mn.h: Likewise.
25839         * lib/unictype/categ_N.h: Likewise.
25840         * lib/unictype/categ_Nd.h: Likewise.
25841         * lib/unictype/categ_Nl.h: Likewise.
25842         * lib/unictype/categ_No.h: Likewise.
25843         * lib/unictype/categ_P.h: Likewise.
25844         * lib/unictype/categ_Pd.h: Likewise.
25845         * lib/unictype/categ_Po.h: Likewise.
25846         * lib/unictype/categ_S.h: Likewise.
25847         * lib/unictype/categ_Sc.h: Likewise.
25848         * lib/unictype/categ_So.h: Likewise.
25849         * lib/unictype/categ_of.h: Likewise.
25850         * lib/unictype/combining.h: Likewise.
25851         * lib/unictype/ctype_alnum.h: Likewise.
25852         * lib/unictype/ctype_alpha.h: Likewise.
25853         * lib/unictype/ctype_graph.h: Likewise.
25854         * lib/unictype/ctype_lower.h: Likewise.
25855         * lib/unictype/ctype_print.h: Likewise.
25856         * lib/unictype/ctype_punct.h: Likewise.
25857         * lib/unictype/ctype_upper.h: Likewise.
25858         * lib/unictype/decdigit.h: Likewise.
25859         * lib/unictype/digit.h: Likewise.
25860         * lib/unictype/numeric.h: Likewise.
25861         * lib/unictype/pr_alphabetic.h: Likewise.
25862         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25863         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25864         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25865         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25866         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25867         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25868         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25869         * lib/unictype/pr_combining.h: Likewise.
25870         * lib/unictype/pr_composite.h: Likewise.
25871         * lib/unictype/pr_currency_symbol.h: Likewise.
25872         * lib/unictype/pr_dash.h: Likewise.
25873         * lib/unictype/pr_decimal_digit.h: Likewise.
25874         * lib/unictype/pr_deprecated.h: Likewise.
25875         * lib/unictype/pr_diacritic.h: Likewise.
25876         * lib/unictype/pr_extender.h: Likewise.
25877         * lib/unictype/pr_grapheme_base.h: Likewise.
25878         * lib/unictype/pr_grapheme_extend.h: Likewise.
25879         * lib/unictype/pr_grapheme_link.h: Likewise.
25880         * lib/unictype/pr_id_continue.h: Likewise.
25881         * lib/unictype/pr_id_start.h: Likewise.
25882         * lib/unictype/pr_ideographic.h: Likewise.
25883         * lib/unictype/pr_ignorable_control.h: Likewise.
25884         * lib/unictype/pr_logical_order_exception.h: Likewise.
25885         * lib/unictype/pr_lowercase.h: Likewise.
25886         * lib/unictype/pr_numeric.h: Likewise.
25887         * lib/unictype/pr_other_alphabetic.h: Likewise.
25888         * lib/unictype/pr_punctuation.h: Likewise.
25889         * lib/unictype/pr_sentence_terminal.h: Likewise.
25890         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25891         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25892         * lib/unictype/pr_unified_ideograph.h: Likewise.
25893         * lib/unictype/pr_uppercase.h: Likewise.
25894         * lib/unictype/pr_xid_continue.h: Likewise.
25895         * lib/unictype/pr_xid_start.h: Likewise.
25896         * lib/unictype/pr_zero_width.h: Likewise.
25897         * lib/unictype/scripts.h: Likewise.
25898         * lib/unictype/scripts_byname.gperf: Likewise.
25899         * lib/unictype/sy_java_ident.h: Likewise.
25900         * lib/unigbrk/gbrkprop.h: Likewise.
25901         * lib/unilbrk/lbrkprop1.h: Likewise.
25902         * lib/unilbrk/lbrkprop2.h: Likewise.
25903         * lib/unilbrk/lbrktables.h: Likewise.
25904         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25905         LBP_CP. Implement rule LB30.
25906         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25907         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25908         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25909         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25910         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25911         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25912         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25913         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25914         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25915         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25916         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25917         bits instead of 16 bits in the code1 and code2 of each composition
25918         rule.
25919         (uc_composition): Update for Unicode 5.2.0.
25920         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25921         * lib/uninorm/decomposition-table2.h: Likewise.
25922         * lib/uniwbrk/wbrkprop.h: Likewise.
25923         * tests/unicase/test-cased.c: Likewise.
25924         * tests/unicase/test-ignorable.c: Likewise.
25925         * tests/unicase/test-uc_tolower.c: Likewise.
25926         * tests/unicase/test-uc_totitle.c: Likewise.
25927         * tests/unicase/test-uc_toupper.c: Likewise.
25928         * tests/unictype/test-categ_C.c: Likewise.
25929         * tests/unictype/test-categ_Cf.c: Likewise.
25930         * tests/unictype/test-categ_Cn.c: Likewise.
25931         * tests/unictype/test-categ_L.c: Likewise.
25932         * tests/unictype/test-categ_Ll.c: Likewise.
25933         * tests/unictype/test-categ_Lm.c: Likewise.
25934         * tests/unictype/test-categ_Lo.c: Likewise.
25935         * tests/unictype/test-categ_Lu.c: Likewise.
25936         * tests/unictype/test-categ_M.c: Likewise.
25937         * tests/unictype/test-categ_Mc.c: Likewise.
25938         * tests/unictype/test-categ_Mn.c: Likewise.
25939         * tests/unictype/test-categ_N.c: Likewise.
25940         * tests/unictype/test-categ_Nd.c: Likewise.
25941         * tests/unictype/test-categ_Nl.c: Likewise.
25942         * tests/unictype/test-categ_No.c: Likewise.
25943         * tests/unictype/test-categ_P.c: Likewise.
25944         * tests/unictype/test-categ_Pd.c: Likewise.
25945         * tests/unictype/test-categ_Po.c: Likewise.
25946         * tests/unictype/test-categ_S.c: Likewise.
25947         * tests/unictype/test-categ_Sc.c: Likewise.
25948         * tests/unictype/test-categ_So.c: Likewise.
25949         * tests/unictype/test-ctype_alnum.c: Likewise.
25950         * tests/unictype/test-ctype_alpha.c: Likewise.
25951         * tests/unictype/test-ctype_graph.c: Likewise.
25952         * tests/unictype/test-ctype_lower.c: Likewise.
25953         * tests/unictype/test-ctype_print.c: Likewise.
25954         * tests/unictype/test-ctype_punct.c: Likewise.
25955         * tests/unictype/test-ctype_upper.c: Likewise.
25956         * tests/unictype/test-decdigit.h: Likewise.
25957         * tests/unictype/test-digit.h: Likewise.
25958         * tests/unictype/test-numeric.h: Likewise.
25959         * tests/unictype/test-pr_alphabetic.c: Likewise.
25960         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25961         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25962         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25963         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25964         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25965         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25966         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25967         * tests/unictype/test-pr_combining.c: Likewise.
25968         * tests/unictype/test-pr_composite.c: Likewise.
25969         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25970         * tests/unictype/test-pr_dash.c: Likewise.
25971         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25972         * tests/unictype/test-pr_deprecated.c: Likewise.
25973         * tests/unictype/test-pr_diacritic.c: Likewise.
25974         * tests/unictype/test-pr_extender.c: Likewise.
25975         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25976         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25977         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25978         * tests/unictype/test-pr_id_continue.c: Likewise.
25979         * tests/unictype/test-pr_id_start.c: Likewise.
25980         * tests/unictype/test-pr_ideographic.c: Likewise.
25981         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25982         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25983         * tests/unictype/test-pr_lowercase.c: Likewise.
25984         * tests/unictype/test-pr_numeric.c: Likewise.
25985         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25986         * tests/unictype/test-pr_punctuation.c: Likewise.
25987         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25988         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25989         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25990         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25991         * tests/unictype/test-pr_uppercase.c: Likewise.
25992         * tests/unictype/test-pr_xid_continue.c: Likewise.
25993         * tests/unictype/test-pr_xid_start.c: Likewise.
25994         * tests/unictype/test-pr_zero_width.c: Likewise.
25995         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25996         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25997         changed behaviour: line breaking is now disallowed between a letter
25998         or '=' and '('.
25999         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26000         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26001         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26002         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26003         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26004         lib/uniwidth/width.c.
26005         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26006         without comments, but with the original copyright notice.
26007         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26008         changes.
26009         * lib/unictype/categ_Cc.h: Likewise.
26010         * lib/unictype/categ_Co.h: Likewise.
26011         * lib/unictype/categ_Cs.h: Likewise.
26012         * lib/unictype/categ_Lt.h: Likewise.
26013         * lib/unictype/categ_Me.h: Likewise.
26014         * lib/unictype/categ_Pc.h: Likewise.
26015         * lib/unictype/categ_Pe.h: Likewise.
26016         * lib/unictype/categ_Pf.h: Likewise.
26017         * lib/unictype/categ_Pi.h: Likewise.
26018         * lib/unictype/categ_Ps.h: Likewise.
26019         * lib/unictype/categ_Sk.h: Likewise.
26020         * lib/unictype/categ_Sm.h: Likewise.
26021         * lib/unictype/categ_Z.h: Likewise.
26022         * lib/unictype/categ_Zl.h: Likewise.
26023         * lib/unictype/categ_Zp.h: Likewise.
26024         * lib/unictype/categ_Zs.h: Likewise.
26025         * lib/unictype/ctype_blank.h: Likewise.
26026         * lib/unictype/ctype_cntrl.h: Likewise.
26027         * lib/unictype/ctype_digit.h: Likewise.
26028         * lib/unictype/ctype_space.h: Likewise.
26029         * lib/unictype/ctype_xdigit.h: Likewise.
26030         * lib/unictype/mirror.h: Likewise.
26031         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26033         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26034         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26036         * lib/unictype/pr_bidi_control.h: Likewise.
26037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26039         * lib/unictype/pr_bidi_pdf.h: Likewise.
26040         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26041         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26042         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26043         * lib/unictype/pr_format_control.h: Likewise.
26044         * lib/unictype/pr_hex_digit.h: Likewise.
26045         * lib/unictype/pr_hyphen.h: Likewise.
26046         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26047         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26048         * lib/unictype/pr_iso_control.h: Likewise.
26049         * lib/unictype/pr_join_control.h: Likewise.
26050         * lib/unictype/pr_left_of_pair.h: Likewise.
26051         * lib/unictype/pr_line_separator.h: Likewise.
26052         * lib/unictype/pr_math.h: Likewise.
26053         * lib/unictype/pr_non_break.h: Likewise.
26054         * lib/unictype/pr_not_a_character.h: Likewise.
26055         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26056         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26057         * lib/unictype/pr_other_id_continue.h: Likewise.
26058         * lib/unictype/pr_other_id_start.h: Likewise.
26059         * lib/unictype/pr_other_lowercase.h: Likewise.
26060         * lib/unictype/pr_other_math.h: Likewise.
26061         * lib/unictype/pr_other_uppercase.h: Likewise.
26062         * lib/unictype/pr_paired_punctuation.h: Likewise.
26063         * lib/unictype/pr_paragraph_separator.h: Likewise.
26064         * lib/unictype/pr_pattern_syntax.h: Likewise.
26065         * lib/unictype/pr_pattern_white_space.h: Likewise.
26066         * lib/unictype/pr_private_use.h: Likewise.
26067         * lib/unictype/pr_quotation_mark.h: Likewise.
26068         * lib/unictype/pr_radical.h: Likewise.
26069         * lib/unictype/pr_soft_dotted.h: Likewise.
26070         * lib/unictype/pr_space.h: Likewise.
26071         * lib/unictype/pr_titlecase.h: Likewise.
26072         * lib/unictype/pr_variation_selector.h: Likewise.
26073         * lib/unictype/pr_white_space.h: Likewise.
26074         * lib/unictype/sy_c_ident.h: Likewise.
26075         * lib/unictype/sy_c_whitespace.h: Likewise.
26076         * lib/unictype/sy_java_whitespace.h: Likewise.
26077         * modules/uni*/*: Bump version number of expected libunistring version.
26078         Reported by Simon Josefsson.
26079
26080 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26081
26082         useless-if-before-free: fix typo in --help and make the internal,
26083         automatic version date update process work once again.
26084         --help output contained a NUL character instead of the
26085         backslash-zero that was intended.  Also, the "must lie within
26086         the first 8 lines" line is on line 9, and hence not getting
26087         automatically updated.
26088         * build-aux/useless-if-before-free: Fix the former by adding a
26089         backslash, and the latter by condensing the three lines of what-it-does
26090         to a single line, leaving one line of slack for the future.
26091
26092 2011-01-09  Bruno Haible  <bruno@clisp.org>
26093
26094         uniwidth/width: Fix width of U+1D173..U+1D17A.
26095         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26096         symbolic_width, output_width_property_test): New functions.
26097         (main): Invoke output_nonspacing_property, output_width_property_test.
26098         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26099         U+1D173..U+1D17A.
26100         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26101         1.
26102         * modules/uniwidth/*: Bump version number of expected libunistring
26103         version.
26104         * modules/unilbrk/*: Likewise.
26105
26106 2011-01-08  Bruno Haible  <bruno@clisp.org>
26107
26108         uninorm tests: Preserve copyright of Unicode data file.
26109         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26110         Mention modifications.
26111
26112 2011-01-08  Bruno Haible  <bruno@clisp.org>
26113
26114         gen-uni-tables: Prepare for Unicode 5.2.0.
26115         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26116         (debug_output_lbp, output_lbp): Update.
26117
26118 2011-01-08  Bruno Haible  <bruno@clisp.org>
26119
26120         unilbrk: Clarify gen-uni-tables.c code.
26121         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26122         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26123         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26124
26125 2011-01-07  Bruno Haible  <bruno@clisp.org>
26126
26127         strtod: Restore errno when successfully parsing Infinity or NaN.
26128         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26129         restore the original errno.
26130
26131 2011-01-07  Bruno Haible  <bruno@clisp.org>
26132
26133         remove test: Avoid failure on HP-UX 11.
26134         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26135
26136 2011-01-07  Bruno Haible  <bruno@clisp.org>
26137
26138         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26139         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26140         error code.
26141
26142 2011-01-07  Pádraig Brady <P@draigBrady.com>
26143
26144         ignore-value: fixup comments, and add Eric Blake
26145         as an author since he rewrote the macros.
26146         * lib/ignore-value.h (ignore_value):  State that
26147         we now support aggregates.  Also specify exactly
26148         when the GCC warn_unused_result feature was added.
26149
26150 2011-01-06  Eric Blake  <eblake@redhat.com>
26151
26152         ignore-value: support aggregate types
26153         * lib/ignore-value.h (ignore_value): Provide separate gcc
26154         definition.
26155         * modules/ignore-value-tests: New test module.
26156         * tests/test-ignore-value.c: New test.
26157
26158         maint.mk: improve sc_prohibit_strcmp regex
26159         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26160         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26161         definition of STRNEQ.
26162
26163         signal: work around Haiku issue with SIGBUS
26164         * lib/siglist.h: Add comment.
26165         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26166         strsignal's favoring of SIGSEGV.
26167         * tests/test-signal.c (main): Avoid test failure.
26168         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26169         Reported by Scott McCreary.
26170
26171         maint.mk: add pre-release check to ensure submodule commits are public
26172         * top/maint.mk (public-submodule-commit): New rule.
26173         (submodule-checks): New variable.
26174         (alpha beta stable): Depend on the variable.
26175
26176 2011-01-05  Pádraig Brady <P@draigBrady.com>
26177         and Jim Meyering  <meyering@redhat.com>
26178
26179         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26180         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26181         (ATTRIBUTE_DEPRECATED): Define.
26182         (_ignore_case): New function.
26183         (ignore_value): New macro, to replace the old function.
26184         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26185         * modules/ignore-value (Depends-on): Add stdint.
26186
26187 2011-01-04  Eric Blake  <eblake@redhat.com>
26188
26189         doc: regenerate INSTALL
26190         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26191         @firstparagraphindent support, now that autoconf dropped it.
26192         (INSTALL_PRELUDE): Reinstate old macro.
26193         * doc/install.texi: Resync from autoconf.
26194         * doc/INSTALL: Reflect recent autoconf update.
26195         * doc/INSTALL.ISO: Likewise.
26196         * doc/INSTALL.UTF-8: Likewise.
26197         Reported by Karl Berry.
26198
26199 2011-01-04  Bruce Korb  <address@hidden>
26200
26201         git-version-gen: avoid a sub-shell
26202         * build-aux/git-version-gen: Redirect stderr in `...` via
26203         "exec 2>...", rather than via an added sub-shell.
26204
26205 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26206
26207         git-version-gen: use (...) rather than sh -c '...'
26208         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26209         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26210
26211 2011-01-03  Jim Meyering  <meyering@redhat.com>
26212
26213         git-version-gen: convert leading TABs to spaces
26214         * build-aux/git-version-gen: Expand leading TABs.
26215
26216         git-version-gen: handle failed "git rev-list"
26217         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26218         from git and proceeding as if it had succeeded but printed no SHA1
26219         checksums, suppress the diagnostic and handle the failure.
26220         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26221
26222         git-version-gen: include command name in one more diagnostic
26223         * build-aux/git-version-gen: When the required .tarball-version file
26224         was missing or unreadable, you might see the diagnostic from "cat",
26225         but no trace of the name of the invoking script.  Now, you still see
26226         the diagnostic from cat, but also get one from "git-version-gen: ".
26227         Inspired by a patch from Bruce Korb.
26228
26229         update-copyright: adjust test to match changed code
26230         * tests/test-update-copyright.sh: Change test's expected output
26231         to match new actual output.
26232
26233 2011-01-02  Bruno Haible  <bruno@clisp.org>
26234
26235         getlogin_r: Avoid test failure on HP-UX 11.
26236         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26237         ERANGE when the second argument is zero.
26238         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26239         portability problem.
26240
26241 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26242
26243         * build-aux/update-copyright: doc Simon's changes
26244
26245 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26246
26247         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26248         environment variable.
26249
26250 2011-01-02  Bruno Haible  <bruno@clisp.org>
26251
26252         unigbrk: Avoid gcc warnings.
26253         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26254         unused variable.
26255         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26256         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26257         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26258         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26259         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26260         Change type of first argument to 'const char *'.
26261         (main): Remove unused variable.
26262         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26263         type of first argument to 'const char *'.
26264         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26265         Likewise.
26266         (main): Change type of variable 's'.
26267         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26268         to 'int'.
26269
26270 2011-01-02  Bruno Haible  <bruno@clisp.org>
26271
26272         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26273         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26274         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26275         bug.
26276         * lib/pwrite.c: Undo 2010-12-31 patch.
26277         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26278
26279 2011-01-02  Bruno Haible  <bruno@clisp.org>
26280
26281         pread: Fix test whether it works.
26282         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26283
26284 2011-01-02  Bruno Haible  <bruno@clisp.org>
26285
26286         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26287         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26288         ends in "6". Don't require a specific month name. Try also the locale
26289         names found on HP-UX 11 and Solaris 7.
26290
26291 2011-01-02  Bruno Haible  <bruno@clisp.org>
26292
26293         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26294         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26295         C linkage.
26296         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26297
26298 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26299
26300         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26301         for consistency, since the "cluster" term is not used elsewhere.
26302         * lib/unigbrk.in.h: Update name.
26303         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26304         * lib/unigbrk/u16-grapheme-next.c: Update name.
26305         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26306         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26307         * lib/unigbrk/u32-grapheme-next.c: Update name.
26308         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26309         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26310         * lib/unigbrk/u8-grapheme-next.c: Update name.
26311         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26312         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26313         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26314         Suggested by Bruno Haible.
26315
26316 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26317
26318         Remove module 'u8-grapheme-len' as too redundant with
26319         'u8-grapheme-next'.
26320         * modules/unigbrk/u8-grapheme-len: Delete file.
26321         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26322         * lib/unigbrk.in.h: Remove prototype for deleted function.
26323         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26324         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26325
26326         Remove module 'u16-grapheme-len' as too redundant with
26327         'u16-grapheme-next'.
26328         * modules/unigbrk/u16-grapheme-len: Delete file.
26329         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26330         * lib/unigbrk.in.h: Remove prototype for deleted function.
26331         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26332         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26333
26334         Remove module 'u32-grapheme-len' as too redundant with
26335         'u32-grapheme-next'.
26336         * modules/unigbrk/u32-grapheme-len: Delete file.
26337         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26338         * lib/unigbrk.in.h: Remove prototype for deleted function.
26339         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26340         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26341
26342         Suggested by Bruno Haible.
26343
26344 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26345
26346         * unigbrk.in.h: Fix typo: "ben" => "been".
26347         Reported by Bruno Haible.
26348
26349 2011-01-01  Jim Meyering  <meyering@redhat.com>
26350
26351         maint: update almost all copyright ranges to include 2011
26352         Run the new "make update-copyright" rule.
26353
26354 2011-01-01  Jim Meyering  <meyering@redhat.com>
26355
26356         maint: update-copyright: exempt doc/INSTALL*
26357         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26358         since they are generated.  Suggested by Bruno Haible.
26359
26360 2011-01-01  Jim Meyering  <meyering@redhat.com>
26361
26362         maint: refine the update-copyright rule
26363         * Makefile (update-copyright): Also exclude any file that includes
26364         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26365         code that merely generates the comment.
26366
26367 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26368
26369         New module 'u8-grapheme-len'.
26370         * modules/unigbrk/u8-grapheme-len: New file.
26371         * modules/unigbrk/u8-grapheme-len-tests: New file.
26372         * lib/unigbrk.in.h: Add prototype for new function.
26373         * lib/unigbrk/u8-grapheme-len.c: New file.
26374         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26375
26376         New module 'u16-grapheme-len'.
26377         * modules/unigbrk/u16-grapheme-len: New file.
26378         * modules/unigbrk/u16-grapheme-len-tests: New file.
26379         * lib/unigbrk.in.h: Add prototype for new function.
26380         * lib/unigbrk/u16-grapheme-len.c: New file.
26381         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26382
26383         New module 'u32-grapheme-len'.
26384         * modules/unigbrk/u32-grapheme-len: New file.
26385         * modules/unigbrk/u32-grapheme-len-tests: New file.
26386         * lib/unigbrk.in.h: Add prototype for new function.
26387         * lib/unigbrk/u32-grapheme-len.c: New file.
26388         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26389
26390         New module 'u8-grapheme-next'.
26391         * modules/unigbrk/u8-grapheme-next: New file.
26392         * modules/unigbrk/u8-grapheme-next-tests: New file.
26393         * lib/unigbrk.in.h: Add prototype for new function.
26394         * lib/unigbrk/u8-grapheme-next.c: New file.
26395         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26396
26397         New module 'u16-grapheme-next'.
26398         * modules/unigbrk/u16-grapheme-next: New file.
26399         * modules/unigbrk/u16-grapheme-next-tests: New file.
26400         * lib/unigbrk.in.h: Add prototype for new function.
26401         * lib/unigbrk/u16-grapheme-next.c: New file.
26402         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26403
26404         New module 'u32-grapheme-next'.
26405         * modules/unigbrk/u32-grapheme-next: New file.
26406         * modules/unigbrk/u32-grapheme-next-tests: New file.
26407         * lib/unigbrk.in.h: Add prototype for new function.
26408         * lib/unigbrk/u32-grapheme-next.c: New file.
26409         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26410
26411         New module 'u8-grapheme-prev'.
26412         * modules/unigbrk/u8-grapheme-prev: New file.
26413         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26414         * lib/unigbrk.in.h: Add prototype for new function.
26415         * lib/unigbrk/u8-grapheme-prev.c: New file.
26416         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26417
26418         New module 'u16-grapheme-prev'.
26419         * modules/unigbrk/u16-grapheme-prev: New file.
26420         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26421         * lib/unigbrk.in.h: Add prototype for new function.
26422         * lib/unigbrk/u16-grapheme-prev.c: New file.
26423         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26424
26425         New module 'u32-grapheme-prev'.
26426         * modules/unigbrk/u32-grapheme-prev: New file.
26427         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26428         * lib/unigbrk.in.h: Add prototype for new function.
26429         * lib/unigbrk/u32-grapheme-prev.c: New file.
26430         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26431
26432         New module 'u8-grapheme-breaks'.
26433         * modules/unigbrk/u8-grapheme-breaks: New file.
26434         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26435         * lib/unigbrk.in.h: Add prototype for new function.
26436         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26437         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26438
26439         New module 'u16-grapheme-breaks'.
26440         * modules/unigbrk/u16-grapheme-breaks: New file.
26441         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26442         * lib/unigbrk.in.h: Add prototype for new function.
26443         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26444         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26445
26446         New module 'u32-grapheme-breaks'.
26447         * modules/unigbrk/u32-grapheme-breaks: New file.
26448         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26449         * lib/unigbrk.in.h: Add prototype for new function.
26450         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26451         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26452
26453         New module 'ulc-grapheme-breaks'.
26454         * modules/unigbrk/ulc-grapheme-breaks: New file.
26455         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26456         * m4/locale-ar.m4: New file.
26457         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26458         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26459         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26460
26461 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26462
26463         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26464         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26465         modified how this file was generated before I initially submitted
26466         the module, but failed to regenerate it.  This meant that several
26467         of the level2 entries were wrong.
26468         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26469         Remove the division-by-2 that is folded into the table now that
26470         gbrkprop.h has been regenerated properly.  Now -1 entries are
26471         handled correctly.
26472
26473         New module 'unigbrk/uc-gbrk-prop-tests'.
26474         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26475         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26476         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26477         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26478
26479 2011-01-01  Bruno Haible  <bruno@clisp.org>
26480
26481         Avoid use of hexadecimal escapes.
26482         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26483         instead of hexadecimal escapes.
26484
26485 2011-01-01  Jim Meyering  <meyering@redhat.com>
26486
26487         maint: new rule to update copyright year ranges
26488         * Makefile (update-copyright): New rule.
26489
26490         maint: indent with TABs in Makefile
26491         * Makefile: Expand leading sequences of spaces to TABs
26492
26493         version-etc: update the copyright year it reports
26494         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26495
26496 2010-12-31  Bruno Haible  <bruno@clisp.org>
26497
26498         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26499         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26500         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26501         zero.
26502
26503 2010-12-31  Bruno Haible  <bruno@clisp.org>
26504
26505         pwrite: Work around HP-UX 11.11 bug.
26506         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26507         works and set REPLACE_PWRITE if not.
26508         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26509         function.
26510         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26511
26512 2010-12-31  Bruno Haible  <bruno@clisp.org>
26513
26514         pread: Work around HP-UX 11 bugs.
26515         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26516         and set REPLACE_PREAD if not.
26517         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26518
26519 2010-12-31  Eric Blake  <eblake@redhat.com>
26520
26521         nl_langinfo: fix YESEXPR on Irix 6.5
26522         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26523         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26524         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26525         it.
26526
26527 2010-12-31  Bruno Haible  <bruno@clisp.org>
26528
26529         iconv: Document HP-UX 11 bug.
26530         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26531
26532 2010-12-31  Bruno Haible  <bruno@clisp.org>
26533
26534         ldexpl: Fix link error on HP-UX 11.
26535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26536         LDEXPL_LIBM, using $ISNANL_LIBM.
26537
26538 2010-12-31  Eric Blake  <eblake@redhat.com>
26539
26540         ftello: avoid compilation failure with SunStudio c89
26541         * lib/ftello.c (ftello): Use lseek, not llseek.
26542
26543         tests: avoid failing coreutils tests on cygwin
26544         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26545         (create_exe_shims_): Return 0 when skipping.
26546
26547 2010-12-31  Bruno Haible  <bruno@clisp.org>
26548
26549         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26550         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26551
26552 2010-12-31  Bruno Haible  <bruno@clisp.org>
26553
26554         waitpid: Fix link error in C++ mode.
26555         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26556
26557 2010-12-31  Bruno Haible  <bruno@clisp.org>
26558
26559         isnan: Use GCC built-ins when possible.
26560         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26561         __builtin_isnan.
26562         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26563         (isnan): Define using GCC built-ins for GCC >= 4.0.
26564
26565 2010-12-31  Bruno Haible  <bruno@clisp.org>
26566
26567         isnand: Fix mistake.
26568         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26569         __builtin_isnand.
26570
26571 2010-12-31  Bruno Haible  <bruno@clisp.org>
26572
26573         open: Avoid C++ error on HP-UX 11.
26574         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26575
26576 2010-12-31  Bruno Haible  <bruno@clisp.org>
26577
26578         time_r: Add missing declarations on HP-UX 11.
26579         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26580         instead of HAVE_LOCALTIME_R.
26581         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26582         HAVE_LOCALTIME_R always.
26583         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26584         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26585         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26586         HAVE_LOCALTIME_R.
26587         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26588         * doc/posix-functions/localtime_r.texi: Likewise.
26589
26590 2010-12-29  Eric Blake  <eblake@redhat.com>
26591
26592         mountlist: tweak previous commit
26593         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26594         Reported by Paul Eggert.
26595
26596         mountlist: fix local drive detection on cygwin
26597         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26598         that works for cygwin.
26599
26600 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26601
26602         ftoastr, snprintf: ftoastr + snprintf module
26603         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26604         since the snprintf module now should be good enough here.
26605         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26606         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26607         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26608         GNULIB_SNPRINTF only for the test directory, and the latter
26609         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26610         seems to suffice by itself.
26611
26612 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26613
26614         alloca: one step towards thread-safety
26615         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26616         need for a static variable.  All callers changed.  This does not
26617         make the alloca replacement thread-safe, but it's one step.
26618
26619         tests: minor indenting change
26620         * tests/init.sh: Sync from coreutils housekeeping patch
26621         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26622         to keep lines within 80 columns.
26623
26624 2010-12-28  Jim Meyering  <meyering@redhat.com>
26625
26626         regex: don't infloop on persistent failing calloc
26627         * lib/regexec.c (build_trtable): Return failure indication upon
26628         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26629         In glibc, this was fixed for version 2.13:
26630         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26631
26632 2010-12-28  Bruno Haible  <bruno@clisp.org>
26633             Paul Eggert <eggert@cs.ucla.edu>
26634
26635         linkat: Make implementation robust against system behaviour variations.
26636         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26637         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26638         way, and to -2 if it needs a generic runtime test.
26639         * lib/linkat.c (solaris_optimized_link_immediate,
26640         solaris_optimized_link_follow): New functions.
26641         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26642         (check_same_link): Use it.
26643
26644 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26645
26646         New module 'unigbrk/base'.
26647         * modules/unigbrk/base: New file.
26648         * lib/unigbrk.in.h: New file.
26649
26650         New module 'unigbrk/uc-gbrk-prop'.
26651         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26652         * modules/unigbrk/uc-gbrk-prop: New file.
26653         * lib/unigbrk/gbrkprop.h: New file.
26654         * lib/unigbrk/uc-gbrk-prop.c: New file.
26655
26656         New module 'unigbrk/uc-is-grapheme-break'.
26657         * modules/unigbrk/uc-is-grapheme-break: New file.
26658         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26659         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26660         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26661         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26662         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26663
26664         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26665
26666 2010-12-27  Bruno Haible  <bruno@clisp.org>
26667
26668         linkat test: Avoid failure on Solaris 11 2010-11.
26669         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26670
26671 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26672
26673         utimens: work around glibc rounding bug on more platforms
26674         * lib/utimens.c (fdutimens): Work around rounding bug even if
26675         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26677
26678 2010-12-27  Bruno Haible  <bruno@clisp.org>
26679
26680         select tests: Improve comments.
26681         * tests/test-select.c (do_select): Add comments.
26682
26683 2010-12-27  Bruno Haible  <bruno@clisp.org>
26684
26685         select tests: Safer way of handling timeout.
26686         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26687         at every invocation.
26688
26689 2010-12-27  Bruno Haible  <bruno@clisp.org>
26690
26691         select tests: Use 'bool' where appropriate.
26692         * tests/test-select.c (connect_to_socket): Change argument type to
26693         'bool'.
26694
26695 2010-12-27  Bruno Haible  <bruno@clisp.org>
26696
26697         select tests: Use existing modules.
26698         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26699         (configure.ac): Don't test for unistd.h.
26700         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26701         declared in <unistd.h>.
26702
26703 2010-12-27  Bruno Haible  <bruno@clisp.org>
26704
26705         mbrtowc: Work around a Solaris 7 bug.
26706         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26707         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26708         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26709         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26710         MBRTOWC_NULL_ARG1_BUG.
26711         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26712         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26713         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26714         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26715
26716 2010-12-27  Jim Meyering  <meyering@redhat.com>
26717
26718         read-file.c: tweak syntax
26719         * lib/read-file.c (fread_file): Remove space after "*" in function
26720         definitions.
26721
26722 2010-12-27  Bruno Haible  <bruno@clisp.org>
26723
26724         times test: Avoid gcc warnings on OSF/1.
26725         * tests/test-times.c (main): Cast printf arguments from clock_t to
26726         'long int'.
26727
26728 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26729
26730         utimens: work around glibc rounding bug on older Linux kernels
26731         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26732         on Linux with a glibc whose utimes might not work, then work
26733         around a longstanding glibc bug involving rounding rather than
26734         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26736
26737 2010-12-26  Bruno Haible  <bruno@clisp.org>
26738
26739         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26740         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26741         _GL_CXXALIAS_SYS.
26742         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26743
26744 2010-12-26  Bruno Haible  <bruno@clisp.org>
26745
26746         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26747         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26748         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26749         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26750         looking for the declaration.
26751         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26752         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26753         problem.
26754         * doc/posix-functions/inet_pton.texi: Likewise.
26755
26756 2010-12-26  Bruno Haible  <bruno@clisp.org>
26757
26758         arpa_inet: Use the common idioms with C++ support.
26759         * lib/arpa_inet.in.h: Include c++defs.h.
26760         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26761         support.
26762         * modules/arpa_inet (Depends-on): Add c++defs.
26763         (Makefile.am): Substitute the contents of c++defs.h.
26764         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26765         * modules/arpa_inet-c++-tests: New file.
26766         * tests/test-arpa_inet-c++.cc: New file.
26767
26768 2010-12-25  Bruno Haible  <bruno@clisp.org>
26769
26770         Fix more C++ link errors on Solaris 8.
26771         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26772         $(LIB_EACCESS).
26773         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26774         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26775         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26776         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26777         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26778
26779 2010-12-25  Bruno Haible  <bruno@clisp.org>
26780
26781         printf-posix: Fix link error when a non-GCC compiler is used.
26782         * lib/stdio.in.h (printf): When not using GCC, override printf
26783         correctly.
26784         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26785
26786 2010-12-25  Bruno Haible  <bruno@clisp.org>
26787
26788         strerror_r-posix: Update doc.
26789         * doc/posix-functions/strerror_r.texi: Update doc about the return
26790         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26791
26792 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         utimens: simplify the logic of the previous change
26795         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26796         This should not affect whether the test succeeds or fails.
26797
26798         utimens: configure better on hosts with NFS clock skew
26799         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26800         uses the clock of the local host.  It might use the clock of the
26801         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26803
26804 2010-12-25  Bruno Haible  <bruno@clisp.org>
26805
26806         ptsname test: Avoid failure on Solaris.
26807         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26808         open a pseudo-terminal; don't use BSD-style ptys.
26809         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26810
26811 2010-12-25  Bruno Haible  <bruno@clisp.org>
26812
26813         ptsname: Avoid ERANGE failure on some systems.
26814         * lib/ptsname.c (buffer): Increase size.
26815
26816 2010-12-25  Bruno Haible  <bruno@clisp.org>
26817
26818         rename, renameat: Avoid test failures at NFS mounted locations.
26819         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26820         so that subsequent mkdir calls succeed.
26821
26822 2010-12-25  Bruno Haible  <bruno@clisp.org>
26823
26824         iswblank: Fix C++ link error on Solaris 8.
26825         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26826         _GL_FUNCDECL_SYS.
26827
26828 2010-12-25  Bruno Haible  <bruno@clisp.org>
26829
26830         unistd: Fix C++ link error on Solaris 8.
26831         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26832
26833 2010-12-25  Bruno Haible  <bruno@clisp.org>
26834
26835         readlink doc: Mention an old glibc bug.
26836         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26837
26838 2010-12-25  Bruno Haible  <bruno@clisp.org>
26839
26840         fcntl-h: Fix for use of C++ on glibc systems.
26841         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26842         also on glibc systems in C++ mode.
26843         Reported by Gary V. Vaughan <gary@gnu.org>.
26844
26845 2010-12-25  Bruno Haible  <bruno@clisp.org>
26846
26847         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26848         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26849
26850 2010-12-25  Bruno Haible  <bruno@clisp.org>
26851
26852         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26853         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26854         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26855         test whether truncl works according to ISO C 99 with IEC 60559.
26856         * m4/truncl-ieee.m4: New file.
26857         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26858         m4/signbit.m4.
26859         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26860
26861 2010-12-25  Bruno Haible  <bruno@clisp.org>
26862
26863         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26864         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26865         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26866         test whether ceill works according to ISO C 99 with IEC 60559.
26867         * m4/ceill-ieee.m4: New file.
26868         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26869         m4/signbit.m4.
26870         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26871
26872 2010-12-25  Bruno Haible  <bruno@clisp.org>
26873
26874         Ensure all prerequisites of <wchar.h> are included.
26875         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26876         before <wchar.h>.
26877         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26878         gl_MBRLEN_NUL_RETVAL): Likewise.
26879         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26880         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26881         AC_FUNC_MBRTOWC): Likewise.
26882         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26883         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26884         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26885         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26886         Likewise.
26887         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26888         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26889         (gl_WCHAR_H): Improve comments.
26890         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26891
26892 2010-12-25  Bruno Haible  <bruno@clisp.org>
26893
26894         strtok_r: Fix C syntax error in autoconf macro.
26895         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26896         characters in test program.
26897
26898 2010-12-24  Bruno Haible  <bruno@clisp.org>
26899
26900         ceil, trunc, round: Fix gcc warnings.
26901         * lib/ceil.c (MIN): Undefine before redefining.
26902         * lib/trunc.c (MIN): Likewise.
26903         * lib/round.c (MIN): Likewise.
26904         Include <math.h> first.
26905
26906 2010-12-24  Bruno Haible  <bruno@clisp.org>
26907
26908         select tests: Avoid failures on OSF/1 5.1.
26909         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26910         failure of closing the last socket; it may fail with ECONNRESET.
26911
26912 2010-12-24  Eric Blake  <eblake@redhat.com>
26913
26914         stdint: avoid HP-UX 10.20 preprocessor bug
26915         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26916         than #if.
26917         * tests/test-floor2.c (main): Likewise.
26918         Reported by Peter O'Gorman.
26919
26920         pipe: make obsoletion transition easier
26921         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26922         * modules/pipe (Files): Include revived file.
26923         (Include): Drop reference, to mirror getdate's behavior.
26924
26925 2010-12-24  Bruno Haible  <bruno@clisp.org>
26926
26927         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26928         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26929         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26930         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26931
26932 2010-12-24  Bruno Haible  <bruno@clisp.org>
26933
26934         gethostname: Ensure declaration on NonStop Kernel.
26935         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26936         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26937
26938 2010-12-24  Bruno Haible  <bruno@clisp.org>
26939
26940         sys_select: Ensure all necessary types on NonStop Kernel.
26941         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26942         include <sys/time.h>.
26943         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26944         NonStop Kernel.
26945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26946
26947 2010-12-24  Bruno Haible  <bruno@clisp.org>
26948
26949         sys_select: Remove unneeded include.
26950         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26951         have <sys/select.h>.
26952
26953 2010-12-24  Bruno Haible  <bruno@clisp.org>
26954
26955         gethostname: Provide a fallback for HOST_NAME_MAX.
26956         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26957         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26958         instead.
26959         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26960
26961 2010-12-24  Bruno Haible  <bruno@clisp.org>
26962
26963         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26964         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26965         (SA_RESTART): Likewise.
26966         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26967
26968 2010-12-24  Bruno Haible  <bruno@clisp.org>
26969
26970         signal: Define NSIG.
26971         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26972         * tests/test-signal.c (nsig): New variable.
26973         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26974
26975 2010-12-24  Bruno Haible  <bruno@clisp.org>
26976
26977         rename, renameat: Avoid test failures on OSF/1 5.1.
26978         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26979         alternative error codes.
26980         * tests/test-renameat.c (main): Likewise.
26981
26982 2010-12-24  Bruno Haible  <bruno@clisp.org>
26983
26984         *printf: Detect large precisions bug on Solaris 10/SPARC.
26985         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26986         by Paul Eggert.
26987         * tests/test-snprintf-posix.h (test_function): Add this test code here
26988         too.
26989         * tests/test-sprintf-posix.h (test_function): Likewise.
26990         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26991         * tests/test-vasprintf-posix.c (test_function): Likewise.
26992         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26993         around by gnulib.
26994         * doc/posix-functions/printf.texi: Likewise.
26995         * doc/posix-functions/snprintf.texi: Likewise.
26996         * doc/posix-functions/sprintf.texi: Likewise.
26997         * doc/posix-functions/vfprintf.texi: Likewise.
26998         * doc/posix-functions/vprintf.texi: Likewise.
26999         * doc/posix-functions/vsnprintf.texi: Likewise.
27000         * doc/posix-functions/vsprintf.texi: Likewise.
27001         * doc/posix-functions/dprintf.texi: Undo last commit.
27002         * doc/posix-functions/vdprintf.texi: Likewise.
27003
27004 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27005
27006         tests: port test-fdutimensat.c to Solaris 8
27007         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27008         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27009         On Solaris 8, it fails with errno == ENOSYS, because there is no
27010         futimens (so it can't use the fd), and there is no lutimens (so it
27011         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27012
27013         vsnprintf: make more consistent with snprintf; doc fixes
27014
27015         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27016         the byte count return problem was promoted from the snprintf-posix
27017         to the snprintf module.
27018         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27019         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27020         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27021         * tests/test-snprintf.c (main): Check the byte count returned.
27022         * tests/test-vsnprintf.c (main): Likewise.
27023
27024 2010-12-23  Eric Blake  <eblake@redhat.com>
27025
27026         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27027         * modules/sigpipe (License): Relax license.
27028
27029 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27030
27031         doc: document Solaris printf bug with large float precisions
27032         * doc/posix-functions/dprintf.texi (dprintf):
27033         * doc/posix-functions/fprintf.texi (fprintf):
27034         * doc/posix-functions/printf.texi (printf):
27035         * doc/posix-functions/snprintf.texi (snprintf):
27036         * doc/posix-functions/sprintf.texi (sprintf):
27037         * doc/posix-functions/vdprintf.texi (vdprintf):
27038         * doc/posix-functions/vfprintf.texi (vfprintf):
27039         * doc/posix-functions/vprintf.texi (vprintf):
27040         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27041         * doc/posix-functions/vsprintf.texi (vsprintf):
27042         Mention that these functions mishandle large floating point
27043         precisions on Solaris 10.  The same bug is also present in Solaris
27044         8, and I assume earlier.  This causes "cd gnulib-tests; make
27045         check" to fail on Solaris 8 (and I assume, later) when building
27046         the latest coreutils, in test-vasprintf-posix's call to
27047         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27048         the wide flavors (e.g., wprintf) so this patch just updates the
27049         documentation for the narrow ones.
27050
27051         test-posixtm.c: add two tests
27052         * tests/test-posixtm.c: Add two tests, to highlight the
27053         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27054         around this bug; this is merely to document it.
27055
27056 2010-12-22  Bruno Haible  <bruno@clisp.org>
27057
27058         getlogin_r: Work around portability problem on OSF/1.
27059         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27060         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27061         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27062         test for a truncated result.
27063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27064         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27065         * modules/getlogin_r (Depends-on): Add memchr.
27066         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27067
27068 2010-12-22  Bruno Haible  <bruno@clisp.org>
27069
27070         ptsname: Avoid test failure on OSF/1 5.1.
27071         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27072         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27073         (same_slave): New function.
27074         (main): Use it to compare ptsname's result with the expected file name.
27075
27076 2010-12-22  Bruno Haible  <bruno@clisp.org>
27077
27078         Port extended stdio modules to HP NonStop Kernel.
27079         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27080         macros.
27081         * lib/fbufmode.c: Update comments.
27082         * lib/fflush.c: Likewise.
27083         * lib/fpurge.c: Likewise.
27084         * lib/freadable.c: Likewise.
27085         * lib/freadahead.c: Likewise.
27086         * lib/freading.c: Likewise.
27087         * lib/freadptr.c: Likewise.
27088         * lib/freadseek.c: Likewise.
27089         * lib/fseeko.c: Likewise.
27090         * lib/fseterr.c: Likewise.
27091         * lib/fwritable.c: Likewise.
27092         * lib/fwriting.c: Likewise.
27093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27094
27095 2010-12-22  Bruno Haible  <bruno@clisp.org>
27096
27097         ttyname_r: Work around bug on OSF/1 5.1.
27098         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27099         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27100         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27101         present.
27102         * lib/ttyname_r.c (ttyname_r): Update comments.
27103
27104 2010-12-22  Bruno Haible  <bruno@clisp.org>
27105
27106         round: Implement result sign according to IEEE 754.
27107         * lib/round.c (MIN, MINUS_ZERO): New macros.
27108         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27109         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27110         * tests/test-round-ieee.c (main): Likewise.
27111         * tests/test-roundl-ieee.c (main): Likewise.
27112
27113         trunc: Implement result sign according to IEEE 754.
27114         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27115         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27116         * tests/test-trunc2.c: Include minus-zero.h.
27117         (MINUS_ZERO): New macro.
27118         (trunc_reference): Keep in sync with lib/trunc.c.
27119         * tests/test-truncf2.c: Include minus-zero.h.
27120         (MINUS_ZERO): New macro.
27121         (truncf_reference): Keep in sync with lib/trunc.c.
27122         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27123         * tests/test-trunc-ieee.c (main): Likewise.
27124         * tests/test-truncl-ieee.c (main): Likewise.
27125
27126         ceil: Implement result sign according to IEEE 754.
27127         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27128         (FUNC): Return -0.0 for -1 < x < 0.
27129         * tests/test-ceil2.c: Include minus-zero.h.
27130         (MINUS_ZERO): New macro.
27131         (ceil_reference): Keep in sync with lib/ceil.c.
27132         * tests/test-ceilf2.c: Include minus-zero.h.
27133         (MINUS_ZERO): New macro.
27134         (ceilf_reference): Keep in sync with lib/ceil.c.
27135         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27136         * tests/test-ceil-ieee.c (main): Likewise.
27137         * tests/test-ceill-ieee.c (main): Likewise.
27138
27139         floor: Implement result sign according to IEEE 754.
27140         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27141         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27142         * tests/test-floorf2.c (floorf_reference): Likewise.
27143         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27144         * tests/test-floor-ieee.c (main): Likewise.
27145         * tests/test-floorl-ieee.c (main): Likewise.
27146
27147 2010-12-22  Bruno Haible  <bruno@clisp.org>
27148
27149         getaddrinfo: Update doc.
27150         * doc/posix-functions/gai_strerror.texi: Return type is also different
27151         on AIX and HP-UX.
27152
27153 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27154
27155         getaddrinfo, inet_ntop: Update doc for Solaris.
27156         * doc/posix-functions/gai_strerror.texi: Return type is also an
27157         issue on Solaris 9 and earlier.
27158         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27159         on Solaris 10 and earlier.
27160
27161 2010-12-21  Bruno Haible  <bruno@clisp.org>
27162
27163         New module 'roundl-ieee'.
27164         * modules/roundl-ieee: New file.
27165         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27166         test whether roundl works according to ISO C 99 with IEC 60559.
27167         * m4/roundl-ieee.m4: New file.
27168         * modules/roundl-ieee-tests: New file.
27169         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27170         * tests/test-roundl.c (main): Remove signbit tests.
27171         * modules/roundl-tests (Depends-on): Remove signbit.
27172         * doc/posix-functions/roundl.texi: Mention the new module.
27173
27174 2010-12-21  Bruno Haible  <bruno@clisp.org>
27175
27176         New module 'truncl-ieee'.
27177         * modules/truncl-ieee: New file.
27178         * modules/truncl-ieee-tests: New file.
27179         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27180         * tests/test-truncl.c (main): Remove signbit tests.
27181         * modules/truncl-tests (Depends-on): Remove signbit.
27182         * doc/posix-functions/truncl.texi: Mention the new module.
27183
27184 2010-12-21  Bruno Haible  <bruno@clisp.org>
27185
27186         New module 'ceill-ieee'.
27187         * modules/ceill-ieee: New file.
27188         * modules/ceill-ieee-tests: New file.
27189         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27190         * tests/test-ceill.c (main): Remove signbit tests.
27191         * modules/ceill-tests (Depends-on): Remove signbit.
27192         * doc/posix-functions/ceill.texi: Mention the new module.
27193
27194 2010-12-21  Bruno Haible  <bruno@clisp.org>
27195
27196         New module 'floorl-ieee'.
27197         * modules/floorl-ieee: New file.
27198         * modules/floorl-ieee-tests: New file.
27199         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27200         * tests/test-floorl.c (main): Remove signbit tests.
27201         * modules/floorl-tests (Depends-on): Remove signbit.
27202         * doc/posix-functions/floorl.texi: Mention the new module.
27203
27204 2010-12-21  Bruno Haible  <bruno@clisp.org>
27205
27206         New module 'round-ieee'.
27207         * modules/round-ieee: New file.
27208         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27209         whether round works according to ISO C 99 with IEC 60559.
27210         * m4/round-ieee.m4: New file.
27211         * modules/round-ieee-tests: New file.
27212         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27213         * tests/test-round1.c (main): Remove signbit tests.
27214         * modules/round-tests (Depends-on): Remove 'signbit'.
27215         * doc/posix-functions/round.texi: Mention the new module.
27216
27217 2010-12-21  Bruno Haible  <bruno@clisp.org>
27218
27219         New module 'trunc-ieee'.
27220         * modules/trunc-ieee: New file.
27221         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27222         whether trunc works according to ISO C 99 with IEC 60559.
27223         * m4/trunc-ieee.m4: New file.
27224         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27226         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27227         * modules/trunc-ieee-tests: New file.
27228         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27229         * tests/test-trunc1.c (main): Remove signbit tests.
27230         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27231         * doc/posix-functions/trunc.texi: Mention the new module.
27232
27233 2010-12-21  Bruno Haible  <bruno@clisp.org>
27234
27235         New module 'ceil-ieee'.
27236         * modules/ceil-ieee: New file.
27237         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27238         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27239         ISO C 99 with IEC 60559.
27240         * m4/ceil-ieee.m4: New file.
27241         * modules/ceil (Files): Add lib/ceil.c.
27242         (Depends-on): Add 'float'.
27243         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27244         * lib/math.in.h (ceil): New declaration.
27245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27246         REPLACE_CEIL.
27247         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27248         * modules/ceil-ieee-tests: New file.
27249         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27250         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27251         * doc/posix-functions/ceil.texi: Mention the new module.
27252
27253 2010-12-21  Bruno Haible  <bruno@clisp.org>
27254
27255         New module 'floor-ieee'.
27256         * modules/floor-ieee: New file.
27257         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27258         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27259         ISO C 99 with IEC 60559.
27260         * m4/floor-ieee.m4: New file.
27261         * modules/floor (Files): Add lib/floor.c.
27262         (Depends-on): Add 'float'.
27263         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27264         * lib/math.in.h (floor): New declaration.
27265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27266         REPLACE_FLOOR.
27267         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27268         * modules/floor-ieee-tests: New file.
27269         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27270         * tests/test-math-c++.cc: Check the signature of 'floor'.
27271         * doc/posix-functions/floor.texi: Mention the new module.
27272
27273 2010-12-21  Bruno Haible  <bruno@clisp.org>
27274
27275         New module 'roundf-ieee'.
27276         * modules/roundf-ieee: New file.
27277         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27278         test whether roundf works according to ISO C 99 with IEC 60559.
27279         * m4/roundf-ieee.m4: New file.
27280         * modules/roundf-ieee-tests: New file.
27281         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27282         * tests/test-roundf1.c (main): Remove signbit tests.
27283         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27284         * doc/posix-functions/roundf.texi: Mention the new module.
27285
27286 2010-12-21  Bruno Haible  <bruno@clisp.org>
27287
27288         New module 'truncf-ieee'.
27289         * modules/truncf-ieee: New file.
27290         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27291         test whether truncf works according to ISO C 99 with IEC 60559.
27292         * m4/truncf-ieee.m4: New file.
27293         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27295         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27296         * modules/truncf-ieee-tests: New file.
27297         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27298         * tests/test-truncf1.c (main): Remove signbit tests.
27299         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27300         * doc/posix-functions/truncf.texi: Mention the new module.
27301
27302 2010-12-21  Bruno Haible  <bruno@clisp.org>
27303
27304         New module 'ceilf-ieee'.
27305         * modules/ceilf-ieee: New file.
27306         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27307         test whether ceilf works according to ISO C 99 with IEC 60559.
27308         * m4/ceilf-ieee.m4: New file.
27309         * modules/ceilf-ieee-tests: New file.
27310         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27311         * tests/test-ceilf1.c (main): Remove signbit tests.
27312         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27313         * doc/posix-functions/ceilf.texi: Mention the new module.
27314
27315 2010-12-21  Bruno Haible  <bruno@clisp.org>
27316
27317         New module 'floorf-ieee'.
27318         * modules/floorf-ieee: New file.
27319         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27320         test whether floorf works according to ISO C 99 with IEC 60559.
27321         * m4/floorf-ieee.m4: New file.
27322         * modules/floorf-ieee-tests: New file.
27323         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27324         * tests/test-floorf1.c (main): Remove signbit tests.
27325         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27326         * doc/posix-functions/floorf.texi: Mention the new module.
27327
27328 2010-12-21  Bruno Haible  <bruno@clisp.org>
27329
27330         Support for minus zero in autoconf macros.
27331         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27332         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27333         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27334         * tests/minus-zero.h: Update comments.
27335
27336 2010-12-21  Bruno Haible  <bruno@clisp.org>
27337
27338         Tests for module 'ceil'.
27339         * modules/ceil-tests: New file.
27340         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27341         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27342
27343 2010-12-21  Bruno Haible  <bruno@clisp.org>
27344
27345         Tests for module 'floor'.
27346         * modules/floor-tests: New file.
27347         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27348         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27349
27350 2010-12-21  Bruno Haible  <bruno@clisp.org>
27351
27352         math: Fix indentation.
27353         * lib/math.in.h (floorf): Fix indentation.
27354
27355 2010-12-21  Bruno Haible  <bruno@clisp.org>
27356
27357         Fix cross-compilation guesses on Solaris.
27358         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27359         not match "solaris2.10".
27360         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27361         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27362         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27363
27364 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27365
27366         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27367         This fixes a problem observed with the latest coreutils snapshot
27368         that caused a test to fail on Solaris 8.  src/csplit.c's call
27369         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27370         earlier, instead of returning the number of bytes that would have
27371         been generated; this causes csplit to incorrectly report memory
27372         exhaustion.
27373         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27374         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27375         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27376         comments to match.
27377         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27378         Fix typo in matching older versions of Solaris: "solaris2.10"
27379         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27380         only for guessing while cross-compiling.
27381         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27382
27383 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         ftoastr: fix comment again
27386         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27388         Also, simplify example a bit by using flags = 0.
27389
27390 2010-12-20  Bruno Haible  <bruno@clisp.org>
27391
27392         round*, trunc*: Update documentation regarding glibc.
27393         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27394         * doc/posix-functions/round.texi: Likewise.
27395         * doc/posix-functions/roundl.texi: Likewise.
27396         * doc/posix-functions/truncf.texi: Likewise.
27397         * doc/posix-functions/trunc.texi: Likewise.
27398         * doc/posix-functions/truncl.texi: Likewise.
27399
27400 2010-12-20  Bruno Haible  <bruno@clisp.org>
27401
27402         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27403         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27404         * doc/posix-functions/round.texi: Likewise.
27405         * doc/posix-functions/roundl.texi: Likewise.
27406
27407 2010-12-20  Bruno Haible  <bruno@clisp.org>
27408
27409         ttyname_r: Add missing declaration on HP-UX 11.
27410         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27411         HAVE_TTYNAME_R.
27412         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27413         declared. Set HAVE_TTYNAME_R always.
27414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27415         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27416         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27417         HAVE_TTYNAME_R.
27418         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27419
27420 2010-12-20  Bruno Haible  <bruno@clisp.org>
27421
27422         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27423         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27424         * doc/posix-functions/getlogin_r.texi: Likewise.
27425         * tests/test-getlogin.c: Include <errno.h>.
27426         (main): Avoid test failure on HP-UX 11.11.
27427         * tests/test-getlogin_r.c (main): Likewise.
27428
27429 2010-12-20  Bruno Haible  <bruno@clisp.org>
27430
27431         getlogin_r: Add missing declaration on HP-UX 11.
27432         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27433         declared also when it exists as a function.
27434         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27435
27436 2010-12-20  Bruno Haible  <bruno@clisp.org>
27437
27438         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27439         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27440         through wcrtomb.
27441
27442 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27443
27444         ftoastr: fix comment
27445         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27447
27448 2010-12-19  Bruno Haible  <bruno@clisp.org>
27449
27450         isnan: Ensure it is a macro.
27451         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27452         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27453         Solaris.
27454
27455 2010-12-19  Bruno Haible  <bruno@clisp.org>
27456
27457         ldexpl test: Fix link error on OSF/1 5.1.
27458         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27459
27460 2010-12-19  Bruno Haible  <bruno@clisp.org>
27461
27462         wctype: Make it work in C++ mode on OSF/1 5.1.
27463         * lib/wctype.in.h (iswblank): Declare but not define here.
27464         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27465         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27466         * modules/wctype (Files): Add lib/iswblank.c.
27467
27468 2010-12-19  Bruno Haible  <bruno@clisp.org>
27469
27470         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27471         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27472         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27473
27474 2010-12-19  Bruno Haible  <bruno@clisp.org>
27475
27476         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27478         _POSIX_PII_SOCKET.
27479         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27480         * doc/posix-functions/recvfrom.texi: Likewise.
27481         * doc/posix-functions/send.texi: Likewise.
27482         * doc/posix-functions/sendto.texi: Likewise.
27483
27484 2010-12-19  Bruno Haible  <bruno@clisp.org>
27485
27486         tcgetsid: Add missing declaration on OSF/1 5.1.
27487         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27488         HAVE_TCGETSID.
27489         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27490         Don't set HAVE_TCGETSID.
27491         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27492         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27493         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27494         HAVE_TCGETSID.
27495         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27496
27497 2010-12-19  Bruno Haible  <bruno@clisp.org>
27498
27499         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27500         * lib/stdio.in.h: During the include_next statement, let recursive
27501         includes of this file include only the system header file.
27502
27503 2010-12-19  Bruno Haible  <bruno@clisp.org>
27504
27505         iconv_open: Fix regression from 2010-12-04.
27506         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27507         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27508
27509 2010-12-19  Bruno Haible  <bruno@clisp.org>
27510
27511         stdbool test: Avoid a gcc warning.
27512         * tests/test-stdbool.c (main): Fail if e1 is false.
27513         Reported by Jim Meyering.
27514
27515 2010-12-19  Jim Meyering  <meyering@redhat.com>
27516
27517         setenv: restore to working order
27518         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27519         mistakenly removed.
27520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27521         HAVE_SETENV.
27522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27523         HAVE_SETENV.
27524
27525 2010-12-19  Bruno Haible  <bruno@clisp.org>
27526
27527         Document some different function declarations on OSF/1 5.1.
27528         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27529         * doc/posix-functions/inet_ntop.texi: Likewise.
27530         * doc/posix-functions/gethostname.texi: Likewise.
27531         * lib/unistd.in.h (gethostname): Update comment.
27532
27533 2010-12-19  Bruno Haible  <bruno@clisp.org>
27534
27535         doc: Mention vasprintf-posix module.
27536         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27537         the 'vasprintf-posix' module.
27538         * doc/glibc-functions/vasprintf.texi: Likewise.
27539
27540 2010-12-19  Bruno Haible  <bruno@clisp.org>
27541
27542         unsetenv: Add missing declaration on OSF/1 5.1.
27543         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27544         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27545         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27547         not HAVE_UNSETENV.
27548         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27549         HAVE_UNSETENV.
27550         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27551
27552 2010-12-19  Bruno Haible  <bruno@clisp.org>
27553
27554         setenv: Add missing declaration on OSF/1 5.1.
27555         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27556         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27557         declared. Don't set HAVE_SETENV.
27558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27559         not HAVE_SETENV.
27560         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27561         HAVE_SETENV.
27562         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27563
27564 2010-12-19  Bruno Haible  <bruno@clisp.org>
27565
27566         nl_langinfo tests: Avoid gcc warning.
27567         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27568
27569 2010-12-19  Bruno Haible  <bruno@clisp.org>
27570
27571         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27572         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27573         _GL_CXXALIAS_SYS.
27574
27575 2010-12-19  Bruno Haible  <bruno@clisp.org>
27576
27577         stdbool: Relax test.
27578         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27579         address to 'bool' work in static initializer, for compilers other than
27580         GCC.
27581
27582 2010-12-19  Bruno Haible  <bruno@clisp.org>
27583
27584         ftello: Add missing declaration on OSF/1 5.1.
27585         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27586         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27588         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27589         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27590
27591 2010-12-19  Bruno Haible  <bruno@clisp.org>
27592
27593         fseeko: Add missing declaration on OSF/1 5.1.
27594         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27595         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27597         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27598         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27599
27600 2010-12-19  Bruno Haible  <bruno@clisp.org>
27601
27602         fchdir: Add missing declaration on OSF/1 5.1.
27603         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27606         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27607         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27608
27609 2010-12-19  Bruno Haible  <bruno@clisp.org>
27610
27611         relocatable-prog-wrapper: Separate from relocatable-prog.
27612         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27613         uninstall-relocwrapper rule here.
27614         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27615         Reported by Ian Beckwith <ianb@erislabs.net>.
27616
27617 2010-12-19  Bruno Haible  <bruno@clisp.org>
27618
27619         unistr/u8-mbsnlen: Add missing dependency.
27620         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27621         Reported by Ian Beckwith <ianb@erislabs.net>.
27622
27623 2010-12-19  Bruno Haible  <bruno@clisp.org>
27624
27625         iconv: Make it possible again to use this module without 'iconv-h'.
27626         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27627         if it is not defined.
27628         Reported by Ian Beckwith <ianb@erislabs.net>.
27629
27630 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27631
27632         acl: port to Solaris 8 when copying from tmpfs to ufs
27633         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27634         error number.  Problem observed on Solaris 8 with latest
27635         coreutils, with "mv A B", where A is on a tmpfs file system and B
27636         is on a ufs file system.  This caused coreutils' mv/part-symlink
27637         test to fail.
27638
27639         tests: set fail=0 at start
27640         * tests/init.sh (setup_): Move fail=0 initialization here ...
27641         (mktempd_): ... from here, so that tests can rely on fail being
27642         set to 0 initially.  This fixes a problem in coreutils; see:
27643         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27644
27645 2010-12-18  Bruno Haible  <bruno@clisp.org>
27646
27647         memmem-simple: Stylistic changes.
27648         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27649         Fix preprocessor directive indentation.
27650
27651 2010-12-15  Pádraig Brady <P@draigBrady.com>
27652
27653         memmem, memmem-simple: reorganize and expand empty needle check
27654         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27655         functional checks to memmem-simple so that one has a fully functional
27656         memmem by using just this module.
27657         Restrict the performance only check to the memmem module.
27658         Also expand the empty needle check to ensure the correct
27659         pointer is returned, not just a non NULL pointer.
27660         * doc/glibc-functions/memmem.texi: Rearrange the portability
27661         documentation to correlate with the rearranged checks.
27662         Clarify exactly how the memmem and memmem-simple modules
27663         relate to each other.
27664
27665 2010-12-15  Pádraig Brady <P@draigBrady.com>
27666             Bruno Haible  <bruno@clisp.org>
27667
27668         Improve cross-compilation guesses for uClibc.
27669         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27670         that uClibc does not have the glibc bug.
27671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27673
27674 2010-12-14  Eric Blake  <eblake@redhat.com>
27675
27676         configmake: provide fallbacks for oldest supported autotools
27677         * m4/configmake.m4: New file.
27678         * modules/configmake (Files): Ship it.
27679         (configure.ac): Use it to guarantee fallbacks.
27680
27681 2010-12-13  Pádraig Brady <P@draigBrady.com>
27682
27683         read-file: Improve handling of large files
27684         * lib/read-file.c (fread_file): Minimize realloc()s
27685         for regular files, and better manage sizes around SIZE_MAX.
27686
27687 2010-12-13  Eric Blake  <eblake@redhat.com>
27688
27689         cloexec, fcntl: relax license
27690         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27691         consent from all contributors.
27692         * modules/fcntl (License): Likewise.
27693
27694 2010-12-10  Bruno Haible  <bruno@clisp.org>
27695
27696         Tests for module 'pipe-posix'.
27697         * modules/pipe-posix-tests: New file.
27698         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27699
27700 2010-12-10  Bruno Haible  <bruno@clisp.org>
27701
27702         pipe-posix: Make it work in C++ mode.
27703         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27704         (pipe): Use common idiom, not a macro definition.
27705         * lib/pipe.c: New file.
27706         * m4/pipe.m4: New file.
27707         * modules/pipe-posix (Description): Enhance.
27708         (Files): Add lib/pipe.c, m4/pipe.m4.
27709         (configure.ac): Invoke gl_FUNC_PIPE.
27710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27711         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27712         * tests/test-unistd-c++.cc: Check the signature of pipe.
27713
27714 2010-12-10  Bruno Haible  <bruno@clisp.org>
27715
27716         Rename module 'pipe' to 'spawn-pipe'.
27717         * modules/spawn-pipe: New file, renamed from modules/pipe.
27718         (Files, configure.ac, Makefile.am): Update.
27719         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27720         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27721         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27722         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27723         "spawn-pipe.h" instead of "pipe.h".
27724         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27725         to gl_SPAWN_PIPE.
27726         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27727         (Files, Makefile.am): Update.
27728         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27729         Update.
27730         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27731         Include "spawn-pipe.h" instead of "pipe.h".
27732         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27733         * lib/javacomp.c: Likewise.
27734         * lib/javaversion.c: Likewise.
27735         * lib/pipe-filter-gi.c: Likewise.
27736         * lib/pipe-filter-ii.c: Likewise.
27737         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27738         * modules/javacomp (Depends-on): Likewise.
27739         * modules/javaversion (Depends-on): Likewise.
27740         * modules/pipe-filter-gi (Depends-on): Likewise.
27741         * modules/pipe-filter-ii (Depends-on): Likewise.
27742         * MODULES.html.sh (Executing programs): Update.
27743         * NEWS: Mention the change.
27744
27745 2010-12-10  Eric Blake  <eblake@redhat.com>
27746
27747         pipe-posix: new module
27748         * modules/pipe-posix: New file.
27749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27750         (gl_UNISTD_H): Check for declaration.
27751         * modules/unistd (Makefile.am): Substitute it.
27752         * lib/unistd.in.h (pipe): Provide it for mingw.
27753         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27754         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27755
27756 2010-12-07  Bruno Haible  <bruno@clisp.org>
27757
27758         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27759         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27760         u8_strcmp_gnu.
27761         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27762
27763 2010-12-06  Bruno Haible  <bruno@clisp.org>
27764
27765         Update internal documentation.
27766         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27767
27768 2010-12-04  Bruno Haible  <bruno@clisp.org>
27769
27770         Put more information about failed tests into the test return codes.
27771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27772         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27773         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27774         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27775         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27776         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27777         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27778         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27779         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27782         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27783         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27784         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27785         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27786         returns a bit mask.
27787         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27788         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27789         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27790         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27795         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27797         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27798         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27801         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27802         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27803         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27804         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27805         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27806         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27807         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27808         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27810         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27811         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27812         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27813         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27814         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27815         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27816         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27817         gl_PRINTF_PRECISION): Likewise.
27818         * m4/regex.m4 (gl_REGEX): Likewise.
27819         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27822         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27823         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27825         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27826         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27827         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27828         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27829         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27830         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27831         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27832         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27833         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27834         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27835         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27836         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27838         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27839         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27840         enumerated value.
27841         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27842
27843 2010-12-04  Bruno Haible  <bruno@clisp.org>
27844
27845         Update for Solaris 11 2010-11.
27846         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27847         Express, released in November 2010.
27848
27849 2010-12-04  Bruno Haible  <bruno@clisp.org>
27850
27851         nproc: Relax license.
27852         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27853         and Paul Eggert.
27854         Requested by Ludovic Courtès <ludo@gnu.org>.
27855
27856 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         utimecmp: fine-grained src to nearby coarse-grained dest
27859
27860         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27861         and the source is on a file system with higher-resolution time
27862         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27863         not work, and the time stamps are close together, the algorithm to
27864         determine the exact resolution from the read-back mtime was buggy:
27865         it had a "!=" where it should have had an "==".  This bug has been
27866         in the code ever since it was introduced to gnulib.
27867         Problem reported by Dan Jacobson in
27868         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27869
27870 2010-11-30  Bruno Haible  <bruno@clisp.org>
27871
27872         strerror_r-posix: Fix autoconf test.
27873         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27874
27875 2010-11-28  Bruno Haible  <bruno@clisp.org>
27876             Paul Eggert  <eggert@cs.ucla.edu>
27877
27878         Tests for module 'getdomainname'.
27879         * modules/getdomainname-tests: New file.
27880         * tests/test-getdomainname.c: New file, based on
27881         tests/test-gethostname.c.
27882
27883 2010-11-28  Bruno Haible  <bruno@clisp.org>
27884             Paul Eggert  <eggert@cs.ucla.edu>
27885
27886         getdomainname: Use the system function when possible.
27887         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27888         (getdomainname): Replace if needed. Provide the declaration if it is
27889         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27890         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27891         (getdomainname): When the system has getdomainname, call the system
27892         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27893         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27894         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27895         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27896         the function if its second argument is of type 'int' or if it is found
27897         in libnsl.
27898         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27899         <sys/systeminfo.h> and sysinfo().
27900         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27902         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27903         HAVE_GETDOMAINNAME.
27904         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27905         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27906         * doc/glibc-functions/getdomainname.texi: Document the problems with
27907         the getdomainname declaration.
27908
27909 2010-11-28  Bruno Haible  <bruno@clisp.org>
27910
27911         sys_socket: Ensure ss_family field on AIX.
27912         * lib/sys_socket.in.h (ss_family): New macro definition.
27913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27914         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27915         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27916         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27917         * modules/sys_socket (Makefile.am): Substitute
27918         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27919         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27920
27921 2010-11-27  Bruno Haible  <bruno@clisp.org>
27922
27923         readline: Improve configure output.
27924         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27925         "checking for readline..." result understandable.
27926
27927 2010-11-27  Bruno Haible  <bruno@clisp.org>
27928
27929         *printf-posix: Detect a bug on Solaris 10/x86.
27930         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27931         for floating-point output.
27932         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27933         directive.
27934         * tests/test-snprintf-posix.h (test_function): Likewise.
27935         * tests/test-sprintf-posix.h (test_function): Likewise.
27936         * tests/test-vasprintf-posix.c (test_function): Likewise.
27937         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27938         * doc/posix-functions/printf.texi: Likewise.
27939         * doc/posix-functions/snprintf.texi: Likewise.
27940         * doc/posix-functions/sprintf.texi: Likewise.
27941         * doc/posix-functions/vfprintf.texi: Likewise.
27942         * doc/posix-functions/vprintf.texi: Likewise.
27943         * doc/posix-functions/vsnprintf.texi: Likewise.
27944         * doc/posix-functions/vsprintf.texi: Likewise.
27945         * doc/glibc-functions/obstack_printf.texi: Likewise.
27946         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27947
27948 2010-11-27  Bruno Haible  <bruno@clisp.org>
27949
27950         Fix link error when module libunistring-optional is in use.
27951         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27952         * modules/striconveha-tests (Makefile.am): Likewise.
27953
27954 2010-11-27  Bruno Haible  <bruno@clisp.org>
27955
27956         regex: Mention link dependencies.
27957         * modules/regex (Link): New section.
27958         * modules/rpmatch (Link): Likewise.
27959         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27960
27961 2010-11-27  Bruno Haible  <bruno@clisp.org>
27962
27963         ftoastr: Fix compilation error on Solaris.
27964         * lib/ftoastr.c: Include <config.h>.
27965
27966 2010-11-27  Bruno Haible  <bruno@clisp.org>
27967
27968         getloadavg: Update documentation.
27969         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27970
27971 2010-11-27  Bruno Haible  <bruno@clisp.org>
27972
27973         sys_socket: Fix test whether the functions are declared.
27974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27975         not <sys/select.h>.
27976
27977 2010-11-27  Bruno Haible  <bruno@clisp.org>
27978
27979         getpass: Make sure to get system declaration on some platforms.
27980         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27981         gl_USE_SYSTEM_EXTENSIONS.
27982         * modules/getpass (Depends-on): Add extensions.
27983
27984 2010-11-26  Bruno Haible  <bruno@clisp.org>
27985
27986         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27987         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27988         'iconv' module is present.
27989         (ICONV_CONST): New macro.
27990         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27991         ICONV_CONST.
27992         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27993         set ICONV_CONST.
27994         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27995         here.
27996         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27997         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27998         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27999         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28000         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28001         present.
28002
28003 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28004
28005         ftoastr: comment fix
28006         * lib/ftoastr.c: "little" -> "little or no" in comment
28007
28008 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28009
28010         stdint: port to GCC 4.3 + OSX + Octave
28011         On this platform, stdint.h is buggy and defines int64_t to long
28012         long int.  The replacement defined it to long int, causing
28013         problems with C++ style name mangling.  Instead, trust the system
28014         definition if INT64_MAX is defined, and likewise for the unsigned
28015         variant.   Problem reported by Jarno Rajahalme in
28016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28017         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28018         and don't mess with int64_t and INT64_MAX in this case.
28019         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28020
28021 2010-11-24  Bruno Haible  <bruno@clisp.org>
28022
28023         doc: Corrections regarding MacOS X 10.4 and 10.5.
28024         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28025         MacOS X.
28026         Reported by Simon Josefsson.
28027
28028 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28029
28030         Uninstall ".bin" files installed by relocwrapper.
28031         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28032         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28033         unless it is already there.
28034
28035 2010-11-21  Bruno Haible  <bruno@clisp.org>
28036
28037         Update for NetBSD 5.0.
28038         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28039         NetBSD; the test fails on NetBSD 5.0.
28040         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28041         about NetBSD.
28042
28043 2010-11-21  Bruno Haible  <bruno@clisp.org>
28044
28045         Update for HP-UX 11.23 and HP-UX 11.31.
28046         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28047         HP-UX.
28048
28049 2010-11-21  Bruno Haible  <bruno@clisp.org>
28050
28051         Update for MacOS X 10.5.
28052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28053         MacOS X; the test fails on MacOS X 10.5.8.
28054         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28055         about MacOS X.
28056
28057 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28058
28059         bootstrap: add bootstrap_sync option.
28060         See discussion at
28061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28063         * build-aux/bootstrap: Accept --bootstrap-sync to update
28064         bootstrap if it is not identical to the local gnulib's
28065         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28066         enable this by default.  Accept --no-bootstrap-sync to disable
28067         it.
28068
28069 2010-11-20  Bruno Haible  <bruno@clisp.org>
28070
28071         Ensure that <features.h> is included before __GLIBC__ is tested.
28072         * lib/printf-parse.h: Include <features.h>.
28073         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28074         Reported by Mike Frysinger <vapier@gentoo.org>.
28075
28076         Ensure that <features.h> is included before __GLIBC__ is tested.
28077         * lib/wchar.in.h: Include <features.h>.
28078         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28079         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28080         Reported by Mike Frysinger <vapier@gentoo.org>.
28081
28082         Ensure that <features.h> is included before __GLIBC__ is tested.
28083         * lib/arpa_inet.in.h: Include <features.h>.
28084         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28085         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28086         Reported by Mike Frysinger <vapier@gentoo.org>.
28087
28088         Ensure that <features.h> is included before __GLIBC__ is tested.
28089         * build-aux/link-warning.h: Include <features.h>.
28090         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28091         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28092         Reported by Mike Frysinger <vapier@gentoo.org>.
28093
28094         Ensure that <features.h> is included before __GLIBC__ is tested.
28095         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28096         Reported by Mike Frysinger <vapier@gentoo.org>.
28097
28098 2010-11-20  Bruno Haible  <bruno@clisp.org>
28099
28100         memmem: Fix autoconf test.
28101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28102
28103 2010-11-20  Bruno Haible  <bruno@clisp.org>
28104
28105         Port to uClibc.
28106         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28107         * lib/fcntl.in.h: Likewise.
28108         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28109         * lib/mbrtowc.c (mbrtowc): Likewise.
28110         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28111         * lib/strerror_r.c: Likewise.
28112         * lib/unistr/u8-strnlen.c: Likewise.
28113         * lib/vasnprintf.c (decimal_point_char): Likewise.
28114         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28115         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28116         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28117         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28118         * tests/test-sigaction.c (handler, main): Likewise.
28119         * lib/freading.h: Treat uClibc like a non-glibc platform.
28120         * lib/freading.c: Likewise.
28121         * lib/gettext.h: Likewise.
28122         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28123         Likewise.
28124         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28125         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28126         * lib/propername.c (proper_name_utf8): Likewise.
28127         * lib/spawn.in.h: Likewise.
28128         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28129         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28130         mem_cd_iconveh_internal): Likewise.
28131         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28132         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28133         strstr, strcasestr): Likewise.
28134         * lib/unicodeio.c (unicode_to_mb): Likewise.
28135         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28136         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28137         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28138         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28139         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28140         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28141         * lib/unistr/u8-stpncpy.c: Likewise.
28142         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28143         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28144         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28145         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28146         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28147         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28148         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28151         Likewise.
28152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28153         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28154         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28158         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28159         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28160         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28161         * tests/test-striconveha.c (main): Likewise.
28162         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28163         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28164         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28165         * doc/posix-functions/getline.texi: Likewise.
28166         Reported by Mike Frysinger <vapier@gentoo.org>.
28167
28168 2010-11-20  Bruno Haible  <bruno@clisp.org>
28169
28170         nproc: Fix condition.
28171         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28172         HAVE_PTHREAD_AFFINITY_NP.
28173
28174 2010-11-20  Bruno Haible  <bruno@clisp.org>
28175
28176         Fix a comment.
28177         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28178
28179 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         ftoastr: don't assume snprintf
28182         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28183         Implement a subset of snprintf here, by using sprintf safely.
28184         * modules/ftoastr (Depends-on): Remove snprintf.
28185
28186 2010-11-19  Jim Meyering  <meyering@redhat.com>
28187
28188         test-rename.h: fix compilation failure
28189         * tests/test-rename.h (test_rename): Add omitted "}".
28190
28191 2010-11-17  Jim Meyering  <meyering@redhat.com>
28192
28193         maint.mk: add a URL discussing the no-@acronym policy
28194         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28195
28196 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28197
28198         ftoastr: depend on snprintf, improve comments
28199         * lib/ftoastr.c: Also mention Loitsch's draft.
28200         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28201         needed in the current implementation, but it might simplify
28202         speeding up the code later.
28203         * modules/ftoastr: Depend on snprintf; this improves portability.
28204         Suggested by Bruno Haible in the same email.
28205
28206         ftoastr: port to hosts lacking strtof and strtold
28207         Problem reported by Bruno Haible in
28208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28209         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28210         environment and strtold (and presumably strtof) are not available.
28211         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28212         (configure.ac): Require gl_C99_STRTOLD.
28213
28214 2010-11-18  Bruno Haible  <bruno@clisp.org>
28215
28216         c-strtold: Avoid link error on AIX 7.
28217         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28218         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28219         (gl_C_STRTOLD): Test whether strtold_l exists.
28220         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28221
28222 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28223
28224         intprops: new macro INT_BITS_STRLEN_BOUND
28225         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28226         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28227         not exposed.  Also, it uses a slightly tighter bound than before;
28228         though this makes no practical difference, we might as well be as
28229         tight as we easily can.
28230
28231         ftoastr: new module, for lossless conversion of floats to short strings
28232         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28233         * modules/ftoastr: New files.
28234
28235 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28236
28237         bootstrap: port to Solaris sed
28238         * build-aux/bootstrap (get_version): Port to Solaris sed.
28239         See Ralf Wildenhues's note in
28240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28241
28242 2010-11-14  Jim Meyering  <meyering@redhat.com>
28243
28244         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28245         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28246         and move definition closer to sole use.
28247
28248 2010-11-13  Jim Meyering  <meyering@redhat.com>
28249
28250         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28251         Now we require at least autoconf-2.59, which means the work-around
28252         is no longer needed.
28253         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28254         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28255         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28257         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28258
28259 2010-11-13  Bruno Haible  <bruno@clisp.org>
28260
28261         rename, renameat: Avoid test failures at NFS mounted locations.
28262         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28263         functions.
28264         (test_rename): Use assert_nonexistent.
28265         * tests/test-rename.c: Include <dirent.h>.
28266         * tests/test-renameat.c: Likewise.
28267         Reported by Gary V. Vaughan <gary@gnu.org>.
28268
28269         rename, renameat: Document Linux bug with NFS
28270         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28271         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28272         * doc/posix-functions/renameat.texi: Likewise.
28273         Suggested by Eric Blake.
28274
28275 2010-11-13  Bruno Haible  <bruno@clisp.org>
28276
28277         rename test: Add comments.
28278         * tests/test-rename.h (test_rename): Add structure and comments.
28279
28280 2010-11-13  Eric Blake  <eblake@redhat.com>
28281
28282         maintainer-makefile: cover a few more files
28283         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28284         scripts generated within C files, for libvirt.
28285
28286 2010-11-13  Bruno Haible  <bruno@clisp.org>
28287
28288         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28289         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28290         character, return the number of bytes that belong together, not always
28291         1.
28292         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28293         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28294         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28295         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28296         number of bytes of an invalid character.
28297         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28298         (main): Invoke it.
28299         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28300         results.
28301         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28302         malformed byte sequences.
28303         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28304         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28305         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28306         Reported by Ben Pfaff and Paolo Bonzini.
28307
28308 2010-11-13  Bruno Haible  <bruno@clisp.org>
28309
28310         openat: Work around glibc bug with fchownat() and empty file names.
28311         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28312         (gl_FUNC_FCHOWNAT): Invoke it.
28313         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28314         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28315         Reported by Gary V. Vaughan <gary@gnu.org>.
28316
28317 2010-11-13  Bruno Haible  <bruno@clisp.org>
28318
28319         openat: Ensure autoconf macro ordering.
28320         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28321         gl_USE_SYSTEM_EXTENSIONS.
28322         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28323
28324 2010-11-13  Bruno Haible  <bruno@clisp.org>
28325
28326         Update comments.
28327         * lib/unistr/u8-check.c: Update file name in comments.
28328         * lib/unistr/u8-mblen.c: Likewise.
28329         * lib/unistr/u8-prev.c: Likewise.
28330         * lib/unistr/u8-strmblen.c: Likewise.
28331         * lib/unistr/u8-strmbtouc.c: Likewise.
28332
28333 2010-11-13  Jim Meyering  <meyering@redhat.com>
28334
28335         tests: avoid test failure on Solaris 10 due to lack of PATH export
28336         * tests/test-update-copyright.sh: Don't forget to export PATH.
28337
28338         init.sh: ensure that IFS is defined, just in case...
28339         * tests/init.sh (setup_): Ensure that IFS is defined,
28340         so that saving and restoring it works as expected.  This
28341         appears to be useful at least for an old version of dash
28342         from a long time ago (RH 6).  See here for details:
28343         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28344
28345         maint.mk: tighten "test a == b" check
28346         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28347         test to files that contain something like #!/bin/sh.
28348         Without this, coreutils would get two false positives in
28349         the comments of C source files.
28350
28351 2010-11-12  Eric Blake  <eblake@redhat.com>
28352
28353         bootstrap: fix typo in previous attempt
28354         * build-aux/bootstrap (buildreq): Correct the grouping.
28355         Reported by Paul Eggert.
28356
28357         maintainer-makefile: prohibit test x == x
28358         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28359         Based on a report by Matthias Bolte.
28360
28361         bootstrap: allow FreeBSD gzip
28362         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28363         which has no '.' and goes to stderr.
28364         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28365         Reported by Matthias Bolte.
28366
28367         maintainer-makefile: check for i18n setup
28368         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28369         will likely work.
28370
28371 2010-11-12  Bruno Haible  <bruno@clisp.org>
28372
28373         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28374         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28375         * lib/nanosleep.c (nanosleep): Likewise.
28376
28377 2010-11-11  Bruno Haible  <bruno@clisp.org>
28378
28379         fcntl-h: Fix for use of C++ on glibc systems.
28380         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28381         also on glibc systems in C++ mode.
28382         Reported by Gary V. Vaughan <gary@gnu.org>.
28383
28384 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28385
28386         mknod: avoid false failure with dash
28387         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28388
28389 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         unlink: Fix "is it should" typo in diagnostic.
28392         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28394
28395 2010-11-11  Bruno Haible  <bruno@clisp.org>
28396
28397         Tests for module 'strerror_r-posix'.
28398         * modules/strerror_r-posix-tests: New file.
28399         * tests/test-strerror_r.c: New file.
28400         * tests/test-string-c++.cc: Check the signature of strerror_r.
28401
28402         New module 'strerror_r-posix'.
28403         * lib/string.in.h (strerror_r): New declaration.
28404         * lib/strerror_r.c: New file.
28405         * m4/strerror_r.m4: New file.
28406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28407         of strerror_r.
28408         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28409         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28410         * modules/strerror_r-posix: New file.
28411         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28412         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28413         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28414         portability problems.
28415
28416 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28417
28418         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28419         line is also considered for output. Quoted function name in shell
28420         command, so temporary files for functions like MyClass::operator()
28421         are removed correctly without errors.
28422
28423 2010-11-09  Bruno Haible  <bruno@clisp.org>
28424
28425         * doc/posix-functions/strerror.texi: List more failing platforms.
28426
28427         * doc/posix-functions/strerror.texi: Add a comment.
28428
28429 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28430
28431         fdopendir: fix bug on MacOS X when low on file descriptors
28432
28433         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28434         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28435         All callers changed.
28436         (fdopendir): Invoke save_cwd at the top level, not after using
28437         multiple dup() calls to use up file descriptors.  Then retry
28438         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28439         less than the maximum number of open file descriptors, because
28440         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28441         on Mac OS X 10.6.4 for tar 1.24
28442         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28443         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28444         and for tar 1.25
28445         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28446
28447 2010-11-07  Bruno Haible  <bruno@clisp.org>
28448
28449         vasnprintf: Support I flag on glibc systems.
28450         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28451         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28452         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28453         snprintf function.
28454         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28455         glibc systems.
28456         * tests/test-vasnprintf-posix3.c: New file.
28457         * modules/vasnprintf-posix-tests (Files): Add it.
28458         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28459
28460 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28461
28462         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28463         * MODULES.html.sh: For compiler warnings, use name
28464         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28465
28466 2010-11-05  Eric Blake  <eblake@redhat.com>
28467
28468         ceil, floor: avoid spurious failure with icc
28469         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28470         [denormals-as-zero] when optimizing without -mieee-fp option.
28471         * tests/test-floorf2.c (floorf_reference): Likewise.
28472         * tests/test-ceilf1.c (dummy): New function.
28473         (main): Use it to outsmart icc's optimization.
28474         * tests/test-floorf1.c (dummy, main): Likewise.
28475
28476         tests: require working signbit
28477         * modules/ceilf-tests (Depends-on): Add signbit.
28478         * modules/ceill-tests (Depends-on): Likewise.
28479         * modules/floorf-tests (Depends-on): Likewise.
28480         * modules/floorl-tests (Depends-on): Likewise.
28481         * modules/round-tests (Depends-on): Likewise.
28482         * modules/roundf-tests (Depends-on): Likewise.
28483         * modules/roundl-tests (Depends-on): Likewise.
28484         * modules/trunc-tests (Depends-on): Likewise.
28485         * modules/truncf-tests (Depends-on): Likewise.
28486         * modules/truncl-tests (Depends-on): Likewise.
28487
28488         strtod: work around icc bug
28489         * lib/strtod.c (minus_zero): Define to working value.
28490         (strtod): Use it to avoid icc bug.
28491
28492         copysign: enhance tests
28493         * modules/copysign-tests (Files): Add minus-zero.h.
28494         * tests/test-copysign.c (main): Also test zeros.
28495
28496 2010-11-04  Eric Blake  <eblake@redhat.com>
28497
28498         ceil, floor, round, trunc: enhance tests of -0
28499         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28500         * tests/test-ceill.c (main): Likewise.
28501         * tests/test-floorf1.c (main): Likewise.
28502         * tests/test-floorl.c (main): Likewise.
28503         * tests/test-round1.c (main): Likewise.
28504         * tests/test-roundf1.c (main): Likewise.
28505         * tests/test-roundl.c (main): Likewise.
28506         * tests/test-trunc1.c (main): Likewise.
28507         * tests/test-truncf1.c (main): Likewise.
28508         * tests/test-truncl.c (main): Likewise.
28509
28510 2010-11-04  Eric Blake  <eblake@redhat.com>
28511
28512         frexp, tests: work around ICC bug with -zero
28513         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28514         works with more compilers.
28515         * tests/minus-zero.h: New file.
28516         * modules/ceilf-tests (Files): Include it.
28517         * modules/ceill-tests (Files): Likewise.
28518         * modules/floorf-tests (Files): Likewise.
28519         * modules/floorl-tests (Files): Likewise.
28520         * modules/frexp-nolibm-tests (Files): Likewise.
28521         * modules/frexp-tests (Files): Likewise.
28522         * modules/frexpl-nolibm-tests (Files): Likewise.
28523         * modules/frexpl-tests (Files): Likewise.
28524         * modules/isnan-tests (Files): Likewise.
28525         * modules/isnand-nolibm-tests (Files): Likewise.
28526         * modules/isnand-tests (Files): Likewise.
28527         * modules/isnanf-nolibm-tests (Files): Likewise.
28528         * modules/isnanf-tests (Files): Likewise.
28529         * modules/isnanl-nolibm-tests (Files): Likewise.
28530         * modules/isnanl-tests (Files): Likewise.
28531         * modules/round-tests (Files): Likewise.
28532         * modules/roundf-tests (Files): Likewise.
28533         * modules/roundl-tests (Files): Likewise.
28534         * modules/ldexpl-tests (Files): Likewise.
28535         * modules/signbit-tests (Files): Likewise.
28536         * modules/snprintf-posix-tests (Files): Likewise.
28537         * modules/sprintf-posix-tests (Files): Likewise.
28538         * modules/strtod-tests (Files): Likewise.
28539         * modules/trunc-tests (Files): Likewise.
28540         * modules/truncf-tests (Files): Likewise.
28541         * modules/truncl-tests (Files): Likewise.
28542         * modules/vsnprintf-posix-tests (Files): Likewise.
28543         * modules/vsprintf-posix-tests (Files): Likewise.
28544         * modules/vasnprintf-posix-tests (Files): Likewise.
28545         * modules/vasprintf-posix-tests (Files): Likewise.
28546         * tests/test-ceilf1.c (main): Use it.
28547         * tests/test-ceill.c (main): Likewise.
28548         * tests/test-floorf1.c (main): Likewise.
28549         * tests/test-floorl.c (main): Likewise.
28550         * tests/test-frexp.c (main): Likewise.
28551         * tests/test-frexpl.c (main): Likewise.
28552         * tests/test-isnan.c (main): Likewise.
28553         * tests/test-isnand.h (main): Likewise.
28554         * tests/test-isnanf.h (main): Likewise.
28555         * tests/test-isnanl.h (main): Likewise.
28556         * tests/test-ldexpl.c (main): Likewise.
28557         * tests/test-round.c (main): Likewise.
28558         * tests/test-roundf.c (main): Likewise.
28559         * tests/test-roundl.c (main): Likewise.
28560         * tests/test-signbit.c (test_signbitf, test_signbitd)
28561         (test_signbitl): Likewise.
28562         * tests/test-snprintf-posix.h (test_function): Likewise.
28563         * tests/test-sprintf-posix.h (test_function): Likewise.
28564         * tests/test-strtod.c (main): Likewise.
28565         * tests/test-trunc1.c (main): Likewise.
28566         * tests/test-truncf1.c (main): Likewise.
28567         * tests/test-truncl.c (main): Likewise.
28568
28569         isnanl: work around icc bug
28570         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28571
28572 2010-11-03  Eric Blake  <eblake@redhat.com>
28573
28574         tests: fix compiler warnings
28575         * tests/test-getopt.h (test_getopt): Fix condition.
28576         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28577         * tests/test-pipe2.c (main): Likewise.
28578         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28579
28580         utimens: fix broken m4 test
28581         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28582
28583 2010-10-28  Bruno Haible  <bruno@clisp.org>
28584
28585         posix_spawn*, getdtablesize: Relax license.
28586         * modules/posix_spawn (License): Change to LGPLv2+.
28587         * modules/posix_spawnp (License): Likewise.
28588         * modules/posix_spawn-internal (License): Likewise.
28589         * modules/posix_spawnattr_init (License): Likewise.
28590         * modules/posix_spawnattr_getflags (License): Likewise.
28591         * modules/posix_spawnattr_setflags (License): Likewise.
28592         * modules/posix_spawnattr_getpgroup (License): Likewise.
28593         * modules/posix_spawnattr_setpgroup (License): Likewise.
28594         * modules/posix_spawnattr_getschedparam (License): Likewise.
28595         * modules/posix_spawnattr_setschedparam (License): Likewise.
28596         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28597         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28598         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28599         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28600         * modules/posix_spawnattr_getsigmask (License): Likewise.
28601         * modules/posix_spawnattr_setsigmask (License): Likewise.
28602         * modules/posix_spawnattr_destroy (License): Likewise.
28603         * modules/posix_spawn_file_actions_init (License): Likewise.
28604         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28605         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28606         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28607         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28608         * modules/getdtablesize (License): Likewise.
28609         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28610
28611 2010-10-26  Bruno Haible  <bruno@clisp.org>
28612
28613         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28614         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28615         Cygwin and mingw.
28616         Suggested by Eric Blake.
28617
28618 2010-10-26  Bruno Haible  <bruno@clisp.org>
28619
28620         stdio: Work around compilation error due to renameat() on Solaris 10.
28621         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28622         * lib/renameat.c: Don't include <unistd.h> here.
28623         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28624         Reported by Paul Eggert and Eric Blake.
28625
28626 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28627
28628         renameat: port to Solaris 10, which declares renameat in unistd.h
28629
28630         * lib/renameat.c: Include unistd.h before stdio.h, because
28631         Solaris 10 declares renameat in unistd.h.  Problem encountered
28632         when building GNU tar 1.24 on Solaris 10.
28633
28634 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28635
28636         fdopendir: fix C89 compilation
28637         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28638         compilers.
28639
28640 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         inttostr: simplify by removing unnecessary redundancy
28643         * lib/anytostr.c: Don't include verify.h.
28644         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28645         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28646         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28647         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28648         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28649         Likewise.
28650         * modules/inttostr (Depends-on): Remove 'verify'.
28651
28652 2010-10-23  Bruno Haible  <bruno@clisp.org>
28653
28654         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28655         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28656         Reported by Eric Blake.
28657
28658 2010-10-23  Bruno Haible  <bruno@clisp.org>
28659
28660         Tests: Fix LOCALE_JA on MirBSD 10.
28661         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28662         to an UTF-8 locale.
28663         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28665         Reported by Eric Blake.
28666
28667 2010-10-21  Bruno Haible  <bruno@clisp.org>
28668
28669         nl_langinfo test: Avoid test failure on NetBSD 5.
28670         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28671         Reported by Eric Blake.
28672
28673 2010-10-21  Eric Blake  <eblake@redhat.com>
28674
28675         c-stack: work around libsigsegv 2.8 bug
28676         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28677         overflow on at least PowerPC64.
28678
28679 2010-10-17  Bruno Haible  <bruno@clisp.org>
28680
28681         userspec: Drop redundant file.
28682         * modules/userspec (Files): Remove lib/inttostr.h.
28683
28684 2010-10-17  Bruno Haible  <bruno@clisp.org>
28685
28686         nl_langinfo tests: Silence some warnings.
28687         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28688         Reported by Jim Meyering.
28689
28690 2010-10-17  Bruno Haible  <bruno@clisp.org>
28691
28692         Make use of GCC's attribute __alloc_size__.
28693         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28694         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28695         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28696         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28697         __alloc_size__.
28698         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28699         Suggested by Jim Meyering.
28700
28701 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28702
28703         bootstrap: anchor .gitignore entries.
28704         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28705         with...
28706         (insert_vc_ignore): ... this new function, which prepends `/' to
28707         all .gitignore entries before passing them to
28708         insert_sorted_if_absent.
28709
28710 2010-10-16  Bruno Haible  <bruno@clisp.org>
28711
28712         nextafter: Fix configure check.
28713         * modules/nextafter (configure.ac): Correct expected prototype.
28714
28715 2010-10-16  Bruno Haible  <bruno@clisp.org>
28716
28717         termios: Update documentation.
28718         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28719
28720 2010-10-16  Bruno Haible  <bruno@clisp.org>
28721
28722         tests: Make them compile with TinyCC.
28723         * tests/test-strstr.c (main): Remove parentheses around array
28724         initializer.
28725
28726 2010-10-15  Eric Blake  <eblake@redhat.com>
28727
28728         ignore-value: make header idempotent
28729         * lib/ignore-value.h: Add double-inclusion guards.
28730         Reported by Stefan Berger.
28731
28732 2010-10-15  Jim Meyering  <meyering@redhat.com>
28733
28734         GNUmakefile: handle "stable" target, not "major"
28735         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28736         lists in maint.mk and announce-gen.  Without this, "make stable"
28737         would fail to ensure that $(VERSION) is up to date.
28738
28739 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28740
28741         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28742         & co.
28743
28744 2010-10-14  Bruno Haible  <bruno@clisp.org>
28745
28746         vasnprintf: Don't set errno to 0.
28747         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28748         block that sets it to 0.
28749         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28750
28751 2010-10-14  Bruno Haible  <bruno@clisp.org>
28752
28753         socketlib: Fix.
28754         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28755         gl_PREREQ_SYS_H_WINSOCK2.
28756         Reported by Ian Beckwith <ianb@erislabs.net>.
28757
28758 2010-10-13  Jim Meyering  <meyering@redhat.com>
28759
28760         test-select-stdin.c: avoid warn_unused_result warnings
28761         * tests/test-select-stdin.c: Include "macros.h".
28762         ASSERT that read and fflush succeed.
28763
28764 2010-10-13  Jim Meyering  <meyering@redhat.com>
28765
28766         git-version-gen: do require git-VC'd files in cwd
28767         * build-aux/git-version-gen: Reject a git version string
28768         if there are no commits associated with the current directory.
28769         This avoids an unlikely false-positive (unrelated dir whose parent
28770         repository also contains a tag matching v*), as pointed out
28771         by Giuseppe Scrivano in
28772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28773
28774 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28775
28776         argv-iter: omit nonconforming declaration
28777         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28778         enum arg_iter_err declaration, which doesn't conform to C99.
28779         Solaris 10 cc warns about this.
28780
28781 2010-10-13  Eric Blake  <eblake@redhat.com>
28782
28783         termios: fix compilation on mingw
28784         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28785         (gl_TERMIOS_H): Adjust it on mingw.
28786         * modules/termios (Makefile.am): Substitute new key.
28787         * lib/termios.in.h (includes): Make include_next conditional.
28788         * doc/posix-headers/termios.texi (termios.h): Update
28789         documentation.
28790         Reported by Daniel P. Berrange.
28791
28792 2010-10-13  Jim Meyering  <meyering@redhat.com>
28793
28794         git-version-gen: don't require that .git/ be in the current dir
28795         * build-aux/git-version-gen: Adjust this script so that it works
28796         when run from any working directory beneath the top-level .git/-
28797         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28798         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28799
28800         test-select: avoid warn_unused_result warnings
28801         * tests/test-select.c: Include "macros.h".
28802         ASSERT that each call to read, write, and pipe succeeds.
28803         While not technically required, also check each "close".
28804         * modules/select-tests (Files): Add tests/macros.h.
28805
28806         test-symlinkat: remove declaration of unused local
28807         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28808
28809         test-inttostr: avoid shadowing warnings
28810         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28811         and use malloc rather than the stack for the same reason as
28812         mentioned in the comment justifying the other allocation.
28813
28814 2010-10-11  Bruno Haible  <bruno@clisp.org>
28815
28816         stdlib: Allow multiple gnulib generated replacements to coexist.
28817         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28818         Reported by Sam Steingold <sds@gnu.org>.
28819
28820 2010-10-11  Jim Meyering  <meyering@redhat.com>
28821
28822         fix a documentation typo
28823         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28824
28825 2010-10-11  Eric Blake  <eblake@redhat.com>
28826
28827         futimens: work around Solaris 11 bug
28828         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28829         * tests/test-futimens.h (test_futimens): Enhance, rather than
28830         weaken test.
28831         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28832
28833 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28834
28835         Indentation.
28836         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28837         higher-level operators more to the left.
28838
28839 2010-10-11  Jim Meyering  <meyering@redhat.com>
28840
28841         test-futimens: avoid unwarranted test failure on Solaris 5.11
28842         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28843         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28844         because it tries to dereference the NULL name argument.
28845
28846 2010-10-11  Bruno Haible  <bruno@clisp.org>
28847
28848         Indentation.
28849         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28850         indentation.
28851
28852 2010-10-11  Jim Meyering  <meyering@redhat.com>
28853
28854         spawn.in.h: make indentation consistent with parentheses
28855         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28856         Make indentation consistent with parentheses.
28857
28858 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28859
28860         Fix mismatched parens in previous commit
28861         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28862         parens.
28863
28864 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28865
28866         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28867
28868         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28869         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28870         * lib/malloca.c: Include "verify.h".
28871         (verify1): Remove, replacing with a verify call.
28872         * lib/relocwrapper.c (verify1): Likewise.
28873         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28874         Likewise.
28875         * modules/malloca (Depends-on): Add 'verify'.
28876         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28877         * modules/vasnprintf (Depends-on): Add 'verify'.
28878         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28879         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28880         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28881         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28882         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28884         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28885
28886         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28887
28888         Formerly the style was sometimes 2*X - 1, because the C standard
28889         was wrongly thought to disallow ?: in integral constant expressions.
28890         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28891         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28892         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28893         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28894         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28895         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28896         verify that time_t cannot be floating.
28897
28898 2010-10-08  Eric Blake  <eblake@redhat.com>
28899
28900         time: enforce recent POSIX ruling that time_t is integral
28901         * lib/time.in.h (__time_t_must_be_integral): Detect any
28902         problematic systems, allowing the rest of gnulib to assume POSIX.
28903
28904 2010-10-08  Jim Meyering  <meyering@redhat.com>
28905
28906         fdopendir: fix a bug on systems lacking openat and /proc support
28907         OpenBSD 4.7 is one such system.  The most noticeable effect was
28908         failure of any application making nontrivial use of fts: rm, du,
28909         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28910           ./rm: traversal failed: `a': Bad file descriptor
28911         Debugging that, you see that even though FD 6 was closed just
28912         prior to the opendir call in fd_clone_opendir, its resulting
28913         dir->dd_fd was 8, rather than the expected value of 6:
28914
28915         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28916         93                close (fd);
28917         (gdb) n
28918         94                dir = fd_clone_opendir (dupfd);
28919         (gdb) n
28920         95                saved_errno = errno;
28921         (gdb) p dir->dd_fd
28922         $11 = 8
28923
28924         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28925         The problem is that on OpenBSD, fd_clone_opendir has to resort
28926         to using the old-style save/restore CWD mechanism, due to its
28927         lack of openat/proc support, and *that* would steal the FD (6)
28928         that opendir was supposed to use.
28929
28930         The fix is to squirrel away the desired FD so that save_cwd uses a
28931         different one, and then free the dest FD right before calling opendir.
28932         That guarantees opendir will use the required file descriptor.
28933
28934         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28935
28936 2010-10-08  Bruno Haible  <bruno@clisp.org>
28937
28938         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28939         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28940
28941 2010-10-08  Bruno Haible  <bruno@clisp.org>
28942
28943         nanosleep: Make replacement POSIX compliant.
28944         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28945         is out of range.
28946         Reported by Jim Meyering.
28947
28948 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28949
28950         bootstrap: add hook for altering gnulib.mk, for Bison
28951         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28952         the Bison bootstrapping process can rewrite file names and variables
28953         in this file before later parts of 'bootstrap' use the file.
28954         Bison wants to include lib/gnulib.mk from the top-level makefile,
28955         so it needs the file names in this file to be relative to the top
28956         level, not relative to lib; plus it needs variable names to be
28957         rewritten.
28958         (slurp): Use the new function.
28959
28960         bootstrap: reformat for readability
28961         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28962
28963 2010-10-08  Eric Blake  <eblake@redhat.com>
28964
28965         docs: update cygwin progress
28966         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28967         1.7.7.
28968         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28969         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28970         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28971         * doc/posix-functions/carg.texi (carg): Likewise.
28972         * doc/posix-functions/cargf.texi (cargf): Likewise.
28973         * doc/posix-functions/casin.texi (casin): Likewise.
28974         * doc/posix-functions/casinf.texi (casinf): Likewise.
28975         * doc/posix-functions/casinh.texi (casinh): Likewise.
28976         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28977         * doc/posix-functions/catan.texi (catan): Likewise.
28978         * doc/posix-functions/catanf.texi (catanf): Likewise.
28979         * doc/posix-functions/catanh.texi (catanh): Likewise.
28980         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28981         * doc/posix-functions/ccos.texi (ccos): Likewise.
28982         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28983         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28984         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28985         * doc/posix-functions/cexp.texi (cexp): Likewise.
28986         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28987         * doc/posix-functions/cimag.texi (cimag): Likewise.
28988         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28989         * doc/posix-functions/clog.texi (clog): Likewise.
28990         * doc/posix-functions/clogf.texi (clogf): Likewise.
28991         * doc/posix-functions/conj.texi (conj): Likewise.
28992         * doc/posix-functions/conjf.texi (conjf): Likewise.
28993         * doc/posix-functions/cpow.texi (cpow): Likewise.
28994         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28995         * doc/posix-functions/cproj.texi (cproj): Likewise.
28996         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28997         * doc/posix-functions/creal.texi (creal): Likewise.
28998         * doc/posix-functions/crealf.texi (crealf): Likewise.
28999         * doc/posix-functions/csin.texi (csin): Likewise.
29000         * doc/posix-functions/csinf.texi (csinf): Likewise.
29001         * doc/posix-functions/csinh.texi (csinh): Likewise.
29002         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29003         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29004         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29005         * doc/posix-functions/ctan.texi (ctan): Likewise.
29006         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29007         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29008         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29009         * doc/posix-headers/complex.texi (complex.h): Likewise.
29010
29011 2010-10-07  Jim Meyering  <meyering@redhat.com>
29012
29013         parse-datetime: avoid compilation failure on OpenBSD 4.7
29014         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29015         This works around a compilation failure on OpenBSD 4.7:
29016         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29017
29018 2010-10-07  Eric Blake  <eblake@redhat.com>
29019
29020         docs: update cygwin progress
29021         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29022         1.7.6.
29023         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29024         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29025         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29026         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29027         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29028         Likewise.
29029         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29030         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29031         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29032         Likewise.
29033         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29034         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29035         Likewise.
29036         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29037         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29038         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29039         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29040         Likewise.
29041         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29042         Likewise.
29043         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29044
29045         docs: update parse-datetime history
29046         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29047         documentation of this function's history and alternatives.
29048
29049         cygwin: use more robust version check
29050         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29051         exclude an eventual cygwin 1.9.1.
29052         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29054         (gl_FUNC_STRCASESTR): Likewise.
29055         Reported by Bruno Haible.
29056
29057 2010-10-06  Bruno Haible  <bruno@clisp.org>
29058
29059         string, sys_select: Avoid #including large headers unless necessary.
29060         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29061         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29062         OSF/1, BeOS, Haiku.
29063         Reported by Jim Meyering.
29064
29065 2010-10-05  Eric Blake  <eblake@redhat.com>
29066
29067         memmem, strstr, strcasestr: fix bug with long periodic needle
29068         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29069         periodic needle having false positive.
29070         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29071         and cygwin 1.7.7.
29072         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29074         (gl_FUNC_STRCASESTR): Likewise.
29075         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29076         * tests/test-memmem.c (main): Expose the bug.
29077         * tests/test-strcasestr.c (main): Likewise.
29078         * tests/test-strstr.c (main): Likewise.
29079         * tests/test-c-strcasestr.c (main): Likewise.
29080         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29081         * doc/posix-functions/strstr.texi (strstr): Likewise.
29082         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29083         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29084
29085 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29086
29087         parse-datetime: do some more renaming
29088         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29089         parse_datetime, not get_date.  Mention the renaming.
29090         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29091         in comments.
29092         * m4/bison.m4: Likewise.
29093
29094 2010-10-05  Eric Blake  <eblake@redhat.com>
29095
29096         parse-datetime: better name than get_date
29097         * NEWS: Reword the deprecation notice.
29098         * modules/get_date: Rename to modules/parse-datetime.
29099         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29100         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29101         * lib/get_date.y: Rename to lib/parse-datetime.y.
29102         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29103         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29104         * doc/getdate.texi: Provide fallback wrapper.
29105         * lib/getdate.h: Move guts, and wrap...
29106         * lib/parse-datetime.h: ...new file.
29107         * lib/parse-datetime.y (get_date): Rename...
29108         (parse_datetime): ...to this.
29109         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29110         (gl_PARSE_DATETIME): ...to this.
29111         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29112         documentation.
29113         * modules/getdate (Files): Provide fallback docs and header.
29114         (Notice, Depends-on): Update references.
29115         * tests/test-parse-datetime.c: Likewise.
29116         * DEPENDENCIES: Likewise.
29117         * MODULES.html.sh (Date and time <time.h>): Likewise.
29118         * doc/parse-datetime.texi (Date input formats)
29119         (Authors of parse_datetime): Likewise.
29120         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29121         (Include): Likewise.
29122         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29123         * gnulib-tool: Likewise.
29124         * m4/bison.m4 (gl_BISON): Likewise.
29125         Suggested by Bruno Haible.
29126
29127 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29128
29129         more ports to Solaris tr, which needs [] around ranges
29130         * gnulib-tool: Solaris tr needs [] around ranges.
29131         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29132         * tests/test-pipe-filter-gi1.c (main): Likewise.
29133         * tests/test-pipe-filter-ii1.c (main): Likewise.
29134
29135 2010-10-05  Eric Blake  <eblake@redhat.com>
29136
29137         bootstrap: fix Solaris regression
29138         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29139         around ranges.
29140         Reported by Pádraig Brady.
29141
29142         bootstrap: work with pkg-config
29143         * build-aux/bootstrap (check_versions): Also transliterate - in
29144         prerequisite name.
29145         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29146         prerequisites that were already found, to avoid confusion.
29147         Reported by Justin Clift.
29148
29149         faccessat: remove unused wrappers
29150         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29151         presence of these wrappers dragged in -lgen on Solaris.
29152         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29153
29154 2010-10-05  Jim Meyering  <meyering@redhat.com>
29155
29156         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29157         * Makefile (sc_pragma_columns): New syntax-check rule.
29158
29159 2010-10-04  Bruno Haible  <bruno@clisp.org>
29160
29161         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29162         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29163         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29164         Reported by Bruce Korb and Eric Blake.
29165
29166 2010-10-04  Bruno Haible  <bruno@clisp.org>
29167
29168         threadlib: Make option --with-libpth-prefix work.
29169         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29170         use $LIBPTH, not just -lpth.
29171
29172 2010-10-04  Bruno Haible  <bruno@clisp.org>
29173
29174         Avoid line length limitation from HP NonStop system header files.
29175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29176         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29177         * lib/ctype.in.h: Likewise.
29178         * lib/dirent.in.h: Likewise.
29179         * lib/errno.in.h: Likewise.
29180         * lib/fcntl.in.h: Likewise.
29181         * lib/float.in.h: Likewise.
29182         * lib/getopt.in.h: Likewise.
29183         * lib/iconv.in.h: Likewise.
29184         * lib/inttypes.in.h: Likewise.
29185         * lib/langinfo.in.h: Likewise.
29186         * lib/locale.in.h: Likewise.
29187         * lib/math.in.h: Likewise.
29188         * lib/netdb.in.h: Likewise.
29189         * lib/netinet_in.in.h: Likewise.
29190         * lib/poll.in.h: Likewise.
29191         * lib/pthread.in.h: Likewise.
29192         * lib/pty.in.h: Likewise.
29193         * lib/sched.in.h: Likewise.
29194         * lib/se-selinux.in.h: Likewise.
29195         * lib/search.in.h: Likewise.
29196         * lib/signal.in.h: Likewise.
29197         * lib/spawn.in.h: Likewise.
29198         * lib/stdarg.in.h: Likewise.
29199         * lib/stddef.in.h: Likewise.
29200         * lib/stdint.in.h: Likewise.
29201         * lib/stdio.in.h: Likewise.
29202         * lib/stdlib.in.h: Likewise.
29203         * lib/string.in.h: Likewise.
29204         * lib/strings.in.h: Likewise.
29205         * lib/sys_file.in.h: Likewise.
29206         * lib/sys_ioctl.in.h: Likewise.
29207         * lib/sys_select.in.h: Likewise.
29208         * lib/sys_socket.in.h: Likewise.
29209         * lib/sys_stat.in.h: Likewise.
29210         * lib/sys_time.in.h: Likewise.
29211         * lib/sys_times.in.h: Likewise.
29212         * lib/sys_utsname.in.h: Likewise.
29213         * lib/sys_wait.in.h: Likewise.
29214         * lib/sysexits.in.h: Likewise.
29215         * lib/termios.in.h: Likewise.
29216         * lib/time.in.h: Likewise.
29217         * lib/unistd.in.h: Likewise.
29218         * lib/wchar.in.h: Likewise.
29219         * lib/wctype.in.h: Likewise.
29220         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29221         * modules/ctype (Makefile.am): Likewise.
29222         * modules/dirent (Makefile.am): Likewise.
29223         * modules/errno (Makefile.am): Likewise.
29224         * modules/fcntl-h (Makefile.am): Likewise.
29225         * modules/float (Makefile.am): Likewise.
29226         * modules/getopt-posix (Makefile.am): Likewise.
29227         * modules/iconv-h (Makefile.am): Likewise.
29228         * modules/inttypes (Makefile.am): Likewise.
29229         * modules/langinfo (Makefile.am): Likewise.
29230         * modules/locale (Makefile.am): Likewise.
29231         * modules/math (Makefile.am): Likewise.
29232         * modules/netdb (Makefile.am): Likewise.
29233         * modules/netinet_in (Makefile.am): Likewise.
29234         * modules/poll-h (Makefile.am): Likewise.
29235         * modules/pthread (Makefile.am): Likewise.
29236         * modules/pty (Makefile.am): Likewise.
29237         * modules/sched (Makefile.am): Likewise.
29238         * modules/search (Makefile.am): Likewise.
29239         * modules/selinux-h (Makefile.am): Likewise.
29240         * modules/signal (Makefile.am): Likewise.
29241         * modules/spawn (Makefile.am): Likewise.
29242         * modules/stdarg (Makefile.am): Likewise.
29243         * modules/stddef (Makefile.am): Likewise.
29244         * modules/stdint (Makefile.am): Likewise.
29245         * modules/stdio (Makefile.am): Likewise.
29246         * modules/stdlib (Makefile.am): Likewise.
29247         * modules/string (Makefile.am): Likewise.
29248         * modules/strings (Makefile.am): Likewise.
29249         * modules/sys_file (Makefile.am): Likewise.
29250         * modules/sys_ioctl (Makefile.am): Likewise.
29251         * modules/sys_select (Makefile.am): Likewise.
29252         * modules/sys_socket (Makefile.am): Likewise.
29253         * modules/sys_stat (Makefile.am): Likewise.
29254         * modules/sys_time (Makefile.am): Likewise.
29255         * modules/sys_times (Makefile.am): Likewise.
29256         * modules/sys_utsname (Makefile.am): Likewise.
29257         * modules/sys_wait (Makefile.am): Likewise.
29258         * modules/sysexits (Makefile.am): Likewise.
29259         * modules/termios (Makefile.am): Likewise.
29260         * modules/time (Makefile.am): Likewise.
29261         * modules/unistd (Makefile.am): Likewise.
29262         * modules/wchar (Makefile.am): Likewise.
29263         * modules/wctype (Makefile.am): Likewise.
29264
29265 2010-10-04  Bruno Haible  <bruno@clisp.org>
29266
29267         read-file tests: Avoid a test failure on NonStop Kernel.
29268         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29269         a regular file.
29270         Reported by Joachim Schmitz <schmitz@hp.com>.
29271
29272 2010-10-03  Bruno Haible  <bruno@clisp.org>
29273
29274         gnulib-tool: Fixes for --create-testdir with --libtool.
29275         * gnulib-tool (func_get_automake_snippet): Don't augment
29276         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29277         an executable.
29278         (func_create_testdir): Handle module 'alloca' like func_import.
29279         Reported by Bruce Korb <bruce.korb@gmail.com>.
29280
29281 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29282
29283         Avoid some lines longer than 80 characters.
29284         * lib/stdint.in.h: Break long comment lines.
29285         * lib/math.in.h: Likewise.
29286         (_GL_NUM_UINT_WORDS): New macro, for readability.
29287         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29288         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29289         * lib/stdlib.in.h: Likewise.
29290         * lib/spawn.in.h: Likewise.
29291         * lib/sys_socket.in.h: Update an URL.
29292         * lib/sys_stat.in.h: Break long line.
29293
29294 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29295
29296         Improve pmccabe2html.
29297         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29298         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29299         when the sources change. Remove the line in the HTML about "Used
29300         ranges" (which implied that there might be other unused ranges),
29301         rename "Resume" to "Summary" (easier to understand for more users).
29302         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29303         styles, and some unnecessary blank lines.
29304
29305 2010-10-03  Bruno Haible  <bruno@clisp.org>
29306             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29307
29308         acl: Add support for ACLs on NonStop Kernel.
29309         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29310         Check whether the function aclsort() exists.
29311         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29312         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29313         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29314         (acl_nontrivial [HAVE_ACLSORT]: New function.
29315         (file_has_acl): Implement for NonStop Kernel.
29316         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29317         (qset_acl): Implement for NonStop Kernel.
29318         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29319         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29320         (main): Implement for NonStop Kernel.
29321         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29322         Kernel. Handle this flavor.
29323         * tests/test-set-mode-acl.sh: Likewise.
29324         * tests/test-copy-acl.sh: Likewise.
29325         * tests/test-copy-file.sh: Likewise.
29326
29327 2010-10-03  Bruno Haible  <bruno@clisp.org>
29328
29329         Info about ACLs on NonStop Kernel.
29330         * doc/acl-resources.txt: Add info about NonStop Kernel.
29331         References by Joachim Schmitz <schmitz@hp.com>.
29332
29333 2010-10-02  Bruno Haible  <bruno@clisp.org>
29334
29335         Define missing EDQUOT on NonStop Kernel.
29336         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29337         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29338         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29339         missing.
29340         * doc/posix-headers/errno.texi: Mention the NSK bug.
29341         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29342         Reported by Joachim Schmitz <schmitz@hp.com>.
29343
29344 2010-10-02  Bruno Haible  <bruno@clisp.org>
29345
29346         Update doc for POSIX:2008.
29347         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29348         Update URL of POSIX specification.
29349
29350 2010-10-02  Bruno Haible  <bruno@clisp.org>
29351
29352         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29353         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29354         from gnulib, not from Automake.
29355
29356 2010-10-02  Bruno Haible  <bruno@clisp.org>
29357
29358         New module 'system-posix'.
29359         * modules/system-posix: New file.
29360         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29361         module is present.
29362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29363         GNULIB_SYSTEM_POSIX.
29364         * modules/stdlib (Depends-on): Remove sys_wait.
29365         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29366         * doc/posix-functions/system.texi: Mention the new module.
29367         * doc/posix-headers/stdlib.texi: Likewise.
29368         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29369         define test_sys_wait_macros to a no-op.
29370         Reported by Sam Steingold <sds@gnu.org>.
29371
29372 2010-09-30  Bruno Haible  <bruno@clisp.org>
29373
29374         More renaming from 'getdate' to 'get_date'.
29375         * doc/get_date.texi: Renamed from doc/getdate.texi.
29376         * modules/get_date (Files): Update.
29377         * MODULES.html.sh (Date and time <time.h>): Update.
29378         * DEPENDENCIES: Update.
29379         * gnulib-tool: Update comment.
29380         * m4/bison.m4 (gl_BISON): Likewise.
29381         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29382
29383 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29384
29385         bootstrap: support ACLOCAL_FLAGS during aclocal
29386         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29387         can add additional -I dir for third-party .m4 files.
29388
29389 2010-09-30  Eric Blake  <eblake@redhat.com>
29390
29391         bootstrap: use glibtoolize on MacOS
29392         * build-aux/bootstrap (check_versions): Convert libtool into
29393         libtoolize.
29394         (tool search): Move libtool check earlier, and look for
29395         glibtoolize for MacOS.
29396         (gnulib_tool_options): Auto-add --libtool when appropriate.
29397         Reported by Justin Clift.
29398
29399         poll: fix typo that broke test on MacOS
29400         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29401         Reported by Justin Clift.
29402
29403         getdate: rename to get_date
29404         Note: getdate.h is not renamed, to minimize client impact.
29405         * modules/getdate: Mark obsolete.  Move old contents...
29406         * modules/get_date: ...to new module name.
29407         * modules/getdate-tests: Move...
29408         * modules/get_date-tests: ...here.
29409         * m4/getdate.m4: Move...
29410         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29411         * lib/getdate.y: Move...
29412         * lib/get_date.y: ...here.
29413         * tests/test-getdate.c: Move...
29414         * tests/test-get_date.c: ...here.
29415         * doc/posix-functions/getdate.texi (getdate): Update name.
29416         * NEWS: Mention the change.
29417
29418 2010-09-29  Bruno Haible  <bruno@clisp.org>
29419
29420         Separate the module 'waitpid' from the module 'sys_wait'.
29421         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29422         present.
29423         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29424         gl_MODULE_INDICATOR_FOR_TESTS.
29425         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29426         * modules/sys_wait (Depends-on): Remove waitpid.
29427         (Makefile.am): Substitute GNULIB_WAITPID.
29428         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29429         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29430         signature only if the 'waitpid' module is present.
29431         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29432         * NEWS: Mention the change.
29433         * modules/grantpt (Depends-on): Add waitpid.
29434         * modules/wait-process (Depends-on): Likewise.
29435
29436 2010-09-29  Bruno Haible  <bruno@clisp.org>
29437
29438         More tests for module 'sys_wait'.
29439         * modules/sys_wait-c++-tests: New file.
29440         * tests/test-sys_wait-c++.cc: New file.
29441         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29442         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29443
29444 2010-09-29  Bruno Haible  <bruno@clisp.org>
29445
29446         New module 'waitpid'.
29447         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29448         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29449         Don't include <process.h>.
29450         (waitpid): Declare only, using modern idiom.
29451         * m4/waitpid.m4: New file.
29452         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29453         * modules/waitpid: New file.
29454         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29455         (Makefile.am): Update.
29456         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29457
29458 2010-09-28  Bruno Haible  <bruno@clisp.org>
29459
29460         poll: Assume ANSI C.
29461         * lib/poll.c (poll): Use an ANSI C declaration.
29462
29463 2010-09-28  Bruno Haible  <bruno@clisp.org>
29464
29465         poll-h: Create poll.h on all platforms.
29466         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29467         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29468         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29469         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29470         (gl_REPLACE_POLL_H): Don't set POLL_H.
29471         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29472         * modules/poll-h (Depends-on): Add include_next.
29473         (Makefile.am): Create poll.h unconditionally. Substitute also
29474         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29475
29476 2010-09-28  Bruno Haible  <bruno@clisp.org>
29477
29478         Tests for module 'poll-h'.
29479         * modules/poll-h-c++-tests: New file.
29480         * tests/test-poll-h-c++.cc: New file.
29481
29482         Tests for module 'poll-h'.
29483         * modules/poll-h-tests: New file.
29484         * tests/test-poll-h.c: New file.
29485
29486 2010-09-28  Bruno Haible  <bruno@clisp.org>
29487
29488         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29489         * modules/poll-h (Depends-on): Add 'extensions'.
29490
29491 2010-09-28  Bruno Haible  <bruno@clisp.org>
29492
29493         New module 'poll-h'.
29494         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29495         (poll): Use modern idiom.
29496         * modules/poll-h: New file.
29497         * modules/poll (Files): Remove lib/poll.in.h.
29498         (Depends-on): Add poll-h.
29499         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29500         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29501         * m4/poll_h.m4: New file.
29502         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29503         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29504         and invoke gl_REPLACE_POLL_H.
29505         * lib/poll.c: Use common idiom.
29506         * tests/test-poll.c: Likewise.
29507         * doc/posix-headers/poll.texi: Mention the poll-h module.
29508         Suggested by Eric Blake.
29509
29510 2010-09-26  Bruno Haible  <bruno@clisp.org>
29511
29512         sys_wait: Implement WSTOPSIG.
29513         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29514         Reported by Simon Josefsson.
29515
29516 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29517
29518         stdlib, sys_wait: Avoid compilation error on mingw.
29519         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29520
29521 2010-09-26  Bruno Haible  <bruno@clisp.org>
29522
29523         stdlib tests: Avoid code duplication.
29524         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29525         * modules/sys_wait-tests (Files): Likewise.
29526         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29527         * tests/test-stdlib.c: Include test-sys_wait.h.
29528         (main): Invoke test_sys_wait_macros.
29529         * tests/test-sys_wait.c: Include test-sys_wait.h.
29530         (main): Invoke test_sys_wait_macros.
29531
29532 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29533
29534         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29535         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29536         sure Windows sockets are working before calling getaddrinfo.
29537         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29538         * doc/gnulib.texi (Windows sockets): Fix typo.
29539
29540 2010-09-25  Bruno Haible  <bruno@clisp.org>
29541
29542         Tests for module 'regex-quote'.
29543         * modules/regex-quote-tests: New file.
29544         * tests/test-regex-quote.c: New file.
29545
29546         New module 'regex-quote'.
29547         * lib/regex-quote.h: New file.
29548         * lib/regex-quote.c: New file.
29549         * modules/regex-quote: New file.
29550         Suggested by Reuben Thomas <rrt@sc3d.org>.
29551
29552 2010-09-24  Bruno Haible  <bruno@clisp.org>
29553
29554         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29555         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29556
29557 2010-09-23  Bruno Haible  <bruno@clisp.org>
29558
29559         setenv: Relax license.
29560         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29561         Blake.
29562         Requested by Eric Blake.
29563
29564 2010-09-22  Bruno Haible  <bruno@clisp.org>
29565
29566         termios: Relax license.
29567         * modules/termios (License): Change to LGPLv2+.
29568         Requested by Eric Blake.
29569
29570 2010-09-22  Bruno Haible  <bruno@clisp.org>
29571
29572         threadlib: Allow the package to change the default to 'no'.
29573         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29574         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29575         Reported by Paul Eggert.
29576
29577 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29578             Bruno Haible  <bruno@clisp.org>
29579
29580         Fix endless loop in mbmemcasecoll.
29581         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29582         byte.
29583         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29584
29585 2010-09-22  Bruno Haible  <bruno@clisp.org>
29586
29587         Tests for module 'memcoll'.
29588         * modules/memcoll-tests: New file.
29589         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29590
29591         memcoll, xmemcoll: Clarify size vs. length.
29592         * modules/memcoll.c (memcoll0): Clarify specification.
29593         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29594         passed to collate_error.
29595
29596 2010-09-22  Bruno Haible  <bruno@clisp.org>
29597
29598         Tests for module 'memcasecmp'.
29599         * modules/memcasecmp-tests: New file.
29600         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29601
29602 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         * lib/pthread.in.h: Add split double-inclusion guard, and include
29605         system <pthread.h> if there is one.  Use @@-style as in other
29606         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29607         pthread.h doesn't.
29608         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29609         (pthread_mutexattr_settype, pthread_mutex_trylock):
29610         New static inline functions, if there's no system <pthread.h>.
29611         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29612         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29613         Approximate with mutexes if the system lacks spinlocks, as in
29614         MacOS.
29615         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29616         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29617         @@-style.  Check for spinlocks separately.
29618         (gl_PTHREAD_DEFAULTS): New macro.
29619         * modules/pthread: Redo to use a more typical style for in.h files.
29620
29621 2010-09-21  Eric Blake  <eblake@redhat.com>
29622
29623         net_if: enhance tests
29624         * tests/test-net_if.c (main): Move signature checks earlier.
29625         Print failures to stderr.
29626         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29627         Document the bug that we do not yet fix.
29628
29629 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29630
29631         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29632         about gnulib, not GSS.
29633
29634 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29635
29636         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29637         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29638         for Emacs.
29639         * build-aux/pmccabe2html: Make Makefile.am example code more
29640         cut-and-paste friendly.
29641
29642 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29643
29644         * tests/test-net_if.c: New file.
29645         * modules/net_if-tests: New file.
29646
29647 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29648
29649         pthread: add pthread_spin_destroy
29650         * lib/pthread.in.h (pthread_spin_destroy): New function.
29651
29652 2010-09-19  Bruno Haible  <bruno@clisp.org>
29653
29654         gnulib-tool: Fix --help output.
29655         * gnulib-tool (func_usage): Fix help message.
29656         Reported by Reuben Thomas <rrt@sc3d.org>.
29657
29658 2010-09-18  Jim Meyering  <meyering@redhat.com>
29659
29660         maint.mk: avoid unexpanded \n in two diagnostics
29661         * top/maint.mk (sc_prohibit_always_true_header_tests):
29662         Don't use a literal \n in a halt=... assignment.  It would not be
29663         expanded, and the two \n bytes would appear in the diagnostic output
29664         rather than the desired newline.  Use halt=$$(printf ... instead.
29665         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29666
29667 2010-09-18  Bruno Haible  <bruno@clisp.org>
29668
29669         netinet_in: Doc tweak.
29670         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29671         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29672
29673 2010-09-18  Jim Meyering  <meyering@redhat.com>
29674
29675         init.sh: correct an outdated comment
29676         * tests/init.sh (create_exe_shims_):  s/function/alias/
29677
29678         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29679         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29680         a file named "*.exe" is removed between the glob expansion and the
29681         processing of that oddly named file.
29682
29683 2010-09-17  Eric Blake  <eblake@redhat.com>
29684
29685         mirbsd: add some more support
29686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29687         in BSD family.
29688         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29689         devices as OpenBSD.
29690         * m4/host-os.m4 (mirbsd): Add MirBSD.
29691
29692         tests: fix unportable assumption on sys/wait.h
29693         * tests/test-sys_wait.c (main): Relax test.
29694         * tests/test-stdlib.c (main): Likewise.
29695
29696         init.sh: accommodate directory with no .exes
29697         * tests/init.sh: Accomodate directory containing only scripts.
29698
29699         tests: avoid compiler warning
29700         * tests/test-stdlib.c (main): Use the variable.
29701
29702         fdutimens, fdutimensat: update signature, again
29703         * lib/utimens.h (gl_futimens): Delete, and move signature...
29704         (fdutimens): ...here.
29705         (fdutimensat): Rearrange signature.
29706         (lutimensat): Rename variable for clarity.
29707         * lib/fdutimensat.c (fdutimensat): Update signature.
29708         * lib/utimens.c (fdutimens): Likewise.
29709         (gl_futimens): Delete.
29710         (utimens, lutimens): Update callers.
29711         * lib/futimens.c (futimens): Likewise.
29712         * tests/test-fdutimensat.c: Likewise.
29713         * tests/test-utimens.c: Likewise.
29714         * tests/test-futimens.h: Update comment.
29715         * NEWS: Mention this.
29716         Suggested by Paul Eggert.
29717
29718 2010-09-17  Bruno Haible  <bruno@clisp.org>
29719
29720         Take over the maintenance of some older macros from Autoconf.
29721         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29722         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29723         GNU Autoconf.
29724         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29725         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29726
29727 2010-09-17  Eric Blake  <eblake@redhat.com>
29728
29729         fdutimensat: drop atflag validation
29730         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29731         with valid fd, to close a race scenario where futimens is
29732         unsupported and FILE was replaced by a symlink.
29733         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29734         accordingly.
29735         Suggested by Paul Eggert.
29736
29737 2010-09-16  Bruno Haible  <bruno@clisp.org>
29738
29739         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29740         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29741
29742 2010-09-16  Bruno Haible  <bruno@clisp.org>
29743
29744         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29745         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29746         login_tty exists.
29747         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29748
29749 2010-09-16  Bruno Haible  <bruno@clisp.org>
29750
29751         login_tty: Make the replacement code work on BSD systems.
29752         * lib/login_tty.c: Include <sys/ioctl.h>.
29753         (login_tty): Use ioctl TIOCSCTTY when available.
29754         * modules/login_tty (Depends-on): Add sys_ioctl.
29755         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29756
29757 2010-09-16  Bruno Haible  <bruno@clisp.org>
29758
29759         login_tty: Stricter unit test.
29760         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29761         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29762         and tcgetsid() after login_tty.
29763         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29764
29765 2010-09-16  Bruno Haible  <bruno@clisp.org>
29766
29767         New module 'tcgetsid'.
29768         * lib/tcgetsid.c: New file.
29769         * m4/tcgetsid.m4: New file.
29770         * modules/tcgetsid: New file.
29771         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29772         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29773         GNULIB_TCGETSID, HAVE_TCGETSID.
29774         * lib/termios.in.h: Include <sys/types.h>.
29775         (tcgetsid): New declaration.
29776         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29777         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29778         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29779         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29780
29781 2010-09-16  Bruno Haible  <bruno@clisp.org>
29782
29783         Tests for module 'termios'.
29784         * modules/termios-c++-tests: New file.
29785         * modules/termios-tests: New file.
29786         * tests/test-termios-c++.cc: New file.
29787         * tests/test-termios.c: New file.
29788
29789         New module 'termios'.
29790         * modules/termios: New file.
29791         * lib/termios.in.h: New file.
29792         * m4/termios_h.m4: New file.
29793         * doc/posix-headers/termios.texi: Mention the new module.
29794
29795 2010-09-16  Eric Blake  <eblake@redhat.com>
29796
29797         fdutimensat: add an atflag parameter
29798         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29799         * lib/utimens.h (fdutimensat): Update prototype.
29800         * tests/test-fdutimensat.c: Adjust test to match.
29801         * NEWS: Document the change.
29802         Suggested by Paul Eggert.
29803
29804 2010-09-16  Bruno Haible  <bruno@clisp.org>
29805
29806         Fix typos in comments.
29807         * lib/striconveh.h: Fix typo in comment.
29808         * lib/login_tty.c (login_tty): Likewise.
29809
29810 2010-09-15  Bruno Haible  <bruno@clisp.org>
29811
29812         stdlib: clarify MirBSD WEXITSTATUS bug
29813         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29814         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29815
29816 2010-09-15  Eric Blake  <eblake@redhat.com>
29817
29818         stdlib: work around MirBSD WEXITSTATUS bug
29819         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29820         * modules/stdlib (Depends-on): Add sys_wait.
29821         * tests/test-sys_wait.c (main): Enhance test.
29822         * tests/test-stdlib.c (main): Likewise.
29823         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29824
29825         docs: mention MacOS issue with WEXITSTATUS(constant)
29826         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29827         issue.
29828         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29829
29830         strnlen: add tests
29831         * modules/strnlen-tests: New file.
29832         * tests/test-strnlen.c: Likewise.
29833
29834 2010-09-14  Bruno Haible  <bruno@clisp.org>
29835
29836         unistr/base: Avoid link errors when module 'libunistring' is also used.
29837         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29838         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29839         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29840         Declare also when HAVE_LIBUNISTRING is set.
29841         Reported by Pádraig Brady <P@draigbrady.com>.
29842
29843 2010-09-14  Eric Blake  <eblake@redhat.com>
29844
29845         test-rawmemchr: make more robust
29846         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29847         (Depends-on, configure.ac): Add needed prerequisites to use it.
29848         * modules/memchr-tests (Files, Depends-on, configure.ac):
29849         Likewise, to avoid implicit reliance on memchr module prereqs.
29850         * tests/test-memchr.c (main): Ensure proper masking.
29851         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29852         reads.
29853
29854         memchr: detect glibc Alpha bug
29855         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29856         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29857         Alpha.
29858         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29859         * tests/test-memchr.c (main): Enhance test.
29860         Reported by Nelson H. F. Beebe.
29861
29862 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29863
29864         fts, getcwd, glob: audit for dirfd returning -1
29865         * lib/fts.c (opendir): Remove #define; no longer used.
29866         (opendirat): New arg PDIR_FD.  All callers changed.
29867         (fts_build, _opendir2): Use new opendirat to avoid the need for
29868         dirfd, or for checking whether dirfd returns a negative value.
29869         Don't use opendir; always use openat followed by fdopendir.
29870         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29871         it.
29872         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29873         returns -1 here.
29874         * modules/fts (Depends-on): Remove dirfd.
29875         * modules/getcwd (Depends-on): Likewise.
29876
29877 2010-09-13  Eric Blake  <eblake@redhat.com>
29878
29879         float: fix broken MirBSD header
29880         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29881         * doc/posix-headers/float.texi (float.h): Document it.
29882
29883 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29886         * lib/fts.c (opendirat): New arg extra_flags.
29887         (__opendir2): Use it to avoid following symlinks when opening
29888         a directory, if symlinks are not supposed to be followed.  See
29889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29890
29891         fdopendir: preserve argument fd before returning
29892         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29893         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29894         (fdopendir): Use them, arranging for FD to be open to the same
29895         directory that it was when it started.  (It might be temporarily
29896         closed while fdopendir is running, so this not thread- or
29897         signal-safe.)  Be careful to do the right thing even when file
29898         descriptors are scarce and dup fails with errno == EMFILE.  See
29899         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29900
29901 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29902
29903         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29904         * NEWS: Document change.
29905         * m4/regex.m4: Disable test for regoff_t size.
29906
29907 2010-09-13  Jim Meyering  <meyering@redhat.com>
29908
29909         fts: don't operate on an invalid file descriptor after failed dup
29910         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29911         negative file descriptor.
29912
29913 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29914
29915         savedir: add streamsavedir, deprecate fdsavedir
29916         * NEWS: Mention deprecation of fdsavedir.
29917         * lib/savedir.c (streamsavedir): New extern function, whose name
29918         ends in "savedir" to be consistent with the others.  This differs
29919         from savedirstream in that it doesn't close its argument.  The
29920         next version of GNU tar will use this instead of fdsavedir, to
29921         avoid some race conditions and conserve file descriptors.
29922         (savedirstream): Reimplement as a wrapper around streamsavedir.
29923         (fdsavedir): Add a comment deprecating this function.  As far as
29924         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29925         * lib/savedir.h (streamsavedir): New decl.
29926         (fdsavedir): Add a comment deprecating this.
29927
29928 2010-09-10  Bruno Haible  <bruno@clisp.org>
29929
29930         langinfo: Fix last commit.
29931         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29932         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29934
29935 2010-09-10  Bruno Haible  <bruno@clisp.org>
29936
29937         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29938         * lib/progreloc.c (O_EXEC): Define fallback.
29939
29940 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29941
29942         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29943         * NEWS: Document recent changes to fcntl-h.
29944         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29945         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29946         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29947         Similarly for O_SEARCH; this last was already true, but not documented.
29948         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29949         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29950         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29951         Likewise.
29952         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29953         is zero, not whether it is defined.
29954         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29955         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29956         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29957
29958 2010-09-10  Bruno Haible  <bruno@clisp.org>
29959
29960         langinfo, nl_langinfo: Fix for IRIX 5.3.
29961         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29962         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29963         HAVE_LANGINFO_YESEXPR.
29964         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29965         HAVE_LANGINFO_YESEXPR.
29966         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29967         HAVE_LANGINFO_T_FMT_AMPM is 0.
29968         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29969         HAVE_LANGINFO_YESEXPR is 0.
29970         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29971         NOEXPR.
29972         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29973         * doc/posix-functions/nl_langinfo.texi: Likewise.
29974         Reported by Eric Blake.
29975
29976 2010-09-10  Bruno Haible  <bruno@clisp.org>
29977
29978         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29979         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29980         on FreeBSD 8.0 and OpenBSD 4.6.
29981         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29982         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29983         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29984         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29985         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29986         ac_includes_default.
29987         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29988
29989 2010-09-09  Eric Blake  <eblake@redhat.com>
29990
29991         strsignal: work around NetBSD bug
29992         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29993         * lib/string.in.h (includes): Likewise.
29994         * doc/posix-functions/strsignal.texi (strsignal): Document the
29995         bug.
29996         Reported by Nelson H. F. Beebe.
29997
29998         gnulib-tool: work with NetBSD /bin/sh
29999         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30000         (func_get_description, func_get_comment, func_get_status)
30001         (func_get_notice, func_get_applicability, func_get_filelist)
30002         (func_get_dependencies, func_get_autoconf_early_snippet)
30003         (func_get_autoconf_snippet, func_get_automake_snippet)
30004         (func_get_include_directive, func_get_link_directive)
30005         (func_get_license, func_get_maintainer, func_import): Avoid
30006         shell syntax errors from parsing syntax extensions.
30007
30008 2010-09-09  Bruno Haible  <bruno@clisp.org>
30009
30010         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30011         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30012         a reliable way to determine whether the 'alias' command works.
30013
30014 2010-09-08  Jim Meyering  <meyering@redhat.com>
30015
30016         init.sh: penalize a set-x-impaired shell; don't disqualify it
30017         * tests/init.sh: Too many shells corrupt application stderr when
30018         you set -x, so we can't afford to disqualify them, since at least
30019         on Irix-6.5, that would disqualify all bourne shells.
30020         Instead, use a two-pass approach.
30021         On the first pass, try to find a shell that meets the stricter
30022         condition that set -x does not corrupt stderr.
30023         If no shell meets the stricter condition, retest each candidate
30024         shell, but without that extra condition.  Finally, when
30025         VERBOSE=yes is requested and set -x might cause trouble, simply
30026         issue a warning and refrain from enabling debug output.
30027
30028 2010-09-08  Eric Blake  <eblake@redhat.com>
30029
30030         unsetenv: fix OpenBSD bug
30031         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30032         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30033         documentation.
30034         Reported by Jim Meyering.
30035
30036         strtod: work around IRIX 6.5 bug
30037         * lib/strtod.c (strtod): Reparse number on shorter string if
30038         exponent parse was invalid.
30039         * tests/test-strtod.c (main): Add check for "0x1p 2".
30040         Reported by Tom G. Christensen.
30041
30042         getopt: optimize previous patch
30043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30044         empty variable.  Speed up awk script.
30045         Reported by Paolo Bonzini.
30046
30047 2010-09-08  Jim Meyering  <meyering@redhat.com>
30048
30049         test.sh: disqualify shells for which set -x corrupts stderr
30050         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30051         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30052         appear in stderr output.  For example, this command:
30053             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30054         prints "P=1" on those two systems:
30055
30056 2010-09-08  Bruno Haible  <bruno@clisp.org>
30057
30058         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30059         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30060         commands, because some shells ignore redirections when there is an
30061         error in the command lookup.
30062         Reported by Eric Blake.
30063
30064 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30065
30066         * lib/regex.h: Fix a mention of `regex_compile' (should be
30067         `re_compile_pattern').
30068         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30069         (re_set_registers): Correct name of parameter in comment.
30070
30071         * doc/regex.texi: Add documentation for missing syntax flags.
30072         Remove commented-out documentation of defunct syntax option
30073         RE_NO_EMPTY_ALTS.
30074         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30075         Add documentation of re_set_registers.
30076         Document trick to re-use a pattern buffer by setting fastmap manually.
30077         Update documentation of struct re_pattern_buffer per public members.
30078         Uncomment documentation of equivalence class operators and
30079         collating symbol operators, since they are now implemented,
30080         Explain leftmost-longest matching in relation to alternatives.
30081         Tidy documentation of substring matching.
30082         Remove POSIX documentation, which is done better in
30083         glibc, and refer the reader there. Keep BSD API documentation, as
30084         that is not readily available elsewhere.
30085
30086 2010-09-07  Eric Blake  <eblake@redhat.com>
30087
30088         getopt: handle POSIXLY_CORRECT set but not exported
30089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30090         export state of POSIXLY_CORRECT, due to bash set -o posix.
30091         Reported by Dustin J. Mitchell.
30092
30093 2010-09-05  Bruno Haible  <bruno@clisp.org>
30094
30095         gnulib-tool: Highlight the changed options.
30096         * gnulib-tool (func_usage): Display the --import, --add-import,
30097         --remove-import explanations in bold font.
30098
30099 2010-09-06  Karl Berry  <karl@gnu.org>
30100
30101         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30102
30103 2010-09-05  Bruno Haible  <bruno@clisp.org>
30104
30105         uniwidth/width: Update comment.
30106         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30107         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30108
30109 2010-09-05  Bruno Haible  <bruno@clisp.org>
30110
30111         isinf, isnan: Relax license.
30112         * modules/isinf (License): Change from GPL to LGPL, with consent from
30113         Ben Pfaff.
30114         * modules/isnan (License): Likewise.
30115         Requested by Ludovic Courtès.
30116
30117 2010-09-04  Bruno Haible  <bruno@clisp.org>
30118
30119         gnulib-tool: Help migration from --import to --add-import or --update.
30120         * gnulib-tool: Emit a verbose error message when --import is used
30121         without any module name.
30122
30123 2010-09-04  Bruno Haible  <bruno@clisp.org>
30124
30125         Update doc about gnulib-tool.
30126         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30127         'gnulib-tool --update' in more detail.
30128         Reported by Eric Blake.
30129
30130 2010-09-04  Bruno Haible  <bruno@clisp.org>
30131
30132         gnulib-tool: Change --import. New options --add/remove-import.
30133         * gnulib-tool: New options --add-import, --remove-import.
30134         (func_usage): Document them.
30135         (have_associative): Define always.
30136         (func_import): In import mode, don't merge the specified settings with
30137         the cached settings. Implement remove-import mode.
30138         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30139         Explain when to use them versus --import.
30140         (Simple update): Use --add-import instead of --import.
30141         * NEWS: Mention the change.
30142
30143 2010-09-04  Bruno Haible  <bruno@clisp.org>
30144
30145         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30146         separate gnulib.mk.
30147
30148 2010-09-04  Bruno Haible  <bruno@clisp.org>
30149
30150         gnulib-tool: Don't talk about CVS any more.
30151         * gnulib-tool (func_usage, func_import): Write "version control"
30152         instead of CVS.
30153
30154 2010-09-04  Jim Meyering  <meyering@redhat.com>
30155
30156         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30157         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30158         false positives (whose names may be ill-chosen) when searching
30159         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30160         would cause a false-positive.
30161
30162         avoid coreutils "make distcheck" failure
30163         Coreutils tests with an absolute build directory name that contains
30164         a space.  Not quoting this directory name caused a failure.
30165         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30166         * tests/test-vc-list-files-cvs.sh: Likewise.
30167
30168 2010-09-04  Bruno Haible  <bruno@clisp.org>
30169
30170         gnulib-tool: Avoid error when run in a package without Makefile.am.
30171         * gnulib-tool: When collecting the m4dirs in a package that does not
30172         have a Makefile.am, eliminate those directories that contain no
30173         gnulib-cache.m4. Fix expression that counts these directories.
30174
30175 2010-09-04  Bruno Haible  <bruno@clisp.org>
30176
30177         update-copyright test: Improve output when perl is missing or too old.
30178         * tests/test-update-copyright.sh: Move test of Perl version down after
30179         the test whether Perl exists. Provide an explanation relating Perl's
30180         error message to Automake's SKIP: message.
30181
30182 2010-09-04  Bruno Haible  <bruno@clisp.org>
30183
30184         Don't augment PATH in TESTS_ENVIRONMENT.
30185         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30186         set abs_aux_dir instead of augmenting PATH.
30187         * modules/vc-list-files-tests (Makefile.am): Likewise.
30188         * tests/test-update-copyright.sh: Augment PATH here.
30189         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30190         path_prepend_.
30191         * tests/test-vc-list-files-git.sh: Likewise.
30192
30193 2010-09-04  Jim Meyering  <meyering@redhat.com>
30194
30195         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30196         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30197
30198 2010-09-04  Bruno Haible  <bruno@clisp.org>
30199
30200         strdup: Fix compilation error in C++ mode.
30201         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30202         the macro.
30203
30204 2010-09-04  Bruno Haible  <bruno@clisp.org>
30205
30206         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30207         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30208         macro into a function.
30209         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30210
30211 2010-09-04  Bruno Haible  <bruno@clisp.org>
30212
30213         Set PATH_SEPARATOR the same way autoconf does.
30214         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30215         the value of PATH_SEPARATOR the same way autoconf-generated configure
30216         scripts do.
30217         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30218         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30219
30220 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30221
30222         Set PATH_SEPARATOR the same way autoconf does.
30223         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30224         the same way autoconf-generated configure scripts do.
30225         * posix-modules: Likewise.
30226
30227 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30228
30229         hash: fix safe_hasher const typo
30230         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30231         const; otherwise, there is a type error later.
30232
30233 2010-09-02  Jim Meyering  <meyering@redhat.com>
30234
30235         test-update-copyright.sh: require perl 5.8.0
30236         * tests/test-update-copyright.sh: Require 5.8.0,
30237         which Tom G. Christensen has confirmed is adequate,
30238         while 5.6.1 is not.
30239
30240 2010-09-02  Eric Blake  <eblake@redhat.com>
30241
30242         tests: init.sh improvements for re-exec'ing with zsh
30243         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30244         -vx through shell re-exec.
30245         Reported by Tom G. Christensen.
30246
30247         wctype: fix typo in previous commit
30248         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30249         Reported by Ludovic Courtès.
30250
30251 2010-09-02  Jim Meyering  <meyering@redhat.com>
30252
30253         test-update-copyright.sh: skip test if Perl is too old
30254         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30255         Reported by Tom G. Christensen.
30256
30257 2010-09-02  Bruno Haible  <bruno@clisp.org>
30258
30259         wctype: Avoid compilation error on IRIX 6.5.30.
30260         * lib/wctype.in.h (iswblank): Declare with a replacement if
30261         REPLACE_ISWBLANK is set.
30262         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30263         declared. Set REPLACE_ISWBLANK.
30264         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30265         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30266         * doc/posix-headers/wctype.texi: Likewise.
30267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30268
30269 2010-09-01  Bruno Haible  <bruno@clisp.org>
30270
30271         New module 'socketlib'.
30272         * modules/socketlib: New file.
30273         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30274         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30275         * modules/sockets (Depends-on): Add socketlib.
30276         Suggested by Sam Steingold <sds@gnu.org>.
30277
30278 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30279
30280         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30281
30282         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30283         when one needs search access to a directory but not read access.
30284         On systems where it is available, it works in some cases where
30285         O_RDONLY does not, namely on directories that are searchable but
30286         not readable, and which need only to be searchable.  If O_SEARCH
30287         is not available, fall back to the traditional method of using
30288         O_RDONLY.
30289
30290         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30291         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30292         when opening a directory that needs only to be searchable.
30293         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30294         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30295         * lib/openat-proc.c (openat_proc_name): Likewise.
30296         * lib/openat.c (openat_needs_fchdir): Likewise.
30297         * lib/save-cwd.c (save_cwd): Likewise.
30298         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30299
30300 2010-08-28  Bruno Haible  <bruno@clisp.org>
30301
30302         New module 'host-cpu-c-abi'.
30303         * modules/host-cpu-c-abi: New file.
30304         * m4/host-cpu-c-abi.m4: New file, based on part of
30305         clisp/src/m4/general.m4.
30306         Requested by Sam Steingold <sds@gnu.org>.
30307
30308 2010-08-31  Eric Blake  <eblake@redhat.com>
30309         and Jim Meyering  <meyering@redhat.com>
30310
30311         hash: factor, and guard against misbehaving hasher function
30312         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30313         of table->hasher's return value.  Also protect against a hash value
30314         so large that adding it to table->bucket results in a NULL pointer.
30315         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30316         Use it in place of open-coded check-and-abort.
30317
30318 2010-08-30  Bruno Haible  <bruno@clisp.org>
30319
30320         hash: silence spurious clang warning
30321         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30322         Reported by Eric Blake.
30323
30324 2010-08-30  Eric Blake  <eblake@redhat.com>
30325
30326         strstr, memmem, strcasestr: avoid leaked shell message
30327         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30328         FreeBSD.
30329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30331
30332         tests: silence clang warning
30333         * tests/test-malloca.c (do_allocation): Avoid dead store.
30334
30335 2010-08-29  Bruno Haible  <bruno@clisp.org>
30336
30337         gettext: Fix recent mistake.
30338         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30339
30340 2010-08-29  Bruno Haible  <bruno@clisp.org>
30341
30342         selinux-h: Offer a --without-selinux option.
30343         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30344         --without-selinux was specified, skip all tests and define
30345         HAVE_SELINUX_SELINUX_H to 0.
30346         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30347         set LIB_SELINUX to empty.
30348         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30349         gl_LIBSELINUX. If --without-selinux was specified, replace
30350         selinux/context.h.
30351         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30352
30353 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30354             Bruno Haible  <bruno@clisp.org>
30355
30356         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30357         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30358         of HAVE_REALLOC.
30359         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30360         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30361         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30362         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30363
30364 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30365             Bruno Haible  <bruno@clisp.org>
30366
30367         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30368         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30369         HAVE_CALLOC.
30370         * lib/xmalloc.c: Update accordingly.
30371         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30372         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30373         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30374
30375 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30376             Bruno Haible  <bruno@clisp.org>
30377
30378         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30379         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30380         HAVE_MALLOC.
30381         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30382         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30383         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30384
30385 2010-08-29  Bruno Haible  <bruno@clisp.org>
30386
30387         Update modules list.
30388         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30389         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30390         (String handling <string.h>): Add astrxfrm.
30391         (File system functions): Add readlinkat.
30392
30393 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30394
30395         Tests for module 'realloc-gnu'.
30396         * modules/realloc-gnu-tests: New file.
30397         * tests/test-realloc-gnu.c: New file.
30398
30399         Tests for module 'calloc-gnu'.
30400         * modules/calloc-gnu-tests: New file.
30401         * tests/test-calloc-gnu.c: New file.
30402
30403         Tests for module 'malloc-gnu'.
30404         * modules/malloc-gnu-tests: New file.
30405         * tests/test-malloc-gnu.c: New file.
30406
30407 2010-08-28  Bruno Haible  <bruno@clisp.org>
30408
30409         Rename module 'realloc' -> 'realloc-gnu'.
30410         * modules/realloc-gnu: New file, copied from modules/realloc.
30411         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30412         obsolete.
30413         * modules/mgetgroups (Depends-on): Update.
30414         * doc/posix-functions/realloc.texi: Update.
30415         * NEWS: Mention the change.
30416
30417         Rename module 'calloc' -> 'calloc-gnu'.
30418         * modules/calloc-gnu: New file, copied from modules/calloc.
30419         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30420         obsolete.
30421         * doc/posix-functions/calloc.texi: Update.
30422         * NEWS: Mention the change.
30423
30424         Rename module 'malloc' -> 'malloc-gnu'.
30425         * modules/malloc-gnu: New file, copied from modules/malloc.
30426         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30427         obsolete.
30428         * modules/argp (Depends-on): Update.
30429         * modules/regex (Depends-on): Update.
30430         * doc/posix-functions/malloc.texi: Update.
30431         * NEWS: Mention the change.
30432
30433 2010-08-28  Eric Blake  <eblake@redhat.com>
30434
30435         pread, pwrite: add missing dependency
30436         * modules/pread (Depends-on): Add extensions.
30437         * modules/pwrite (Depends-on): Likewise.
30438
30439 2010-08-28  Bruno Haible  <bruno@clisp.org>
30440
30441         unistr/u*-strchr: Fix tests dependencies.
30442         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30443         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30444         Reported by Ian Beckwith <ianb@erislabs.net>.
30445
30446 2010-08-28  Bruno Haible  <bruno@clisp.org>
30447
30448         read-file: Don't occupy too much unused memory.
30449         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30450
30451 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30452             Eric Blake  <eblake@redhat.com>
30453             Bruno Haible  <bruno@clisp.org>
30454
30455         read-file: Avoid memory reallocations with regular files.
30456         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30457         (fread_file): With regular files, use the remaining length as the
30458         initial buffer size.  Check against overflow.
30459         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30460         sys_stat.
30461
30462 2010-08-28  Bruno Haible  <bruno@clisp.org>
30463
30464         ftello: Relax license.
30465         * modules/ftello (License): Relax to LGPLv2+.
30466         Reported by Eric Blake.
30467
30468 2010-08-28  Bruno Haible  <bruno@clisp.org>
30469
30470         Avoid relocwrapper link errors due to gnulib replacement functions.
30471         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30472         function.
30473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30474
30475 2010-08-28  Bruno Haible  <bruno@clisp.org>
30476
30477         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30478         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30479         defined.
30480         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30481         Suggested by Eric Blake.
30482
30483 2010-08-28  Bruno Haible  <bruno@clisp.org>
30484
30485         sys_socket, netdb: Ensure socklen_t gets defined.
30486         * modules/sys_socket (Depends-on): Add socklen.
30487         * modules/netdb (Depends-on): Likewise.
30488         * modules/getaddrinfo (Depends-on): Remove socklen.
30489         * modules/getsockopt (Depends-on): Likewise.
30490         * modules/setsockopt (Depends-on): Likewise.
30491         * tests/test-sys_socket.c: Check that socklen_t is defined.
30492         * tests/test-netdb.c: Likewise.
30493         * m4/socklen.m4: Update comments.
30494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30495
30496 2010-08-27  Eric Blake  <eblake@redhat.com>
30497
30498         login_tty: add missing dependency
30499         * modules/login_tty (Depends-on): Add pty.
30500
30501 2010-08-26  Eric Blake  <eblake@redhat.com>
30502
30503         lib-symbol-versions: fix m4 quoting
30504         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30505         format for AC_LINK_IFELSE.
30506
30507         glob: fix compile test
30508         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30509
30510         btowc: fix missing file
30511         * modules/btowc (Files): Also ship locale-fr.m4.
30512
30513         lseek: fix link test
30514         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30515         AC_LINK_IFELSE.
30516
30517         include_next: silence autoconf 2.68 warning
30518         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30519         AC_COMPILE_IFELSE as special.
30520         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30521         autoconf < 2.68.
30522
30523         acl: fix compilation test
30524         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30525         AC_COMPILE_IFELSE.
30526
30527 2010-08-26  Bruno Haible  <bruno@clisp.org>
30528
30529         Modernize AC_TRY_RUN invocations.
30530         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30531         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30532         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30533         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30534         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30535         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30536         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30538         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30539         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30541         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30542         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30543         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30545         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30546         gl_MBRLEN_NUL_RETVAL): Likewise.
30547         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30548         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30549         Likewise.
30550         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30551         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30552         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30553         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30554         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30555         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30556         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30557         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30558         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30559         Likewise.
30560         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30561         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30563         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30564         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30565         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30566         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30567         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30568         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30570
30571 2010-08-26  Bruno Haible  <bruno@clisp.org>
30572
30573         Modernize AC_TRY_LINK invocations.
30574         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30575         AC_TRY_LINK.
30576         * m4/argp.m4 (gl_ARGP): Likewise.
30577         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30578         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30579         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30580         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30581         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30582         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30583         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30584         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30585         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30586         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30587         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30588         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30589         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30590         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30591         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30592         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30593         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30594         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30595         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30596         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30597         Likewise.
30598         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30599         Likewise.
30600         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30601         Likewise.
30602         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30604         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30605         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30606         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30607         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30608         * m4/servent.m4 (gl_SERVENT): Likewise.
30609         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30610         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30611         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30612         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30613         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30614         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30615         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30617         * modules/tsearch-tests (configure.ac): Likewise.
30618
30619 2010-08-26  Bruno Haible  <bruno@clisp.org>
30620
30621         Modernize AC_TRY_COMPILE invocations.
30622         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30623         AC_TRY_COMPILE.
30624         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30625         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30626         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30627         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30628         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30629         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30630         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30631         * m4/lock.m4 (gl_LOCK): Likewise.
30632         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30634         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30635         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30636         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30637         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30638         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30640         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30641         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30642         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30643         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30644         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30645         extraneous semicolon.
30646
30647 2010-08-26  Jim Meyering  <meyering@redhat.com>
30648
30649         stat-time: relax license LGPL
30650         * modules/stat-time (License): Change from GPL to LGPL,
30651         with consent from all contributors, for use in libguile.
30652         Requested by Ludovic Courtès.
30653
30654 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30655
30656         poll: return immediately on POLLHUP.
30657         * lib/poll.c (poll): Always set timeout before wait_timeout is
30658         computed.
30659
30660 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30661
30662         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30663         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30664         rmdir ("dir/.//"), unlinkat.
30665
30666 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30667
30668         stdbool: avoid spurious failure with modern xlc
30669         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30670
30671 2010-08-24  Bruno Haible  <bruno@clisp.org>
30672
30673         getloadavg: simplify code
30674         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30675         gl_have_func. Update comments.
30676
30677 2010-08-24  Eric Blake  <eblake@redhat.com>
30678
30679         getloadavg: don't define SVR4 on cygwin
30680         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30681         only define SVR4 when -lkvm is required.
30682         Reported by Yaakov Selkowitz.
30683
30684 2010-08-24  Bruno Haible  <bruno@clisp.org>
30685
30686         priv-set: fix comment
30687         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30688
30689 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30690
30691         priv-set: fix comments
30692         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30693         to match code, as suggested by David Bartley in:
30694         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30695
30696 2010-08-23  Eric Blake  <eblake@redhat.com>
30697
30698         stdbool: avoid rejecting clang
30699         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30700         * tests/test-stdbool.c: Enable more tests if using the system
30701         <stdbool.h> instead of the gnulib replacement.
30702         (main): Move xlc bug test to a runtime test for all compilers.
30703         Reported by Anders Kaseorg.
30704
30705         argz: fix shell quoting issue
30706         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30707         Reported by Charles Wilson.
30708
30709 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30710             Erik Faye-Lund <kusmabite@gmail.com>
30711
30712         poll, select: handle ERROR_BROKEN_PIPE.
30713         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30714         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30715         * lib/select.c (win32_compute_revents): Do not mark a pipe
30716         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30717
30718 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30719
30720         fts: allow compilation with C++
30721         * lib/fts_.h: Specify extern "C" linkage with C++.
30722
30723 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30724
30725         Fix gnulib-tool sed script de-commentation for AIX sed.
30726         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30727         sed.
30728
30729 2010-08-17  Eric Blake  <eblake@redhat.com>
30730
30731         test-stddef: test for (some) offsetof bugs
30732         * tests/test-stddef.c: Enhance test to ensure correct type of
30733         offsetof.
30734         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30735         that we are not fixing at this time.
30736
30737 2010-08-15  Bruno Haible  <bruno@clisp.org>
30738
30739         stpncpy: Allow stpncpy to be defined as a macro.
30740         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30741         if it's already correctly declared.
30742         * lib/string.in.h (stpncpy): Undefine before redefining.
30743         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30744
30745 2010-08-14  Bruno Haible  <bruno@clisp.org>
30746
30747         Rename module 'memxfrm' to 'amemxfrm'.
30748         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30749         (amemxfrm): Renamed from memxfrm.
30750         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30751         (amemxfrm): Renamed from memxfrm.
30752         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30753         * NEWS: Mention the change.
30754         * MODULES.html.sh (String handling <string.h>): Update.
30755         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30756         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30757         * lib/unicase/u16-casexfrm.c: Likewise.
30758         * lib/unicase/u32-casexfrm.c: Likewise.
30759         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30760         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30761         * lib/uninorm/u16-normxfrm.c: Likewise.
30762         * lib/uninorm/u32-normxfrm.c: Likewise.
30763         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30764         memxfrm.
30765         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30766         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30767         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30768         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30769         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30770         Suggested by Paul Eggert.
30771
30772 2010-08-14  Bruno Haible  <bruno@clisp.org>
30773
30774         Tests for module 'astrxfrm'.
30775         * modules/astrxfrm-tests: New file.
30776         * tests/test-astrxfrm.c: New file.
30777
30778         New module 'astrxfrm'.
30779         * lib/astrxfrm.h: New file.
30780         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30781         * modules/astrxfrm: New file.
30782
30783 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30784
30785         regex: Tweak doc.
30786         * doc/regex.texi (Overview): Don't mention regex.c.
30787         (GNU Regular Expression Compiling): Likewise.
30788         (Match-end-of-line Operator): Mention 'not_eol'.
30789
30790 2010-08-14  Brian Gough  <bjg@gnu.org>
30791             Bruno Haible  <bruno@clisp.org>
30792
30793         git-merge-changelog: add doc relating to use with bzr and hg.
30794         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30795
30796 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30797
30798         pthread: fix pthread.h creation for srcdir != builddir
30799         * modules/pthread (Makefile.am): Fix the rule to work also in a
30800         non-srcdir build.
30801
30802 2010-08-13  Karl Berry  <karl@gnu.org>
30803
30804         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30805         * doc/posix-*/*: force line break before @url of POSIX
30806         specifications.
30807         Suggested by Werner Lemberg.
30808
30809 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30810
30811         strtod: fix const diagnostic
30812         * lib/strtod.c (strtod): Don't assign const char * to char *,
30813         as this elicits a warning from GCC when warnings are enabled.
30814
30815 2010-08-10  Pádraig Brady <P@draigbrady.com>
30816         and Eric Blake  <eblake@redhat.com>
30817
30818         copy-acl: ignore ENOTSUP on HP-UX
30819         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30820         so that it is available for HP-UX.
30821         * lib/copy-acl.c (qcopy_acl): Use it.
30822         Reported by Patrick M. Callahan.
30823
30824 2010-08-10  Eric Blake  <eblake@redhat.com>
30825
30826         open, chown: relax license
30827         * modules/open (License): Change to LGPLv2+, with consent by all
30828         authors, for use in augeas.
30829         * modules/chown (License): Likewise.
30830         * modules/lchown (Likewise): Likewise.
30831         Requested by Adam Stokes.
30832
30833 2010-08-09  Karl Berry  <karl@gnu.org>
30834
30835         * build-aux/ar-lib: new file, import from Automake.
30836         * config/srclist.txt: autocheck for updates.
30837
30838 2010-08-09  Eric Blake  <eblake@redhat.com>
30839
30840         readlinkat: adjust client modules
30841         * modules/areadlinkat (Depends-on): Use readlinkat, not
30842         symlinkat.
30843         * modules/areadlinkat-with-size (Depends-on): Likewise.
30844
30845         mknod: be more vocal about danger of running tests as root
30846         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30847         root, since that is just asking for problems.
30848         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30849
30850         readlinkat: split into its own module
30851         * modules/symlinkat: Split readlinkat...
30852         * modules/readlinkat: ...into separate module.
30853         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30854         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30855         * lib/symlinkat.c (readlinkat): Move...
30856         * lib/readlinkat.c: ...into new file.
30857         * modules/symlinkat-tests: Split readlinkat test...
30858         * modules/readlinkat-tests: ...into separate module.
30859         * tests/test-symlinkat.c: Split...
30860         * tests/test-readlinkat.c: ...into new file.
30861         * NEWS: Document the split.
30862         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30863         * lib/unistd.in.h (readlinkat): Likewise.
30864         Suggested by Bruno Haible.
30865
30866 2010-08-08  Bruno Haible  <bruno@clisp.org>
30867
30868         memxfrm: Speed up.
30869         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30870         that usually only one call to strxfrm is necessary for each string
30871         part.
30872         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30873
30874 2010-08-07  Karl Berry  <karl@gnu.org>
30875
30876         * doc/posix-headers/limits.texi,
30877         * doc/posix-functions/malloc.texi,
30878         * doc/posix-functions/strsignal.texi: missing @item.
30879         * doc/ld-version-script.texi: spurious leading i.
30880         * doc/regex.texi (Interval Operators): no commas inside @var.
30881
30882 2010-08-01  Bruno Haible  <bruno@clisp.org>
30883
30884         Integrate the regex documentation.
30885         * doc/gnulib.texi: Define 'cn' index.
30886         (Regular expressions): New a chapter that includes regex.texi and
30887         regexprops-generic.texi.
30888         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30889         syntax.
30890
30891         Whitespace cleanup.
30892         * doc/regex.texi: Remove trailing spaces.
30893
30894         Add regex documentation.
30895         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30896         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30897         Written by Kathy A. Hargreaves and Karl Berry.
30898
30899 2010-08-01  Bruno Haible  <bruno@clisp.org>
30900
30901         link: Update documentation.
30902         * doc/posix-functions/link.texi: Update regarding Solaris.
30903
30904 2010-07-31  Bruno Haible  <bruno@clisp.org>
30905
30906         Update modules list.
30907         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30908         (String handling <string.h>): Add memcmp2, memxfrm.
30909         (Container data structures): Add xlist, xsublist, xoset.
30910         (Core language properties): Add alignof, unused-parameter.
30911         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30912         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30913         (Unibyte characters <ctype.h>): New section.
30914         (String handling <string.h>): New section.
30915         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30916         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30917         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30918         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30919         tan, tanh, tanl, y0, y1, yn.
30920         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30921         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30922         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30923         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30924         unlockpt, vdprintf, vdprintf-posix.
30925         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30926         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30927         xconcat-filename.
30928         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30929         getdtablesize, pipe2, pipe2-safer.
30930         (Security): New section.
30931         (Networking functions): Add accept4.
30932         (Signal handling): Add sigpipe.
30933         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30934         mbmemcasecoll.
30935         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30936         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30937         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30938         pipe-filter-ii.
30939         (Misc): Add argp-version-etc, login_tty, parse-duration.
30940
30941 2010-07-31  Bruno Haible  <bruno@clisp.org>
30942
30943         Improve doc in MODULES.html.
30944         * modules/linkat (Description): Add the word "function".
30945         * modules/mkfifo (Description): Likewise.
30946         * modules/mknod (Description): Likewise.
30947         * modules/remove (Description): Likewise.
30948         * modules/renameat (Description): Likewise.
30949         * modules/stat (Description): Likewise.
30950         * modules/symlink (Description): Likewise.
30951         * modules/unlink (Description): Likewise.
30952
30953 2010-07-31  Bruno Haible  <bruno@clisp.org>
30954
30955         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30956         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30957         option --enable/disable-c++ instead of --enable/disable-cxx.
30958         * NEWS: Mention the change.
30959
30960 2010-07-31  Bruno Haible  <bruno@clisp.org>
30961
30962         readlink, areadlink: Relax test a bit.
30963         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30964         alternative to ENOTDIR.
30965         * tests/test-areadlink.h (test_areadlink): Likewise.
30966         Reported by Rainer Tammer.
30967
30968 2010-07-31  Bruno Haible  <bruno@clisp.org>
30969
30970         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30971         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30972         character, perform the search using U_STRCHR.
30973         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30974         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30975         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30976         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30977         Suggested by Paolo Bonzini.
30978
30979 2010-07-31  Bruno Haible  <bruno@clisp.org>
30980
30981         unistr/u*-strstr: Fix dependencies.
30982         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30983         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30984         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30985
30986 2010-07-31  Bruno Haible  <bruno@clisp.org>
30987
30988         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30989         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30990         the beginning of the loop.
30991         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30992         cases in 'switch' statement.
30993
30994         unistr/u8-strchr: Fix several bugs.
30995         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30996         the string. When not found, return NULL, not a pointer near the end.
30997
30998         More tests for unistr/u8-strchr.
30999         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31000         that the function does not read past the first occurrence of the byte
31001         being searched.
31002         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31003         * tests/unistr/test-u16-strchr.c (main): New function.
31004         * tests/unistr/test-u32-strchr.c (main): New function.
31005
31006 2010-07-31  Bruno Haible  <bruno@clisp.org>
31007
31008         posix-modules: Ignore backup files of documentation files.
31009         * posix-modules: grep only through files named *.texi.
31010
31011 2010-07-31  Bruno Haible  <bruno@clisp.org>
31012
31013         symlinkat: Fix documentation.
31014         * doc/posix-functions/readlinkat.texi: Fix module name.
31015
31016 2010-07-31  Bruno Haible  <bruno@clisp.org>
31017
31018         fchownat: Replace also when chown has the trailing slash bug.
31019         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31020         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31021         introduced on 2010-04-10.
31022         Reported by Rainer Tammer.
31023
31024 2010-07-31  Bruno Haible  <bruno@clisp.org>
31025
31026         linkat: Work around AIX 7.1 bug.
31027         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31028         whether linkat handles trailing slash correctly. If not, replace linkat
31029         and define LINKAT_TRAILING_SLASH_BUG.
31030         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31031         check whether (fd1,file1) points to a directory if file1 or file2 ends
31032         in a slash. Code taken from lib/link.c.
31033         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31034         Reported by Rainer Tammer.
31035
31036 2010-07-31  Bruno Haible  <bruno@clisp.org>
31037
31038         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31039         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31040         This disables an xlc optimization that was causing wrong test results.
31041         Reported by Rainer Tammer.
31042
31043 2010-07-31  Bruno Haible  <bruno@clisp.org>
31044
31045         iconv: Work around AIX 6.1..7.1 bug.
31046         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31047         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31048         cross-compiling, guess no on all versions of AIX.
31049         Reported by Rainer Tammer.
31050
31051 2010-07-31  Bruno Haible  <bruno@clisp.org>
31052
31053         readlink: Relax test a bit.
31054         * tests/test-readlink.h (test_readlink): Allow different errno value
31055         when readlink is called with a file name that ends in / and refers to
31056         a file.
31057         Suggested by Eric Blake.
31058         Reported by Rainer Tammer.
31059
31060 2010-07-31  Bruno Haible  <bruno@clisp.org>
31061
31062         copysign: Does not require -lm on glibc systems.
31063         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31064         gl_COMMON_DOUBLE_MATHFUNC.
31065         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31066
31067 2010-07-31  Bruno Haible  <bruno@clisp.org>
31068
31069         duplocale: Work around AIX 7.1 bug.
31070         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31071         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31072         * lib/duplocale.c (rpl_duplocale): Update comment.
31073         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31074         Reported by Rainer Tammer.
31075
31076 2010-07-30  Bruno Haible  <bruno@clisp.org>
31077
31078         dirfd: Avoid link error on AIX 7.1.
31079         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31080         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31081         exist, set REPLACE_DIRFD.
31082         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31083         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31084         * doc/posix-functions/dirfd.texi: Update.
31085         Reported by Rainer Tammer.
31086
31087 2010-07-30  Eric Blake  <eblake@redhat.com>
31088
31089         strtod: next round of AIX fixes
31090         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31091         exponent.
31092         * tests/test-strtod.c (main): Enhance tests.
31093         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31094         Reported by Rainer Tammer.
31095
31096         futimens: fix configure check
31097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31098         Reported by Bruno Haible.
31099
31100 2010-07-30  Bruno Haible  <bruno@clisp.org>
31101
31102         getline: Update regarding AIX.
31103         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31104         Reported by Rainer Tammer.
31105
31106 2010-07-30  Bruno Haible  <bruno@clisp.org>
31107
31108         wcwidth: Drop replacement on AIX 7.
31109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31110         AIX 7.
31111         Reported by Rainer Tammer.
31112
31113 2010-07-30  Bruno Haible  <bruno@clisp.org>
31114
31115         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31116         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31117         a 'char *'.
31118         Reported by Rainer Tammer.
31119
31120 2010-07-30  Bruno Haible  <bruno@clisp.org>
31121
31122         unlink: Update regarding AIX.
31123         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31124         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31125         Reported by Rainer Tammer.
31126
31127 2010-07-30  Bruno Haible  <bruno@clisp.org>
31128
31129         symlink: Update regarding AIX.
31130         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31131         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31132         Reported by Rainer Tammer.
31133
31134 2010-07-30  Bruno Haible  <bruno@clisp.org>
31135
31136         strndup: Update regarding AIX.
31137         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31138         AIX 7.
31139         Reported by Rainer Tammer.
31140
31141 2010-07-30  Bruno Haible  <bruno@clisp.org>
31142
31143         stat: Update regarding AIX.
31144         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31145         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31146         Reported by Rainer Tammer.
31147
31148 2010-07-30  Bruno Haible  <bruno@clisp.org>
31149
31150         truncl: Fix autoconf test.
31151         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31152         whether truncl works.
31153         Reported by Rainer Tammer.
31154
31155 2010-07-30  Bruno Haible  <bruno@clisp.org>
31156
31157         round: Update regarding AIX.
31158         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31159         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31160         Reported by Rainer Tammer.
31161
31162 2010-07-30  Bruno Haible  <bruno@clisp.org>
31163
31164         rename: Update regarding AIX.
31165         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31166         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31167         Reported by Rainer Tammer.
31168
31169 2010-07-30  Bruno Haible  <bruno@clisp.org>
31170
31171         printf.m4: Update regarding AIX.
31172         * m4/printf.m4: Update comments regarding AIX.
31173         Reported by Rainer Tammer.
31174
31175 2010-07-30  Bruno Haible  <bruno@clisp.org>
31176
31177         iconv: Update regarding AIX.
31178         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31179         AIX 7.
31180         Reported by Rainer Tammer.
31181
31182 2010-07-30  Bruno Haible  <bruno@clisp.org>
31183
31184         getopt: Update regarding AIX.
31185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31186         no on AIX.
31187         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31188         Reported by Rainer Tammer.
31189
31190 2010-07-30  Bruno Haible  <bruno@clisp.org>
31191
31192         ldexpl; Update regarding AIX.
31193         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31194         on AIX 7.
31195         Reported by Rainer Tammer.
31196
31197 2010-07-30  Bruno Haible  <bruno@clisp.org>
31198
31199         frexpl: Update regarding AIX.
31200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31201         on AIX 7.
31202         Reported by Rainer Tammer.
31203
31204 2010-07-30  Bruno Haible  <bruno@clisp.org>
31205
31206         open, fopen: Update regarding AIX.
31207         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31208         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31209         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31210         * doc/posix-functions/fopen.texi: Likewise.
31211         Reported by Rainer Tammer.
31212
31213 2010-07-30  Bruno Haible  <bruno@clisp.org>
31214
31215         chown: Update doc regarding AIX.
31216         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31217         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31218         Reported by Rainer Tammer.
31219
31220 2010-07-30  Eric Blake  <eblake@redhat.com>
31221
31222         strtod: fix bug in replacement function on AIX
31223         * lib/strtod.c (strtod): Special case broken "0x" parse in
31224         underlying strtod.
31225         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31226         * doc/posix-functions/strtod.texi (strtod): Likewise.
31227         Reported by Rainer Tammer.
31228
31229 2010-07-30  Bruno Haible  <bruno@clisp.org>
31230
31231         mbrlen: Fix cross-compilation guess for AIX.
31232         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31233         guess. Leftover from 2008-12-22.
31234
31235 2010-07-30  Bruno Haible  <bruno@clisp.org>
31236
31237         mbrtowc: Fix cross-compilation guess for AIX.
31238         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31239         guess. Leftover from 2008-12-21.
31240
31241 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31242
31243         init.sh: work around trap limitation of some shells
31244         * tests/init.sh (setup_): Move exit trap outside of shell function.
31245
31246 2010-07-29  Eric Blake  <eblake@redhat.com>
31247
31248         strtod: aid debugging
31249         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31250         understanding why strtod is rejected.
31251
31252 2010-07-28  Bruno Haible  <bruno@clisp.org>
31253
31254         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31255         * lib/unistr/u8-chr.c: Include <string.h>.
31256         * tests/unistr/test-u8-chr.c: Likewise.
31257         * tests/unistr/test-u16-chr.c: Likewise.
31258         * tests/unistr/test-u32-chr.c: Likewise.
31259         * tests/unistr/test-u8-strchr.c: Likewise.
31260         * tests/unistr/test-u16-strchr.c: Likewise.
31261         * tests/unistr/test-u32-strchr.c: Likewise.
31262         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31263         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31264         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31265         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31266
31267 2010-07-28  Bruno Haible  <bruno@clisp.org>
31268
31269         Use spaces for indentation, not tabs.
31270         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31271
31272 2010-07-27  Bruno Haible  <bruno@clisp.org>
31273
31274         mbspcasecmp: Fix function specification.
31275         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31276         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31277         Reported by Eric Blake <eblake@redhat.com>.
31278
31279 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31280
31281         timespec: use cast and not conditional, as truncation isn't possible
31282         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31283         instead of a conditional.  Comment about the situation in more detail.
31284         This undoes most of the 2009-10-29 patch.
31285
31286 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31287
31288         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31289         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31290         * lib/unistr/u8-strchr.c: Likewise.
31291         * modules/unistr/u8-chr: Depend on memchr.
31292
31293         unistr/u*-strchr: add tests
31294         * modules/unistr/u8-strchr-tests: New file.
31295         * modules/unistr/u16-strchr-tests: New file.
31296         * modules/unistr/u32-strchr-tests: New file.
31297         * tests/unistr/test-strchr.h: New file.
31298         * tests/unistr/test-u8-strchr.c: New file.
31299         * tests/unistr/test-u16-strchr.c: New file.
31300         * tests/unistr/test-u32-strchr.c: New file.
31301
31302         unistr/u*-chr: test multibyte sequences more
31303         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31304         test vector.
31305         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31306         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31307         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31308
31309         unistr/u*-chr: test multibyte sequences
31310         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31311
31312         unistr/u*-chr: prepare for multibyte tests
31313         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31314         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31315         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31316         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31317         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31318         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31319
31320 2010-07-18  Bruno Haible  <bruno@clisp.org>
31321
31322         unistr/u8-strchr: Optimize non-ASCII argument case.
31323         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31324         because the first byte often matches anyway.
31325         Reported by Pádraig Brady <P@draigbrady.com>.
31326
31327 2010-07-15  Karl Berry  <karl@gnu.org>
31328
31329         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31330
31331 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31332
31333         getcwd: on Solaris, work better if ancestors are inaccessible
31334         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31335         buffer and size, try again with a large buffer.  This works better
31336         on Solaris, since its getcwd succeeds even if the path to the root
31337         is inaccessible, and this is helpful in common cases such as .zfs
31338         hidden directories.  Problem reported by J Chapman Flack in
31339         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31340         Use system getcwd if it's declared, not merely if it's partly
31341         working; use the partly-working test only to avoid needless effort
31342         if the system getcwd fails.
31343         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31344         comment that was already obsolete and is now even more obsolete.
31345         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31346         now might call strdup.
31347
31348 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31349
31350         pthread: Add enough so that coreutils/src/sort.c compiles.
31351         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31352         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31353         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31354         Include <sys/types.h>, in case it defines pthread_t.
31355         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31356         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31357         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31358         (pthread_rwlockattr_t, pthread_spinlock_t):
31359         New typedefs, if HAVE_PTHREAD_T is not defined.
31360         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31361         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31362         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31363         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31364         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31365         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31366         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31367         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31368         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31369         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31370         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31371         New macros.
31372         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31373         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31374         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31375         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31376         (pthread_spin_unlock): New dummy functions.
31377         (pthread_create): Return EAGAIN; don't set errno.
31378         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31379         require AC_C_INLINE.
31380         * modules/pthread (Depends-on): Add sched, time.
31381         (pthread.h): Use AM_V_GEN.
31382
31383 2010-07-13  Bruno Haible  <bruno@clisp.org>
31384
31385         striconveh: Don't malloc memory if the result buffer is sufficient.
31386         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31387         buffer if its size is sufficient.
31388         Reported by Ludovic Courtès <ludo@gnu.org>.
31389
31390 2010-07-13  Bruno Haible  <bruno@clisp.org>
31391
31392         strtod: Add safety check.
31393         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31394
31395 2010-07-12  Bruno Haible  <bruno@clisp.org>
31396
31397         Unify tests that set gl_cv_func_ldexpl_no_libm.
31398         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31399         gl_FUNC_LDEXPL.
31400         (gl_FUNC_LDEXPL): Invoke it.
31401         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31402
31403 2010-07-12  Bruno Haible  <bruno@clisp.org>
31404
31405         Unify tests that set gl_cv_func_ldexp_no_libm.
31406         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31407         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31408         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31409         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31410         * modules/strtod (Files): Add m4/ldexp.m4.
31411
31412 2010-07-12  Bruno Haible  <bruno@clisp.org>
31413
31414         Unify tests that set gl_cv_func_frexpl_no_libm.
31415         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31416         gl_FUNC_FREXPL_NO_LIBM.
31417         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31418         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31419
31420 2010-07-12  Bruno Haible  <bruno@clisp.org>
31421
31422         Unify tests that set gl_cv_func_frexp_no_libm.
31423         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31424         gl_FUNC_FREXP_NO_LIBM.
31425         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31426         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31427
31428 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31429
31430         memcoll: clarify sizes versus lengths, document better, and tweak perf
31431         * lib/memcoll.c (strcoll_loop, memcoll0):
31432         Improve quality of descriptive comments.  Name variables
31433         consistently as to whether they are lengths (which do not include
31434         terminating null) versus sizes (which do).
31435         * lib/xmemcoll.c (xmemcoll0): Likewise.
31436         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31437         returned when s1size == 0; this is easier to compile and saves
31438         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31439
31440 2010-07-12  Bruno Haible  <bruno@clisp.org>
31441
31442         Tests for module '_Exit'.
31443         * modules/_Exit-tests: New file.
31444         * tests/test-_Exit.sh: New file.
31445         * tests/test-_Exit.c: New file.
31446
31447         New module '_Exit'.
31448         * lib/stdlib.in.h (__attribute__): New macro.
31449         (_Exit): New declaration.
31450         * lib/_Exit.c: New file.
31451         * m4/_Exit.m4: New file.
31452         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31453         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31454         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31455         * modules/_Exit: New file.
31456         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31457         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31458
31459 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31460
31461         strtod: make it more-accurate typically, and don't require libm
31462         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31463         Include limits.h.  Don't include string.h.
31464         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31465         (locale_isspace): New function, so that no casts are needed to
31466         check whether *s is a space.
31467         (ldexp): Provide an unused dummy if not available.
31468         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31469         (strtod): Use them.  This implementation prefers to use the
31470         underlying strtod if available, falling back on our own code
31471         only to fix known bugs.  This is more likely to produce an
31472         accurate result.  Also, it avoids the use of libm functions.
31473         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31474         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31475         was absent, but it caused a test failure with coreutils.
31476         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31477         with libm.
31478         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31479         * modules/strtod-tests (Makefile.am): Likewise.
31480
31481 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31482             Bruno Haible  <bruno@clisp.org>
31483
31484         unistr/u8-strchr: Optimize ASCII argument case.
31485         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31486
31487 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         (x)memcoll: minor tweaks
31490         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31491         is after the type that it qualifies.
31492         (memcoll0): Likewise.
31493         * lib/memcoll.h (memcoll0): Likewise.
31494         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31495         * lib/xmemcoll.h (xmemcoll0): Likewise.
31496         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31497         differs from memcoll in that the NUL byte is part of the argument.
31498         Omit the abort-checks, as performance is a real issue here.  Plus,
31499         the checks were wrong anyway (an off-by-one error).  Omit local
31500         variable 'diff', as it's a bit clearer that way.
31501         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31502         no longer needed.
31503
31504 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31505
31506         (x)memcoll: speedup when input is known to be NUL delimited
31507         * lib/memcoll.c: Include stdlib.
31508         (memcoll0): New function.
31509         (strcoll_loop): New function, refactored for use in both memcoll
31510         and memcoll0.
31511         * lib/memcoll.h (memcoll0): Add prototype.
31512         * lib/xmemcoll.c (xmemcoll0): New function.
31513         (collate_error): New function, refactored for use in both xmemcoll
31514         and xmemcoll0.
31515         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31516         * m4/memcoll.m4: add inline invocation.
31517
31518 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31519
31520         * build-aux/bootstrap: Remove any local translations
31521         from the translation project synchronization directory,
31522         so that local only translations are not distributed.
31523
31524 2010-07-04  Bruno Haible  <bruno@clisp.org>
31525
31526         fsusage: Clarify which code applies to which platforms.
31527         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31528         platform.
31529         * lib/fsusage.c (get_fs_usage): Likewise.
31530
31531 2010-07-04  Bruno Haible  <bruno@clisp.org>
31532
31533         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31534         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31535         Reported by Martin Lambers <marlam@marlam.de>.
31536
31537 2010-07-04  Jim Meyering  <meyering@redhat.com>
31538
31539         hash: once again explicitly disallow insertion of NULL
31540         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31541         inserting a NULL pointer cannot work with these functions.
31542         Add a comment with details.
31543         This reverts part of the 2010-07-01 commit, 5bef1a35
31544         "hash: extend module to deal with non-pointer keys".
31545
31546 2010-07-01  Bruno Haible  <bruno@clisp.org>
31547
31548         stdbool: Update doc.
31549         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31550         Info from Christian Weisgerber <naddy@mips.inka.de>.
31551
31552 2010-07-01  Jim Meyering  <meyering@redhat.com>
31553
31554         hash: extend module to deal with non-pointer keys
31555         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31556         but that allows insertion of non-pointer entries.
31557         Do not disallow an ENTRY value of NULL.
31558         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31559         * lib/hash.h (hash_insert0): Declare.
31560
31561 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31562
31563         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31564         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31565         not present (i.e. with autoconf 2.59 and when using gettextize, not
31566         gnulib), require AC_GNU_SOURCE instead.
31567
31568 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31569
31570         idpriv-drop: Fix tests.
31571         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31572         not to the test-idpriv-droptemp program.
31573
31574 2010-06-29  Bruno Haible  <bruno@clisp.org>
31575
31576         string: Fix syntax error with g++ 2.96.
31577         * lib/string.in.h (__pure__): Remove definition.
31578         (_GL_ATTRIBUTE_PURE): New macro.
31579         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31580         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31581         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31582
31583 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31584
31585         unitypes: Fix bug introduced on 2010-05-18.
31586         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31587
31588 2010-06-22  Eric Blake  <eblake@redhat.com>
31589
31590         memmem: slight optimization
31591         * lib/str-two-way.h (critical_factorization): Update comments.
31592         Reduce work during factorization phase.
31593         Reported by Carlos Bueno <carlos@bueno.org>.
31594
31595 2010-06-21  Bruno Haible  <bruno@clisp.org>
31596
31597         Fix HAVE_CALLOC_POSIX misnomer.
31598         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31599         !HAVE_CALLOC_POSIX.
31600         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31601         HAVE_CALLOC_POSIX.
31602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31603         instead of HAVE_CALLOC_POSIX.
31604         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31605         HAVE_CALLOC_POSIX.
31606
31607         Use modern idiom for calloc() replacement.
31608         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31609         AC_FUNC_CALLOC.
31610         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31611         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31612         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31613         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31614         (gl_REPLACE_CALLOC): New macro.
31615
31616 2010-06-21  Bruno Haible  <bruno@clisp.org>
31617
31618         Fix HAVE_REALLOC_POSIX misnomer.
31619         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31620         !HAVE_REALLOC_POSIX.
31621         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31622         HAVE_REALLOC_POSIX.
31623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31624         instead of HAVE_REALLOC_POSIX.
31625         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31626         HAVE_REALLOC_POSIX.
31627
31628         Use modern idiom for realloc() replacement.
31629         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31630         AC_FUNC_REALLOC.
31631         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31632         Autoconf's AC_FUNC_REALLOC.
31633         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31634         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31635         (gl_REPLACE_REALLOC): New macro.
31636         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31637
31638 2010-06-21  Bruno Haible  <bruno@clisp.org>
31639
31640         Fix HAVE_MALLOC_POSIX misnomer.
31641         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31642         !HAVE_MALLOC_POSIX.
31643         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31644         HAVE_MALLOC_POSIX.
31645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31646         instead of HAVE_MALLOC_POSIX.
31647         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31648         HAVE_MALLOC_POSIX.
31649
31650         Use modern idiom for malloc() replacement.
31651         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31652         AC_FUNC_MALLOC.
31653         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31654         Autoconf's AC_FUNC_MALLOC.
31655         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31656         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31657         (gl_REPLACE_MALLOC): New macro.
31658         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31659
31660 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31661
31662         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31663         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31664         This macro takes 3 arguments, not 4.
31665
31666 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31667
31668         ipv6: fix detection under mingw
31669         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31670         in6_addr.
31671
31672 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31673
31674         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31675         that strtod() works when cross-compiling to a glibc version known
31676         to work.
31677
31678 2010-06-15  Bruno Haible  <bruno@clisp.org>
31679
31680         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31681
31682 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31683
31684         select: Correct timeout.
31685         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31686
31687 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31688
31689         git-version-gen: init shell var to avoid env var influence
31690         * build-aux/git-version-gen (v): Init shell var to empty.
31691
31692 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         priv-set: Don't assume that priv.h exists merely because getppriv does.
31695         See Jan Andersen's bug report about AIX 5L in
31696         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31697         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31698         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31699         * lib/priv-set.h: Likewise.
31700         * tests/test-priv-set.c: Likewise.
31701
31702 2010-06-13  Bruno Haible  <bruno@clisp.org>
31703
31704         relocatable: Make it easier to test whether to install wrappers.
31705         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31706         RELOCATABLE_VIA_WRAPPER.
31707
31708 2010-06-13  Bruno Haible  <bruno@clisp.org>
31709
31710         gnulib-tool: Display specified modules and dependencies differently.
31711         * gnulib-tool (func_show_module_list): New function.
31712         (func_import, func_create_testdir): Invoke it.
31713         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31714
31715 2010-06-13  Bruno Haible  <bruno@clisp.org>
31716
31717         gnulib-tool: Align code of func_import and func_create_testdir.
31718         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31719         specified_modules.
31720
31721 2010-06-12  Jim Meyering  <meyering@redhat.com>
31722
31723         test-inttostr: avoid spurious failure on Solaris 9
31724         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31725         to accept "%ju".  Reported by Bruno Haible.
31726
31727 2010-06-11  Jim Meyering  <meyering@redhat.com>
31728
31729         test-sys_socket: mark variables as used more readably
31730         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31731         as "used" explicitly via (void) statement casts.  This is more
31732         readable than using them in an artificial return expression.
31733         Suggestion from Bruno Haible.
31734
31735 2010-06-11  Bruno Haible  <bruno@clisp.org>
31736
31737         Avoid some more warnings from "gcc -Wwrite-strings".
31738         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31739         to 'const char *'.
31740         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31741         * tests/test-c-strcasestr.c (main): Likewise.
31742         * tests/test-mbscasestr1.c (main): Likewise.
31743         * tests/test-mbscasestr2.c (main): Likewise.
31744         * tests/test-memmem.c (main): Likewise.
31745         * tests/test-strstr.c (main): Likewise.
31746         * tests/test-strcasestr.c (main): Likewise.
31747
31748 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31749
31750         init.sh: change framework_failure_ to fail with status 99, not 1
31751         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31752         automake's parallel-tests rule that this is an unexpected failure,
31753         even if the test is listed in XFAIL_TESTS.
31754
31755 2010-06-11  Jim Meyering  <meyering@redhat.com>
31756
31757         test-inttostr: avoid warnings about 4-6KB literal strings
31758         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31759         Include "macros.h", for its definition of ASSERT.
31760         (CK): s/assert/ASSERT/
31761         * modules/inttostr-tests (Files): Add macros.h.
31762
31763         init.sh: don't use $ME_ or skip_ before they are defined
31764         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31765         their first uses.  Also hoist their companions: warn_, fail_,
31766         framework_failure_, $stderr_fileno.  Prompted by a patch from
31767         Stefano Lattarini.
31768
31769         test-sys_socket: avoid set-but-not-used warnings from gcc
31770         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31771         avoid warning about set-but-not-used variables.
31772
31773         test-xvasprintf: avoid 'const' discard warnings
31774         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31775         "const" when assigning from literal strings.
31776         (test_xasprintf): Add "void" in function argument list to placate
31777         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31778
31779         tests: avoid compilation warnings in argmatch and exclude tests...
31780         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31781         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31782         Since it always exits, declare with the "noreturn" attribute.
31783         * tests/test-argmatch.c: Likewise.
31784
31785         tests: avoid 'const' discard warnings in mbsstr tests
31786         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31787         * tests/test-mbsstr2.c (main): Likewise.
31788
31789         test-verify: avoid warning from gcc's -Wmissing-declarations
31790         * tests/test-verify.c (function): Declare to be static.
31791
31792         test-inttostr.c: include <string.h> for use of strcmp
31793         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31794
31795         test-linkat: avoid failed assertion on "other" architectures
31796         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31797         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31798         sparc: https://bugs.launchpad.net/bugs/591968
31799
31800 2010-06-11  Jim Meyering  <meyering@redhat.com>
31801
31802         printf.m4: avoid autoconf's "Expanded Before Required" warning
31803         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31804         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31805         autoconf warning.
31806
31807 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31808
31809         Replacement header templates are now named with ".in", not "_".
31810         * doc/gnulib-intro.texi: Correct.
31811
31812 2010-06-10  Jim Meyering  <meyering@redhat.com>
31813
31814         inttostr-tests: depend on snprintf, not snprintf-posix
31815         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31816         snprintf-posix, to avoid this aclocal failure:
31817           missing file gnulib-tests/vasnprintf.c
31818           configure.ac:45: error: expected source file, required through \
31819           AC_LIBSOURCES, not found
31820
31821 2010-06-10  Jim Meyering  <meyering@redhat.com>
31822
31823         inttostr: add a new function, inttostr, and tests
31824         The namesake function was not available.  The existence of the
31825         template file, inttostr.c makes its addition nontrivial.
31826         * lib/anytostr.c: Rename from inttostr.c.
31827         (anytostr): Rename from inttostr.
31828         * lib/inttostr.c: New file.
31829         * modules/inttostr (Files): Add anytostr.c.
31830         (Makefile.am): Set lib_SOURCES instead of ...
31831         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31832         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31833         * lib/offtostr.c: Likewise.
31834         * lib/uinttostr.c: Likewise.
31835         * lib/umaxtostr.c: Likewise.
31836         * modules/inttostr-tests: New file.
31837         * tests/test-inttostr.c: New file.  Test these functions.
31838
31839 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31840             Bruno Haible  <bruno@clisp.org>
31841
31842         Add "Extending Gnulib" chapter to manual.
31843         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31844         chapter.
31845         (Extending Gnulib): New chapter.
31846         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31847         chapter.
31848
31849 2010-06-09  Bruno Haible  <bruno@clisp.org>
31850
31851         Avoid relocwrapper link errors due to gnulib replacement functions.
31852         * lib/areadlink.c: Use the system's malloc, realloc functions.
31853         (areadlink): Set errno to ENOMEM explicitly.
31854         * modules/areadlink (Depends-on): Remove malloc-posix.
31855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31856
31857 2010-06-09  Bruno Haible  <bruno@clisp.org>
31858
31859         Avoid relocwrapper link errors due to gnulib replacement functions.
31860         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31861         * lib/malloca.c: Likewise.
31862         * lib/relocatable.c: Likewise.
31863         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31864         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31865         * lib/setenv.c: Use the system's malloc, realloc functions.
31866         * lib/strerror.c: Use the system's sprintf function.
31867         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31868
31869 2010-06-04  Bruno Haible  <bruno@clisp.org>
31870
31871         Prefer documented low-level autoconf macro names.
31872         * m4/lib-link.m4: Use m4_translit instead of translit.
31873         * m4/environ.m4: Likewise.
31874         * m4/mathfunc.m4: Likewise.
31875         * m4/onceonly.m4: Likewise.
31876         * m4/stdint.m4: Likewise.
31877         Suggested by Eric Blake.
31878
31879 2010-06-04  Martin Lambers  <marlam@marlam.de>
31880             Bruno Haible  <bruno@clisp.org>
31881
31882         havelib: Allow library names with '+' characters.
31883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31884         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31885
31886 2010-06-09  Bruno Haible  <bruno@clisp.org>
31887
31888         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31889         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31890         realloc failed.
31891
31892 2010-06-08  Peter Simons  <simons@cryp.to>
31893
31894         maint.mk: make the news-check rule more configurable
31895         * top/maint.mk (news-check-lines-spec): New variable.
31896         (news-check): Use "sed -n 1,10p" in place of "head".
31897
31898 2010-06-07  Jim Meyering  <meyering@redhat.com>
31899
31900         do-release-commit-and-tag: fix typo in --help
31901         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31902
31903         regex: avoid new dead-code warning with gcc-4.6.0
31904         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31905         if-block containing a while-loop.  It's been unused for at least
31906         5 years.
31907
31908 2010-06-05  Bruno Haible  <bruno@clisp.org>
31909
31910         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31911         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31912
31913 2010-06-04  Bruno Haible  <bruno@clisp.org>
31914
31915         Update to GNU gettext 0.18.1.
31916         * modules/gettext (configure.ac): Require gettext infrastructure from
31917         version 0.18.1.
31918
31919 2010-06-03  Bruno Haible  <bruno@clisp.org>
31920
31921         Don't use AC_LIBOBJ with file names in subdirectories.
31922         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31923         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31924         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31925         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31926         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31927         gl_LIBUNISTRING_LIBSOURCE.
31928         (Makefile.am): Augment lib_SOURCES here, conditionally.
31929         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31930
31931 2010-06-03  Bruno Haible  <bruno@clisp.org>
31932
31933         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31934         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31935         expansion does not end with a newline.
31936         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31937         unnecessary newline.
31938
31939 2010-06-03  Bruno Haible  <bruno@clisp.org>
31940
31941         Reduce dependencies.
31942         * tests/test-quotearg.h: New file, extracted from
31943         tests/test-quotearg.c.
31944         * tests/test-quotearg-simple.c: New file, extracted from
31945         tests/test-quotearg.c.
31946         * tests/test-quotearg.c: Don't include <ctype.h>.
31947         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31948         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31949         use_quote_double_quotes, use_quotearg_colon): Moved to
31950         tests/test-quotearg.h.
31951         (results_g, flag_results, custom_quotes, custom_results): Moved
31952         to tests/test-quotearg-simple.c.
31953         (main): Moved the part that does not depend on gettext to
31954         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31955         performed.
31956         * modules/quotearg-simple: New file.
31957         * modules/quotearg-simple-tests: New file.
31958         * modules/quotearg (Depends-on): Add quotearg-simple.
31959         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31960         (Files): Add tests/test-quotearg.h.
31961         Reported by Paolo Bonzini.
31962
31963 2010-06-03  Bruno Haible  <bruno@clisp.org>
31964
31965         Reduce dependencies.
31966         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31967
31968 2010-06-03  Bruno Haible  <bruno@clisp.org>
31969
31970         time: Undefine more broken macros.
31971         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31972         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31973         Reported by Eric Blake.
31974
31975 2010-06-03  Bruno Haible  <bruno@clisp.org>
31976
31977         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31978         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31979         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31980         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31981         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31982         Reported by Ludovic Courtès <ludo@gnu.org>.
31983
31984 2010-06-02  Eric Blake  <eblake@redhat.com>
31985
31986         time: work with mingw + pthreads-win32 library
31987         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31988         if timespec is defined only in pthread.h.
31989         * modules/time (Makefile.am): Substitute it.
31990         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31991         <pthread.h>, when needed.
31992         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31993         from the library.
31994
31995 2010-05-31  Bruno Haible  <bruno@clisp.org>
31996
31997         Avoid expanding two macros in the wrong order.
31998         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31999         gl_LIBUNISTRING if it is defined.
32000         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32001         autoconf >= 2.64.
32002         Reported by Ludovic Courtès <ludo@gnu.org>.
32003
32004 2010-05-27  Jim Meyering  <meyering@redhat.com>
32005
32006         maint.mk: also prohibit "#undef" of always-defined symbols
32007         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32008         Allow more than one space before the symbol name.
32009         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32010         the regexp uses alternation.
32011
32012 2010-05-26  Eric Blake  <eblake@redhat.com>
32013
32014         maint.mk: avoid echo -e
32015         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32016         Convert all uses of echo -* to printf.
32017         Reported by Matthias Bolte.
32018
32019 2010-05-25  Bruno Haible  <bruno@clisp.org>
32020
32021         Update to GNU gettext 0.18, part 2.
32022         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32023         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32024
32025 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32026
32027         Add missing include in test-pwrite.c.
32028         * tests/test-pwrite.c: Include string.h, for strcmp.
32029
32030 2010-05-24  Bruno Haible  <bruno@clisp.org>
32031
32032         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32033
32034 2010-05-24  Bruno Haible  <bruno@clisp.org>
32035
32036         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32037         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32038         iconveh_error argument.
32039         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32040         U_STRCONV_TO_LOCALE.
32041         * lib/unistr/u16-strcoll.c: Likewise.
32042         * lib/unistr/u32-strcoll.c: Likewise.
32043         * modules/unistr/u8-strcoll (Depends-on): Add
32044         uniconv/u8-strconv-to-enc, localcharset. Remove
32045         uniconv/u8-strconv-to-locale.
32046         (configure.ac): Bump version number.
32047         * modules/unistr/u16-strcoll (Depends-on): Add
32048         uniconv/u16-strconv-to-enc, localcharset. Remove
32049         uniconv/u16-strconv-to-locale.
32050         (configure.ac): Bump version number.
32051         * modules/unistr/u32-strcoll (Depends-on): Add
32052         uniconv/u32-strconv-to-enc, localcharset. Remove
32053         uniconv/u32-strconv-to-locale.
32054         (configure.ac): Bump version number.
32055
32056 2010-05-24  Bruno Haible  <bruno@clisp.org>
32057
32058         Avoid a test failure on NetBSD 5.0.
32059         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32060         an iconv() bug.
32061
32062 2010-05-24  Bruno Haible  <bruno@clisp.org>
32063
32064         Adjust #include directive style.
32065         * modules/regex (Includes): Recommend to write <regex.h>.
32066
32067 2010-05-24  Bruno Haible  <bruno@clisp.org>
32068
32069         regex: Don't require alloca.
32070         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32071         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32072         only inside if (0).
32073
32074 2010-05-23  Jim Meyering  <meyering@redhat.com>
32075
32076         test-renameat.c: include <sys/stat.h>
32077         * tests/test-renameat.c: Include <sys/stat.h>; required for
32078         definition of S_IS* macros.
32079
32080 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32081
32082         Update maintainer documentation for 'relocatable-prog' module.
32083         * doc/relocatable-maint.texi: Update.
32084         Comments by Bruno Haible.
32085
32086 2010-05-23  Bruno Haible  <bruno@clisp.org>
32087
32088         git-merge-changelog: Enable --split-merged-entry by default.
32089         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32090         (usage): Don't mention this option any more.
32091         Reported by Ralf Wildenhues.
32092
32093 2010-05-23  Jim Meyering  <meyering@redhat.com>
32094
32095         test-pwrite: do not leave behind a test file named "out"
32096         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32097         The trivial-looking use of init.sh is really necessary.
32098         It ensures that the temporary file, "out", is created in
32099         a temporary directory, and removed upon termination.
32100         * tests/test-pwrite.sh: Re-add file.
32101         * modules/pwrite-tests: Reference it.
32102
32103 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32104
32105         Fix output redirection buglet in init.sh.
32106         * tests/init.sh: Fix redirection of stderr.
32107
32108 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32109
32110         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32111
32112 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32113
32114         * modules/valgrind-tests: New file.
32115         * m4/valgrind-tests.m4: New file.
32116         * doc/valgrind-tests.texi: New file.
32117         * doc/gnulib.texi (Running self-tests under valgrind): New
32118         section.
32119
32120 2010-05-19  Bruno Haible  <bruno@clisp.org>
32121
32122         Clean up dead code in recent commit.
32123         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32124         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32125         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32126         Suggested by Paolo Bonzini.
32127
32128 2010-05-19  Bruno Haible  <bruno@clisp.org>
32129
32130         Avoid valgrind error reports from libunistring.
32131         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32132         * modules/libunistring (Files): Add it.
32133         * modules/libunistring-optional (Files): Likewise.
32134
32135 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32136             Bruno Haible  <bruno@clisp.org>
32137
32138         New module 'libunistring-optional'.
32139         * modules/libunistring-optional: New file.
32140         * m4/libunistring-base.m4: New file.
32141         * m4/libunistring-optional.m4: New file.
32142         * lib/unicase.in.h: Renamed from lib/unicase.h.
32143         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32144         * lib/unictype.in.h: Renamed from lib/unictype.h.
32145         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32146         * lib/uniname.in.h: Renamed from lib/uniname.h.
32147         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32148         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32149         * lib/unistr.in.h: Renamed from lib/unistr.h.
32150         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32151         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32152         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32153         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32154         gl_LIBUNISTRING. If the library was found, determine the installed
32155         version and set LIBUNISTRING_VERSION.
32156         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32157         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32158         handle a configuration option --with-included-libunistring.
32159         * modules/libunistring (Files): Add m4/absolute-header.m4.
32160         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32161         Add m4/libunistring-base.m4.
32162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32163         (Makefile.am): Build unicase.h from unicase.in.h.
32164         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32165         Add m4/libunistring-base.m4.
32166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32167         (Makefile.am): Build uniconv.h from uniconv.in.h.
32168         * modules/unictype/base (Files): Use unictype.in.h instead of
32169         unictype.h. Add m4/libunistring-base.m4.
32170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32171         (Makefile.am): Build unictype.h from unictype.in.h.
32172         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32173         Add m4/libunistring-base.m4.
32174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32175         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32176         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32177         Add m4/libunistring-base.m4.
32178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32179         (Makefile.am): Build uniname.h from uniname.in.h.
32180         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32181         Add m4/libunistring-base.m4.
32182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32183         (Makefile.am): Build uninorm.h from uninorm.in.h.
32184         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32185         unistdio.h. Add m4/libunistring-base.m4.
32186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32187         (Makefile.am): Build unistdio.h from unistdio.in.h.
32188         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32189         Add m4/libunistring-base.m4.
32190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32191         (Makefile.am): Build unistr.h from unistr.in.h.
32192         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32193         Add m4/libunistring-base.m4.
32194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32195         (Makefile.am): Build unitypes.h from unitypes.in.h.
32196         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32197         Add m4/libunistring-base.m4.
32198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32199         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32200         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32201         uniwidth.h. Add m4/libunistring-base.m4.
32202         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32203         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32204         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32205         instead of augmenting lib_SOURCES.
32206         * modules/unicase/empty-suffix-context: Likewise.
32207         * modules/unicase/locale-language: Likewise.
32208         * modules/unicase/tolower: Likewise.
32209         * modules/unicase/totitle: Likewise.
32210         * modules/unicase/toupper: Likewise.
32211         * modules/unicase/u8-casecmp: Likewise.
32212         * modules/unicase/u8-casecoll: Likewise.
32213         * modules/unicase/u8-casefold: Likewise.
32214         * modules/unicase/u8-casexfrm: Likewise.
32215         * modules/unicase/u8-ct-casefold: Likewise.
32216         * modules/unicase/u8-ct-tolower: Likewise.
32217         * modules/unicase/u8-ct-totitle: Likewise.
32218         * modules/unicase/u8-ct-toupper: Likewise.
32219         * modules/unicase/u8-is-cased: Likewise.
32220         * modules/unicase/u8-is-casefolded: Likewise.
32221         * modules/unicase/u8-is-lowercase: Likewise.
32222         * modules/unicase/u8-is-titlecase: Likewise.
32223         * modules/unicase/u8-is-uppercase: Likewise.
32224         * modules/unicase/u8-prefix-context: Likewise.
32225         * modules/unicase/u8-suffix-context: Likewise.
32226         * modules/unicase/u8-tolower: Likewise.
32227         * modules/unicase/u8-totitle: Likewise.
32228         * modules/unicase/u8-toupper: Likewise.
32229         * modules/unicase/u16-casecmp: Likewise.
32230         * modules/unicase/u16-casecoll: Likewise.
32231         * modules/unicase/u16-casefold: Likewise.
32232         * modules/unicase/u16-casexfrm: Likewise.
32233         * modules/unicase/u16-ct-casefold: Likewise.
32234         * modules/unicase/u16-ct-tolower: Likewise.
32235         * modules/unicase/u16-ct-totitle: Likewise.
32236         * modules/unicase/u16-ct-toupper: Likewise.
32237         * modules/unicase/u16-is-cased: Likewise.
32238         * modules/unicase/u16-is-casefolded: Likewise.
32239         * modules/unicase/u16-is-lowercase: Likewise.
32240         * modules/unicase/u16-is-titlecase: Likewise.
32241         * modules/unicase/u16-is-uppercase: Likewise.
32242         * modules/unicase/u16-prefix-context: Likewise.
32243         * modules/unicase/u16-suffix-context: Likewise.
32244         * modules/unicase/u16-tolower: Likewise.
32245         * modules/unicase/u16-totitle: Likewise.
32246         * modules/unicase/u16-toupper: Likewise.
32247         * modules/unicase/u32-casecmp: Likewise.
32248         * modules/unicase/u32-casecoll: Likewise.
32249         * modules/unicase/u32-casefold: Likewise.
32250         * modules/unicase/u32-casexfrm: Likewise.
32251         * modules/unicase/u32-ct-casefold: Likewise.
32252         * modules/unicase/u32-ct-tolower: Likewise.
32253         * modules/unicase/u32-ct-totitle: Likewise.
32254         * modules/unicase/u32-ct-toupper: Likewise.
32255         * modules/unicase/u32-is-cased: Likewise.
32256         * modules/unicase/u32-is-casefolded: Likewise.
32257         * modules/unicase/u32-is-lowercase: Likewise.
32258         * modules/unicase/u32-is-titlecase: Likewise.
32259         * modules/unicase/u32-is-uppercase: Likewise.
32260         * modules/unicase/u32-prefix-context: Likewise.
32261         * modules/unicase/u32-suffix-context: Likewise.
32262         * modules/unicase/u32-tolower: Likewise.
32263         * modules/unicase/u32-totitle: Likewise.
32264         * modules/unicase/u32-toupper: Likewise.
32265         * modules/unicase/ulc-casecmp: Likewise.
32266         * modules/unicase/ulc-casecoll: Likewise.
32267         * modules/unicase/ulc-casexfrm: Likewise.
32268         * modules/uniconv/u8-conv-from-enc: Likewise.
32269         * modules/uniconv/u8-conv-to-enc: Likewise.
32270         * modules/uniconv/u8-strconv-from-enc: Likewise.
32271         * modules/uniconv/u8-strconv-from-locale: Likewise.
32272         * modules/uniconv/u8-strconv-to-enc: Likewise.
32273         * modules/uniconv/u8-strconv-to-locale: Likewise.
32274         * modules/uniconv/u16-conv-from-enc: Likewise.
32275         * modules/uniconv/u16-conv-to-enc: Likewise.
32276         * modules/uniconv/u16-strconv-from-enc: Likewise.
32277         * modules/uniconv/u16-strconv-from-locale: Likewise.
32278         * modules/uniconv/u16-strconv-to-enc: Likewise.
32279         * modules/uniconv/u16-strconv-to-locale: Likewise.
32280         * modules/uniconv/u32-conv-from-enc: Likewise.
32281         * modules/uniconv/u32-conv-to-enc: Likewise.
32282         * modules/uniconv/u32-strconv-from-enc: Likewise.
32283         * modules/uniconv/u32-strconv-from-locale: Likewise.
32284         * modules/uniconv/u32-strconv-to-enc: Likewise.
32285         * modules/uniconv/u32-strconv-to-locale: Likewise.
32286         * modules/unictype/bidicategory-byname: Likewise.
32287         * modules/unictype/bidicategory-name: Likewise.
32288         * modules/unictype/bidicategory-of: Likewise.
32289         * modules/unictype/bidicategory-test: Likewise.
32290         * modules/unictype/block-list: Likewise.
32291         * modules/unictype/block-test: Likewise.
32292         * modules/unictype/category-C: Likewise.
32293         * modules/unictype/category-Cc: Likewise.
32294         * modules/unictype/category-Cf: Likewise.
32295         * modules/unictype/category-Cn: Likewise.
32296         * modules/unictype/category-Co: Likewise.
32297         * modules/unictype/category-Cs: Likewise.
32298         * modules/unictype/category-L: Likewise.
32299         * modules/unictype/category-Ll: Likewise.
32300         * modules/unictype/category-Lm: Likewise.
32301         * modules/unictype/category-Lo: Likewise.
32302         * modules/unictype/category-Lt: Likewise.
32303         * modules/unictype/category-Lu: Likewise.
32304         * modules/unictype/category-M: Likewise.
32305         * modules/unictype/category-Mc: Likewise.
32306         * modules/unictype/category-Me: Likewise.
32307         * modules/unictype/category-Mn: Likewise.
32308         * modules/unictype/category-N: Likewise.
32309         * modules/unictype/category-Nd: Likewise.
32310         * modules/unictype/category-Nl: Likewise.
32311         * modules/unictype/category-No: Likewise.
32312         * modules/unictype/category-P: Likewise.
32313         * modules/unictype/category-Pc: Likewise.
32314         * modules/unictype/category-Pd: Likewise.
32315         * modules/unictype/category-Pe: Likewise.
32316         * modules/unictype/category-Pf: Likewise.
32317         * modules/unictype/category-Pi: Likewise.
32318         * modules/unictype/category-Po: Likewise.
32319         * modules/unictype/category-Ps: Likewise.
32320         * modules/unictype/category-S: Likewise.
32321         * modules/unictype/category-Sc: Likewise.
32322         * modules/unictype/category-Sk: Likewise.
32323         * modules/unictype/category-Sm: Likewise.
32324         * modules/unictype/category-So: Likewise.
32325         * modules/unictype/category-Z: Likewise.
32326         * modules/unictype/category-Zl: Likewise.
32327         * modules/unictype/category-Zp: Likewise.
32328         * modules/unictype/category-Zs: Likewise.
32329         * modules/unictype/category-and: Likewise.
32330         * modules/unictype/category-and-not: Likewise.
32331         * modules/unictype/category-byname: Likewise.
32332         * modules/unictype/category-name: Likewise.
32333         * modules/unictype/category-none: Likewise.
32334         * modules/unictype/category-of: Likewise.
32335         * modules/unictype/category-or: Likewise.
32336         * modules/unictype/category-test: Likewise.
32337         * modules/unictype/combining-class: Likewise.
32338         * modules/unictype/ctype-alnum: Likewise.
32339         * modules/unictype/ctype-alpha: Likewise.
32340         * modules/unictype/ctype-blank: Likewise.
32341         * modules/unictype/ctype-cntrl: Likewise.
32342         * modules/unictype/ctype-digit: Likewise.
32343         * modules/unictype/ctype-graph: Likewise.
32344         * modules/unictype/ctype-lower: Likewise.
32345         * modules/unictype/ctype-print: Likewise.
32346         * modules/unictype/ctype-punct: Likewise.
32347         * modules/unictype/ctype-space: Likewise.
32348         * modules/unictype/ctype-upper: Likewise.
32349         * modules/unictype/ctype-xdigit: Likewise.
32350         * modules/unictype/decimal-digit: Likewise.
32351         * modules/unictype/digit: Likewise.
32352         * modules/unictype/mirror: Likewise.
32353         * modules/unictype/numeric: Likewise.
32354         * modules/unictype/property-alphabetic: Likewise.
32355         * modules/unictype/property-ascii-hex-digit: Likewise.
32356         * modules/unictype/property-bidi-arabic-digit: Likewise.
32357         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32358         * modules/unictype/property-bidi-block-separator: Likewise.
32359         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32360         * modules/unictype/property-bidi-common-separator: Likewise.
32361         * modules/unictype/property-bidi-control: Likewise.
32362         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32363         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32364         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32365         * modules/unictype/property-bidi-european-digit: Likewise.
32366         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32367         * modules/unictype/property-bidi-left-to-right: Likewise.
32368         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32369         * modules/unictype/property-bidi-other-neutral: Likewise.
32370         * modules/unictype/property-bidi-pdf: Likewise.
32371         * modules/unictype/property-bidi-segment-separator: Likewise.
32372         * modules/unictype/property-bidi-whitespace: Likewise.
32373         * modules/unictype/property-byname: Likewise.
32374         * modules/unictype/property-combining: Likewise.
32375         * modules/unictype/property-composite: Likewise.
32376         * modules/unictype/property-currency-symbol: Likewise.
32377         * modules/unictype/property-dash: Likewise.
32378         * modules/unictype/property-decimal-digit: Likewise.
32379         * modules/unictype/property-default-ignorable-code-point: Likewise.
32380         * modules/unictype/property-deprecated: Likewise.
32381         * modules/unictype/property-diacritic: Likewise.
32382         * modules/unictype/property-extender: Likewise.
32383         * modules/unictype/property-format-control: Likewise.
32384         * modules/unictype/property-grapheme-base: Likewise.
32385         * modules/unictype/property-grapheme-extend: Likewise.
32386         * modules/unictype/property-grapheme-link: Likewise.
32387         * modules/unictype/property-hex-digit: Likewise.
32388         * modules/unictype/property-hyphen: Likewise.
32389         * modules/unictype/property-id-continue: Likewise.
32390         * modules/unictype/property-id-start: Likewise.
32391         * modules/unictype/property-ideographic: Likewise.
32392         * modules/unictype/property-ids-binary-operator: Likewise.
32393         * modules/unictype/property-ids-trinary-operator: Likewise.
32394         * modules/unictype/property-ignorable-control: Likewise.
32395         * modules/unictype/property-iso-control: Likewise.
32396         * modules/unictype/property-join-control: Likewise.
32397         * modules/unictype/property-left-of-pair: Likewise.
32398         * modules/unictype/property-line-separator: Likewise.
32399         * modules/unictype/property-logical-order-exception: Likewise.
32400         * modules/unictype/property-lowercase: Likewise.
32401         * modules/unictype/property-math: Likewise.
32402         * modules/unictype/property-non-break: Likewise.
32403         * modules/unictype/property-not-a-character: Likewise.
32404         * modules/unictype/property-numeric: Likewise.
32405         * modules/unictype/property-other-alphabetic: Likewise.
32406         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32407         * modules/unictype/property-other-grapheme-extend: Likewise.
32408         * modules/unictype/property-other-id-continue: Likewise.
32409         * modules/unictype/property-other-id-start: Likewise.
32410         * modules/unictype/property-other-lowercase: Likewise.
32411         * modules/unictype/property-other-math: Likewise.
32412         * modules/unictype/property-other-uppercase: Likewise.
32413         * modules/unictype/property-paired-punctuation: Likewise.
32414         * modules/unictype/property-paragraph-separator: Likewise.
32415         * modules/unictype/property-pattern-syntax: Likewise.
32416         * modules/unictype/property-pattern-white-space: Likewise.
32417         * modules/unictype/property-private-use: Likewise.
32418         * modules/unictype/property-punctuation: Likewise.
32419         * modules/unictype/property-quotation-mark: Likewise.
32420         * modules/unictype/property-radical: Likewise.
32421         * modules/unictype/property-sentence-terminal: Likewise.
32422         * modules/unictype/property-soft-dotted: Likewise.
32423         * modules/unictype/property-space: Likewise.
32424         * modules/unictype/property-terminal-punctuation: Likewise.
32425         * modules/unictype/property-test: Likewise.
32426         * modules/unictype/property-titlecase: Likewise.
32427         * modules/unictype/property-unassigned-code-value: Likewise.
32428         * modules/unictype/property-unified-ideograph: Likewise.
32429         * modules/unictype/property-uppercase: Likewise.
32430         * modules/unictype/property-variation-selector: Likewise.
32431         * modules/unictype/property-white-space: Likewise.
32432         * modules/unictype/property-xid-continue: Likewise.
32433         * modules/unictype/property-xid-start: Likewise.
32434         * modules/unictype/property-zero-width: Likewise.
32435         * modules/unictype/scripts: Likewise.
32436         * modules/unictype/syntax-c-ident: Likewise.
32437         * modules/unictype/syntax-c-whitespace: Likewise.
32438         * modules/unictype/syntax-java-ident: Likewise.
32439         * modules/unictype/syntax-java-whitespace: Likewise.
32440         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32441         * modules/unilbrk/u8-width-linebreaks: Likewise.
32442         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32443         * modules/unilbrk/u16-width-linebreaks: Likewise.
32444         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32445         * modules/unilbrk/u32-width-linebreaks: Likewise.
32446         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32447         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32448         * modules/uniname/uniname: Likewise.
32449         * modules/uninorm/canonical-decomposition: Likewise.
32450         * modules/uninorm/composition: Likewise.
32451         * modules/uninorm/decomposing-form: Likewise.
32452         * modules/uninorm/decomposition: Likewise.
32453         * modules/uninorm/filter: Likewise.
32454         * modules/uninorm/nfc: Likewise.
32455         * modules/uninorm/nfd: Likewise.
32456         * modules/uninorm/nfkc: Likewise.
32457         * modules/uninorm/nfkd: Likewise.
32458         * modules/uninorm/u8-normalize: Likewise.
32459         * modules/uninorm/u8-normcmp: Likewise.
32460         * modules/uninorm/u8-normcoll: Likewise.
32461         * modules/uninorm/u8-normxfrm: Likewise.
32462         * modules/uninorm/u16-normalize: Likewise.
32463         * modules/uninorm/u16-normcmp: Likewise.
32464         * modules/uninorm/u16-normcoll: Likewise.
32465         * modules/uninorm/u16-normxfrm: Likewise.
32466         * modules/uninorm/u32-normalize: Likewise.
32467         * modules/uninorm/u32-normcmp: Likewise.
32468         * modules/uninorm/u32-normcoll: Likewise.
32469         * modules/uninorm/u32-normxfrm: Likewise.
32470         * modules/unistdio/u8-asnprintf: Likewise.
32471         * modules/unistdio/u8-asprintf: Likewise.
32472         * modules/unistdio/u8-snprintf: Likewise.
32473         * modules/unistdio/u8-sprintf: Likewise.
32474         * modules/unistdio/u8-u8-asnprintf: Likewise.
32475         * modules/unistdio/u8-u8-asprintf: Likewise.
32476         * modules/unistdio/u8-u8-snprintf: Likewise.
32477         * modules/unistdio/u8-u8-sprintf: Likewise.
32478         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32479         * modules/unistdio/u8-u8-vasprintf: Likewise.
32480         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32481         * modules/unistdio/u8-u8-vsprintf: Likewise.
32482         * modules/unistdio/u8-vasnprintf: Likewise.
32483         * modules/unistdio/u8-vasprintf: Likewise.
32484         * modules/unistdio/u8-vsnprintf: Likewise.
32485         * modules/unistdio/u8-vsprintf: Likewise.
32486         * modules/unistdio/u16-asnprintf: Likewise.
32487         * modules/unistdio/u16-asprintf: Likewise.
32488         * modules/unistdio/u16-snprintf: Likewise.
32489         * modules/unistdio/u16-sprintf: Likewise.
32490         * modules/unistdio/u16-u16-asnprintf: Likewise.
32491         * modules/unistdio/u16-u16-asprintf: Likewise.
32492         * modules/unistdio/u16-u16-snprintf: Likewise.
32493         * modules/unistdio/u16-u16-sprintf: Likewise.
32494         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32495         * modules/unistdio/u16-u16-vasprintf: Likewise.
32496         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32497         * modules/unistdio/u16-u16-vsprintf: Likewise.
32498         * modules/unistdio/u16-vasnprintf: Likewise.
32499         * modules/unistdio/u16-vasprintf: Likewise.
32500         * modules/unistdio/u16-vsnprintf: Likewise.
32501         * modules/unistdio/u16-vsprintf: Likewise.
32502         * modules/unistdio/u32-asnprintf: Likewise.
32503         * modules/unistdio/u32-asprintf: Likewise.
32504         * modules/unistdio/u32-snprintf: Likewise.
32505         * modules/unistdio/u32-sprintf: Likewise.
32506         * modules/unistdio/u32-u32-asnprintf: Likewise.
32507         * modules/unistdio/u32-u32-asprintf: Likewise.
32508         * modules/unistdio/u32-u32-snprintf: Likewise.
32509         * modules/unistdio/u32-u32-sprintf: Likewise.
32510         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32511         * modules/unistdio/u32-u32-vasprintf: Likewise.
32512         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32513         * modules/unistdio/u32-u32-vsprintf: Likewise.
32514         * modules/unistdio/u32-vasnprintf: Likewise.
32515         * modules/unistdio/u32-vasprintf: Likewise.
32516         * modules/unistdio/u32-vsnprintf: Likewise.
32517         * modules/unistdio/u32-vsprintf: Likewise.
32518         * modules/unistdio/ulc-asnprintf: Likewise.
32519         * modules/unistdio/ulc-asprintf: Likewise.
32520         * modules/unistdio/ulc-fprintf: Likewise.
32521         * modules/unistdio/ulc-snprintf: Likewise.
32522         * modules/unistdio/ulc-sprintf: Likewise.
32523         * modules/unistdio/ulc-vasnprintf: Likewise.
32524         * modules/unistdio/ulc-vasprintf: Likewise.
32525         * modules/unistdio/ulc-vfprintf: Likewise.
32526         * modules/unistdio/ulc-vsnprintf: Likewise.
32527         * modules/unistdio/ulc-vsprintf: Likewise.
32528         * modules/unistr/u8-check: Likewise.
32529         * modules/unistr/u8-chr: Likewise.
32530         * modules/unistr/u8-cmp: Likewise.
32531         * modules/unistr/u8-cmp2: Likewise.
32532         * modules/unistr/u8-cpy: Likewise.
32533         * modules/unistr/u8-cpy-alloc: Likewise.
32534         * modules/unistr/u8-endswith: Likewise.
32535         * modules/unistr/u8-mblen: Likewise.
32536         * modules/unistr/u8-mbsnlen: Likewise.
32537         * modules/unistr/u8-mbtouc: Likewise.
32538         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32539         * modules/unistr/u8-mbtoucr: Likewise.
32540         * modules/unistr/u8-move: Likewise.
32541         * modules/unistr/u8-next: Likewise.
32542         * modules/unistr/u8-prev: Likewise.
32543         * modules/unistr/u8-set: Likewise.
32544         * modules/unistr/u8-startswith: Likewise.
32545         * modules/unistr/u8-stpcpy: Likewise.
32546         * modules/unistr/u8-stpncpy: Likewise.
32547         * modules/unistr/u8-strcat: Likewise.
32548         * modules/unistr/u8-strchr: Likewise.
32549         * modules/unistr/u8-strcmp: Likewise.
32550         * modules/unistr/u8-strcoll: Likewise.
32551         * modules/unistr/u8-strcpy: Likewise.
32552         * modules/unistr/u8-strcspn: Likewise.
32553         * modules/unistr/u8-strdup: Likewise.
32554         * modules/unistr/u8-strlen: Likewise.
32555         * modules/unistr/u8-strmblen: Likewise.
32556         * modules/unistr/u8-strmbtouc: Likewise.
32557         * modules/unistr/u8-strncat: Likewise.
32558         * modules/unistr/u8-strncmp: Likewise.
32559         * modules/unistr/u8-strncpy: Likewise.
32560         * modules/unistr/u8-strnlen: Likewise.
32561         * modules/unistr/u8-strpbrk: Likewise.
32562         * modules/unistr/u8-strrchr: Likewise.
32563         * modules/unistr/u8-strspn: Likewise.
32564         * modules/unistr/u8-strstr: Likewise.
32565         * modules/unistr/u8-strtok: Likewise.
32566         * modules/unistr/u8-to-u16: Likewise.
32567         * modules/unistr/u8-to-u32: Likewise.
32568         * modules/unistr/u8-uctomb: Likewise.
32569         * modules/unistr/u16-check: Likewise.
32570         * modules/unistr/u16-chr: Likewise.
32571         * modules/unistr/u16-cmp: Likewise.
32572         * modules/unistr/u16-cmp2: Likewise.
32573         * modules/unistr/u16-cpy: Likewise.
32574         * modules/unistr/u16-cpy-alloc: Likewise.
32575         * modules/unistr/u16-endswith: Likewise.
32576         * modules/unistr/u16-mblen: Likewise.
32577         * modules/unistr/u16-mbsnlen: Likewise.
32578         * modules/unistr/u16-mbtouc: Likewise.
32579         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32580         * modules/unistr/u16-mbtoucr: Likewise.
32581         * modules/unistr/u16-move: Likewise.
32582         * modules/unistr/u16-next: Likewise.
32583         * modules/unistr/u16-prev: Likewise.
32584         * modules/unistr/u16-set: Likewise.
32585         * modules/unistr/u16-startswith: Likewise.
32586         * modules/unistr/u16-stpcpy: Likewise.
32587         * modules/unistr/u16-stpncpy: Likewise.
32588         * modules/unistr/u16-strcat: Likewise.
32589         * modules/unistr/u16-strchr: Likewise.
32590         * modules/unistr/u16-strcmp: Likewise.
32591         * modules/unistr/u16-strcoll: Likewise.
32592         * modules/unistr/u16-strcpy: Likewise.
32593         * modules/unistr/u16-strcspn: Likewise.
32594         * modules/unistr/u16-strdup: Likewise.
32595         * modules/unistr/u16-strlen: Likewise.
32596         * modules/unistr/u16-strmblen: Likewise.
32597         * modules/unistr/u16-strmbtouc: Likewise.
32598         * modules/unistr/u16-strncat: Likewise.
32599         * modules/unistr/u16-strncmp: Likewise.
32600         * modules/unistr/u16-strncpy: Likewise.
32601         * modules/unistr/u16-strnlen: Likewise.
32602         * modules/unistr/u16-strpbrk: Likewise.
32603         * modules/unistr/u16-strrchr: Likewise.
32604         * modules/unistr/u16-strspn: Likewise.
32605         * modules/unistr/u16-strstr: Likewise.
32606         * modules/unistr/u16-strtok: Likewise.
32607         * modules/unistr/u16-to-u32: Likewise.
32608         * modules/unistr/u16-to-u8: Likewise.
32609         * modules/unistr/u16-uctomb: Likewise.
32610         * modules/unistr/u32-check: Likewise.
32611         * modules/unistr/u32-chr: Likewise.
32612         * modules/unistr/u32-cmp: Likewise.
32613         * modules/unistr/u32-cmp2: Likewise.
32614         * modules/unistr/u32-cpy: Likewise.
32615         * modules/unistr/u32-cpy-alloc: Likewise.
32616         * modules/unistr/u32-endswith: Likewise.
32617         * modules/unistr/u32-mblen: Likewise.
32618         * modules/unistr/u32-mbsnlen: Likewise.
32619         * modules/unistr/u32-mbtouc: Likewise.
32620         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32621         * modules/unistr/u32-mbtoucr: Likewise.
32622         * modules/unistr/u32-move: Likewise.
32623         * modules/unistr/u32-next: Likewise.
32624         * modules/unistr/u32-prev: Likewise.
32625         * modules/unistr/u32-set: Likewise.
32626         * modules/unistr/u32-startswith: Likewise.
32627         * modules/unistr/u32-stpcpy: Likewise.
32628         * modules/unistr/u32-stpncpy: Likewise.
32629         * modules/unistr/u32-strcat: Likewise.
32630         * modules/unistr/u32-strchr: Likewise.
32631         * modules/unistr/u32-strcmp: Likewise.
32632         * modules/unistr/u32-strcoll: Likewise.
32633         * modules/unistr/u32-strcpy: Likewise.
32634         * modules/unistr/u32-strcspn: Likewise.
32635         * modules/unistr/u32-strdup: Likewise.
32636         * modules/unistr/u32-strlen: Likewise.
32637         * modules/unistr/u32-strmblen: Likewise.
32638         * modules/unistr/u32-strmbtouc: Likewise.
32639         * modules/unistr/u32-strncat: Likewise.
32640         * modules/unistr/u32-strncmp: Likewise.
32641         * modules/unistr/u32-strncpy: Likewise.
32642         * modules/unistr/u32-strnlen: Likewise.
32643         * modules/unistr/u32-strpbrk: Likewise.
32644         * modules/unistr/u32-strrchr: Likewise.
32645         * modules/unistr/u32-strspn: Likewise.
32646         * modules/unistr/u32-strstr: Likewise.
32647         * modules/unistr/u32-strtok: Likewise.
32648         * modules/unistr/u32-to-u16: Likewise.
32649         * modules/unistr/u32-to-u8: Likewise.
32650         * modules/unistr/u32-uctomb: Likewise.
32651         * modules/uniwbrk/u8-wordbreaks: Likewise.
32652         * modules/uniwbrk/u16-wordbreaks: Likewise.
32653         * modules/uniwbrk/u32-wordbreaks: Likewise.
32654         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32655         * modules/uniwbrk/wordbreak-property: Likewise.
32656         * modules/uniwidth/u8-strwidth: Likewise.
32657         * modules/uniwidth/u8-width: Likewise.
32658         * modules/uniwidth/u16-strwidth: Likewise.
32659         * modules/uniwidth/u16-width: Likewise.
32660         * modules/uniwidth/u32-strwidth: Likewise.
32661         * modules/uniwidth/u32-width: Likewise.
32662         * modules/uniwidth/width: Likewise.
32663         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32664         with $(LIBUNISTRING).
32665         * modules/unicase/ignorable-tests: Likewise.
32666         * modules/unicase/locale-language-tests: Likewise.
32667         * modules/unicase/tolower-tests: Likewise.
32668         * modules/unicase/totitle-tests: Likewise.
32669         * modules/unicase/toupper-tests: Likewise.
32670         * modules/unicase/u8-casecmp-tests: Likewise.
32671         * modules/unicase/u8-casecoll-tests: Likewise.
32672         * modules/unicase/u8-casefold-tests: Likewise.
32673         * modules/unicase/u8-is-cased-tests: Likewise.
32674         * modules/unicase/u8-is-casefolded-tests: Likewise.
32675         * modules/unicase/u8-is-lowercase-tests: Likewise.
32676         * modules/unicase/u8-is-titlecase-tests: Likewise.
32677         * modules/unicase/u8-is-uppercase-tests: Likewise.
32678         * modules/unicase/u8-tolower-tests: Likewise.
32679         * modules/unicase/u8-totitle-tests: Likewise.
32680         * modules/unicase/u8-toupper-tests: Likewise.
32681         * modules/unicase/u16-casecmp-tests: Likewise.
32682         * modules/unicase/u16-casecoll-tests: Likewise.
32683         * modules/unicase/u16-casefold-tests: Likewise.
32684         * modules/unicase/u16-is-cased-tests: Likewise.
32685         * modules/unicase/u16-is-casefolded-tests: Likewise.
32686         * modules/unicase/u16-is-lowercase-tests: Likewise.
32687         * modules/unicase/u16-is-titlecase-tests: Likewise.
32688         * modules/unicase/u16-is-uppercase-tests: Likewise.
32689         * modules/unicase/u16-tolower-tests: Likewise.
32690         * modules/unicase/u16-totitle-tests: Likewise.
32691         * modules/unicase/u16-toupper-tests: Likewise.
32692         * modules/unicase/u32-casecmp-tests: Likewise.
32693         * modules/unicase/u32-casecoll-tests: Likewise.
32694         * modules/unicase/u32-casefold-tests: Likewise.
32695         * modules/unicase/u32-is-cased-tests: Likewise.
32696         * modules/unicase/u32-is-casefolded-tests: Likewise.
32697         * modules/unicase/u32-is-lowercase-tests: Likewise.
32698         * modules/unicase/u32-is-titlecase-tests: Likewise.
32699         * modules/unicase/u32-is-uppercase-tests: Likewise.
32700         * modules/unicase/u32-tolower-tests: Likewise.
32701         * modules/unicase/u32-totitle-tests: Likewise.
32702         * modules/unicase/u32-toupper-tests: Likewise.
32703         * modules/unicase/ulc-casecmp-tests: Likewise.
32704         * modules/unicase/ulc-casecoll-tests: Likewise.
32705         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32706         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32707         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32708         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32709         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32710         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32711         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32712         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32713         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32714         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32715         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32716         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32717         * modules/unictype/bidicategory-byname-tests: Likewise.
32718         * modules/unictype/bidicategory-name-tests: Likewise.
32719         * modules/unictype/bidicategory-of-tests: Likewise.
32720         * modules/unictype/bidicategory-test-tests: Likewise.
32721         * modules/unictype/block-list-tests: Likewise.
32722         * modules/unictype/block-of-tests: Likewise.
32723         * modules/unictype/block-test-tests: Likewise.
32724         * modules/unictype/category-C-tests: Likewise.
32725         * modules/unictype/category-Cc-tests: Likewise.
32726         * modules/unictype/category-Cf-tests: Likewise.
32727         * modules/unictype/category-Cn-tests: Likewise.
32728         * modules/unictype/category-Co-tests: Likewise.
32729         * modules/unictype/category-Cs-tests: Likewise.
32730         * modules/unictype/category-L-tests: Likewise.
32731         * modules/unictype/category-Ll-tests: Likewise.
32732         * modules/unictype/category-Lm-tests: Likewise.
32733         * modules/unictype/category-Lo-tests: Likewise.
32734         * modules/unictype/category-Lt-tests: Likewise.
32735         * modules/unictype/category-Lu-tests: Likewise.
32736         * modules/unictype/category-M-tests: Likewise.
32737         * modules/unictype/category-Mc-tests: Likewise.
32738         * modules/unictype/category-Me-tests: Likewise.
32739         * modules/unictype/category-Mn-tests: Likewise.
32740         * modules/unictype/category-N-tests: Likewise.
32741         * modules/unictype/category-Nd-tests: Likewise.
32742         * modules/unictype/category-Nl-tests: Likewise.
32743         * modules/unictype/category-No-tests: Likewise.
32744         * modules/unictype/category-P-tests: Likewise.
32745         * modules/unictype/category-Pc-tests: Likewise.
32746         * modules/unictype/category-Pd-tests: Likewise.
32747         * modules/unictype/category-Pe-tests: Likewise.
32748         * modules/unictype/category-Pf-tests: Likewise.
32749         * modules/unictype/category-Pi-tests: Likewise.
32750         * modules/unictype/category-Po-tests: Likewise.
32751         * modules/unictype/category-Ps-tests: Likewise.
32752         * modules/unictype/category-S-tests: Likewise.
32753         * modules/unictype/category-Sc-tests: Likewise.
32754         * modules/unictype/category-Sk-tests: Likewise.
32755         * modules/unictype/category-Sm-tests: Likewise.
32756         * modules/unictype/category-So-tests: Likewise.
32757         * modules/unictype/category-Z-tests: Likewise.
32758         * modules/unictype/category-Zl-tests: Likewise.
32759         * modules/unictype/category-Zp-tests: Likewise.
32760         * modules/unictype/category-Zs-tests: Likewise.
32761         * modules/unictype/category-and-not-tests: Likewise.
32762         * modules/unictype/category-and-tests: Likewise.
32763         * modules/unictype/category-byname-tests: Likewise.
32764         * modules/unictype/category-name-tests: Likewise.
32765         * modules/unictype/category-none-tests: Likewise.
32766         * modules/unictype/category-of-tests: Likewise.
32767         * modules/unictype/category-or-tests: Likewise.
32768         * modules/unictype/category-test-withtable-tests: Likewise.
32769         * modules/unictype/combining-class-tests: Likewise.
32770         * modules/unictype/ctype-alnum-tests: Likewise.
32771         * modules/unictype/ctype-alpha-tests: Likewise.
32772         * modules/unictype/ctype-blank-tests: Likewise.
32773         * modules/unictype/ctype-cntrl-tests: Likewise.
32774         * modules/unictype/ctype-digit-tests: Likewise.
32775         * modules/unictype/ctype-graph-tests: Likewise.
32776         * modules/unictype/ctype-lower-tests: Likewise.
32777         * modules/unictype/ctype-print-tests: Likewise.
32778         * modules/unictype/ctype-punct-tests: Likewise.
32779         * modules/unictype/ctype-space-tests: Likewise.
32780         * modules/unictype/ctype-upper-tests: Likewise.
32781         * modules/unictype/ctype-xdigit-tests: Likewise.
32782         * modules/unictype/decimal-digit-tests: Likewise.
32783         * modules/unictype/digit-tests: Likewise.
32784         * modules/unictype/mirror-tests: Likewise.
32785         * modules/unictype/numeric-tests: Likewise.
32786         * modules/unictype/property-alphabetic-tests: Likewise.
32787         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32788         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32789         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32790         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32791         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32792         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32793         * modules/unictype/property-bidi-control-tests: Likewise.
32794         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32795         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32796         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32797         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32798         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32799         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32800         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32801         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32802         * modules/unictype/property-bidi-pdf-tests: Likewise.
32803         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32804         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32805         * modules/unictype/property-byname-tests: Likewise.
32806         * modules/unictype/property-combining-tests: Likewise.
32807         * modules/unictype/property-composite-tests: Likewise.
32808         * modules/unictype/property-currency-symbol-tests: Likewise.
32809         * modules/unictype/property-dash-tests: Likewise.
32810         * modules/unictype/property-decimal-digit-tests: Likewise.
32811         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32812         * modules/unictype/property-deprecated-tests: Likewise.
32813         * modules/unictype/property-diacritic-tests: Likewise.
32814         * modules/unictype/property-extender-tests: Likewise.
32815         * modules/unictype/property-format-control-tests: Likewise.
32816         * modules/unictype/property-grapheme-base-tests: Likewise.
32817         * modules/unictype/property-grapheme-extend-tests: Likewise.
32818         * modules/unictype/property-grapheme-link-tests: Likewise.
32819         * modules/unictype/property-hex-digit-tests: Likewise.
32820         * modules/unictype/property-hyphen-tests: Likewise.
32821         * modules/unictype/property-id-continue-tests: Likewise.
32822         * modules/unictype/property-id-start-tests: Likewise.
32823         * modules/unictype/property-ideographic-tests: Likewise.
32824         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32825         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32826         * modules/unictype/property-ignorable-control-tests: Likewise.
32827         * modules/unictype/property-iso-control-tests: Likewise.
32828         * modules/unictype/property-join-control-tests: Likewise.
32829         * modules/unictype/property-left-of-pair-tests: Likewise.
32830         * modules/unictype/property-line-separator-tests: Likewise.
32831         * modules/unictype/property-logical-order-exception-tests: Likewise.
32832         * modules/unictype/property-lowercase-tests: Likewise.
32833         * modules/unictype/property-math-tests: Likewise.
32834         * modules/unictype/property-non-break-tests: Likewise.
32835         * modules/unictype/property-not-a-character-tests: Likewise.
32836         * modules/unictype/property-numeric-tests: Likewise.
32837         * modules/unictype/property-other-alphabetic-tests: Likewise.
32838         * modules/unictype/property-other-default-ignorable-code-point-tests:
32839         Likewise.
32840         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32841         * modules/unictype/property-other-id-continue-tests: Likewise.
32842         * modules/unictype/property-other-id-start-tests: Likewise.
32843         * modules/unictype/property-other-lowercase-tests: Likewise.
32844         * modules/unictype/property-other-math-tests: Likewise.
32845         * modules/unictype/property-other-uppercase-tests: Likewise.
32846         * modules/unictype/property-paired-punctuation-tests: Likewise.
32847         * modules/unictype/property-paragraph-separator-tests: Likewise.
32848         * modules/unictype/property-pattern-syntax-tests: Likewise.
32849         * modules/unictype/property-pattern-white-space-tests: Likewise.
32850         * modules/unictype/property-private-use-tests: Likewise.
32851         * modules/unictype/property-punctuation-tests: Likewise.
32852         * modules/unictype/property-quotation-mark-tests: Likewise.
32853         * modules/unictype/property-radical-tests: Likewise.
32854         * modules/unictype/property-sentence-terminal-tests: Likewise.
32855         * modules/unictype/property-soft-dotted-tests: Likewise.
32856         * modules/unictype/property-space-tests: Likewise.
32857         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32858         * modules/unictype/property-test-tests: Likewise.
32859         * modules/unictype/property-titlecase-tests: Likewise.
32860         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32861         * modules/unictype/property-unified-ideograph-tests: Likewise.
32862         * modules/unictype/property-uppercase-tests: Likewise.
32863         * modules/unictype/property-variation-selector-tests: Likewise.
32864         * modules/unictype/property-white-space-tests: Likewise.
32865         * modules/unictype/property-xid-continue-tests: Likewise.
32866         * modules/unictype/property-xid-start-tests: Likewise.
32867         * modules/unictype/property-zero-width-tests: Likewise.
32868         * modules/unictype/scripts-tests: Likewise.
32869         * modules/unictype/syntax-c-ident-tests: Likewise.
32870         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32871         * modules/unictype/syntax-java-ident-tests: Likewise.
32872         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32873         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32874         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32875         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32876         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32877         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32878         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32879         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32880         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32881         * modules/uniname/uniname-tests: Likewise.
32882         * modules/uninorm/canonical-decomposition-tests: Likewise.
32883         * modules/uninorm/compat-decomposition-tests: Likewise.
32884         * modules/uninorm/composition-tests: Likewise.
32885         * modules/uninorm/decomposing-form-tests: Likewise.
32886         * modules/uninorm/decomposition-tests: Likewise.
32887         * modules/uninorm/filter-tests: Likewise.
32888         * modules/uninorm/nfc-tests: Likewise.
32889         * modules/uninorm/nfd-tests: Likewise.
32890         * modules/uninorm/nfkc-tests: Likewise.
32891         * modules/uninorm/nfkd-tests: Likewise.
32892         * modules/uninorm/u8-normcmp-tests: Likewise.
32893         * modules/uninorm/u8-normcoll-tests: Likewise.
32894         * modules/uninorm/u16-normcmp-tests: Likewise.
32895         * modules/uninorm/u16-normcoll-tests: Likewise.
32896         * modules/uninorm/u32-normcmp-tests: Likewise.
32897         * modules/uninorm/u32-normcoll-tests: Likewise.
32898         * modules/unistdio/u8-asnprintf-tests: Likewise.
32899         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32900         * modules/unistdio/u8-vasprintf-tests: Likewise.
32901         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32902         * modules/unistdio/u8-vsprintf-tests: Likewise.
32903         * modules/unistdio/u16-asnprintf-tests: Likewise.
32904         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32905         * modules/unistdio/u16-vasprintf-tests: Likewise.
32906         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32907         * modules/unistdio/u16-vsprintf-tests: Likewise.
32908         * modules/unistdio/u32-asnprintf-tests: Likewise.
32909         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32910         * modules/unistdio/u32-vasprintf-tests: Likewise.
32911         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32912         * modules/unistdio/u32-vsprintf-tests: Likewise.
32913         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32914         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32915         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32916         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32917         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32918         * modules/unistr/u8-check-tests: Likewise.
32919         * modules/unistr/u8-chr-tests: Likewise.
32920         * modules/unistr/u8-cmp-tests: Likewise.
32921         * modules/unistr/u8-cmp2-tests: Likewise.
32922         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32923         * modules/unistr/u8-cpy-tests: Likewise.
32924         * modules/unistr/u8-mblen-tests: Likewise.
32925         * modules/unistr/u8-mbsnlen-tests: Likewise.
32926         * modules/unistr/u8-mbtouc-tests: Likewise.
32927         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32928         * modules/unistr/u8-mbtoucr-tests: Likewise.
32929         * modules/unistr/u8-move-tests: Likewise.
32930         * modules/unistr/u8-next-tests: Likewise.
32931         * modules/unistr/u8-prev-tests: Likewise.
32932         * modules/unistr/u8-set-tests: Likewise.
32933         * modules/unistr/u8-stpcpy-tests: Likewise.
32934         * modules/unistr/u8-stpncpy-tests: Likewise.
32935         * modules/unistr/u8-strcat-tests: Likewise.
32936         * modules/unistr/u8-strcmp-tests: Likewise.
32937         * modules/unistr/u8-strcoll-tests: Likewise.
32938         * modules/unistr/u8-strcpy-tests: Likewise.
32939         * modules/unistr/u8-strdup-tests: Likewise.
32940         * modules/unistr/u8-strlen-tests: Likewise.
32941         * modules/unistr/u8-strmblen-tests: Likewise.
32942         * modules/unistr/u8-strmbtouc-tests: Likewise.
32943         * modules/unistr/u8-strncat-tests: Likewise.
32944         * modules/unistr/u8-strncmp-tests: Likewise.
32945         * modules/unistr/u8-strncpy-tests: Likewise.
32946         * modules/unistr/u8-strnlen-tests: Likewise.
32947         * modules/unistr/u8-to-u16-tests: Likewise.
32948         * modules/unistr/u8-to-u32-tests: Likewise.
32949         * modules/unistr/u8-uctomb-tests: Likewise.
32950         * modules/unistr/u16-check-tests: Likewise.
32951         * modules/unistr/u16-chr-tests: Likewise.
32952         * modules/unistr/u16-cmp-tests: Likewise.
32953         * modules/unistr/u16-cmp2-tests: Likewise.
32954         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32955         * modules/unistr/u16-cpy-tests: Likewise.
32956         * modules/unistr/u16-mblen-tests: Likewise.
32957         * modules/unistr/u16-mbsnlen-tests: Likewise.
32958         * modules/unistr/u16-mbtouc-tests: Likewise.
32959         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32960         * modules/unistr/u16-mbtoucr-tests: Likewise.
32961         * modules/unistr/u16-move-tests: Likewise.
32962         * modules/unistr/u16-next-tests: Likewise.
32963         * modules/unistr/u16-prev-tests: Likewise.
32964         * modules/unistr/u16-set-tests: Likewise.
32965         * modules/unistr/u16-stpcpy-tests: Likewise.
32966         * modules/unistr/u16-stpncpy-tests: Likewise.
32967         * modules/unistr/u16-strcat-tests: Likewise.
32968         * modules/unistr/u16-strcmp-tests: Likewise.
32969         * modules/unistr/u16-strcoll-tests: Likewise.
32970         * modules/unistr/u16-strcpy-tests: Likewise.
32971         * modules/unistr/u16-strdup-tests: Likewise.
32972         * modules/unistr/u16-strlen-tests: Likewise.
32973         * modules/unistr/u16-strmblen-tests: Likewise.
32974         * modules/unistr/u16-strmbtouc-tests: Likewise.
32975         * modules/unistr/u16-strncat-tests: Likewise.
32976         * modules/unistr/u16-strncmp-tests: Likewise.
32977         * modules/unistr/u16-strncpy-tests: Likewise.
32978         * modules/unistr/u16-strnlen-tests: Likewise.
32979         * modules/unistr/u16-to-u32-tests: Likewise.
32980         * modules/unistr/u16-to-u8-tests: Likewise.
32981         * modules/unistr/u16-uctomb-tests: Likewise.
32982         * modules/unistr/u32-check-tests: Likewise.
32983         * modules/unistr/u32-chr-tests: Likewise.
32984         * modules/unistr/u32-cmp-tests: Likewise.
32985         * modules/unistr/u32-cmp2-tests: Likewise.
32986         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32987         * modules/unistr/u32-cpy-tests: Likewise.
32988         * modules/unistr/u32-mblen-tests: Likewise.
32989         * modules/unistr/u32-mbsnlen-tests: Likewise.
32990         * modules/unistr/u32-mbtouc-tests: Likewise.
32991         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32992         * modules/unistr/u32-mbtoucr-tests: Likewise.
32993         * modules/unistr/u32-move-tests: Likewise.
32994         * modules/unistr/u32-next-tests: Likewise.
32995         * modules/unistr/u32-prev-tests: Likewise.
32996         * modules/unistr/u32-set-tests: Likewise.
32997         * modules/unistr/u32-stpcpy-tests: Likewise.
32998         * modules/unistr/u32-stpncpy-tests: Likewise.
32999         * modules/unistr/u32-strcat-tests: Likewise.
33000         * modules/unistr/u32-strcmp-tests: Likewise.
33001         * modules/unistr/u32-strcoll-tests: Likewise.
33002         * modules/unistr/u32-strcpy-tests: Likewise.
33003         * modules/unistr/u32-strdup-tests: Likewise.
33004         * modules/unistr/u32-strlen-tests: Likewise.
33005         * modules/unistr/u32-strmblen-tests: Likewise.
33006         * modules/unistr/u32-strmbtouc-tests: Likewise.
33007         * modules/unistr/u32-strncat-tests: Likewise.
33008         * modules/unistr/u32-strncmp-tests: Likewise.
33009         * modules/unistr/u32-strncpy-tests: Likewise.
33010         * modules/unistr/u32-strnlen-tests: Likewise.
33011         * modules/unistr/u32-to-u16-tests: Likewise.
33012         * modules/unistr/u32-to-u8-tests: Likewise.
33013         * modules/unistr/u32-uctomb-tests: Likewise.
33014         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33015         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33016         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33017         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33018         * modules/uniwidth/u8-strwidth-tests: Likewise.
33019         * modules/uniwidth/u8-width-tests: Likewise.
33020         * modules/uniwidth/u16-strwidth-tests: Likewise.
33021         * modules/uniwidth/u16-width-tests: Likewise.
33022         * modules/uniwidth/u32-strwidth-tests: Likewise.
33023         * modules/uniwidth/u32-width-tests: Likewise.
33024         * modules/uniwidth/width-tests: Likewise.
33025
33026 2010-05-18  Richard Jones  <rjones@redhat.com>
33027
33028         doc: users.txt: list hivex
33029         * users.txt: Add hivex.
33030
33031 2010-05-18  Richard Jones  <rjones@redhat.com>
33032
33033         doc: users.txt: list febootstrap
33034         * users.txt: Add febootstrap.
33035
33036 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33037
33038         bootstrap: fix an error when gnulib is not used as a git submodule
33039         * build-aux/bootstrap (gnulib_path): If its length is zero then
33040         assign "gnulib" to it.
33041         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33042
33043 2010-05-16  Bruno Haible  <bruno@clisp.org>
33044
33045         Avoid autoconf warnings about AM_ICONV.
33046         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33047         2.64.
33048
33049 2010-05-16  Bruno Haible  <bruno@clisp.org>
33050
33051         absolute-header: Make the macro usable in more situations.
33052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33053         from gl_ABSOLUTE_HEADER.
33054         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33055
33056 2010-05-16  James Youngman  <jay@gnu.org>
33057
33058         doc: update users.txt
33059         * users.txt: Add CSSC.
33060
33061 2010-05-16  Jim Meyering  <meyering@redhat.com>
33062
33063         init.sh: fix an error in the previous change; add more comments
33064         * tests/init.sh: Compare exit code in loop against 9, not 2.
33065         Patch by Bruno Haible.
33066         Make the two tests more similar by adding an empty "then" clause.
33067         Add comments.
33068
33069         init.sh: avoid unnecessary shell re-exec
33070         * tests/init.sh: Improve the re-exec-required check to first test the
33071         current shell.  If it passes the test, do not search for a shell that
33072         does pass, and do not re-exec.  This test is particularly contorted to
33073         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33074         of $(...) evokes a syntax error and causes immediate shell exit with
33075         status 2.  Bruno Haible reported that the re-exec made it impossible
33076         to single-step through any init.sh-using script.
33077
33078 2010-05-16  Bruno Haible  <bruno@clisp.org>
33079
33080         Fix collision between gnulib's and libintl's printf replacements.
33081         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33082         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33083         (printf): When using GNU C, map the __printf__ function to rpl_printf
33084         via __asm__. When not using GNU C, define rpl_printf instead of
33085         __printf__.
33086         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33087         commit.
33088         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33089         commit.
33090         * m4/asm-underscore.m4: New file.
33091         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33092         * modules/stdio (Files): Add m4/asm-underscore.m4.
33093         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33094         Reported by Ben Pfaff.
33095
33096 2010-05-16  Bruno Haible  <bruno@clisp.org>
33097
33098         verify: Avoid skipping the test on openSUSE 11.0.
33099         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33100
33101 2010-05-13  Bruno Haible  <bruno@clisp.org>
33102
33103         Avoid useless warnings from G++.
33104         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33105         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33106         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33107
33108 2010-05-11  Jim Meyering  <meyering@redhat.com>
33109
33110         maint.mk: tweak preceding change
33111         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33112         regexps tighter by anchoring at EOL, and make the new group "shy"
33113         for slightly decreased overhead.
33114
33115 2010-05-11  Eric Blake  <eblake@redhat.com>
33116
33117         maint.mk: gnulib doesn't guarantee NSIG
33118         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33119
33120 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33121
33122         test-pwrite.c: Remove unused variable declaration.
33123         * tests/test-pwrite.c (main): Remove read_buf declaration.
33124
33125         Remove useless test-pwrite.sh file.
33126         * tests/test-pwrite.sh: Delete file.
33127         * modules/pwrite-tests: Remove references.
33128         Reported by Bruno Haible.
33129
33130 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33131
33132         init.sh: fix a typo
33133         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33134
33135 2010-05-10  Jim Meyering  <meyering@redhat.com>
33136
33137         maint.mk: avoid using a temporary file in the always-defined-macros check
33138         * top/maint.mk (.re-defmac): Remove rule.
33139         (gl_trap_): Remove definition.
33140         (sc_prohibit_always-defined_macros): Rewrite not to create and
33141         depend on a temporary file.  Instead, depend on GNU grep's ability
33142         to read a list of regular expressions from stdin when given "-f -".
33143
33144 2010-05-09  Bruno Haible  <bruno@clisp.org>
33145
33146         Update to GNU gettext 0.18, part 1.
33147         * m4/gettext.m4: Update to GNU gettext 0.18.
33148         * m4/intl.m4: Likewise.
33149         * m4/po.m4: Likewise.
33150         * modules/gettext (Files): Add m4/fcntl-o.m4.
33151         (configure.ac): Require gettext infrastructure from version 0.18.
33152
33153 2010-05-09  Jim Meyering  <meyering@redhat.com>
33154
33155         init.sh: enable MALLOC_PERTURB_
33156         * tests/init.sh: Enable glibc's malloc-perturbing option.
33157
33158         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33159         With my recent change in init.sh from the two-line form:
33160             -#   : ${srcdir=.}
33161             -#   . "$srcdir/init.sh"; path_prepend_ .
33162             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33163         I noticed that using the one-line form would cause this test
33164         to fail with a false-positive, or to stop working altogether,
33165         depending on whether help-version changed or all the tests did.
33166         * top/maint.mk (_hv_regex): Remove this definition.
33167         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33168         (_hv_regex_strong): Use a stronger regex to check for conformance.
33169         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33170         Give a separate diagnostic for lack of conforming use.
33171
33172         maint.mk: prohibit definition of symbols defined by gnulib
33173         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33174         definition of symbols defined by gnulib.
33175
33176 2010-05-09  Bruno Haible  <bruno@clisp.org>
33177
33178         acl: Avoid test failure on Cygwin-hosted mingw.
33179         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33180
33181 2010-05-09  Bruno Haible  <bruno@clisp.org>
33182
33183         error: Use system's fcntl function.
33184         * lib/error.c (fcntl): Undefine.
33185
33186 2010-05-09  Jim Meyering  <meyering@redhat.com>
33187
33188         verify: adjust formatting to be more consistent
33189         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33190         argument-list '('s, and after one comma.
33191
33192 2010-05-09  Bruno Haible  <bruno@clisp.org>
33193
33194         error: More reliable output on mingw.
33195         * lib/error.c: Include <windows.h>.
33196         (is_open): New function.
33197         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33198         defined.
33199
33200 2010-05-09  Bruno Haible  <bruno@clisp.org>
33201
33202         vasnprintf: Fix syntax errors in libintl build on mingw.
33203         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33204         pad_ourselves and prec_ourselves after use.
33205
33206 2010-05-08  Bruno Haible  <bruno@clisp.org>
33207
33208         * lib/config.charset: Update comments for Cygwin 1.7.
33209         * lib/localcharset.c: Likewise.
33210
33211 2010-05-07  Jim Meyering  <meyering@redhat.com>
33212
33213         init.sh: improve comments
33214         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33215         . "${srcdir=.}/init.sh"; path_prepend_ .
33216         Add a note about path_prepend_ and the alternative of using
33217         TESTS_ENVIRONMENT.
33218
33219 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33220
33221         exclude: Unescape hashed patterns in wildcard mode.
33222         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33223         to the hash list.
33224         * tests/test-exclude8.sh: New test case.
33225         * modules/exclude-tests: Add new test.
33226
33227 2010-05-05  Eric Blake  <eblake@redhat.com>
33228
33229         verify: automate tests
33230         * modules/verify-tests: New module.
33231         * tests/test-verify.sh: New file.
33232         * tests/test-verify.c: Guard each negative test with a unique id.
33233         Also avoid warning about unused left hand of comma expressions.
33234
33235 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33236
33237         Further improvements to verify.h, suggested by Eric Blake.
33238         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33239         the GL_* versions, to avoid collision with OpenGL.
33240         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33241         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33242         than testing merely whether it's defined.
33243
33244         Modify verify.h to pacify gcc -Wredundant_decls.
33245         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33246         These use the prefix "GL_" since they're likely to be useful elsewhere.
33247         We may need to break them out into a different .h file.
33248         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33249         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33250         of verify_function__.
33251
33252 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33253
33254         Tests for module pwrite.
33255         * modules/pwrite-tests: New file.
33256         * tests/test-pwrite.sh: New file.
33257         * tests/test-pwrite.c: New file.
33258
33259         New module pwrite.
33260         * lib/unistd.in.h (pwrite): New declaration.
33261         * lib/pwrite.c: New file, from glibc with modifications.
33262         * m4/pwrite.m4: New file.
33263         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33265         REPLACE_PWRITE.
33266         * modules/pwrite: New file.
33267         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33268         REPLACE_PWRITE.
33269         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33270         * doc/posix-functions/pwrite.texi: Mention the new module.
33271
33272 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33273
33274         pread: Update documentation.
33275         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33276
33277 2010-05-04  Eric Blake  <eblake@redhat.com>
33278
33279         docs: update cygwin progress
33280         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33281         this bug.
33282         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33283         Added in cygwin 1.7.2.
33284         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33285         Likewise.
33286         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33287         Likewise.
33288         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33289         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33290         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33291         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33292         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33293         Mention nproc module.
33294         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33295         bug in cygwin 1.7.5 addition.
33296         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33297         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33298         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33299         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33300         1.7.5.
33301         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33302         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33303         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33304         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33305         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33306         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33307         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33308         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33309         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33310         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33311         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33312         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33313         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33314         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33315         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33316         Likewise.
33317         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33318         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33319         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33320         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33321         Likewise.
33322         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33323         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33324         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33325         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33326         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33327         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33328         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33329         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33330         Likewise.
33331         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33332         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33333         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33334         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33335         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33336         Likewise.
33337         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33338         Likewise.
33339         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33340         Likewise.
33341         * doc/glibc-functions/xdrrec_endofrecord.texi
33342         (xdrrec_endofrecord): Likewise.
33343         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33344         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33345         Likewise.
33346         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33347         Likewise.
33348
33349 2010-05-04  Jim Meyering  <meyering@redhat.com>
33350
33351         gendocs.sh: make its "-s FILE" option more useful
33352         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33353         $PACKAGE to reflect the probably-different basename of "FILE".
33354
33355 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33356
33357         bootstrap: don't ignore download_po_files failure
33358         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33359         failure.
33360
33361 2010-05-03  Jim Meyering  <meyering@redhat.com>
33362
33363         maint.mk: allow to pass options to gendocs.sh
33364         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33365         (gendocs_options_): New overridable variable.
33366
33367         gnu-web-doc-update: don't ignore configure or build failure
33368         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33369
33370         announce-gen: backslash-escape '@'s in --help output
33371         * build-aux/announce-gen: Fix syntax errors.
33372
33373         maint.mk, announce-gen: allow project-specific announcement mail headers
33374         * top/maint.mk (translation_project_): Define default.
33375         (announcement_Cc_, announcement_mail_headers_): Likewise.
33376         (announcement): Invoke announce-gen with new --mail-headers option.
33377         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33378
33379         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33380         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33381         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33382         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33383         line in the "err2" output file when running "make check" in verbose
33384         mode (i.e., with set -x enabled).
33385
33386 2010-05-03  Bruno Haible  <bruno@clisp.org>
33387
33388         wctob: Fix for weird platforms.
33389         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33390         argument value.
33391
33392 2010-05-03  Jim Meyering  <meyering@redhat.com>
33393
33394         maint.mk: prohibit unwarranted use of <strings.h>
33395         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33396         strings.h in a file that does not also use strcasecmp, strncasecmp,
33397         ffs or ffsll.
33398
33399         maint.mk: remove obsolete comments
33400         * top/maint.mk: Remove stale, commented-out rules.
33401
33402 2010-05-02  Bruno Haible  <bruno@clisp.org>
33403
33404         wcwidth: Declare also when it's aliased.
33405         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33406         macro.
33407
33408 2010-05-02  Bruno Haible  <bruno@clisp.org>
33409
33410         Fix regression from 2010-04-25.
33411         * gnulib-tool (func_modules_transitive_closure): Check the status of
33412         all modules, not only of the tests that are of the form foo-tests where
33413         foo is a module.
33414
33415 2010-05-02  Bruno Haible  <bruno@clisp.org>
33416
33417         wctob: Work around nasty Cygwin 1.7.2 bug.
33418         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33419         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33420
33421 2010-05-01  Bruno Haible  <bruno@clisp.org>
33422
33423         fpurge: Sharper test.
33424         * tests/test-fpurge.c (main): Add one more ftell check.
33425         * modules/fpurge-tests (Depends-on): Add ftell.
33426         Suggested by Eric Blake.
33427
33428 2010-05-01  Bruno Haible  <bruno@clisp.org>
33429
33430         ftello: Another test.
33431         * tests/test-ftello3.c: New file.
33432         * modules/ftello-tests (Files): Add it.
33433         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33434         MOSTLYCLEANFILES.
33435
33436         ftell: Another test.
33437         * tests/test-ftell3.c: New file.
33438         * modules/ftell-tests (Files): Add it.
33439         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33440         MOSTLYCLEANFILES.
33441
33442 2010-05-01  Bruno Haible  <bruno@clisp.org>
33443
33444         ftell, ftello: Work around Solaris bug.
33445         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33446         * lib/ftello.c: Include stdio-impl.h.
33447         (ftello): On Solaris, when _IOWRT is set, compute the result without
33448         looking at _IOREAD.
33449         * modules/ftello (Files): Add lib/stdio-impl.h.
33450         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33451         * doc/posix-functions/ftello.texi: Likewise.
33452         Reported by Eric Blake.
33453
33454 2010-05-01  Bruno Haible  <bruno@clisp.org>
33455
33456         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33457         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33458         the _IOWRT flag is also set.
33459
33460 2010-05-01  Bruno Haible  <bruno@clisp.org>
33461
33462         Fix doc about a HP-UX stdio bug.
33463         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33464         * doc/posix-functions/ftello.texi: Likewise.
33465
33466 2010-05-01  Bruno Haible  <bruno@clisp.org>
33467
33468         lseek test: Fix failure on Solaris.
33469         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33470         output.
33471
33472 2010-04-30  Jim Meyering  <meyering@redhat.com>
33473
33474         bootstrap: don't ignore failure to generate po*/Makevars
33475         * build-aux/bootstrap (with_gettext): Don't ignore failure
33476         to create po/Makevars or runtime-po/Makevars.
33477
33478 2010-04-29  Eric Blake  <eblake@redhat.com>
33479
33480         headers: relax license to LGPLv2+
33481         * modules/fcntl-h (License): Relax license.
33482         * modules/getopt-posix (License): Likewise.
33483         * modules/locale (License): Likewise.
33484         * modules/math (License): Likewise.
33485         * modules/pty (License): Likewise.
33486         * modules/sched (License): Likewise.
33487         * modules/search (License): Likewise.
33488         * modules/spawn (License): Likewise.
33489         * modules/stdarg (License): Likewise.
33490         * modules/sysexits (License): Likewise.
33491
33492 2010-04-29  Jim Meyering  <meyering@redhat.com>
33493
33494         inttypes: relax license to LGPLv2+
33495         * modules/inttypes (License): Relax license.
33496
33497 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33498
33499         * top/maint.mk (indent): Run twice to produce idempotent results.
33500
33501 2010-04-28  Bruno Haible  <bruno@clisp.org>
33502
33503         getdate: Generate getdate.c in the source directory.
33504         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33505         MOSTLYCLEANFILES.
33506         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33507
33508 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33509
33510         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33511         is not declared as a const *; avoid warnings in that case.
33512
33513 2010-04-28  Eric Blake  <eblake@redhat.com>
33514
33515         canonicalize-lgpl: avoid compiler warning
33516         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33517         declaration' / 'extraneous semicolon' warning with some compilers.
33518         Reported by Andreas Gruenbacher.
33519
33520 2010-04-28  Jim Meyering  <meyering@redhat.com>
33521
33522         init.sh: ensure a more reliable exit status when exiting via trap
33523         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33524         Inspired by patches from Dmitry V. Levin.
33525         Also trap on signal 3 (SIGQUIT).
33526
33527 2010-04-27  Bruno Haible  <bruno@clisp.org>
33528
33529         Update doc about utimes().
33530         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33531         'utimens' module.
33532         Reported by Andreas Gruenbacher <agruen@suse.de>.
33533
33534 2010-04-27  Eric Blake  <eblake@redhat.com>
33535
33536         full-read, full-write: relax license
33537         * modules/full-read (License): Drop to LGPLv2+.
33538         * modules/full-write (License): Likewise.
33539         * modules/safe-read (License): Likewise.
33540         * modules/safe-write (License): Likewise.
33541
33542         pthread: mention library for linking
33543         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33544
33545 2010-04-27  Jim Meyering  <meyering@redhat.com>
33546
33547         maint.mk: fix a bug introduced in last change
33548         * top/maint.mk (gl_assured_headers_): Now that all names are on
33549         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33550         is not anchored to end of word, it should be adequate.
33551
33552         maint.mk: avoid side-effect in latest syntax-check
33553         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33554         to run commands via $(shell...), and hence to incur cost only when
33555         the new rule is actually run.
33556
33557         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33558         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33559         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33560         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33561         (gl_assured_headers_, az_, AZ_): Define.
33562         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33563
33564 2010-04-26  Jim Meyering  <jim@meyering.net>
33565             Bruno Haible  <bruno@clisp.org>
33566
33567         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33568         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33569         Prompted by an exchange with Gilles Espinasse.
33570
33571 2010-04-26  Jim Meyering  <meyering@redhat.com>
33572
33573         git-version-gen: aesthetic tweak
33574         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33575         so that the command remains on a single line.
33576
33577 2010-04-26  Eric Blake  <eblake@redhat.com>
33578
33579         git-version-gen: allow use on EBCDIC hosts
33580         * build-aux/git-version-gen (dirty): Use literal rather than tying
33581         ourselves to ascii.
33582         Reported by Steve Goetze.
33583
33584 2010-04-25  Bruno Haible  <bruno@clisp.org>
33585
33586         netdb: Add support for GNULIB_POSIXCHECK.
33587         * lib/netdb.in.h: Include warn-on-use.h.
33588         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33589         functions are used when GNULIB_POSIXCHECK is defined and the
33590         getaddrinfo module is not in use.
33591         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33592         freeaddrinfo, gai_strerror, getnameinfo are declared.
33593         * modules/netdb (Depends-on): Add warn-on-use.
33594         (Makefile.am): Include warn-on-use.h in netdb.h.
33595
33596 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33597
33598         build: avoid "make check" failure without .git/ directory
33599         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33600         there is no .git/ directory.
33601
33602 2010-04-25  Bruno Haible  <bruno@clisp.org>
33603
33604         ptsname: Fix misuse of ttyname_r.
33605         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33606         of errno.
33607
33608 2010-04-25  Bruno Haible  <bruno@clisp.org>
33609
33610         ttyname_r: Make it work on Solaris 10.
33611         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33612         if the system function has the POSIX declaration. Test whether the
33613         function fails if the buffer is less than 128 bytes large.
33614         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33615         system's ttyname_r function. Provide a reasonably large buffer.
33616         * modules/ttyname_r (Depends-on): Add extensions.
33617         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33618
33619 2010-04-25  Bruno Haible  <bruno@clisp.org>
33620
33621         Use the 'extensions' module for some more functions on Solaris.
33622         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33623         module.
33624         * doc/posix-functions/ctime_r.texi: Likewise.
33625         * doc/posix-functions/getgrgid_r.texi: Likewise.
33626         * doc/posix-functions/getgrnam_r.texi: Likewise.
33627         * doc/posix-functions/getpwnam_r.texi: Likewise.
33628         * doc/posix-functions/getpwuid_r.texi: Likewise.
33629         * doc/posix-functions/readdir_r.texi: Likewise.
33630         * doc/posix-functions/sigwait.texi: Likewise.
33631         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33632         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33633
33634 2010-04-25  Bruno Haible  <bruno@clisp.org>
33635
33636         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33637         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33638         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33639         * lib/ttyname_r.c: Include <limits.h>.
33640         (ttyname_r): Define using the system's ttyname_r function, if it exists
33641         and not on Solaris.
33642         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33643         set.
33644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33645         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33646         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33647         Reported by Simon Josefsson.
33648
33649 2010-04-25  Bruno Haible  <bruno@clisp.org>
33650
33651         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33652         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33653         * doc/posix-functions/ctime_r.texi: Likewise.
33654         * doc/posix-functions/getgrgid_r.texi: Likewise.
33655         * doc/posix-functions/getgrnam_r.texi: Likewise.
33656         * doc/posix-functions/getlogin_r.texi: Likewise.
33657         * doc/posix-functions/getpwnam_r.texi: Likewise.
33658         * doc/posix-functions/getpwuid_r.texi: Likewise.
33659         * doc/posix-functions/readdir_r.texi: Likewise.
33660         * doc/posix-functions/sigwait.texi: Likewise.
33661         * doc/posix-functions/ttyname_r.texi: Likewise.
33662         Reported by Simon Josefsson.
33663
33664 2010-04-25  Bruno Haible  <bruno@clisp.org>
33665
33666         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33667         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33668         also to --create-testdir.
33669         (func_acceptable): Don't consider the status of *-tests modules here.
33670         (func_modules_transitive_closure): Consider it here, before including a
33671         test module.
33672         (func_import, func_create_testdir): Set inc_all_direct_tests,
33673         inc_all_indirect_tests.
33674         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33675         --create-testdir and --create-megatestdir.
33676
33677 2010-04-25  Bruno Haible  <bruno@clisp.org>
33678
33679         gnulib-tool: Add --without-*-tests options.
33680         * gnulib-tool (func_usage): Document the --without-*-tests options.
33681         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33682         excl_unportable_tests): New variables.
33683         Fail if they are specified with --import or --update.
33684         (func_acceptable): Respect the excl_*_tests variables.
33685         (func_import): Set the excl_*_tests variables to empty.
33686
33687 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33688             Bruno Haible  <bruno@clisp.org>
33689
33690         Work around a MacOS X 10.4 bug with openpty.
33691         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33692         * tests/test-openpty.c (main): Close the master side explicitly.
33693
33694 2010-04-25  Bruno Haible  <bruno@clisp.org>
33695
33696         strnlen: Fix a C++ test error on MacOS X and Solaris.
33697         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33698         the function is not declared.
33699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33700         Simon Josefsson.
33701
33702 2010-04-24  Bruno Haible  <bruno@clisp.org>
33703
33704         Avoid a gcc warning.
33705         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33706         of correct type for %08lx directive.
33707         Reported by Eric Blake.
33708
33709 2010-04-24  Bruno Haible  <bruno@clisp.org>
33710
33711         vasnprintf: Correct errno value in case of out-of-memory.
33712         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33713         or sprintf. Use the errno value from SNPRINTF or sprintf.
33714         Reported by Ian Beckwith <ianb@erislabs.net>.
33715
33716 2010-04-24  Bruno Haible  <bruno@clisp.org>
33717
33718         ansi-c++-opt: Find correct compiler when cross-compiling.
33719         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33720         AC_CHECK_PROGS.
33721         Reported by Simon Josefsson.
33722
33723 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33724
33725         vc-list-files: Add support for subversion
33726         * build-aux/vc-list-files: Use "svn list" to generate the list of
33727         files controlled by subversion.
33728
33729 2010-04-23  Jim Meyering  <meyering@redhat.com>
33730
33731         vc-list-files tests: convert to use init.sh
33732         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33733         path_prepend_.
33734         Use Exit, not exit.
33735         Use skip_ rather than open coding it.
33736         Remove trap set-up and compare definitions.
33737         * tests/test-vc-list-files-git.sh: Likewise.
33738         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33739
33740 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33741
33742         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33743         backup files.
33744
33745 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33746
33747         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33748
33749 2010-04-20  Eric Blake  <eblake@redhat.com>
33750
33751         tests: be robust to ignored SIGPIPE
33752         * tests/test-select-in.sh: Consume all output.
33753         * tests/test-lseek.sh: Check correct exit status, while avoiding
33754         EPIPE.
33755
33756 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33757             Bruno Haible  <bruno@clisp.org>
33758
33759         visibility: Don't use -fvisibility if it leads to a warning.
33760         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33761         yes, don't pretend that visibility works if it leads to a warning.
33762         Reported by Mike Gran <spk121@yahoo.com>.
33763
33764 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33765
33766         * build-aux/bootstrap: Use "git -h" for testing for supported options
33767         instead of "git --help".  The short-form option only shows a summary,
33768         and doesn't layout the full man page.  Grep for the full option name
33769         in the summary, too.
33770
33771 2010-04-19  Bruno Haible  <bruno@clisp.org>
33772
33773         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33774         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33775         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33776         mention of RELOCATABLE_STRIP.
33777         Reported by Sylvain Beucler <beuc@beuc.net>.
33778
33779 2010-04-19  Bruno Haible  <bruno@clisp.org>
33780
33781         * lib/diffseq.h: Fix typo in comment.
33782         Reported by Eric Blake.
33783
33784 2010-04-19  Bruno Haible  <bruno@clisp.org>
33785
33786         ioctl: Move autoconf macro to a .m4 file.
33787         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33788         * modules/ioctl (Files): Add it.
33789         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33790         Reported by Ian Beckwith <ianb@erislabs.net>.
33791
33792 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33793             Bruno Haible  <bruno@clisp.org>
33794
33795         diffseq: Accommodate use-case with abstract arrays.
33796         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33797         is not defined.
33798         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33799         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33800
33801 2010-04-18  Bruno Haible  <bruno@clisp.org>
33802
33803         * doc/posix-headers/stdbool.texi: More precise wording.
33804
33805 2010-04-17  Jim Meyering  <meyering@redhat.com>
33806
33807         maint.mk: use gnu-style indentation in an embedded perl script
33808         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33809         Rename variable: s/two/last_two_bytes/
33810
33811 2010-04-16  Eric Blake  <eblake@redhat.com>
33812
33813         test-stdbool: skip test that fails with Solaris CC
33814         * tests/test-stdbool.c (f): Skip test that causes compilation
33815         error under buggy C++ compiler.
33816         * lib/stdbool.in.h: Document the limitation.
33817         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33818
33819         setenv: allow compilation with C++
33820         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33821         register keyword.
33822
33823         stdint: allow test to pass with C++
33824         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33825
33826         getopt: allow compilation with C++
33827         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33828         struct.
33829         * lib/getopt.c (_getopt_internal_r): Use correct type.
33830         Reported by Dagobert Michelson, via Joel E. Denny.
33831
33832 2010-04-16  Bruno Haible  <bruno@clisp.org>
33833
33834         Override netdb.h always.
33835         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33836         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33837         Reported by Ludovic Courtès <ludo@gnu.org>.
33838
33839 2010-04-15  Bruno Haible  <bruno@clisp.org>
33840
33841         openpty: Fix mistake from 2010-03-21.
33842         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33843         Reported by Simon Josefsson.
33844
33845 2010-04-15  Eric Blake  <eblake@redhat.com>
33846
33847         test-forkpty: fix expected signature
33848         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33849         Reported by Simon Josefsson.
33850
33851 2010-04-15  Jim Meyering  <meyering@redhat.com>
33852
33853         maint.mk: texinfo_suffix_re_: correct the default regexp
33854         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33855
33856         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33857         make it configurable via texinfo_suffix_re_.
33858
33859 2010-04-14  Eric Blake  <eblake@redhat.com>
33860
33861         strtok_r: relax license to LGPLv2+
33862         * modules/strtok_r (License): Relax license.
33863         Reported by Matthias Bolte.
33864
33865 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33866
33867         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33868         version 1.4.4 by default instead of requiring the libgcrypt
33869         version used during build.  This makes it possible to use the
33870         application with older but still binary compatible libgcrypt
33871         versions.
33872
33873 2010-04-13  Eric Blake  <eblake@redhat.com>
33874
33875         getopt-gnu: match recent glibc fixes and posix ruling
33876         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33877         '+' handling, when requesting extensions.
33878         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33879         'W;' handling.
33880         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33881         * doc/posix-functions/getopt.texi (getopt): Document this.
33882         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33883         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33884         Likewise.
33885
33886         getopt: merge bug fixes from glibc
33887         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33888         diagnostics.  Honor '+:' correctly.  Reject ';'.
33889
33890         getopt-posix: detect MacOS bug
33891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33892         optind when missing a required argument.
33893         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33894         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33895         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33896         Likewise.
33897
33898         getopt-posix: avoid spurious failure on Solaris
33899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33900         an indicator that setting optind=1 is sufficient for reset.
33901
33902         getopt-posix: avoid spurious failure on FreeBSD
33903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33904         in POSIX mode, since the m4 test uses it.
33905
33906         gnulib-tool: silence warning on BSD sh
33907         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33908
33909 2010-04-13  Jim Meyering  <meyering@redhat.com>
33910
33911         doc: users.txt: GNU patch now uses gnulib
33912         * users.txt: Add patch.
33913
33914 2010-04-12  Jim Meyering  <meyering@redhat.com>
33915
33916         maint.mk: generate more concise timing data for syntax-check rules
33917         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33918         " done" from each line that reports a syntax-check test duration.
33919
33920 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33921
33922         git-version-gen: use "git update-index..." rather than "git status"
33923         * build-aux/git-version-gen: Use git update-index --refresh, not
33924         "git status".  With some versions of git, "git status" would fail
33925         to update the index and result in an unwarranted "-dirty" suffix.
33926
33927 2010-04-11  Jim Meyering  <meyering@redhat.com>
33928
33929         openat: correct formatting (no semantic change)
33930         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33931         Suggested by Bruno Haible.
33932
33933 2010-04-11  Bruno Haible  <bruno@clisp.org>
33934
33935         Stricter declaration checking in testdirs.
33936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33937         If for_tests is true, augment AM_CPPFLAGS to define
33938         GNULIB_STRICT_CHECKING.
33939         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33940         GNULIB_STRICT_CHECKING is defined, verify that the function is
33941         declared.
33942
33943 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33944             Bruno Haible  <bruno@clisp.org>
33945
33946         libunistring: Improve configure output.
33947         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33948         Don't say "consider installing GNU libunistring" when checking again
33949         with libiconv.
33950
33951 2010-04-11  Bruno Haible  <bruno@clisp.org>
33952
33953         libunistring: Correct value of $LTLIBUNISTRING.
33954         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33955         correct the value of $LTLIBUNISTRING.
33956
33957 2010-04-11  Bruno Haible  <bruno@clisp.org>
33958
33959         havelib: Add static libraries to LIBS in the right order.
33960         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33961         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33962
33963 2010-04-11  Bruno Haible  <bruno@clisp.org>
33964
33965         libunistring: Detect libunistring also when it depends on libiconv.
33966         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33967         the second AC_LIB_HAVE_LINKFLAGS invocation.
33968
33969 2010-04-11  James Youngman  <jay@gnu.org>
33970
33971         close-stream: declare local scalars to be "const"
33972         * lib/close-stream.c (close_stream): Make boolean variables const
33973         to document the fact that we set but do not change them.
33974
33975 2010-04-11  Bruno Haible  <bruno@clisp.org>
33976
33977         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33978
33979 2010-04-11  Jim Meyering  <meyering@redhat.com>
33980
33981         maint.mk: don't include dist-check.mk
33982         * top/maint.mk: Remove bogus include directive.
33983
33984         maint.mk: improve empty-line-at-EOF check
33985         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33986         solution, rather than tail+Perl-based one.  The latter would read
33987         a few kilobytes from the end of each file, and did not handle empty
33988         files properly.
33989
33990         maint.mk: print the elapsed time for each syntax-check rule
33991         * top/maint.mk (sc_m_rules_): Save start time in a file.
33992         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33993         (local-check): Interpose the .z rules
33994
33995 2010-04-11  Jim Meyering  <meyering@redhat.com>
33996
33997         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33998         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33999         empty file with one that ends in an empty line.
34000
34001 2010-04-10  Bruno Haible  <bruno@clisp.org>
34002
34003         mkdir: Make it work on mingw64.
34004         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34005         * lib/mkdir.c: Update comment.
34006         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
34007
34008 2010-04-10  Bruno Haible  <bruno@clisp.org>
34009
34010         Don't override improved macro from newer autoconf.
34011         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34012         autoconf >= 2.62.
34013         Reported by Joel E. Denny <jdenny@clemson.edu>.
34014
34015 2010-04-10  Jim Meyering  <meyering@redhat.com>
34016
34017         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34018         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34019
34020         maint.mk: correct a diagnostic
34021         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34022         in diagnostic; now use $prohibit.
34023
34024 2010-04-10  Bruno Haible  <address@hidden>
34025
34026         fchownat: Fix a C++ test error on Solaris 8.
34027         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34028         the function does not exist.
34029
34030 2010-04-10  Bruno Haible  <bruno@clisp.org>
34031
34032         vasnprintf: Add more tests.
34033         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34034         (test_function): Test converting an invalid wide string.
34035
34036         vasnprintf: Correct handling of unconvertible wide string arguments.
34037         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34038         VASNPRINTF.
34039         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34040         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34041         smaller than the expected maximum need for the directive. Set errno to
34042         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34043         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34045         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34046         * modules/vasnprintf (Files): Add m4/printf.m4.
34047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34048
34049 2010-04-10  Bruno Haible  <bruno@clisp.org>
34050
34051         vasnprintf: Fix crash in %ls directive.
34052         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34053         string is passed as argument to %ls, with no precision and no width.
34054         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34055
34056 2010-04-10  Bruno Haible  <bruno@clisp.org>
34057
34058         vasnprintf: Fix multiple test failures on mingw.
34059         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34060         _snprintf, or snwprintf, not _snwprintf.
34061
34062 2010-04-10  Bruno Haible  <bruno@clisp.org>
34063
34064         write: Fix a C++ test error on mingw.
34065         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34066
34067 2010-04-10  Bruno Haible  <bruno@clisp.org>
34068
34069         vasnprintf test: Reduce code duplication.
34070         * tests/test-vasnprintf.c (test_function): New function, extracted from
34071         test_vasnprintf.
34072         (test_vasnprintf, test_asnprintf): Invoke it.
34073
34074 2010-04-10  Bruno Haible  <bruno@clisp.org>
34075
34076         strnlen: Fix warning in C++ mode on MacOS X.
34077         * lib/string.in.h (strnlen): Use the modern idiom.
34078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34079         defining strnlen as a macro already in <config.h>.
34080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34081         REPLACE_STRNLEN.
34082         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34083         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34084
34085 2010-04-08  James Youngman  <jay@gnu.org>
34086
34087         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34088         the example.
34089
34090 2010-04-09  Jim Meyering  <meyering@redhat.com>
34091
34092         maint.mk: print better diagnostic when there is no $(_hv_file)
34093         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34094         announce that when $(_hv_file) (aka help-version) does not exist.
34095
34096         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34097         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34098         not try to interpret its random input bytes.  Jarno Rajahalme reported
34099         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34100         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34101         (mktempd_): Likewise, just in case.
34102
34103         ftruncate: add two years to projected module removal date: 2012
34104         * m4/ftruncate.m4: Adjust comments.
34105
34106         ftruncate: mark module as obsolete; even MinGW provides it, now
34107         * modules/ftruncate (Status): Obsolete.
34108         (Notice): Say that.
34109         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34111
34112 2010-04-08  Bruno Haible  <bruno@clisp.org>
34113
34114         Fix side effects from tests-related modules.
34115         * modules/dprintf-posix (Comment): New section.
34116         * modules/fprintf-posix (Comment): Likewise.
34117         * modules/obstack-printf-posix (Comment): Likewise.
34118         * modules/printf-posix (Comment): Likewise.
34119         * modules/snprintf-posix (Comment): Likewise.
34120         * modules/sprintf-posix (Comment): Likewise.
34121         * modules/vasnprintf-posix (Comment): Likewise.
34122         * modules/vasprintf-posix (Comment): Likewise.
34123         * modules/vdprintf-posix (Comment): Likewise.
34124         * modules/vfprintf-posix (Comment): Likewise.
34125         * modules/vprintf-posix (Comment): Likewise.
34126         * modules/vsnprintf-posix (Comment): Likewise.
34127         * modules/vsprintf-posix (Comment): Likewise.
34128         * modules/xprintf-posix (Comment): Likewise.
34129         * modules/xvasprintf-posix (Comment): Likewise.
34130         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34131         * modules/floorf-tests (Depends-on): Likewise.
34132         * modules/round-tests (Depends-on): Likewise.
34133         * modules/roundf-tests (Depends-on): Likewise.
34134         * modules/trunc-tests (Depends-on): Likewise.
34135         * modules/truncf-tests (Depends-on): Likewise.
34136         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34137         'fprintf-posix' module is not present.
34138         * tests/test-floorf2.c (check): Likewise.
34139         * tests/test-trunc2.c (check): Likewise.
34140         * tests/test-truncf2.c (check): Likewise.
34141         * tests/test-round2.c (equal): Likewise.
34142         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34143
34144 2010-04-07  Karl Berry  <karl@gnu.org>
34145
34146         * config/srclist.txt,
34147         * config/srclistvars.sh,
34148         * config/srclist-update: doc fixes.
34149
34150 2010-04-07  Jim Meyering  <meyering@redhat.com>
34151
34152         maint.mk: add a PATH crosschecking syntax-check rule
34153         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34154         Useful if you use a test like the one in help-version (coreutils,
34155         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34156         printed by prog --version.
34157
34158 2010-04-06  Bruno Haible  <bruno@clisp.org>
34159
34160         Fix link error on mingw.
34161         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34162         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34163
34164 2010-04-06  Bruno Haible  <bruno@clisp.org>
34165
34166         Assume rmdir exists.
34167         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34168
34169 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34170
34171         doc: update users.txt
34172         * users.txt: Add gcal.
34173
34174 2010-04-06  Jim Meyering  <meyering@redhat.com>
34175
34176         init.sh: simply unset TMPDIR rather than risking env -i
34177         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34178         although it probably works fine on all Unix-based systems, some
34179         systems (Cygwin?) cannot tolerate a totally cleared environment.
34180         Suggestion from Eric Blake.
34181
34182 2010-04-06  Jim Meyering  <meyering@redhat.com>
34183
34184         init.sh: portability fix: use env's POSIX-specified -i option not -u
34185         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34186         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34187
34188 2010-04-05  Bruno Haible  <bruno@clisp.org>
34189
34190         btowc: Work around Cygwin 1.7.2 bug.
34191         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34192         does not map NUL to 0.
34193         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34194
34195 2010-04-05  Bruno Haible  <bruno@clisp.org>
34196
34197         Make the multithread modules work on Cygwin 1.7.2.
34198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34199         imported symbols can be declared weak, so that it returns "no" on
34200         Cygwin 1.7.2.
34201
34202 2010-04-05  Bruno Haible  <bruno@clisp.org>
34203
34204         Use the module 'strncat'.
34205         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34206
34207         Tests for module 'strncat'.
34208         * modules/strncat-tests: New file.
34209         * tests/test-strncat.c: New file.
34210
34211         New module 'strncat'.
34212         * lib/string.in.h (strncat): New declaration.
34213         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34214         * m4/strncat.m4: New file, based on m4/memchr.m4.
34215         * modules/strncat: New file.
34216         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34217         is declared.
34218         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34219         REPLACE_STRNCAT.
34220         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34221         REPLACE_STRNCAT.
34222         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34223         module.
34224         * tests/test-string-c++.cc: Check signature of strncat.
34225
34226 2010-04-05  Jim Meyering  <meyering@redhat.com>
34227
34228         xstrtoumax-tests: convert to use init.sh
34229         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34230         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34231         Use Exit, not exit.
34232         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34233
34234         xstrtoimax-tests: convert to use init.sh
34235         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34236         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34237         Use Exit, not exit.
34238         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34239
34240 2010-04-05  Bruno Haible  <bruno@clisp.org>
34241
34242         sys_socket: Avoid #define replacements in C++ mode.
34243         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34244         warning to the function if possible, rather than #defining the symbol
34245         to a dysfunctional alias.
34246
34247 2010-04-05  Bruno Haible  <bruno@clisp.org>
34248
34249         fseeko: Fix C++ test error on mingw.
34250         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34251         gl_FUNC_FSEEKO.
34252         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34253         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34254         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34255         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34256
34257 2010-04-05  Bruno Haible  <bruno@clisp.org>
34258
34259         duplocale: Improve test output.
34260         * tests/test-duplocale.c (main): Print reason for skipped test.
34261
34262 2010-04-05  Bruno Haible  <bruno@clisp.org>
34263
34264         Assume rmdir exists.
34265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34266         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34267
34268 2010-04-05  Bruno Haible  <bruno@clisp.org>
34269
34270         Fix link error on Solaris 8 with cc.
34271         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34272
34273 2010-04-05  Bruno Haible  <bruno@clisp.org>
34274
34275         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34276         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34277
34278 2010-04-05  Bruno Haible  <bruno@clisp.org>
34279
34280         vasprintf: Update documentation.
34281         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34282
34283 2010-04-05  Bruno Haible  <bruno@clisp.org>
34284
34285         ptsname: Improve test.
34286         * tests/test-ptsname.c (main): Also try the various master names of BSD
34287         systems.
34288
34289 2010-04-05  Bruno Haible  <bruno@clisp.org>
34290
34291         memchr: Avoid a possible C++ test error.
34292         * lib/string.in.h (memchr): Provide declaration if function is missing.
34293         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34294         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34296         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34297
34298 2010-04-05  Bruno Haible  <bruno@clisp.org>
34299
34300         strtok_r: Improve idiom.
34301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34302         AC_LIBOBJ is used.
34303
34304 2010-04-05  Bruno Haible  <bruno@clisp.org>
34305
34306         strdup: Improve idiom.
34307         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34308         AC_LIBOBJ is used.
34309         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34310         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34311         when AC_LIBOBJ is used.
34312
34313 2010-04-05  Bruno Haible  <bruno@clisp.org>
34314
34315         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34316         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34317         don't set REPLACE_MBSINIT to 1.
34318         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34319         don't set REPLACE_MBRTOWC to 1.
34320         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34321         exist, don't set REPLACE_MBSRTOWCS to 1.
34322         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34323         exist, don't set REPLACE_MBSNRTOWCS to 1.
34324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34325         don't set REPLACE_WCRTOMB to 1.
34326         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34327         exist, don't set REPLACE_WCSRTOMBS to 1.
34328         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34329         exist, don't set REPLACE_WCSNRTOMBS to 1.
34330
34331 2010-04-05  Bruno Haible  <bruno@clisp.org>
34332
34333         ldexpl: Improve idiom.
34334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34335         make sure to set HAVE_DECL_LDEXPL to 0.
34336
34337 2010-04-05  Jim Meyering  <meyering@redhat.com>
34338
34339         xstrtol-tests: convert to use init.sh
34340         * modules/xstrtol-tests (Files): Add tests/init.sh.
34341         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34342         Use Exit, not exit.
34343         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34344
34345         atexit-tests: convert to use init.sh
34346         * modules/atexit-tests (Files): Add tests/init.sh.
34347         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34348         Use Exit, not exit.
34349         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34350
34351         init.sh: fix typo
34352         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34353
34354         init.sh: make it easier for a test script to write to the tty, ...
34355         when using automake's parallel-tests mode.
34356         * tests/init.sh (stderr_fileno_): Define overridable variable.
34357         (warn_): New function, to use it.
34358         (fail_, skip_, framework_failure_): Use warn_.
34359
34360 2010-04-04  Bruno Haible  <bruno@clisp.org>
34361
34362         btowc: Avoid warning.
34363         * lib/btowc.c: Include <stdlib.h>.
34364         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34365
34366 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34367             Bruno Haible  <bruno@clisp.org>
34368
34369         wchar: Port to NetBSD 1.5.
34370         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34371         * lib/wctype.in.h (WEOF): Likewise.
34372
34373 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34374             Bruno Haible  <bruno@clisp.org>
34375
34376         Port extended stdio to NetBSD 1.5.
34377         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34378         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34379         older.
34380
34381 2010-04-04  Bruno Haible  <bruno@clisp.org>
34382
34383         string: Remove unused substitution.
34384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34385         HAVE_DECL_STRERROR.
34386         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34387
34388 2010-04-04  Bruno Haible  <bruno@clisp.org>
34389
34390         strtod: Avoid a possible C++ test error.
34391         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34392         set REPLACE_STRTOD.
34393
34394 2010-04-04  Bruno Haible  <bruno@clisp.org>
34395
34396         strerror: Update documentation.
34397         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34398
34399 2010-04-04  Bruno Haible  <bruno@clisp.org>
34400
34401         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34402         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34403         _GL_CXXALIAS_SYS_CAST.
34404
34405 2010-04-04  Bruno Haible  <bruno@clisp.org>
34406
34407         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34408         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34409         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34410         REPLACE_FREXPL to 1.
34411         * doc/posix-functions/frexpl.texi: Update documentation.
34412
34413 2010-04-04  Bruno Haible  <bruno@clisp.org>
34414
34415         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34416         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34417
34418 2010-04-04  Bruno Haible  <bruno@clisp.org>
34419
34420         Implement nanosleep for native Windows.
34421         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34422
34423 2010-04-04  Bruno Haible  <bruno@clisp.org>
34424
34425         math: Fix some C++ test errors on Solaris 8.
34426         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34427
34428 2010-04-04  Bruno Haible  <bruno@clisp.org>
34429
34430         math: Fix some C++ test errors on Cygwin.
34431         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34432         truncl): Provide declaration if the system does not have it.
34433         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34434         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34435         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34436         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34437         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34438         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34439         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34440         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34441         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34442         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34443         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34444         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34445         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34446         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34447         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34448         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34450         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34451         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34452         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34453         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34454         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34455
34456 2010-04-04  Bruno Haible  <bruno@clisp.org>
34457
34458         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34459         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34460         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34461         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34462         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34463         * m4/isinf.m4 (gl_ISINF): Likewise.
34464         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34465
34466 2010-04-04  Bruno Haible  <bruno@clisp.org>
34467
34468         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34469         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34470
34471 2010-04-04  Bruno Haible  <bruno@clisp.org>
34472
34473         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34474         * modules/tmpfile (configure.ac): Update.
34475
34476         tmpfile: Fix C++ test error on mingw.
34477         * lib/stdio.in.h (tmpfile): New declaration.
34478         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34479         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34480         * modules/tmpfile (Depends-on): Add stdio.
34481         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34482         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34483         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34484         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34485         REPLACE_TMPFILE.
34486         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34487
34488 2010-04-04  Bruno Haible  <bruno@clisp.org>
34489
34490         ioctl: Fix C++ test error on mingw.
34491         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34492         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34493         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34494
34495 2010-04-03  Bruno Haible  <bruno@clisp.org>
34496
34497         wcwidth: Fix C++ test error on mingw.
34498         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34500         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34501
34502 2010-04-03  Bruno Haible  <bruno@clisp.org>
34503
34504         nanosleep: Fix C++ test error on mingw.
34505         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34506         * lib/time.in.h (nanosleep): Use modern idiom.
34507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34508         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34509         REPLACE_NANOSLEEP to 1.
34510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34511         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34512
34513 2010-04-03  Bruno Haible  <bruno@clisp.org>
34514
34515         strptime: Fix C++ test error on mingw.
34516         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34517         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34518         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34519         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34521         not REPLACE_STRPTIME.
34522         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34523         REPLACE_STRPTIME.
34524
34525 2010-04-03  Bruno Haible  <bruno@clisp.org>
34526
34527         timegm: Fix C++ test error on mingw.
34528         * lib/time.in.h (timegm): Use modern idiom.
34529         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34530         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34531         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34532         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34533
34534 2010-04-03  Bruno Haible  <bruno@clisp.org>
34535
34536         timegm: Assume declaration if function exists.
34537         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34538         if it exists. Don't clobber ac_cv_func_timegm.
34539
34540 2010-04-03  Bruno Haible  <bruno@clisp.org>
34541
34542         time_r: Fix C++ test error on mingw.
34543         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34544         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34545         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34546         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34547         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34548
34549 2010-04-03  Bruno Haible  <bruno@clisp.org>
34550
34551         time_r: Minor updates.
34552         * modules/time_r (Description): Mention the provided functions.
34553         * lib/time_r.c: Don't include <string.h>.
34554         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34555         * doc/posix-functions/localtime_r.texi: Likewise.
34556
34557 2010-04-03  Bruno Haible  <bruno@clisp.org>
34558
34559         time: Fix regression introduced on 2010-03-08.
34560         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34561         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34562
34563 2010-04-03  Jim Meyering  <meyering@redhat.com>
34564
34565         maint.mk: don't silently disable project-specific syntax-check rules
34566         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34567         that they need to convert their project-specific syntax-check rules
34568         to use the new _sc_search_regexp.
34569
34570 2010-04-03  Bruno Haible  <bruno@clisp.org>
34571
34572         fchdir: Fix regression introduced on 2010-03-08.
34573         * lib/unistd.in.h (fchdir): Fix declaration.
34574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34576         REPLACE_FCHDIR.
34577         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34578         REPLACE_FCHDIR.
34579
34580 2010-04-03  Bruno Haible  <bruno@clisp.org>
34581
34582         getpagesize: Fix C++ test error on mingw.
34583         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34584         system does not declare the function.
34585         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34586         declared.
34587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34588         HAVE_DECL_GETPAGESIZE.
34589         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34590
34591 2010-04-03  Bruno Haible  <bruno@clisp.org>
34592
34593         stdio: Make C++ tests work on mingw.
34594         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34595         does not declare the function.
34596
34597 2010-04-03  Bruno Haible  <bruno@clisp.org>
34598
34599         ftello: Fix C++ test error on mingw.
34600         * lib/stdio.in.h (ftello): Use modern idiom.
34601         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34602         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34603         is missing and that it needs to be replaced.
34604         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34606         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34607
34608 2010-04-03  Bruno Haible  <bruno@clisp.org>
34609
34610         fseeko: Fix C++ test error on mingw.
34611         * lib/stdio.in.h (fseeko): Use modern idiom.
34612         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34614         is missing and that it needs to be replaced.
34615         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34617         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34618
34619 2010-04-03  Bruno Haible  <bruno@clisp.org>
34620
34621         mkstemp: Fix C++ test error on mingw.
34622         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34624         function is missing and that it needs to be replaced.
34625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34626         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34627
34628 2010-04-03  Bruno Haible  <bruno@clisp.org>
34629
34630         stpncpy: Fix C++ test error on mingw.
34631         * lib/string.in.h (stpncpy): Use modern idiom.
34632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34633         function is missing and that it needs to be replaced.
34634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34635         REPLACE_STPNCPY.
34636         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34637
34638 2010-04-03  Bruno Haible  <bruno@clisp.org>
34639
34640         sys_stat: Fix C++ test error on mingw.
34641         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34642         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34643
34644 2010-04-03  Bruno Haible  <bruno@clisp.org>
34645
34646         pty: Update doc.
34647         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34648
34649 2010-04-03  Bruno Haible  <bruno@clisp.org>
34650
34651         unistd: Fix C++ test error on mingw.
34652         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34653
34654 2010-04-03  Bruno Haible  <bruno@clisp.org>
34655
34656         Update doc regarding mingw.
34657         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34658         * doc/glibc-functions/login_tty.texi: Likewise.
34659         * doc/glibc-functions/forkpty.texi: Likewise.
34660
34661 2010-04-03  Bruno Haible  <bruno@clisp.org>
34662
34663         stdlib: Avoid compilation failure of c-strtold on mingw.
34664         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34665
34666 2010-04-03  Bruno Haible  <bruno@clisp.org>
34667
34668         locale: Make C++ tests work on Cygwin and mingw.
34669         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34670         cannot provide the function.
34671         Reported by Simon Josefsson.
34672
34673 2010-04-03  Bruno Haible  <bruno@clisp.org>
34674
34675         localename: Port to MacOS X 10.6.
34676         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34677         memory layout of the locales in MacOS X 10.6 as well.
34678         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34679
34680 2010-04-02  Bruno Haible  <bruno@clisp.org>
34681
34682         gnulib-tool: Ensure that long-running tests are executed last.
34683         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34684         running tests after the one for the other tests.
34685
34686 2010-04-02  Bruno Haible  <bruno@clisp.org>
34687
34688         gnulib-tool: Ensure the tests in the main directory are executed first.
34689         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34690         start with the current directory.
34691
34692 2010-04-02  Bruno Haible  <bruno@clisp.org>
34693
34694         Tests for module 'havelib', moved here from GNU gettext.
34695         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34696         modifications.
34697         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34698         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34699         with modifications.
34700         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34701         modifications.
34702         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34703         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34704         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34705         with modifications.
34706         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34707         with modifications.
34708         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34709         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34710         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34711         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34712         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34713         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34714         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34715         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34716         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34717         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34718         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34719         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34720         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34721         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34722         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34723         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34724         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34725         with modifications.
34726         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34727         with modifications.
34728         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34729         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34730         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34731         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34732         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34733         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34734         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34735         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34736         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34737         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34738         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34739         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34740         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34741         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34742         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34743         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34744         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34745         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34746         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34747         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34748         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34749         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34750         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34751         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34752         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34753         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34754         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34755         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34756         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34757         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34758         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34759         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34760         * tests/havelib/rpathx/rpathx.c: New file, from
34761         gettext/autoconf-lib-link.
34762         * tests/havelib/rpathx/Makefile.am: New file, from
34763         gettext/autoconf-lib-link.
34764         * tests/havelib/rpathx/configure.ac: New file, from
34765         gettext/autoconf-lib-link with modifications.
34766         * tests/havelib/rpathy/rpathy.c: New file, from
34767         gettext/autoconf-lib-link.
34768         * tests/havelib/rpathy/Makefile.am: New file, from
34769         gettext/autoconf-lib-link.
34770         * tests/havelib/rpathy/configure.ac: New file, from
34771         gettext/autoconf-lib-link with modifications.
34772         * tests/havelib/rpathz/rpathz.c: New file, from
34773         gettext/autoconf-lib-link.
34774         * tests/havelib/rpathz/Makefile.am: New file, from
34775         gettext/autoconf-lib-link.
34776         * tests/havelib/rpathz/configure.ac: New file, from
34777         gettext/autoconf-lib-link with modifications.
34778         * tests/havelib/rpathlx/usex.c: New file, from
34779         gettext/autoconf-lib-link.
34780         * tests/havelib/rpathlx/Makefile.am: New file, from
34781         gettext/autoconf-lib-link.
34782         * tests/havelib/rpathlx/configure.ac: New file, from
34783         gettext/autoconf-lib-link with modifications.
34784         * tests/havelib/rpathly/usey.c: New file, from
34785         gettext/autoconf-lib-link.
34786         * tests/havelib/rpathly/Makefile.am: New file, from
34787         gettext/autoconf-lib-link.
34788         * tests/havelib/rpathly/configure.ac: New file, from
34789         gettext/autoconf-lib-link with modifications.
34790         * tests/havelib/rpathlz/usez.c: New file, from
34791         gettext/autoconf-lib-link.
34792         * tests/havelib/rpathlz/Makefile.am: New file, from
34793         gettext/autoconf-lib-link.
34794         * tests/havelib/rpathlz/configure.ac: New file, from
34795         gettext/autoconf-lib-link with modifications.
34796         * tests/havelib/rpathlyx/usey.c: New file, from
34797         gettext/autoconf-lib-link.
34798         * tests/havelib/rpathlyx/Makefile.am: New file, from
34799         gettext/autoconf-lib-link.
34800         * tests/havelib/rpathlyx/configure.ac: New file, from
34801         gettext/autoconf-lib-link with modifications.
34802         * tests/havelib/rpathlzyx/usez.c: New file, from
34803         gettext/autoconf-lib-link.
34804         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34805         gettext/autoconf-lib-link.
34806         * tests/havelib/rpathlzyx/configure.ac: New file, from
34807         gettext/autoconf-lib-link with modifications.
34808         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34809         with modifications.
34810
34811 2010-04-02  Bruno Haible  <bruno@clisp.org>
34812
34813         gnulib-tool: Create distributed built sources also for the tests.
34814         * gnulib-tool (func_create_testdir): Also generate distributed built
34815         sources in the tests directory.
34816
34817 2010-04-02  Bruno Haible  <bruno@clisp.org>
34818
34819         gnulib-tool: Obey user's environment variables.
34820         * gnulib-tool (func_create_testdir): When creating built sources,
34821         respect the environment variables for autoconf, automake, etc. given by
34822         the user.
34823
34824 2010-04-02  Bruno Haible  <bruno@clisp.org>
34825
34826         gnulib-tool: Provide the value of --m4-base to modules.
34827         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34828         of gl_m4_base.
34829
34830 2010-04-02  Eric Blake  <eblake@redhat.com>
34831
34832         maint.mk: fix some fallout
34833         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34834         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34835
34836 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34837
34838         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34839         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34840         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34841         (sc_cast_of_x_alloc_return_value): Likewise.
34842         (sc_cast_of_alloca_return_value): Likewise.
34843         (sc_space_tab): Likewise.
34844         (sc_prohibit_atoi_atof): Likewise.
34845         (sc_prohibit_magic_number_exit): Likewise.
34846         (sc_error_exit_success): Likewise.
34847         (sc_file_system): Likewise.
34848         (sc_prohibit_have_config_h): Likewise.
34849         (sc_require_config_h): Likewise.
34850         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34851         (sc_obsolete_symbols): Likewise.
34852         (sc_changelog): Likewise.
34853         (sc_program_name): Likewise.
34854         (sc_the_the): Likewise.
34855         (sc_trailing_blank): Likewise.
34856         (sc_two_space_separator_in_usage): Likewise.
34857         (sc_useless_cpp_parens): Likewise.
34858         (sc_GPL_version): Likewise.
34859         (sc_GFDL_version): Likewise.
34860         (sc_texinfo_acronym): Likewise.
34861         (sc_prohibit_cvs_keyword): Likewise.
34862         (sc_prohibit_stat_st_blocks): Likewise.
34863         (sc_prohibit_S_IS_definition): Likewise.
34864         (sc_redundant_const): Likewise.
34865         (sc_makefile_TAB_only_indentation): Likewise.
34866         (sc_m4_quote_check): Likewise.
34867         (sc_makefile_path_separator_check): Likewise.
34868         (sc_copyright_check): Likewise.
34869         (sc_Wundef_boolean): Likewise.
34870         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34871
34872         maint.mk: match 0 or more whitespace-before-function-call '('
34873         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34874         that have zero or two-and-more spaces between the function name
34875         and the open parenthesis.
34876         (sc_error_message_warn_fatal): Likewise.
34877         (sc_error_message_uppercase): Likewise.
34878         (sc_error_message_period): Likewise.
34879
34880 2010-03-31  Eric Blake  <eblake@redhat.com>
34881
34882         maint.mk: check for [ as well as test
34883         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34884         Based on a libvirt report by Matthias Bolte.
34885
34886         gnumakefile: don't squelch _version output
34887         * top/GNUmakefile (_version): Create one-shot dependency rather
34888         than using $(shell) when version must be regenerated.
34889         (_autoreconf): Run verbosely, by default.
34890
34891         sys_time: avoid compiler warnings
34892         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34893         unconditional, fixing regression from 2010-03-29.
34894         Reported by Simon Josefsson.
34895
34896 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34897
34898         maint.mk: s/_header_without_use/_sc_header_without_use/
34899         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34900         (sc_prohibit_assert_without_use): Use the new name.
34901         (sc_prohibit_close_stream_without_use): Likewise.
34902         (sc_prohibit_getopt_without_use): Likewise.
34903         (sc_prohibit_quotearg_without_use): Likewise.
34904         (sc_prohibit_quote_without_use): Likewise.
34905         (sc_prohibit_long_options_without_use): Likewise.
34906         (sc_prohibit_inttostr_without_use): Likewise.
34907         (sc_prohibit_ignore_value_without_use): Likewise.
34908         (sc_prohibit_error_without_use): Likewise.
34909         (sc_prohibit_xalloc_without_use): Likewise.
34910         (sc_prohibit_hash_without_use): Likewise.
34911         (sc_prohibit_hash_pjw_without_use): Likewise.
34912         (sc_prohibit_safe_read_without_use): Likewise.
34913         (sc_prohibit_argmatch_without_use): Likewise.
34914         (sc_prohibit_canonicalize_without_use): Likewise.
34915         (sc_prohibit_root_dev_ino_without_use): Likewise.
34916         (sc_prohibit_openat_without_use): Likewise.
34917         (sc_prohibit_c_ctype_without_use): Likewise.
34918         (sc_prohibit_signal_without_use): Likewise.
34919         (sc_prohibit_intprops_without_use): Likewise.
34920
34921 2010-03-30  Eric Blake  <eblake@redhat.com>
34922
34923         maint: improve module indicators
34924         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34925         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34926         columns, and avoid extra macro expansion.
34927
34928         fdopendir: work around FreeBSD bug
34929         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34930         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34931         * modules/dirent (Makefile.am): Substitute it.
34932         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34933         declaration.
34934         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34935         fix.
34936         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34937
34938 2010-03-29  Bruno Haible  <bruno@clisp.org>
34939
34940         Emit #pragma system_header after the inclusion guard, not before.
34941         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34942         guard that spans the entire file, not before. This enables an
34943         optimization in GCC's preprocessor.
34944         * lib/ctype.in.h: Likewise.
34945         * lib/dirent.in.h: Likewise.
34946         * lib/errno.in.h: Likewise.
34947         * lib/float.in.h: Likewise.
34948         * lib/getopt.in.h: Likewise.
34949         * lib/iconv.in.h: Likewise.
34950         * lib/langinfo.in.h: Likewise.
34951         * lib/locale.in.h: Likewise.
34952         * lib/math.in.h: Likewise.
34953         * lib/netdb.in.h: Likewise.
34954         * lib/netinet_in.in.h: Likewise.
34955         * lib/pty.in.h: Likewise.
34956         * lib/sched.in.h: Likewise.
34957         * lib/se-selinux.in.h: Likewise.
34958         * lib/search.in.h: Likewise.
34959         * lib/spawn.in.h: Likewise.
34960         * lib/stdarg.in.h: Likewise.
34961         * lib/stdint.in.h: Likewise.
34962         * lib/string.in.h: Likewise.
34963         * lib/strings.in.h: Likewise.
34964         * lib/sys_file.in.h: Likewise.
34965         * lib/sys_ioctl.in.h: Likewise.
34966         * lib/sys_time.in.h: Likewise.
34967         * lib/sys_times.in.h: Likewise.
34968         * lib/sys_utsname.in.h: Likewise.
34969         * lib/sys_wait.in.h: Likewise.
34970         * lib/sysexits.in.h: Likewise.
34971         * lib/wctype.in.h: Likewise.
34972
34973 2010-03-28  James Youngman  <jay@gnu.org>
34974
34975         save-cwd: don't leak a file descriptor when the caller execs.
34976         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34977         saved file descriptor.
34978         * modules/save-cwd (Depends-on): Depend on cloexec.
34979
34980 2010-03-29  Bruno Haible  <bruno@clisp.org>
34981
34982         Remove vestiges of fts-lgpl module.
34983         * lib/fts_.h: Assume GNULIB_FTS is 1.
34984         * lib/fts.c: Likewise.
34985         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34986
34987 2010-03-28  Bruno Haible  <bruno@clisp.org>
34988
34989         Fix definition of tests witness macro.
34990         * gnulib-tool (func_import): Fix definition of witness macro.
34991
34992 2010-03-28  Bruno Haible  <bruno@clisp.org>
34993
34994         Fix ioctl's protoype on glibc systems.
34995         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34996         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34997         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34998         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34999         signature. If not, arrange to replace the ioctl function.
35000         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35001         REPLACE_IOCTL.
35002         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35003         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35004         Reported by Ludovic Courtès <ludo@gnu.org>.
35005
35006 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35007
35008         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35009         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35010         made it so grep -r --include=GLOB* ... did not work.
35011
35012 2010-03-26  Jim Meyering  <meyering@redhat.com>
35013             Eric Blake  <eblake@redhat.com>
35014
35015         maint.mk: prohibit use of test's -o and -a operators
35016         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35017
35018 2010-03-28  Bruno Haible  <bruno@clisp.org>
35019
35020         Remove unused GNULIB_XYZ macro definitions.
35021         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35022         invocation.
35023
35024 2010-03-28  Bruno Haible  <bruno@clisp.org>
35025
35026         Mark privileged tests modules.
35027         * modules/idpriv-drop-tests (Status): New section.
35028         * modules/idpriv-droptemp-tests (Status): New section.
35029
35030 2010-03-28  Bruno Haible  <bruno@clisp.org>
35031
35032         Split C++ tests into separate tests modules.
35033         * modules/dirent-c++-tests: New file, extracted from
35034         modules/dirent-tests.
35035         * modules/dirent-tests: Depend on it.
35036         * modules/fcntl-h-c++-tests: New file, extracted from
35037         modules/fcntl-h-tests.
35038         * modules/fcntl-h-tests: Depend on it.
35039         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35040         * modules/glob-tests: Depend on it.
35041         * modules/iconv-h-c++-tests: New file, extracted from
35042         modules/iconv-h-tests.
35043         * modules/iconv-h-tests: Depend on it.
35044         * modules/langinfo-c++-tests: New file, extracted from
35045         modules/langinfo-tests.
35046         * modules/langinfo-tests: Depend on it.
35047         * modules/locale-c++-tests: New file, extracted from
35048         modules/locale-tests.
35049         * modules/locale-tests: Depend on it.
35050         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35051         * modules/math-tests: Depend on it.
35052         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35053         * modules/pty-tests: Depend on it.
35054         * modules/search-c++-tests: New file, extracted from
35055         modules/search-tests.
35056         * modules/search-tests: Depend on it.
35057         * modules/signal-c++-tests: New file, extracted from
35058         modules/signal-tests.
35059         * modules/signal-tests: Depend on it.
35060         * modules/spawn-c++-tests: New file, extracted from
35061         modules/spawn-tests.
35062         * modules/spawn-tests: Depend on it.
35063         * modules/stdio-c++-tests: New file, extracted from
35064         modules/stdio-tests.
35065         * modules/stdio-tests: Depend on it.
35066         * modules/stdlib-c++-tests: New file, extracted from
35067         modules/stdlib-tests.
35068         * modules/stdlib-tests: Depend on it.
35069         * modules/string-c++-tests: New file, extracted from
35070         modules/string-tests.
35071         * modules/string-tests: Depend on it.
35072         * modules/sys_ioctl-c++-tests: New file, extracted from
35073         modules/sys_ioctl-tests.
35074         * modules/sys_ioctl-tests: Depend on it.
35075         * modules/sys_select-c++-tests: New file, extracted from
35076         modules/sys_select-tests.
35077         * modules/sys_select-tests: Depend on it.
35078         * modules/sys_socket-c++-tests: New file, extracted from
35079         modules/sys_socket-tests.
35080         * modules/sys_socket-tests: Depend on it.
35081         * modules/sys_stat-c++-tests: New file, extracted from
35082         modules/sys_stat-tests.
35083         * modules/sys_stat-tests: Depend on it.
35084         * modules/sys_time-c++-tests: New file, extracted from
35085         modules/sys_time-tests.
35086         * modules/sys_time-tests: Depend on it.
35087         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35088         * modules/time-tests: Depend on it.
35089         * modules/unistd-c++-tests: New file, extracted from
35090         modules/unistd-tests.
35091         * modules/unistd-tests: Depend on it.
35092         * modules/wchar-c++-tests: New file, extracted from
35093         modules/wchar-tests.
35094         * modules/wchar-tests: Depend on it.
35095         * modules/wctype-c++-tests: New file, extracted from
35096         modules/wctype-tests.
35097         * modules/wctype-tests: Depend on it.
35098         Reported by Simon Josefsson.
35099
35100 2010-03-28  Bruno Haible  <bruno@clisp.org>
35101
35102         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35103         * gnulib-tool (func_exists_module): New function, extracted from
35104         func_verify_module.
35105         (func_verify_module): Use it.
35106         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35107         'foo' only if 'foo' exists.
35108         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35109         module.
35110
35111 2010-03-28  Bruno Haible  <bruno@clisp.org>
35112
35113         gnulib-tool: Add support for special categories of tests.
35114         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35115         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35116         (func_usage): Document them.
35117         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35118         inc_unportable_tests, inc_all_tests): New variables.
35119         (func_acceptable): Consider these variables.
35120         (func_modules_transitive_closure): Make it work when the 'Status' field
35121         consists of multiple words.
35122         (func_import): Store and restore the values of inc_cxx_tests,
35123         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35124         inc_all_tests in gnulib-comp.m4.
35125         (func_create_testdir): Set inc_all_tests to true.
35126         * doc/gnulib.texi (Extra tests modules): New section.
35127         Suggested by Jim Meyering.
35128
35129 2010-03-28  Bruno Haible  <bruno@clisp.org>
35130
35131         ansi-c++-opt: Allow turning off the C++ build by default.
35132         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35133         gl_CXX_CHOICE_DEFAULT_NO is defined.
35134         Requested by Eric Blake.
35135
35136 2010-03-28  Bruno Haible  <bruno@clisp.org>
35137
35138         unistd: Avoid #define replacements in C++ mode.
35139         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35140         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35141         setsockopt, shutdown, select): In C++, attach a warning to the function
35142         if possible, rather than #defining the symbol to a dysfunctional alias.
35143         Reported by John W. Eaton <jwe@gnu.org>.
35144
35145 2010-03-28  Bruno Haible  <bruno@clisp.org>
35146
35147         Fix link errors on mingw.
35148         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35149         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35150         $(LIBSOCKET).
35151         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35152         $(LIBSOCKET).
35153
35154 2010-03-28  Bruno Haible  <bruno@clisp.org>
35155             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35156
35157         lib-ignore: Determine different options for different compilers.
35158         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35159         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35160         Add comments.
35161         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35162         * NEWS: Mention the change.
35163
35164 2010-03-27  Bruno Haible  <bruno@clisp.org>
35165
35166         Remove unused GNULIB_XYZ macro definitions.
35167         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35168         * modules/fseek (configure.ac): Likewise.
35169         * modules/ioctl (configure.ac): Likewise.
35170         * modules/open (configure.ac): Likewise.
35171         * modules/stdlib-safer (configure.ac): Likewise.
35172
35173 2010-03-27  Bruno Haible  <bruno@clisp.org>
35174
35175         Add a remark about certain modules.
35176         * modules/malloc (Comment): New section.
35177         * modules/realloc (Comment): Likewise.
35178         * modules/sigpipe (Comment): Likewise.
35179
35180 2010-03-27  Bruno Haible  <bruno@clisp.org>
35181
35182         Resolve conflict between the two kinds of module indicators.
35183         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35184         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35185         * modules/canonicalize (configure.ac): Invoke
35186         gl_MODULE_INDICATOR_FOR_TESTS.
35187         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35188         GNULIB_XYZ.
35189         * tests/test-dirent-c++.cc: Likewise.
35190         * tests/test-dirent-safer.c: Likewise.
35191         * tests/test-dup2.c: Likewise.
35192         * tests/test-fchdir.c: Likewise.
35193         * tests/test-fcntl-h-c++.cc: Likewise.
35194         * tests/test-getopt.c: Likewise.
35195         * tests/test-getopt.h: Likewise.
35196         * tests/test-langinfo-c++.cc: Likewise.
35197         * tests/test-locale-c++.cc: Likewise.
35198         * tests/test-math-c++.cc: Likewise.
35199         * tests/test-pty-c++.cc: Likewise.
35200         * tests/test-search-c++.cc: Likewise.
35201         * tests/test-signal-c++.cc: Likewise.
35202         * tests/test-spawn-c++.cc: Likewise.
35203         * tests/test-stdio-c++.cc: Likewise.
35204         * tests/test-stdlib-c++.cc: Likewise.
35205         * tests/test-string-c++.cc: Likewise.
35206         * tests/test-sys_ioctl-c++.cc: Likewise.
35207         * tests/test-sys_select-c++.cc: Likewise.
35208         * tests/test-sys_socket-c++.cc: Likewise.
35209         * tests/test-sys_stat-c++.cc: Likewise.
35210         * tests/test-sys_time-c++.cc: Likewise.
35211         * tests/test-time-c++.cc: Likewise.
35212         * tests/test-unistd-c++.cc: Likewise.
35213         * tests/test-wchar-c++.cc: Likewise.
35214         * tests/uninorm/test-u8-nfc.c: Likewise.
35215         * tests/uninorm/test-u8-nfd.c: Likewise.
35216         * tests/uninorm/test-u8-nfkc.c: Likewise.
35217         * tests/uninorm/test-u8-nfkd.c: Likewise.
35218         * tests/uninorm/test-u16-nfc.c: Likewise.
35219         * tests/uninorm/test-u16-nfd.c: Likewise.
35220         * tests/uninorm/test-u16-nfkc.c: Likewise.
35221         * tests/uninorm/test-u16-nfkd.c: Likewise.
35222         * tests/uninorm/test-u32-nfc.c: Likewise.
35223         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35224         * tests/uninorm/test-u32-nfd.c: Likewise.
35225         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35226         * tests/uninorm/test-u32-nfkc.c: Likewise.
35227         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35228         * tests/uninorm/test-u32-nfkd.c: Likewise.
35229         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35230         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35231
35232 2010-03-27  Bruno Haible  <bruno@clisp.org>
35233
35234         Distinguish two kinds of module indicators.
35235         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35236         gl_MODULE_INDICATOR.
35237         (gl_MODULE_INDICATOR): New macro.
35238         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35239         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35240         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35241         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35242         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35243         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35244         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35245         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35246         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35247         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35248         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35249         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35251         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35252         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35253         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35254         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35255         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35256         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35257         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35258         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35259         * modules/cloexec (configure.ac): Likewise.
35260         * modules/getopt-gnu (configure.ac): Likewise.
35261         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35262         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35263         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35264         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35265
35266 2010-03-27  Bruno Haible  <bruno@clisp.org>
35267
35268         New module description field 'Comment'.
35269         * gnulib-tool: New option --extract-comment.
35270         (func_usage): Document it.
35271         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35272         (func_get_comment): New function.
35273         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35274
35275 2010-03-27  Bruno Haible  <bruno@clisp.org>
35276
35277         Addendum to 2010-02-07 commit.
35278         * gnulib-tool (func_usage): Document --extract-applicability option.
35279
35280 2010-03-27  Bruno Haible  <bruno@clisp.org>
35281
35282         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35283         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35284         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35285         rather than link errors.
35286
35287 2010-03-27  Bruno Haible  <bruno@clisp.org>
35288
35289         Avoid side effects from tests-related modules on the compilation of lib.
35290         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35291         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35292         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35293         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35294         macro.
35295         (func_import): Define a witness macro. Assign it a value that depends
35296         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35297         tests-related modules.
35298         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35299         Reported by Jim Meyering.
35300
35301 2010-03-27  Bruno Haible  <bruno@clisp.org>
35302
35303         Factorize common .m4 code.
35304         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35305         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35306         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35307         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35308         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35309         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35310         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35311         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35312         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35313         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35314         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35315         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35316         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35317         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35318         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35319         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35320         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35321         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35323         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35324         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35325         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35326         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35327         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35328         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35329         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35330         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35332         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35333         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35335         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35336
35337 2010-03-27  Bruno Haible  <bruno@clisp.org>
35338
35339         Fix a compilation error on Cygwin with g++ >= 4.3.
35340         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35341         if it is undefined or if we alias it to chmod.
35342         (lstat): Don't warn about the use of this function if it is undefined
35343         or if we alias it to stat.
35344         Reported by Simon Josefsson.
35345
35346 2010-03-27  Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35349         * modules/getlogin (configure.ac): Update.
35350
35351         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35352         * modules/getlogin_r (configure.ac): Update.
35353
35354         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35355         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35356         * modules/inet_ntop (configure.ac): Update.
35357
35358         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35359         * modules/inet_pton (configure.ac): Update.
35360
35361         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35362         * modules/mbslen (configure.ac): Update.
35363
35364         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35365         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35366         * modules/forkpty (configure.ac): Update.
35367         * modules/openpty (configure.ac): Update.
35368
35369 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35370
35371         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35372         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35373
35374 2010-03-25  Eric Blake  <eblake@redhat.com>
35375
35376         maint: use pragma consistently across replacement headers
35377         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35378         * lib/dirent.in.h (system_header): Likewise.
35379         * lib/errno.in.h (system_header): Likewise.
35380         * lib/float.in.h (system_header): Likewise.
35381         * lib/getopt.in.h (system_header): Likewise.
35382         * lib/iconv.in.h (system_header): Likewise.
35383         * lib/inttypes.in.h (system_header): Likewise.
35384         * lib/langinfo.in.h (system_header): Likewise.
35385         * lib/locale.in.h (system_header): Likewise.
35386         * lib/math.in.h (system_header): Likewise.
35387         * lib/netdb.in.h (system_header): Likewise.
35388         * lib/netinet_in.in.h (system_header): Likewise.
35389         * lib/pty.in.h (system_header): Likewise.
35390         * lib/sched.in.h (system_header): Likewise.
35391         * lib/se-selinux.in.h (system_header): Likewise.
35392         * lib/search.in.h (system_header): Likewise.
35393         * lib/spawn.in.h (system_header): Likewise.
35394         * lib/stdarg.in.h (system_header): Likewise.
35395         * lib/stdint.in.h (system_header): Likewise.
35396         * lib/string.in.h (system_header): Likewise.
35397         * lib/strings.in.h (system_header): Likewise.
35398         * lib/sys_file.in.h (system_header): Likewise.
35399         * lib/sys_ioctl.in.h (system_header): Likewise.
35400         * lib/sys_socket.in.h (system_header): Likewise.
35401         * lib/sys_times.in.h (system_header): Likewise.
35402         * lib/sys_utsname.in.h (system_header): Likewise.
35403         * lib/sys_wait.in.h (system_header): Likewise.
35404         * lib/sysexits.in.h (system_header): Likewise.
35405         * lib/unistd.in.h (system_header): Likewise.
35406         * lib/wctype.in.h (system_header): Likewise.
35407
35408         arpa/inet: fix mingw compilation warning
35409         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35410         Reported by Matthew Bolte.
35411
35412 2010-03-25  Bruno Haible  <bruno@clisp.org>
35413
35414         Avoid collision between gnulib wrapper and libintl wrapper.
35415         * lib/printf.c (printf): Don't define if a printf wrapper is already
35416         defined in intl/printf.c.
35417         Reported by Michel Boaventura <michel@michelboaventura.com>.
35418
35419 2010-03-25  Bruno Haible  <bruno@clisp.org>
35420
35421         Use ANSI C.
35422         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35423
35424 2010-03-25  Bruno Haible  <bruno@clisp.org>
35425
35426         Minor formatting changes.
35427         * lib/acosl.c: Insert space before function argument list.
35428         * lib/argz.c: Likewise.
35429         * lib/asinl.c: Likewise.
35430         * lib/expl.c: Likewise.
35431         * lib/gen-uni-tables.c: Likewise.
35432         * lib/gettext.h: Likewise.
35433         * lib/glthread/lock.h: Likewise.
35434         * lib/tanl.c: Likewise.
35435         * lib/uniname/uniname.c: Likewise.
35436         * tests/test-idpriv-drop.c: Likewise.
35437         * tests/test-idpriv-droptemp.c: Likewise.
35438         * tests/test-lock.c: Likewise.
35439         * tests/test-tls.c: Likewise.
35440         * lib/argp-help.c: Insert space before function-like macro argument
35441         list.
35442         * lib/memcmp.c: Likewise.
35443         * tests/test-base64.c: Likewise.
35444         * lib/localename.c: Insert space before sizeof's argument list.
35445         * lib/safe-alloc.h: Likewise.
35446         * lib/file-set.h: Insert space before macro argument list.
35447         * tests/test-argp.c: Likewise.
35448         * lib/argp-namefrob.h: Insert space before function parameter list.
35449         * lib/getaddrinfo.c: Likewise.
35450         * lib/netdb.in.h: Likewise.
35451         * lib/parse-duration.h: Likewise.
35452         * lib/parse-duration.c: Likewise.
35453         * lib/poll.c: Likewise.
35454         * lib/select.c: Likewise.
35455         * lib/trim.h: Likewise.
35456         * tests/test-usleep.c: Likewise.
35457         * lib/ldexpl.c: Insert space before function parameter list and before
35458         function argument list.
35459         * lib/logl.c: Likewise.
35460         * lib/sqrtl.c: Likewise.
35461         * lib/trim.c: Likewise.
35462         * lib/cosl.c: Use GNU style indentation. Insert space before function
35463         argument list.
35464         * lib/sinl.c: Likewise.
35465         * lib/tsearch.c: Insert space after 'for'.
35466         Reported by Jim Meyering.
35467
35468 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35469
35470         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35471         config header before grepping, as it's not present before
35472         autoreconf/configure are run.  Reported by Simon Josefsson.
35473
35474 2010-03-23  Bruno Haible  <bruno@clisp.org>
35475
35476         pt_chown: Make it work with automake < 1.11.
35477         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35478         Reported by Simon Josefsson.
35479
35480 2010-03-23  Bruno Haible  <bruno@clisp.org>
35481
35482         pt_chown: Don't depend on GPLed modules.
35483         * lib/pt_chown.c: Don't include idpriv.h.
35484         (main): Don't drop privileges.
35485         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35486         Reported by Simon Josefsson.
35487
35488 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35489
35490         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35491         suggestions from karl@freefriends.org (Karl Berry).
35492
35493 2010-03-22  Eric Blake  <eblake@redhat.com>
35494
35495         gethostname: further tweaks
35496         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35497         are overriding gethostname.
35498         Suggested by Bruno Haible.
35499
35500 2010-03-21  Bruno Haible  <bruno@clisp.org>
35501
35502         Fix comments.
35503         * lib/forkpty.c (rpl_forkpty): Fix comment.
35504         * lib/openpty.c (rpl_openpty): Likewise.
35505         Reported by Eric Blake.
35506
35507 2010-03-22  Eric Blake  <eblake@redhat.com>
35508
35509         gethostname: fix build on mingw
35510         * lib/unistd.in.h (includes): Work around fact that mingw
35511         <winsock2.h> re-includes <unistd.h>, by avoiding any
35512         redeclarations if we are being included by <winsock2.h>.
35513         Reported by Matthias Bolte.
35514
35515 2010-03-21  Bruno Haible  <bruno@clisp.org>
35516
35517         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35518         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35519         modifications.
35520         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35521         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35522         provide the replacement.
35523         * modules/forkpty (Depends-on): Add openpty, login_tty.
35524         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35525         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35526         * doc/glibc-functions/forkpty.texi: More supported platforms.
35527         * config/srclist.txt: Add forkpty.c (commented).
35528
35529 2010-03-21  Bruno Haible  <bruno@clisp.org>
35530
35531         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35532         (Makefile.am): Verify that PTY_LIB is defined.
35533
35534         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35535
35536 2010-03-21  Bruno Haible  <bruno@clisp.org>
35537
35538         Tests for module 'login_tty'.
35539         * modules/login_tty-tests: New file.
35540         * tests/test-login_tty.c: New file.
35541
35542         New module 'login_tty'.
35543         * lib/login_tty.c: New file.
35544         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35545         * modules/login_tty: New file.
35546         * doc/glibc-functions/login_tty.texi: Mention the new module.
35547
35548 2010-03-21  Bruno Haible  <bruno@clisp.org>
35549
35550         login_tty: Documentation.
35551         * doc/glibc-functions/login_tty.texi: New file.
35552         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35553
35554 2010-03-21  Bruno Haible  <bruno@clisp.org>
35555
35556         pty: Consistent macro naming.
35557         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35558         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35559         * modules/pty (configure.ac): Update.
35560
35561 2010-03-21  Bruno Haible  <bruno@clisp.org>
35562
35563         Tests for openpty: Make stricter.
35564         * tests/test-openpty.c (main): Add test of canonical processing and
35565         erase.
35566         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35567
35568         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35569         * lib/openpty.c (openpty): New replacement function.
35570         * lib/pty.in.h: Include <termios.h>.
35571         (openpty): Update declaration. Add comments.
35572         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35573         is not declared, arrange to provide the replacement. Check for _getpty
35574         and posix_openpt.
35575         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35576         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35577         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35578         * modules/pty-tests (test_pty_c___LDADD): New variable.
35579         * doc/glibc-functions/openpty.texi: More supported platforms.
35580
35581 2010-03-21  Bruno Haible  <bruno@clisp.org>
35582
35583         setenv: Tweaks.
35584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35585         the test program.
35586         * doc/posix-functions/setenv.texi: Update platforms list.
35587
35588 2010-03-21  Bruno Haible  <bruno@clisp.org>
35589
35590         New module 'unlockpt'.
35591         * lib/unlockpt.c: New file, from glibc with modifications.
35592         * m4/unlockpt.m4: New file.
35593         * modules/unlockpt: New file.
35594         * lib/stdlib.in.h (unlockpt): New declaration.
35595         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35596         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35597         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35598         HAVE_UNLOCKPT.
35599         * doc/posix-functions/unlockpt.texi: Mention the new module.
35600         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35601         * config/srclist.txt: Add unlockpt.c (commented).
35602
35603 2010-03-21  Jim Meyering  <meyering@redhat.com>
35604
35605         maint.mk: prohibit inclusion of "intprops.h" without use
35606         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35607
35608 2010-03-21  Bruno Haible  <bruno@clisp.org>
35609
35610         New module 'grantpt'.
35611         * lib/grantpt.c: New file, from glibc with modifications.
35612         * m4/grantpt.m4: New file.
35613         * modules/grantpt: New file.
35614         * lib/stdlib.in.h (grantpt): New declaration.
35615         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35616         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35617         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35618         HAVE_GRANTPT.
35619         * doc/posix-functions/grantpt.texi: Mention the new module.
35620         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35621         * config/srclist.txt: Add grantpt.c (commented).
35622
35623 2010-03-21  Bruno Haible  <bruno@clisp.org>
35624
35625         New module 'pt_chown'.
35626         * lib/pt_chown.c: New file, from glibc with modifications.
35627         * lib/pty-private.h: New file, from glibc with modifications.
35628         * modules/pt_chown: New file.
35629         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35630
35631 2010-03-21  Bruno Haible  <bruno@clisp.org>
35632
35633         Tests for module 'ptsname'.
35634         * modules/ptsname-tests: New file.
35635         * tests/test-ptsname.c: New file.
35636
35637         New module 'ptsname'.
35638         * lib/ptsname.c: New file, from glibc with modifications.
35639         * m4/ptsname.m4: New file.
35640         * modules/ptsname: New file.
35641         * lib/stdlib.in.h (ptsname): New declaration.
35642         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35644         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35645         HAVE_PTSNAME.
35646         * doc/posix-functions/ptsname.texi: Mention the new module.
35647         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35648         * config/srclist.txt: Add ptsname.c (commented).
35649
35650 2010-03-21  Bruno Haible  <bruno@clisp.org>
35651
35652         Tests for module 'ttyname_r'.
35653         * modules/ttyname_r-tests: New file.
35654         * tests/test-ttyname_r.c: New file.
35655
35656         New module 'ttyname_r'.
35657         * lib/ttyname_r.c: New file.
35658         * m4/ttyname_r.m4: New file.
35659         * modules/ttyname_r: New file.
35660         * lib/unistd.in.h (ttyname_r): New declaration.
35661         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35662         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35663         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35664         HAVE_TTYNAME_R.
35665         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35666         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35667
35668 2010-03-20  Bruno Haible  <bruno@clisp.org>
35669
35670         signal: Undefine macro definitions in C++ mode.
35671         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35672         sigfillset): Undefine macro definitions from the system header in C++
35673         mode.
35674         Reported by John W. Eaton <jwe@gnu.org>.
35675
35676 2010-03-20  Bruno Haible  <bruno@clisp.org>
35677
35678         Ensure no #include statements inside extern "C" { ... }.
35679         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35680         contain #include statements.
35681         * lib/time.in.h: Likewise.
35682
35683 2010-03-20  Bruno Haible  <bruno@clisp.org>
35684
35685         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35686         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35687         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35688         Reported by John W. Eaton <jwe@gnu.org>.
35689
35690 2010-03-20  Bruno Haible  <bruno@clisp.org>
35691
35692         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35693         Reported by Jim Meyering.
35694
35695 2010-03-20  Bruno Haible  <bruno@clisp.org>
35696
35697         pipe: Set errno upon failure.
35698         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35699         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35700         errno value in error message.
35701
35702 2010-03-20  Bruno Haible  <bruno@clisp.org>
35703             Jim Meyering  <meyering@redhat.com>
35704
35705         lchown: Avoid "unused variable" warning.
35706         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35707
35708 2010-03-20  Bruno Haible  <bruno@clisp.org>
35709
35710         Work around unlink() bug on MacOS X 10.5.6.
35711         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35712         attempting to unlink a parent directory.
35713         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35714         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35715         activate for the replacement function.
35716         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35717
35718 2010-03-20  Bruno Haible  <bruno@clisp.org>
35719
35720         Fix link errors on Solaris 8.
35721         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35722         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35723
35724 2010-03-19  Jim Meyering  <meyering@redhat.com>
35725
35726         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35727         The _LIBC implementation of build_range_exp correctly honors the
35728         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35729         However, the non-_LIBC implementation would ignore that syntax-bit
35730         flag and return REG_ERANGE unconditionally.
35731         This change makes it honor that flag.
35732         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35733         Make two pointer parameters "const".
35734         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35735         (parse_bracket_exp): Update caller.
35736
35737         regex.m4: correct the reversed range endpoint ([b-a]) test
35738         * m4/regex.m4: When requiring that [b-a] evoke failure,
35739         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35740         test pass once again for x86-based systems.
35741
35742 2010-03-19  Bruno Haible  <bruno@clisp.org>
35743
35744         scandir: Fix link error on Solaris 8.
35745         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35746         macros.
35747
35748 2010-03-19  Bruno Haible  <bruno@clisp.org>
35749
35750         getusershell: Fix documentation.
35751         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35752         module.
35753         * doc/glibc-functions/setusershell.texi: Likewise.
35754
35755         getusershell: Provide declaration, missing on Solaris 9.
35756         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35757         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35758         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35759         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35761         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35762         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35763         HAVE_GETUSERSHELL.
35764         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35765
35766 2010-03-19  Bruno Haible  <bruno@clisp.org>
35767
35768         wctype: Provide iswblank function.
35769         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35770         exists and is fine.
35771         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35772         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35773         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35774         * doc/posix-functions/iswblank.texi: Update.
35775
35776 2010-03-19  Bruno Haible  <bruno@clisp.org>
35777
35778         Tests of module 'pty' in C++ mode.
35779         * modules/pty-tests: New file.
35780         * tests/test-pty-c++.cc: New file.
35781         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35782
35783 2010-03-19  Eric Blake  <eblake@redhat.com>
35784
35785         logb: fix documentation
35786         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35787         1.5 declaration bug.
35788
35789         forkpty, openpty: prefer glibc's const-safe prototype
35790         * lib/forkpty.c (rpl_forkpty): New file.
35791         * lib/openpty.c (rpl_openpty): Likewise.
35792         * modules/forkpty (Files): Distribute it.
35793         * modules/openpty (Files): Likewise.
35794         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35795         check...
35796         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35797         replacement for for non-const BSD signature.
35798         * modules/pty (Makefile.am): Substitute witnesses.
35799         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35800         * tests/test-forkpty.c: Update signature check.
35801         * tests/test-openpty.c: Likewise.
35802         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35803         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35804
35805         forkpty, openpty: split functions into new modules
35806         * modules/pty (Makefile.am): Substitute new witnesses.
35807         (Libraries): Move library detection...
35808         * modules/forkpty: ...into new module.
35809         * modules/openpty: Another new module.
35810         * modules/pty-tests: Rename and split...
35811         * modules/forkpty-tests: ...to this...
35812         * modules/openpty-tests: ...and this.
35813         * tests/test-pty.c: Rename and split...
35814         * tests/test-forkpty.c: ...to this...
35815         * tests/test-openpty.c: ...and this.
35816         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35817         (gl_PTY): Split library searching...
35818         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35819         (gl_FORKPTY, gl_OPENPTY): New macros.
35820         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35821         * NEWS: Mention the split.
35822         * MODULES.html.sh (Misc): Document the modules.
35823         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35824         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35825
35826         pty: improve replacement header
35827         * lib/pty.in.h: New file.
35828         * modules/pty (Files): Ship it.
35829         (Makefile.am): Always build replacement.
35830         * m4/pty.m4: Rename...
35831         * m4/pty_h.m4: ...to this.
35832         (gl_PTY): Modernize setting of witness macros; update check of
35833         forkpty to take proper advantage of cache.
35834         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35835
35836         getopt: avoid compiler warning
35837         * lib/getopt.c (attribute_hidden): Remove unused macro.
35838
35839 2010-03-18  Bruno Haible  <bruno@clisp.org>
35840
35841         Fix link errors on Solaris 8.
35842         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35843         * modules/search-tests (test_search_c___LDADD): Likewise.
35844         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35845         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35846         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35847         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35848         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35849         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35850         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35851
35852 2010-03-18  Bruno Haible  <bruno@clisp.org>
35853
35854         Fix bug introduced on 2010-03-14.
35855         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35856         (gl_SPAWN_H): Require it.
35857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35858         Reported by Simon Josefsson.
35859
35860 2010-03-18  Bruno Haible  <bruno@clisp.org>
35861
35862         Fix typo introduced on 2009-12-31.
35863         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35864         posix_spawn_file_actions_adddup2.
35865
35866 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35867         and Eric Blake  <eblake@redhat.com>
35868
35869         test-vc-list-files-git: make more robust
35870         * tests/test-vc-list-files-git.sh: Unset problematic environment
35871         variables.  Chain commands together.
35872
35873 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35874
35875         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35876         `AC_CHECK_DECL' invocation.
35877
35878 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35879
35880         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35881         appears before executable statements. Suggested by Petr Sumbera
35882         <Petr.Sumbera@Sun.COM>.
35883
35884 2010-03-14  Bruno Haible  <bruno@clisp.org>
35885
35886         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35887         portability problems. Instead use a simpler test.
35888         (main): Check that invalid arguments are rejected only on Linux.
35889
35890 2010-03-14  Bruno Haible  <bruno@clisp.org>
35891
35892         Fix bug introduced on 2009-12-31.
35893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35894         gl_PREREQ_SYS_H_WINSOCK2 always.
35895         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35896         SYS_SOCKET_H variable.
35897         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35898         Update comments.
35899         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35901         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35902         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35903         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35904
35905 2010-03-14  Bruno Haible  <bruno@clisp.org>
35906
35907         Fix values returned by sinl, cosl.
35908         * lib/trigl.h: Add specification comments.
35909         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35910         that combines the values from the precomputed table with the values of
35911         the Chebyshev polynomials.
35912
35913 2010-03-14  Bruno Haible  <bruno@clisp.org>
35914
35915         Fix compilation error when modules 'posix_spawn[p]' are not used.
35916         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35918
35919 2010-03-14  Bruno Haible  <bruno@clisp.org>
35920
35921         Fix compilation error on mingw when module 'time_r' is not used.
35922         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35923         is 1.
35924         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35925         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35926         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35927         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35928
35929 2010-03-14  Bruno Haible  <bruno@clisp.org>
35930
35931         Fix compilation error with Sun C.
35932         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35933         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35934         instead of GCC specific ULONG_LONG_MAX.
35935         * lib/xstrtoll.c: Likewise.
35936         * lib/xstrtoull.c: Likewise.
35937
35938 2010-03-13  Bruno Haible  <bruno@clisp.org>
35939
35940         Allow the user to disable C++ code and tests.
35941         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35942         (gl_PROG_ANSI_CXX): Require it.
35943
35944 2010-03-13  Bruno Haible  <bruno@clisp.org>
35945
35946         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35947         cases.
35948
35949 2010-03-13  Bruno Haible  <bruno@clisp.org>
35950
35951         Test that gnulib does not break the standard C++ headers.
35952         * tests/test-locale-c++2.cc: New file.
35953         * modules/locale-tests (Files): Add it.
35954         (Makefile.am): Compile it for test-locale-c++.
35955         * tests/test-math-c++2.cc: New file.
35956         * modules/math-tests (Files): Add it.
35957         (Makefile.am): Compile it for test-math-c++.
35958         * tests/test-signal-c++2.cc: New file.
35959         * modules/signal-tests (Files): Add it.
35960         (Makefile.am): Compile it for test-signal-c++.
35961         * tests/test-stdio-c++2.cc: New file.
35962         * modules/stdio-tests (Files): Add it.
35963         (Makefile.am): Compile it for test-stdio-c++.
35964         * tests/test-stdlib-c++2.cc: New file.
35965         * modules/stdlib-tests (Files): Add it.
35966         (Makefile.am): Compile it for test-stdlib-c++.
35967         * tests/test-string-c++2.cc: New file.
35968         * modules/string-tests (Files): Add it.
35969         (Makefile.am): Compile it for test-string-c++.
35970         * tests/test-time-c++2.cc: New file.
35971         * modules/time-tests (Files): Add it.
35972         (Makefile.am): Compile it for test-time-c++.
35973         Reported by John W. Eaton <jwe@gnu.org>.
35974
35975 2010-03-13  Bruno Haible  <bruno@clisp.org>
35976
35977         * gnulib-tool (func_usage): Clarify which options are available for
35978         --create-testdir and --create-megatestdir.
35979
35980 2010-03-13  Bruno Haible  <bruno@clisp.org>
35981
35982         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35983         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35984         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35985         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35986         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35987         when appropriate.
35988         Reported by Jim Meyering.
35989
35990 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35991
35992         * gnulib-tool (func_import): Explain origin of code.
35993
35994 2010-03-12  Bruno Haible  <bruno@clisp.org>
35995
35996         Fix problem with automake's definition of CXXLINK.
35997         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35998         Reported by Simon Josefsson and Ludovic Courtès.
35999
36000 2010-03-12  Bruno Haible  <bruno@clisp.org>
36001
36002         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36003         stable releases.
36004
36005 2010-03-11  Bruno Haible  <bruno@clisp.org>
36006
36007         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36008         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36009         whether the system provides one variant or multiple variants of the
36010         function.
36011         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36012         C++ compilers.
36013         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36014         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36015         Reported by Jim Meyering.
36016
36017 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36018
36019         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36020
36021 2010-03-08  Bruno Haible  <bruno@clisp.org>
36022
36023         gnulib-tool: Add support for --libtool in --create-testdir.
36024         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36025         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36026
36027 2010-03-08  Eric Blake  <eblake@redhat.com>
36028
36029         gnulib-tool.texi: mention possibility of git submodule
36030         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36031         submodules.
36032         * doc/.gitignore: Ignore another generated file.
36033
36034 2010-03-08  Karl Berry  <karl@gnu.org>
36035
36036         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36037         of committing gnulib files while skipping others.
36038
36039 2010-03-07  Bruno Haible  <bruno@clisp.org>
36040
36041         Tests of module 'wctype' in C++ mode.
36042         * tests/test-wctype-c++.cc: New file.
36043         * modules/wctype-tests (Files): Add it and tests/signature.h.
36044         (Depends-on): Add ansi-c++-opt.
36045         (Makefile.am): Arrange to compile and run test-wctype-c++.
36046
36047         Tests of module 'wchar' in C++ mode.
36048         * tests/test-wchar-c++.cc: New file.
36049         * modules/wchar-tests (Files): Add it and tests/signature.h.
36050         (Depends-on): Add ansi-c++-opt.
36051         (Makefile.am): Arrange to compile and run test-wchar-c++.
36052         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36053         gl_MODULE_INDICATOR.
36054
36055         Tests of module 'unistd' in C++ mode.
36056         * tests/test-unistd-c++.cc: New file.
36057         * modules/unistd-tests (Files): Add it and tests/signature.h.
36058         (Depends-on): Add ansi-c++-opt.
36059         (Makefile.am): Arrange to compile and run test-unistd-c++.
36060         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36061         gl_MODULE_INDICATOR.
36062
36063         Tests of module 'time' in C++ mode.
36064         * tests/test-time-c++.cc: New file.
36065         * modules/time-tests (Files): Add it and tests/signature.h.
36066         (Depends-on): Add ansi-c++-opt.
36067         (Makefile.am): Arrange to compile and run test-time-c++.
36068         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36069
36070         Tests of module 'sys_time' in C++ mode.
36071         * tests/test-sys_time-c++.cc: New file.
36072         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36073         (Depends-on): Add ansi-c++-opt.
36074         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36075         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36076         gl_MODULE_INDICATOR.
36077
36078         Tests of module 'sys_stat' in C++ mode.
36079         * tests/test-sys_stat-c++.cc: New file.
36080         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36081         (Depends-on): Add ansi-c++-opt.
36082         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36083         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36084         gl_MODULE_INDICATOR.
36085
36086         Tests of module 'sys_socket' in C++ mode.
36087         * tests/test-sys_socket-c++.cc: New file.
36088         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36089         (Depends-on): Add ansi-c++-opt.
36090         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36091         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36092         gl_MODULE_INDICATOR.
36093
36094         Tests of module 'sys_select' in C++ mode.
36095         * tests/test-sys_select-c++.cc: New file.
36096         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36097         (Depends-on): Add ansi-c++-opt.
36098         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36099         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36100         gl_MODULE_INDICATOR.
36101
36102         Tests of module 'sys_ioctl' in C++ mode.
36103         * tests/test-sys_ioctl-c++.cc: New file.
36104         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36105         (Depends-on): Add ansi-c++-opt.
36106         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36107         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36108         gl_MODULE_INDICATOR.
36109
36110         Tests of module 'string' in C++ mode.
36111         * tests/test-string-c++.cc: New file.
36112         * modules/string-tests (Files): Add it and tests/signature.h.
36113         (Depends-on): Add ansi-c++-opt.
36114         (Makefile.am): Arrange to compile and run test-string-c++.
36115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36116         gl_MODULE_INDICATOR.
36117
36118         Tests of module 'stdlib' in C++ mode.
36119         * tests/test-stdlib-c++.cc: New file.
36120         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36121         (Depends-on): Add ansi-c++-opt.
36122         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36123         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36124         gl_MODULE_INDICATOR.
36125
36126         Tests of module 'stdio' in C++ mode.
36127         * tests/test-stdio-c++.cc: New file.
36128         * modules/stdio-tests (Files): Add it and tests/signature.h.
36129         (Depends-on): Add ansi-c++-opt.
36130         (Makefile.am): Arrange to compile and run test-stdio-c++.
36131         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36132         gl_MODULE_INDICATOR.
36133
36134         Tests of module 'spawn' in C++ mode.
36135         * tests/test-spawn-c++.cc: New file.
36136         * modules/spawn-tests (Files): Add it and tests/signature.h.
36137         (Depends-on): Add ansi-c++-opt.
36138         (Makefile.am): Arrange to compile and run test-spawn-c++.
36139         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36140         gl_MODULE_INDICATOR.
36141
36142         Tests of module 'signal' in C++ mode.
36143         * tests/test-signal-c++.cc: New file.
36144         * modules/signal-tests (Files): Add it and tests/signature.h.
36145         (Depends-on): Add ansi-c++-opt.
36146         (Makefile.am): Arrange to compile and run test-signal-c++.
36147         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36148         gl_MODULE_INDICATOR.
36149
36150         Tests of module 'search' in C++ mode.
36151         * tests/test-search-c++.cc: New file.
36152         * modules/search-tests (Files): Add it and tests/signature.h.
36153         (Depends-on): Add ansi-c++-opt.
36154         (Makefile.am): Arrange to compile and run test-search-c++.
36155         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36156         gl_MODULE_INDICATOR.
36157
36158         Tests of module 'math' in C++ mode.
36159         * tests/test-math-c++.cc: New file.
36160         * modules/math-tests (Files): Add it and tests/signature.h.
36161         (Depends-on): Add ansi-c++-opt.
36162         (Makefile.am): Arrange to compile and run test-math-c++.
36163         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36164
36165         Tests of module 'locale' in C++ mode.
36166         * tests/test-locale-c++.cc: New file.
36167         * modules/locale-tests (Files): Add it and tests/signature.h.
36168         (Depends-on): Add ansi-c++-opt.
36169         (Makefile.am): Arrange to compile and run test-locale-c++.
36170         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36171         gl_MODULE_INDICATOR.
36172
36173         Tests of module 'langinfo' in C++ mode.
36174         * tests/test-langinfo-c++.cc: New file.
36175         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36176         (Depends-on): Add ansi-c++-opt.
36177         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36178         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36179         gl_MODULE_INDICATOR.
36180
36181         Tests of module 'iconv-h' in C++ mode.
36182         * tests/test-iconv-h-c++.cc: New file.
36183         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36184         (Depends-on): Add ansi-c++-opt.
36185         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36186
36187         Tests of module 'glob' in C++ mode.
36188         * tests/test-glob-c++.cc: New file.
36189         * modules/glob-tests (Files): Add it.
36190         (Depends-on): Add ansi-c++-opt.
36191         (Makefile.am): Arrange to compile and run test-glob-c++.
36192
36193         Tests of module 'fcntl-h' in C++ mode.
36194         * tests/test-fcntl-h-c++.cc: New file.
36195         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36196         (Depends-on): Add ansi-c++-opt.
36197         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36198         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36199         gl_MODULE_INDICATOR.
36200
36201         Tests of module 'dirent' in C++ mode.
36202         * tests/test-dirent-c++.cc: New file.
36203         * modules/dirent-tests (Files): Add it and tests/signature.h.
36204         (Depends-on): Add ansi-c++-opt.
36205         (Makefile.am): Arrange to compile and run test-dirent-c++.
36206         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36207         gl_MODULE_INDICATOR.
36208
36209         New module 'ansi-c++-opt'.
36210         * modules/ansi-c++-opt: New file.
36211         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36212
36213         Document C++ namespace mode.
36214         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36215
36216         wctype: Avoid #define replacements in C++ mode.
36217         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36218         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36219         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36220         In C++, define a namespaced alias symbol.
36221         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36222         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36223         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36224         rule.
36225
36226         wchar: Avoid #define replacements in C++ mode.
36227         * lib/wchar.in.h: Include c++defs.h.
36228         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36229         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36230         symbol.
36231         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36232         * modules/wchar (Depends-on): Add c++defs.
36233         (Makefile.am): Update wchar.h rule.
36234
36235         unistd: Avoid #define replacements in C++ mode.
36236         * lib/unistd.in.h: Include c++defs.h.
36237         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36238         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36239         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36240         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36241         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36242         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36243         symbol.
36244         (environ): Update.
36245         * modules/unistd (Depends-on): Add c++defs.
36246         (Makefile.am): Update unistd.h rule.
36247
36248         time: Avoid #define replacements in C++ mode.
36249         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36250         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36251         define a namespaced alias symbol.
36252         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36253         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36254         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36255         * modules/time (Depends-on): Add c++defs, warn-on-use.
36256         (Makefile.am): Update time.h rule.
36257         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36258         * modules/nanosleep (configure.ac): Likewise.
36259         * modules/strptime (configure.ac): Likewise.
36260         * modules/timegm (configure.ac): Likewise.
36261
36262         sys_time: Avoid #define replacements in C++ mode.
36263         * lib/sys_time.in.h: Include c++defs.h.
36264         (gettimeofday): In C++, define a namespaced alias symbol.
36265         * modules/sys_time (Depends-on): Add c++defs.
36266         (Makefile.am): Update sys/time.h rule.
36267
36268         sys_stat: Avoid #define replacements in C++ mode.
36269         * lib/sys_stat.in.h: Include c++defs.h.
36270         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36271         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36272         namespaced alias symbol.
36273         In C++, define a namespaced alias symbol.
36274         * modules/sys_stat (Depends-on): Add c++defs.
36275         (Makefile.am): Update sys/stat.h rule.
36276
36277         sys_socket: Avoid #define replacements in C++ mode.
36278         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36279         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36280         definitions also when the system has a <sys/socket.h>.
36281         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36282         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36283         In C++, define a namespaced alias symbol.
36284         * modules/sys_socket (Depends-on): Add c++defs.
36285         (Makefile.am): Update sys/socket.h rule.
36286
36287         sys_select: Avoid #define replacements in C++ mode.
36288         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36289         definitions also when the system has a <sys/select.h>.
36290         (select): In C++, define a namespaced alias symbol.
36291         * modules/sys_select (Depends-on): Add c++defs.
36292         (Makefile.am): Update sys/select.h rule.
36293
36294         sys_ioctl: Avoid #define replacements in C++ mode.
36295         * lib/sys_ioctl.in.h: Include c++defs.h.
36296         (ioctl): In C++, define a namespaced alias symbol.
36297         * modules/sys_ioctl (Depends-on): Add c++defs.
36298         (Makefile.am): Update sys/ioctl.h rule.
36299
36300         string: Avoid #define replacements in C++ mode.
36301         * lib/string.in.h: Include c++defs.h.
36302         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36303         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36304         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36305         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36306         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36307         * modules/string (Depends-on): Add c++defs.
36308         (Makefile.am): Update string.h rule.
36309
36310         stdlib: Avoid #define replacements in C++ mode.
36311         * lib/stdlib.in.h: Include c++defs.h.
36312         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36313         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36314         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36315         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36316         symbol.
36317         * modules/stdlib (Depends-on): Add c++defs.
36318         (Makefile.am): Update stdlib.h rule.
36319
36320         stdio: Avoid #define replacements in C++ mode.
36321         * lib/stdio.in.h: Include c++defs.h.
36322         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36323         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36324         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36325         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36326         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36327         namespaced alias symbol.
36328         * modules/stdio (Depends-on): Add c++defs.
36329         (Makefile.am): Update stdio.h rule.
36330
36331         spawn: Avoid #define replacements in C++ mode.
36332         * lib/spawn.in.h: Include c++defs.h.
36333         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36334         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36335         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36336         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36337         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36338         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36339         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36340         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36341         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36342         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36343         In C++, define a namespaced alias symbol.
36344         * modules/spawn (Depends-on): Add c++defs.
36345         (Makefile.am): Update spawn.h rule.
36346
36347         signal: Avoid #define replacements in C++ mode.
36348         * lib/signal.in.h: Include c++defs.h.
36349         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36350         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36351         namespaced alias symbol.
36352         * modules/signal (Depends-on): Add c++defs.
36353         (Makefile.am): Update signal.h rule.
36354
36355         search: Avoid #define replacements in C++ mode.
36356         * lib/search.in.h: Include c++defs.h.
36357         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36358         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36359         symbol.
36360         * modules/search (Depends-on): Add c++defs.
36361         (Makefile.am): Update search.h rule.
36362
36363         math: Avoid #define replacements in C++ mode.
36364         * lib/math.in.h: Include c++defs.h.
36365         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36366         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36367         trunc, truncl): In C++, define a namespaced alias symbol.
36368         * modules/math (Depends-on): Add c++defs.
36369         (Makefile.am): Update math.h rule.
36370
36371         locale: Avoid #define replacements in C++ mode.
36372         * lib/locale.in.h: Include c++defs.h.
36373         (duplocale): In C++, define a namespaced alias symbol.
36374         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36375         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36376         * modules/locale (Depends-on): Add c++defs.
36377         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36378
36379         langinfo: Avoid #define replacements in C++ mode.
36380         * lib/langinfo.in.h: Include c++defs.h.
36381         (nl_langinfo): In C++, define a namespaced alias symbol.
36382         * modules/langinfo (Depends-on): Add c++defs.
36383         (Makefile.am): Update langinfo.h rule.
36384
36385         iconv-h: Avoid #define replacements in C++ mode.
36386         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36387         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36388         symbol.
36389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36390         whenever iconv is present.
36391         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36392         (Makefile.am): Update iconv.h rule.
36393
36394         glob: Avoid #define replacements in C++ mode.
36395         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36396         (_gl_glob_errfunc_fn): New type.
36397         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36398         symbol.
36399         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36400         (Makefile.am): Update glob.h rule.
36401
36402         fcntl-h: Avoid #define replacements in C++ mode.
36403         * lib/fcntl.in.h: Include c++defs.h.
36404         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36405         * modules/fcntl-h (Depends-on): Add c++defs.
36406         (Makefile.am): Update fcntl.h rule.
36407
36408         dirent: Avoid #define replacements in C++ mode.
36409         * lib/dirent.in.h: Include c++defs.h.
36410         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36411         namespaced alias symbol.
36412         (dirfd): Update declaration.
36413         * modules/dirent (Depends-on): Add c++defs.
36414         (Makefile.am): Update dirent.h rule.
36415
36416         ctype: Make it usable in C++ code.
36417         * lib/ctype.in.h: Include c++defs.h.
36418         (isblank): Declare as extern "C".
36419         * modules/ctype (Depends-on): Add c++defs.
36420         (Makefile.am): Update ctype.h rule.
36421
36422         New module 'c++defs'.
36423         * modules/c++defs: New file.
36424         * build-aux/c++defs.h: New file.
36425         Reported by John W. Eaton <jwe@gnu.org>.
36426
36427 2010-03-07  Bruno Haible  <bruno@clisp.org>
36428
36429         logb: Provide missing declaration for Cygwin.
36430         * lib/math.in.h (logb): New declaration.
36431         * m4/logb.m4: New file.
36432         * modules/logb (Files): Add m4/logb.m4.
36433         (Depends-on): Add math.
36434         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36435         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36437         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36438         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36439
36440 2010-03-07  Bruno Haible  <bruno@clisp.org>
36441
36442         Fix test-cond link error.
36443         * tests/test-cond.c: Include <stdio.h>.
36444
36445 2010-03-07  Bruno Haible  <bruno@clisp.org>
36446
36447         Fix test-dirent-safer link error.
36448         * modules/dirent-safer-tests (Makefile.am): Define
36449         test_dirent_safer_LDADD.
36450
36451 2010-03-07  Bruno Haible  <bruno@clisp.org>
36452
36453         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36454         among default module list.
36455
36456 2010-03-07  Bruno Haible  <bruno@clisp.org>
36457
36458         Fix link error on platforms with GNU libiconv.
36459         * modules/unistr/u8-strcoll-tests (Makefile): Define
36460         test_u8_strcoll_LDADD.
36461         * modules/unistr/u16-strcoll-tests (Makefile): Define
36462         test_u16_strcoll_LDADD.
36463         * modules/unistr/u32-strcoll-tests (Makefile): Define
36464         test_u32_strcoll_LDADD.
36465
36466 2010-03-07  Bruno Haible  <bruno@clisp.org>
36467
36468         Use POSIX declarations for socket functions.
36469         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36470         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36471         rpl_sendto): Change declaration to match POSIX.
36472         * lib/connect.c (rpl_connect): Likewise.
36473         * lib/accept.c (rpl_accept): Likewise.
36474         * lib/bind.c (rpl_bind): Likewise.
36475         * lib/getpeername.c (rpl_getpeername): Likewise.
36476         * lib/getsockname.c (rpl_getsockname): Likewise.
36477         * lib/recv.c (rpl_recv): Likewise.
36478         * lib/send.c (rpl_send): Likewise.
36479         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36480         * lib/sendto.c (rpl_sendto): Likewise.
36481
36482 2010-03-06  Bruno Haible  <bruno@clisp.org>
36483
36484         Clarify access, euidaccess, faccessat.
36485         * doc/posix-functions/faccessat.texi: Mention security problem under
36486         "Other problems", not "Portability problems".
36487         * doc/posix-functions/access.texi: Likewise. Mention a related security
36488         problem.
36489         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36490         * lib/euidaccess.c: Add comments about platforms.
36491         * lib/unistd.in.h (access, euidaccess): Add warnings.
36492
36493 2010-03-07  Bruno Haible  <bruno@clisp.org>
36494
36495         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36496         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36497         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36498         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36499         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36500         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36501         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36502         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36503         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36504         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36505         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36506         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36507         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36508         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36509         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36510         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36511         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36512         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36513         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36514         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36515         Likewise.
36516         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36517         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36518         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36519         Likewise.
36520         * tests/test-spawn.c (main): Make it work when
36521         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36522
36523 2010-03-07  Bruno Haible  <bruno@clisp.org>
36524
36525         Fix incorrect Makefile.am generation in German locale.
36526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36527         Execute sed command with character range in C locale.
36528
36529 2010-03-06  Bruno Haible  <bruno@clisp.org>
36530
36531         Tests for module 'iconv-h'.
36532         * modules/iconv-h-tests: New file.
36533         * tests/test-iconv-h.c: New file.
36534
36535         New module 'iconv-h'.
36536         * modules/iconv-h: New file.
36537         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36538         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36539         (configure.ac): Remove gl_ICONV_H.
36540         (Makefile.am): Remove rule for iconv.h.
36541
36542 2010-03-06  Bruno Haible  <bruno@clisp.org>
36543
36544         More consistent naming of *.m4 files.
36545         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36546         * modules/wctype (Files): Update.
36547
36548         More consistent naming of *.m4 files.
36549         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36550         * modules/wchar (Files): Update.
36551
36552 2010-03-06  Jim Meyering  <meyering@redhat.com>
36553
36554         euidaccess: relax license to LGPLv2+
36555         * modules/euidaccess (License): Relax to LGPLv2+.
36556
36557 2010-03-06  Bruno Haible  <bruno@clisp.org>
36558
36559         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36560         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36561         (Makefile.am): Augment lib_SOURCES instead.
36562
36563 2010-03-04  Jim Meyering  <meyering@redhat.com>
36564
36565         utime: remove obsolete module
36566         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36567         unnecessary for years, and has been marked as obsolete for 10 months.
36568         * modules/utime: Remove file.
36569         * lib/utime.c: Remove file.
36570         * m4/utime.m4: Remove file.
36571         * m4/utimes-null.m4: Remove file.
36572         * doc/posix-functions/utime.texi (utime): Remove reference to
36573         the module.  Move the sole "fixed by gnulib" item into the
36574         "problems not fixed by Gnulib" list.
36575         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36576
36577 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36578
36579         * modules/exit (License): Relax license to LGPLv2+.
36580         (Status): Mark as obsolete.
36581         * NEWS: Mention deprecated 'exit' module.
36582         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36583         of now obsolete 'exit'.
36584
36585 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36586
36587         fts-lgpl: remove unused module
36588         * modules/fts-lgpl: Remove.
36589         * MODULES.html.sh (func_all_modules): Adjust.
36590         * check-module (find_included_lib_files): Adjust.
36591         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36592
36593 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36594
36595         copy-acl: enhance Solaris ACL error handling
36596         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36597         * lib/set-mode-acl.c (qset_acl): Likewise.
36598
36599 2010-03-02  Bruno Haible  <bruno@clisp.org>
36600
36601         spawn: Don't override the system defined values on FreeBSD 8.
36602         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36603         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36604         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36605         if HAVE_POSIX_SPAWN is 1.
36606         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36607
36608 2010-03-01  Bruno Haible  <bruno@clisp.org>
36609
36610         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36611         regarding Automake.
36612
36613 2010-02-25  Bruno Haible  <bruno@clisp.org>
36614
36615         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36616         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36617         setting, not afterwards.
36618         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36619
36620 2010-02-24  Eric Blake  <eblake@redhat.com>
36621
36622         bootstrap, git-version-gen: use timestamp
36623         * build-aux/git-version-gen (scriptversion): Force UTC.
36624         * build-aux/bootstrap (scriptversion): New variable.
36625
36626         bootstrap: allow older git
36627         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36628         older than 1.6.4.  Requested by the libvirt project.
36629
36630 2010-02-23  Eric Blake  <eblake@redhat.com>
36631
36632         warn-on-use: work with old autoconf
36633         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36634         AS_VAR semantics of autoconf 2.60.
36635         Reported by Bruno Haible.
36636
36637         bootstrap: improve some comments
36638         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36639         clarification comments.
36640
36641         gettimeofday: provide correct function
36642         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36643         when replacement is declared, otherwise provide gettimeofday.
36644         Reported by Michael Goffioul.
36645
36646 2010-02-23  Jim Meyering  <meyering@redhat.com>
36647
36648         lib-ignore: relax license to "unlimited", not LGPLv2+
36649         * modules/lib-ignore (License): Relax to "unlimited".
36650
36651 2010-02-23  Jim Meyering  <meyering@redhat.com>
36652
36653         lib-ignore: relax license to LGPLv2+
36654         * modules/lib-ignore (License): Relax to LGPLv2+.
36655
36656 2010-02-22  Eric Blake  <eblake@redhat.com>
36657
36658         lseek: avoid bash 3.2 broken pipe bug
36659         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36660         warning from bash 3.2.
36661         Reported by Ben Pfaff, with analysis from Bruno Haible.
36662
36663         bootstrap: support non-FSF copyright holder
36664         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36665         bootstrap.conf override of COPYRIGHT_HOLDER.
36666         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36667
36668         bootstrap: interoperate with gettext 0.14.1
36669         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36670
36671         bootstrap: allow for alternate submodule location
36672         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36673         hardcoding submodule location.
36674         (gnulib_mk): Allow direct use of Makefile.am.
36675
36676         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36677         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36678         rather than reconfiguring where the submodule points.
36679
36680         gettimeofday: restore support for platforms that lack function
36681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36682         replacement if function is missing.
36683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36684         * modules/sys_time (Makefile.am): Substitute it.
36685         * lib/sys_time.in.h (gettimeofday): Check it.
36686         Reported by Michael Goffioul.
36687
36688 2010-02-21  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/stdio.in.h (obstack_printf): Fix typo.
36691
36692 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36693
36694         vc-list-files: use bzr ls's -R option
36695         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36696         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36697
36698 2010-02-21  Jim Meyering  <meyering@redhat.com>
36699
36700         init.sh: fix EXEEXT shims to work also for names like test-prog
36701         * tests/init.sh: Re-exec a better shell, when needed.
36702         If the current shell lacks support for posix $(...), an init.sh-using
36703         test will now try to find a shell that supports that.  If EXEEXT is
36704         nonempty, we also require support for hyphen-in-alias-name and shell
36705         substitutions like ${var#glob}.  Failure to find such a shell results
36706         in a skipped test.
36707
36708 2010-02-21  Bruno Haible  <bruno@clisp.org>
36709
36710         Really work around around "broken pipe" error message from bash 3.2.
36711         * gnulib-tool (func_reset_sigpipe): Remove function.
36712         (echo): In bash 3.2, define to a function that uses printf.
36713         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36714
36715 2010-02-20  Bruno Haible  <bruno@clisp.org>
36716
36717         Restore support for automake 1.9.6 with autoconf 2.61.
36718         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36719         Reported by James Youngman <jay@gnu.org>.
36720
36721 2010-02-20  Bruno Haible  <bruno@clisp.org>
36722
36723         Improve *printf warning condition.
36724         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36725         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36726         and the function is overridden due to SIGPIPE emulation.
36727
36728 2010-02-20  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/stdio.in.h: Tweak comments.
36731
36732 2010-02-19  Bruno Haible  <bruno@clisp.org>
36733
36734         Make it easier to find modules. New gnulib-tool option '--find'.
36735         * gnulib-tool: New option --find.
36736         (func_usage): Document it.
36737         (func_sanitize_modulelist): New function, extracted from
36738         func_all_modules.
36739         (func_all_modules): Invoke it.
36740         * doc/gnulib-tool.texi (Which modules?): New node.
36741
36742 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36743
36744         * lib/sys_select.in.h: Provide select replacement even if
36745         sys/select.h exists on a system, for Interix.
36746
36747 2010-02-18  Jim Meyering  <meyering@redhat.com>
36748
36749         init.sh: don't use $(...) just yet
36750         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36751         to accommodate e.g., Solaris' /bin/sh.
36752
36753 2010-02-17  Bruno Haible  <bruno@clisp.org>
36754
36755         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36756         Reported by Ludovic Courtès <ludo@gnu.org>.
36757
36758 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36759
36760         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36761         linking with -lintl.
36762
36763 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36764
36765         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36766         if not provided by the system's netdb.h.  Reported by
36767         ludo@gnu.org (Ludovic Courtès).
36768
36769 2010-02-15  Jim Meyering  <meyering@redhat.com>
36770
36771         init.sh: improve portability and efficiency
36772         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36773         "dummy" in a for loop.
36774         Use '!', not '^' to select the complement of a character set used
36775         in a "case" statement.
36776         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36777         Suggestions from Eric Blake.
36778
36779         init.sh: automatically accommodate programs with the .exe suffix
36780         Automatically arrange for an invocation of "prog" to execute the
36781         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36782         may use the simpler "prog", yet still work when built on a system
36783         that requires specifying the added suffix.
36784         Do this by constructing a function named "prog" that invokes
36785         "prog.exe" for each .exe file in selected directories.
36786         * tests/init.sh (find_exe_basenames_): New function.
36787         (create_exe_shim_functions_): New function.
36788         (path_prepend_): Use it.
36789
36790         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36791         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36792         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36793
36794 2010-02-14  Jim Meyering  <meyering@redhat.com>
36795
36796         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36797         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36798         (sc_prohibit_hash_pjw_without_use): New rule.
36799
36800         maint.mk: allow the default upload destination dir to be overridden
36801         * top/maint.mk (upload_dest_dir_): Define with a default that
36802         preserves the status quo.
36803         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36804         Reported by Peter Simons.
36805
36806         maint.mk: prohibit inclusion of "hash.h" without_use
36807         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36808
36809 2010-02-10  Jim Meyering  <meyering@redhat.com>
36810
36811         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36812         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36813
36814 2010-02-09  Eric Blake  <ebb9@byu.net>
36815         and Bruno Haible  <bruno@clisp.org>
36816
36817         obstack-printf-posix: ensure declaration
36818         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36819         extracted from gl_FUNC_OBSTACK_PRINTF.
36820         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36821         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36822         Likewise.
36823         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36824         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36825         0.
36826
36827 2010-02-08  Bruno Haible  <bruno@clisp.org>
36828
36829         gnulib-tool: Fix typo in 2010-02-07 commit.
36830         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36831         Reported by Eric Blake.
36832
36833 2010-02-07  Bruno Haible  <bruno@clisp.org>
36834
36835         gnulib-tool: Fix up caching patches.
36836         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36837         option --no-cache. Use associative arrays when supported by the shell.
36838         (sed_comments): New variable.
36839         (modcache): Renamed from do_cache.
36840         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36841         abbreviate unnecessarily.
36842         (have_associative): New variable.
36843         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36844         way also for ksh and zsh.
36845         (func_init_sed_convert_to_cache_statements): New function, extracted
36846         from func_cache_lookup_module. Add support for associative arrays.
36847         Don't set the c_MODULE_cached variable here. Ignore all lines before
36848         the first field header. Remove only the final newline, not all trailing
36849         newlines. Support empty fields correctly. Limit the use of 'eval' to
36850         assignments.
36851         (func_get_description, func_get_status, func_get_notice,
36852         func_get_applicability, func_get_filelist, func_get_dependencies,
36853         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36854         func_get_automake_snippet, func_get_include_directive,
36855         func_get_link_directive, func_get_license, func_get_maintainer):
36856         Update documentation. List the unoptimized code first. Add support for
36857         associative arrays. Limit the use of 'eval' to assignments.
36858         (func_get_applicability): Undo stylistic pessimisations.
36859         (func_get_automake_snippet, func_get_include_directive): Reduce code
36860         duplication.
36861         (func_modules_transitive_closure, func_modules_add_dummy,
36862         func_modules_notice, func_modules_to_filelist, func_add_file,
36863         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36864         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36865         func_create_testdir, func_create_megatestdir): Update documentation.
36866
36867 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36868
36869         * gnulib-tool (func_cache_lookup_module): Store the module name
36870         belonging to the cache variable; error out if two different
36871         module names map to the same cache variable name.
36872
36873 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36874
36875         gnulib-tool: Make caching optional.
36876         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36877         Update matching short versions of --no-changelog.
36878         (func_usage): Update.
36879         (sed_extract_cache_prog): Renamed from ...
36880         (sed_extract_prog): ... this; revert to old extraction script.
36881         (func_get_description, func_get_status)
36882         (func_get_notice, func_get_applicability, func_get_filelist)
36883         (func_get_dependencies, func_get_autoconf_early_snippet)
36884         (func_get_autoconf_snippet, func_get_automake_snippet)
36885         (func_get_include_directive, func_get_link_directive)
36886         (func_get_license, func_get_maintainer): If $do_cache is false,
36887         use old, non-caching extraction scripts.
36888         Suggestion by Bruno Haible.
36889
36890 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36891
36892         gnulib-tool: cache module metainformation.
36893         * gnulib-tool (sed_extract_prog): Match newline before each
36894         header, and rewrite header to a shell variable suffix.
36895         (func_cache_var, func_cache_lookup_module): New functions,
36896         to turn a module name into a cache variable prefix, and to
36897         look up and cache module metainformation.
36898         (func_get_description, func_get_status)
36899         (func_get_notice, func_get_applicability, func_get_filelist)
36900         (func_get_dependencies, func_get_autoconf_early_snippet)
36901         (func_get_autoconf_snippet, func_get_automake_snippet)
36902         (func_get_include_directive, func_get_link_directive)
36903         (func_get_license, func_get_maintainer): Use
36904         func_cache_lookup_module.
36905
36906 2010-02-07  Bruno Haible  <bruno@clisp.org>
36907
36908         fnctl: Fix missing dependency.
36909         * modules/fcntl (Depends-on): Add getdtablesize.
36910         Reported by John W. Eaton <jwe@gnu.org>.
36911
36912 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36913
36914         Argp: fix recognition of short alias options.
36915
36916         * lib/argp-parse.c (convert_options): Fix improper use of
36917         `|' between character values.
36918         * tests/test-argp.c (group1_option): New alias option
36919         --read (-r).
36920         (group1_parser): Special handling for 'r'.
36921         (test15): New test case.
36922         (test_fun): Add test15.
36923         * tests/test-argp-2.sh: Update expected --help and --usage
36924         outputs.
36925
36926 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36927
36928         * tests/test-argp.c: Fix indentation.
36929
36930 2010-02-04  Eric Blake  <ebb9@byu.net>
36931
36932         gettimeofday: expose type of second argument
36933         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36934         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36935         * tests/test-gettimeofday.c: Use it to silence warning.
36936         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36937         the issue.
36938
36939 2010-02-03  Jim Meyering  <meyering@redhat.com>
36940
36941         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36942         * lib/regcomp.c (TYPE_SIGNED): Define.
36943         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36944
36945         regcomp.c: avoid a new -Wshadow warning
36946         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36947
36948 2010-02-01  Jim Meyering  <meyering@redhat.com>
36949
36950         removing useless parentheses in cpp #define directives
36951         For motivation, see commit c0221df4, "define STREQ(a,b)
36952         consistently, removing useless parentheses"
36953         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36954         * lib/mountlist.c (MNT_IGNORE): Likewise.
36955         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36956
36957 2010-02-01  Eric Blake  <ebb9@byu.net>
36958
36959         sys_time: use link-warning
36960         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36961         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36962         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36963         * modules/sys_time (Depends-on): Add warn-on-use.
36964         (Makefile.am): Always build replacement.
36965         (configure.ac): Update substitutions.
36966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36967         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36968         bother with SYS_TIME_H.
36969         * modules/gettimeofday (configure.ac): Declare indicator.
36970         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36971         in use.
36972
36973         closein-tests: silence compiler warning
36974         * tests/test-closein.c (main): Ignore fread result.
36975         * modules/closein-tests (Depends-on): Add ignore-value.
36976
36977         tests: silence warning about system return
36978         * tests/test-areadlink-with-size.c (main): Ignore system result.
36979         * tests/test-areadlink.c (main): Likewise.
36980         * tests/test-areadlinkat-with-size.c (main): Likewise.
36981         * tests/test-areadlinkat.c (main): Likewise.
36982         * tests/test-canonicalize-lgpl.c (main): Likewise.
36983         * tests/test-canonicalize.c (main): Likewise.
36984         * tests/test-chown.c (main): Likewise.
36985         * tests/test-fchownat.c (main): Likewise.
36986         * tests/test-fdutimensat.c (main): Likewise.
36987         * tests/test-fstatat.c (main): Likewise.
36988         * tests/test-futimens.c (main): Likewise.
36989         * tests/test-lchown.c (main): Likewise.
36990         * tests/test-link.c (main): Likewise.
36991         * tests/test-linkat.c (main): Likewise.
36992         * tests/test-lstat.c (main): Likewise.
36993         * tests/test-mkdir.c (main): Likewise.
36994         * tests/test-mkdirat.c (main): Likewise.
36995         * tests/test-mkfifo.c (main): Likewise.
36996         * tests/test-mkfifoat.c (main): Likewise.
36997         * tests/test-mknod.c (main): Likewise.
36998         * tests/test-readlink.c (main): Likewise.
36999         * tests/test-remove.c (main): Likewise.
37000         * tests/test-rename.c (main): Likewise.
37001         * tests/test-renameat.c (main): Likewise.
37002         * tests/test-rmdir.c (main): Likewise.
37003         * tests/test-symlink.c (main): Likewise.
37004         * tests/test-symlinkat.c (main): Likewise.
37005         * tests/test-unlink.c (main): Likewise.
37006         * tests/test-unlinkat.c (main): Likewise.
37007         * tests/test-utimens.c (main): Likewise.
37008         * tests/test-utimensat.c (main): Likewise.
37009         * modules/areadlink-tests (Depends-on): Add ignore-value.
37010         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37011         * modules/areadlinkat-tests (Depends-on): Likewise.
37012         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37013         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37014         * modules/canonicalize-tests (Depends-on): Likewise.
37015         * modules/chown-tests (Depends-on): Likewise.
37016         * modules/fdutimensat-tests (Depends-on): Likewise.
37017         * modules/futimens-tests (Depends-on): Likewise.
37018         * modules/lchown-tests (Depends-on): Likewise.
37019         * modules/link-tests (Depends-on): Likewise.
37020         * modules/linkat-tests (Depends-on): Likewise.
37021         * modules/lstat-tests (Depends-on): Likewise.
37022         * modules/mkdir-tests (Depends-on): Likewise.
37023         * modules/mkfifo-tests (Depends-on): Likewise.
37024         * modules/mkfifoat-tests (Depends-on): Likewise.
37025         * modules/mknod-tests (Depends-on): Likewise.
37026         * modules/openat-tests (Depends-on): Likewise.
37027         * modules/readlink-tests (Depends-on): Likewise.
37028         * modules/remove-tests (Depends-on): Likewise.
37029         * modules/rename-tests (Depends-on): Likewise.
37030         * modules/renameat-tests (Depends-on): Likewise.
37031         * modules/rmdir-tests (Depends-on): Likewise.
37032         * modules/symlink-tests (Depends-on): Likewise.
37033         * modules/symlinkat-tests (Depends-on): Likewise.
37034         * modules/unlink-tests (Depends-on): Likewise.
37035         * modules/utimens-tests (Depends-on): Likewise.
37036         * modules/utimensat-tests (Depends-on): Likewise.
37037
37038 2010-01-31  Bruno Haible  <bruno@clisp.org>
37039
37040         Perform the same test for many <math.h> functions.
37041         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37042         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37043         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37044         of gl_MATHFUNC.
37045         * modules/acos (configure.ac): Likewise.
37046         * modules/asin (configure.ac): Likewise.
37047         * modules/atan (configure.ac): Likewise.
37048         * modules/atan2 (configure.ac): Likewise.
37049         * modules/cbrt (configure.ac): Likewise.
37050         * modules/copysign (configure.ac): Likewise.
37051         * modules/cos (configure.ac): Likewise.
37052         * modules/cosh (configure.ac): Likewise.
37053         * modules/erf (configure.ac): Likewise.
37054         * modules/erfc (configure.ac): Likewise.
37055         * modules/exp (configure.ac): Likewise.
37056         * modules/fmod (configure.ac): Likewise.
37057         * modules/hypot (configure.ac): Likewise.
37058         * modules/j0 (configure.ac): Likewise.
37059         * modules/j1 (configure.ac): Likewise.
37060         * modules/jn (configure.ac): Likewise.
37061         * modules/lgamma (configure.ac): Likewise.
37062         * modules/log (configure.ac): Likewise.
37063         * modules/log10 (configure.ac): Likewise.
37064         * modules/log1p (configure.ac): Likewise.
37065         * modules/pow (configure.ac): Likewise.
37066         * modules/remainder (configure.ac): Likewise.
37067         * modules/sin (configure.ac): Likewise.
37068         * modules/sinh (configure.ac): Likewise.
37069         * modules/tan (configure.ac): Likewise.
37070         * modules/tanh (configure.ac): Likewise.
37071         * modules/y0 (configure.ac): Likewise.
37072         * modules/y1 (configure.ac): Likewise.
37073         * modules/yn (configure.ac): Likewise.
37074         Suggested by Paolo Bonzini.
37075
37076 2010-01-31  Bruno Haible  <bruno@clisp.org>
37077
37078         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37079
37080 2010-01-31  Bruno Haible  <bruno@clisp.org>
37081
37082         Work around getdelim() bug on FreeBSD 8.0.
37083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37084         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37085         not work.
37086         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37087         is 1.
37088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37089         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37090         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37091         a non-zero size.
37092         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37093
37094 2010-01-31  Bruno Haible  <bruno@clisp.org>
37095
37096         Work around getline() bug on FreeBSD 8.0.
37097         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37098         and a non-zero size.
37099         * tests/test-getline.c (main): Likewise.
37100         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37101         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37102
37103 2010-01-28  Eric Blake  <ebb9@byu.net>
37104
37105         regex: fix build failure
37106         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37107         platforms.
37108
37109 2010-01-28  Jim Meyering  <meyering@redhat.com>
37110
37111         regex: do not ignore memory allocation failure
37112         * lib/regex_internal.c (create_cd_newstate): Detect
37113         re_node_set_init_copy failure.   Extracted from glibc commit
37114         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37115
37116         regex: sync more white-space changes from libc
37117         * lib/regex_internal.c: White-space only changes.
37118         * lib/regexec.c: Likewise.
37119
37120         regex: add many uses of __attribute_warn_unused_result__
37121         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37122         * lib/regexec.c: Likewise.
37123         Extracted from a messy glibc commit.
37124
37125         regcomp.c: spelling and merge-artifact from glibc
37126         * lib/regcomp.c: Merge remainder of glibc's
37127         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37128
37129         regcomp.c: sync white-space changes from glibc
37130         * lib/regcomp.c: Merge to accommodate white space
37131         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37132
37133         regcomp.c: do not ignore internal return values
37134         * lib/regcomp.c: Do not ignore internal return values.
37135         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37136         but without its white-space changes and spelling fixes.
37137
37138         regex_internal.h: define __attribute_warn_unused_result__
37139         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37140
37141         maint: add a syntax-check rule to check for vulnerable Makefile.in
37142         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37143
37144 2010-01-27  Jim Meyering  <meyering@redhat.com>
37145
37146         ncftpput-ftp: clean up spaces
37147         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37148         Remove trailing blanks.
37149
37150 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37151
37152         * build-aux/git-version-gen: Fix copyright statement.
37153         * build-aux/gnupload: Likewise.
37154         * tests/test-arcfour.c: Likewise.
37155         * tests/test-arctwo.c: Likewise.
37156         * tests/test-count-one-bits.c: Likewise.
37157         * tests/test-crc.c: Likewise.
37158         * tests/test-des.c: Likewise.
37159         * tests/test-gc-arcfour.c: Likewise.
37160         * tests/test-gc-arctwo.c: Likewise.
37161         * tests/test-gc-des.c: Likewise.
37162         * tests/test-gc-hmac-md5.c: Likewise.
37163         * tests/test-gc-hmac-sha1.c: Likewise.
37164         * tests/test-gc-md2.c: Likewise.
37165         * tests/test-gc-md4.c: Likewise.
37166         * tests/test-gc-md5.c: Likewise.
37167         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37168         * tests/test-gc-rijndael.c: Likewise.
37169         * tests/test-gc-sha1.c: Likewise.
37170         * tests/test-gc.c: Likewise.
37171         * tests/test-gethostname.c: Likewise.
37172         * tests/test-gettimeofday.c: Likewise.
37173         * tests/test-hash.c: Likewise.
37174         * tests/test-hmac-md5.c: Likewise.
37175         * tests/test-hmac-sha1.c: Likewise.
37176         * tests/test-md2.c: Likewise.
37177         * tests/test-md4.c: Likewise.
37178         * tests/test-md5.c: Likewise.
37179         * tests/test-memchr.c: Likewise.
37180         * tests/test-memchr2.c: Likewise.
37181         * tests/test-memcmp.c: Likewise.
37182         * tests/test-memmem.c: Likewise.
37183         * tests/test-memrchr.c: Likewise.
37184         * tests/test-rawmemchr.c: Likewise.
37185         * tests/test-read-file.c: Likewise.
37186         * tests/test-rijndael.c: Likewise.
37187         * tests/test-sockets.c: Likewise.
37188         * tests/test-strchrnul.c: Likewise.
37189         * tests/test-strstr.c: Likewise.
37190         * tests/test-strtod.c: Likewise.
37191         * build-aux/ncftpput-ftp: Likewise.
37192
37193 2010-01-26  Eric Blake  <ebb9@byu.net>
37194
37195         ignore-value: update recommended header name
37196         * modules/ignore-value (Include): Only use <> for headers that
37197         exist in glibc.
37198
37199 2010-01-26  Jim Meyering  <meyering@redhat.com>
37200
37201         test-userspec.c: avoid compiler warnings
37202         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37203         and "initialization discards qualifiers..." warnings.
37204         Put the first "uid" in its own scope, and make char* members "const".
37205
37206 2010-01-25  Bruno Haible  <bruno@clisp.org>
37207
37208         gnulib-tool: Make warning diagnostics consistent.
37209         * gnulib-tool (func_warning): New function.
37210         Use it everywhere where gnulib-tool produces output to stderr and it is
37211         not a fatal error.
37212
37213 2010-01-25  Bruno Haible  <bruno@clisp.org>
37214
37215         Fix test dependencies.
37216         * modules/xstrtol-tests (Depends-on): Add inttypes.
37217         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37218
37219 2010-01-25 Pádraig Brady <P@draigBrady.com>
37220
37221         syntax-check: detect incorrect boolean macro values in config.h
37222         * modules/maintainer-makefile (configure.ac): Parameterize the location
37223         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37224         The logic is from Eric Blake and the location indicated by Jim Meyering.
37225         Note the more natural CONFIG_HEADER name is prohibited by automake
37226         for backwards compatibility reasons.
37227         * top/maint.mk (sc_Wundef_boolean): New rule.
37228
37229 2010-01-25  Jim Meyering  <meyering@redhat.com>
37230
37231         bootstrap: detect MacOS 10.6's shasum, too
37232         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37233         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37234
37235 2010-01-23  Jim Meyering  <meyering@redhat.com>
37236
37237         xstrtoll: new module
37238         * modules/xstrtoll: New file.
37239         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37240         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37241         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37242         ./configure fails if you use this module and lack "long long".
37243         * modules/xstrtoll-tests: New module.
37244         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37245         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37246         new init.sh-based test framework.
37247
37248 2010-01-24  Bruno Haible  <bruno@clisp.org>
37249
37250         Tests for module 'yn'.
37251         * modules/yn-tests: New file.
37252         * tests/test-yn.c: New file.
37253
37254         Tests for module 'y1'.
37255         * modules/y1-tests: New file.
37256         * tests/test-y1.c: New file.
37257
37258         Tests for module 'y0'.
37259         * modules/y0-tests: New file.
37260         * tests/test-y0.c: New file.
37261
37262         Tests for module 'tanh'.
37263         * modules/tanh-tests: New file.
37264         * tests/test-tanh.c: New file.
37265
37266         Tests for module 'tan'.
37267         * modules/tan-tests: New file.
37268         * tests/test-tan.c: New file.
37269
37270         Tests for module 'sqrt'.
37271         * modules/sqrt-tests: New file.
37272         * tests/test-sqrt.c: New file.
37273
37274         Tests for module 'sinh'.
37275         * modules/sinh-tests: New file.
37276         * tests/test-sinh.c: New file.
37277
37278         Tests for module 'sin'.
37279         * modules/sin-tests: New file.
37280         * tests/test-sin.c: New file.
37281
37282         Tests for module 'rint'.
37283         * modules/rint-tests: New file.
37284         * tests/test-rint.c: New file.
37285
37286         Tests for module 'remainder'.
37287         * modules/remainder-tests: New file.
37288         * tests/test-remainder.c: New file.
37289
37290         Tests for module 'pow'.
37291         * modules/pow-tests: New file.
37292         * tests/test-pow.c: New file.
37293
37294         Tests for module 'nextafter'.
37295         * modules/nextafter-tests: New file.
37296         * tests/test-nextafter.c: New file.
37297
37298         Tests for module 'modf'.
37299         * modules/modf-tests: New file.
37300         * tests/test-modf.c: New file.
37301
37302         Tests for module 'logb'.
37303         * modules/logb-tests: New file.
37304         * tests/test-logb.c: New file.
37305
37306         Tests for module 'log1p'.
37307         * modules/log1p-tests: New file.
37308         * tests/test-log1p.c: New file.
37309
37310         Tests for module 'log10'.
37311         * modules/log10-tests: New file.
37312         * tests/test-log10.c: New file.
37313
37314         Tests for module 'log'.
37315         * modules/log-tests: New file.
37316         * tests/test-log.c: New file.
37317
37318         Tests for module 'lgamma'.
37319         * modules/lgamma-tests: New file.
37320         * tests/test-lgamma.c: New file.
37321
37322         Tests for module 'ldexp'.
37323         * modules/ldexp-tests: New file.
37324         * tests/test-ldexp.c: New file.
37325
37326         Tests for module 'jn'.
37327         * modules/jn-tests: New file.
37328         * tests/test-jn.c: New file.
37329
37330         Tests for module 'j1'.
37331         * modules/j1-tests: New file.
37332         * tests/test-j1.c: New file.
37333
37334         Tests for module 'j0'.
37335         * modules/j0-tests: New file.
37336         * tests/test-j0.c: New file.
37337
37338         Tests for module 'hypot'.
37339         * modules/hypot-tests: New file.
37340         * tests/test-hypot.c: New file.
37341
37342         Tests for module 'fmod'.
37343         * modules/fmod-tests: New file.
37344         * tests/test-fmod.c: New file.
37345
37346         Tests for module 'fabs'.
37347         * modules/fabs-tests: New file.
37348         * tests/test-fabs.c: New file.
37349
37350         Tests for module 'exp'.
37351         * modules/exp-tests: New file.
37352         * tests/test-exp.c: New file.
37353
37354         Tests for module 'erfc'.
37355         * modules/erfc-tests: New file.
37356         * tests/test-erfc.c: New file.
37357
37358         Tests for module 'erf'.
37359         * modules/erf-tests: New file.
37360         * tests/test-erf.c: New file.
37361
37362         Tests for module 'cosh'.
37363         * modules/cosh-tests: New file.
37364         * tests/test-cosh.c: New file.
37365
37366         Tests for module 'cos'.
37367         * modules/cos-tests: New file.
37368         * tests/test-cos.c: New file.
37369
37370         Tests for module 'copysign'.
37371         * modules/copysign-tests: New file.
37372         * tests/test-copysign.c: New file.
37373
37374         Tests for module 'cbrt'.
37375         * modules/cbrt-tests: New file.
37376         * tests/test-cbrt.c: New file.
37377
37378         Tests for module 'atan2'.
37379         * modules/atan2-tests: New file.
37380         * tests/test-atan2.c: New file.
37381
37382         Tests for module 'atan'.
37383         * modules/atan-tests: New file.
37384         * tests/test-atan.c: New file.
37385
37386         Tests for module 'asin'.
37387         * modules/asin-tests: New file.
37388         * tests/test-asin.c: New file.
37389
37390         Tests for module 'acos'.
37391         * modules/acos-tests: New file.
37392         * tests/test-acos.c: New file.
37393
37394 2010-01-24  Bruno Haible  <bruno@clisp.org>
37395
37396         Fix tests for common <math.h> functions.
37397         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37398         code snippet that references the function pointer, rather than merely
37399         calling the function. Substitute the FUNC_LIBM variable.
37400         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37401         * modules/acos (configure.ac): Likewise.
37402         * modules/asin (configure.ac): Likewise.
37403         * modules/atan (configure.ac): Likewise.
37404         * modules/atan2 (configure.ac): Likewise.
37405         * modules/cbrt (configure.ac): Likewise.
37406         * modules/copysign (configure.ac): Likewise.
37407         * modules/cos (configure.ac): Likewise.
37408         * modules/cosh (configure.ac): Likewise.
37409         * modules/erf (configure.ac): Likewise.
37410         * modules/erfc (configure.ac): Likewise.
37411         * modules/exp (configure.ac): Likewise.
37412         * modules/fabs (configure.ac): Likewise.
37413         * modules/fmod (configure.ac): Likewise.
37414         * modules/hypot (configure.ac): Likewise.
37415         * modules/j0 (configure.ac): Likewise.
37416         * modules/j1 (configure.ac): Likewise.
37417         * modules/jn (configure.ac): Likewise.
37418         * modules/ldexp (configure.ac): Likewise.
37419         * modules/lgamma (configure.ac): Likewise.
37420         * modules/log (configure.ac): Likewise.
37421         * modules/log10 (configure.ac): Likewise.
37422         * modules/log1p (configure.ac): Likewise.
37423         * modules/logb (configure.ac): Likewise.
37424         * modules/modf (configure.ac): Likewise.
37425         * modules/nextafter (configure.ac): Likewise.
37426         * modules/pow (configure.ac): Likewise.
37427         * modules/remainder (configure.ac): Likewise.
37428         * modules/rint (configure.ac): Likewise.
37429         * modules/sin (configure.ac): Likewise.
37430         * modules/sinh (configure.ac): Likewise.
37431         * modules/tan (configure.ac): Likewise.
37432         * modules/tanh (configure.ac): Likewise.
37433         * modules/y0 (configure.ac): Likewise.
37434         * modules/y1 (configure.ac): Likewise.
37435         * modules/yn (configure.ac): Likewise.
37436
37437 2010-01-24  Bruno Haible  <bruno@clisp.org>
37438
37439         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37440         * tests/test-acosl.c (x): New variable.
37441         (main): Store argument in x and fetch it from x.
37442         * tests/test-asinl.c (x): New variable.
37443         (main): Store argument in x and fetch it from x.
37444         * tests/test-atanl.c (x): New variable.
37445         (main): Store argument in x and fetch it from x.
37446         * tests/test-cosl.c (x): New variable.
37447         (main): Store argument in x and fetch it from x.
37448         * tests/test-expl.c (x): New variable.
37449         (main): Store argument in x and fetch it from x.
37450         * tests/test-logl.c (x): New variable.
37451         (main): Store argument in x and fetch it from x.
37452         * tests/test-sinl.c (x): New variable.
37453         (main): Store argument in x and fetch it from x.
37454         * tests/test-sqrtl.c (x): New variable.
37455         (main): Store argument in x and fetch it from x.
37456         * tests/test-tanl.c (x): New variable.
37457         (main): Store argument in x and fetch it from x.
37458
37459 2010-01-24  Bruno Haible  <bruno@clisp.org>
37460
37461         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37462         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37463         assignments to the initial TESTS_ENVIRONMENT.
37464         * doc/gnulib.texi (Unit test modules): Document it.
37465         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37466         TESTS_ENVIRONMENT.
37467         * modules/btowc-tests (Makefile.am): Likewise.
37468         * modules/c-stack-tests (Makefile.am): Likewise.
37469         * modules/c-strcase-tests (Makefile.am): Likewise.
37470         * modules/copy-file-tests (Makefile.am): Likewise.
37471         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37472         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37473         * modules/mbrtowc-tests (Makefile.am): Likewise.
37474         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37475         * modules/mbscasestr-tests (Makefile.am): Likewise.
37476         * modules/mbschr-tests (Makefile.am): Likewise.
37477         * modules/mbscspn-tests (Makefile.am): Likewise.
37478         * modules/mbsinit-tests (Makefile.am): Likewise.
37479         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37480         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37481         * modules/mbspbrk-tests (Makefile.am): Likewise.
37482         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37483         * modules/mbsrchr-tests (Makefile.am): Likewise.
37484         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37485         * modules/mbsspn-tests (Makefile.am): Likewise.
37486         * modules/mbsstr-tests (Makefile.am): Likewise.
37487         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37488         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37489         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37490         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37491         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37492         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37493         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37494         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37495         * modules/wcrtomb-tests (Makefile.am): Likewise.
37496         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37497         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37498         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37499         assignments from TESTS_ENVIRONMENT.
37500         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37501         augmentation.
37502         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37503         * modules/atexit-tests (Makefile.am): Likewise.
37504         * modules/binary-io-tests (Makefile.am): Likewise.
37505         * modules/closein-tests (Makefile.am): Likewise.
37506         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37507         * modules/exclude-tests (Makefile.am): Likewise.
37508         * modules/fflush-tests (Makefile.am): Likewise.
37509         * modules/fpending-tests (Makefile.am): Likewise.
37510         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37511         * modules/freadahead-tests (Makefile.am): Likewise.
37512         * modules/freadptr-tests (Makefile.am): Likewise.
37513         * modules/freadseek-tests (Makefile.am): Likewise.
37514         * modules/fseek-tests (Makefile.am): Likewise.
37515         * modules/fseeko-tests (Makefile.am): Likewise.
37516         * modules/ftell-tests (Makefile.am): Likewise.
37517         * modules/ftello-tests (Makefile.am): Likewise.
37518         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37519         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37520         * modules/lseek-tests (Makefile.am): Likewise.
37521         * modules/parse-duration-tests (Makefile.am): Likewise.
37522         * modules/perror-tests (Makefile.am): Likewise.
37523         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37524         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37525         * modules/pipe-tests (Makefile.am): Likewise.
37526         * modules/pread-tests (Makefile.am): Likewise.
37527         * modules/printf-posix-tests (Makefile.am): Likewise.
37528         * modules/select-tests (Makefile.am): Likewise.
37529         * modules/sigpipe-tests (Makefile.am): Likewise.
37530         * modules/tsearch-tests (Makefile.am): Likewise.
37531         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37532         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37533         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37534         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37535         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37536         * modules/version-etc-tests (Makefile.am): Likewise.
37537         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37538         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37539         * modules/xalloc-die-tests (Makefile.am): Likewise.
37540         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37541         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37542         * modules/xstrtol-tests (Makefile.am): Likewise.
37543         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37544         * modules/yesno-tests (Makefile.am): Likewise.
37545         Suggested by Jim Meyering.
37546
37547 2010-01-24  Bruno Haible  <bruno@clisp.org>
37548
37549         More documentation.
37550         * doc/gnulib.texi (Writing modules): New chapter.
37551         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37552         the new chapter.
37553
37554 2010-01-24  Jim Meyering  <meyering@redhat.com>
37555
37556         maint.mk: do not prepend "./" after filtering
37557         * top/maint.mk (_prepend_srcdir_prefix): New variable
37558         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37559         "./" when $(srcdir) is ".".
37560
37561         define STREQ(a,b) consistently, removing useless parentheses
37562         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37563         since the only risk is that "a" or "b" contains an unparenthesized
37564         comma, but if either did that, STREQ would have 3 or more arguments.
37565         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37566         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37567         * lib/hash-triple.c (STREQ): Likewise.
37568         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37569         * lib/getugroups.c (STREQ): Likewise.
37570
37571 2010-01-23  Jim Meyering  <meyering@redhat.com>
37572
37573         maint.mk: fix syntax-check in a non-srcdir build directory
37574         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37575         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37576
37577 2010-01-22  Jim Meyering  <meyering@redhat.com>
37578
37579         userspec: add unit tests
37580         * tests/test-userspec.c: New file.
37581         * modules/userspec-tests: Likewise.
37582
37583 2010-01-21  Jim Meyering  <meyering@redhat.com>
37584
37585         maint.mk: handle source file names containing "." robustly
37586         * top/maint.mk (_dot_escaped_srcdir): Define.
37587         (VC_LIST): Use it in LHS of sed substitution.
37588
37589 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37590
37591         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37592         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37593         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37594         from a non-srcdir build.
37595
37596 2010-01-20  Eric Blake  <ebb9@byu.net>
37597
37598         warn-on-use: use instead of link-warning
37599         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37600         * modules/unistd (Depends-on, Makefile.am): Likewise.
37601         * modules/arpa_inet (Depends-on): Replace link-warning with
37602         warn-on-use.
37603         (Makefile.am): Update rules accordingly.
37604         * modules/ctype (Depends-on, Makefile.am): Likewise.
37605         * modules/dirent (Depends-on, Makefile.am): Likewise.
37606         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37607         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37608         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37609         * modules/locale (Depends-on, Makefile.am): Likewise.
37610         * modules/math (Depends-on, Makefile.am): Likewise.
37611         * modules/search (Depends-on, Makefile.am): Likewise.
37612         * modules/signal (Depends-on, Makefile.am): Likewise.
37613         * modules/spawn (Depends-on, Makefile.am): Likewise.
37614         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37615         * modules/string (Depends-on, Makefile.am): Likewise.
37616         * modules/strings (Depends-on, Makefile.am): Likewise.
37617         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37618         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37619         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37620         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37621         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37622         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37623         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37624         * modules/wchar (Depends-on, Makefile.am): Likewise.
37625         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37626         should be poisoned.
37627         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37628         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37629         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37630         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37631         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37632         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37633         * m4/math_h.m4 (gl_MATH_H): Likewise.
37634         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37635         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37636         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37637         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37638         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37640         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37641         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37646         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37647         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37648         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37649         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37650         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37651         GL_LINK_WARNING.
37652         * lib/ctype.in.h: Likewise.
37653         * lib/dirent.in.h: Likewise.
37654         * lib/fcntl.in.h: Likewise.
37655         * lib/inttypes.in.h: Likewise.
37656         * lib/langinfo.in.h: Likewise.
37657         * lib/locale.in.h: Likewise.
37658         * lib/math.in.h: Likewise.
37659         * lib/search.in.h: Likewise.
37660         * lib/signal.in.h: Likewise.
37661         * lib/spawn.in.h: Likewise.
37662         * lib/stdio.in.h: Likewise.
37663         * lib/stdlib.in.h: Likewise.
37664         * lib/string.in.h: Likewise.
37665         * lib/strings.in.h: Likewise.
37666         * lib/sys_file.in.h: Likewise.
37667         * lib/sys_ioctl.in.h: Likewise.
37668         * lib/sys_select.in.h: Likewise.
37669         * lib/sys_socket.in.h: Likewise.
37670         * lib/sys_stat.in.h: Likewise.
37671         * lib/sys_times.in.h: Likewise.
37672         * lib/sys_utsname.in.h: Likewise.
37673         * lib/unistd.in.h: Likewise.
37674         * lib/wchar.in.h: Likewise.
37675
37676 2010-01-20  Bruno Haible  <bruno@clisp.org>
37677
37678         Avoid duplicate -lm.
37679         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37680         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37682         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37683         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37684         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37685         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37686         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37687         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37688         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37689         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37690         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37691         Reported by Paolo Bonzini.
37692
37693 2010-01-19  Bruno Haible  <bruno@clisp.org>
37694
37695         langinfo, nl_langinfo: Relicense under LGPLv2+.
37696         * modules/langinfo (License): Change to LGPLv2+.
37697         * modules/nl_langinfo (License): Likewise.
37698         Patch by David Lutterkort <lutter@redhat.com>.
37699
37700 2010-01-19  Bruno Haible  <bruno@clisp.org>
37701
37702         Avoid compilation error with cc on OSF/1 5.1.
37703         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37704         statement, not before.
37705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37706
37707 2010-01-18  Bruno Haible  <bruno@clisp.org>
37708
37709         Avoid a link error due to the __printf__ symbol.
37710         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37711         and 2.6.x.
37712         (__format__, __printf__): Remove definitions.
37713         * lib/argp-fmtstream.h: Likewise.
37714         * lib/argp.h: Likewise.
37715         * lib/error.h: Likewise.
37716         * lib/vasnprintf.h: Likewise.
37717         * lib/xprintf.h: Likewise.
37718         * lib/xvasprintf.h: Likewise.
37719         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37720
37721 2010-01-18  Bruno Haible  <bruno@clisp.org>
37722
37723         Tests for module 'tanl'.
37724         * modules/tanl-tests: New file.
37725         * tests/test-tanl.c: New file.
37726
37727         Tests for module 'sqrtl'.
37728         * modules/sqrtl-tests: New file.
37729         * tests/test-sqrtl.c: New file.
37730
37731         Tests for module 'sinl'.
37732         * modules/sinl-tests: New file.
37733         * tests/test-sinl.c: New file.
37734
37735         Tests for module 'logl'.
37736         * modules/logl-tests: New file.
37737         * tests/test-logl.c: New file.
37738
37739         Tests for module 'expl'.
37740         * modules/expl-tests: New file.
37741         * tests/test-expl.c: New file.
37742
37743         Tests for module 'cosl'.
37744         * modules/cosl-tests: New file.
37745         * tests/test-cosl.c: New file.
37746
37747         Tests for module 'atanl'.
37748         * modules/atanl-tests: New file.
37749         * tests/test-atanl.c: New file.
37750
37751         Tests for module 'asinl'.
37752         * modules/asinl-tests: New file.
37753         * tests/test-asinl.c: New file.
37754
37755         Tests for module 'acosl'.
37756         * modules/acosl-tests: New file.
37757         * tests/test-acosl.c: New file.
37758
37759         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37760         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37761         tanl): Use the standard gnulib idiom.
37762         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37763         * lib/sinl.c: Likewise.
37764         * lib/tanl.c: Don't include trigl.c.
37765         (kernel_tanl): Make static.
37766         * lib/sincosl.c: Include trigl.h first.
37767         * lib/trigl.c: Likewise.
37768         * m4/acosl.m4: New file.
37769         * m4/asinl.m4: New file.
37770         * m4/atanl.m4: New file.
37771         * m4/cosl.m4: New file.
37772         * m4/expl.m4: New file.
37773         * m4/logl.m4: New file.
37774         * m4/sinl.m4: New file.
37775         * m4/sqrtl.m4: New file.
37776         * m4/tanl.m4: New file.
37777         * m4/mathl.m4: Remove file.
37778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37779         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37780         Don't initialize GNULIB_MATHL.
37781         * modules/acosl: New file.
37782         * modules/asinl: New file.
37783         * modules/atanl: New file.
37784         * modules/cosl: New file.
37785         * modules/expl: New file.
37786         * modules/logl: New file.
37787         * modules/sinl: New file.
37788         * modules/sqrtl: New file.
37789         * modules/tanl: New file.
37790         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37791         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37792         substitute GNULIB_MATHL.
37793         * modules/mathl: Rewritten.
37794         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37795         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37796         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37797         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37798         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37799         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37800         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37801         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37802         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37803
37804 2010-01-18  Bruno Haible  <bruno@clisp.org>
37805
37806         sqrt: Make gl_FUNC_SQRT requirable.
37807         * m4/sqrt.m4: New file.
37808         * modules/sqrt (Files): Add it.
37809         (configure.ac): Invoke gl_FUNC_SQRT.
37810
37811 2010-01-18  Bruno Haible  <bruno@clisp.org>
37812
37813         New modules for common <math.h> functions.
37814         * m4/mathfunc.m4: New file.
37815         * modules/acos: New file.
37816         * modules/asin: New file.
37817         * modules/atan: New file.
37818         * modules/atan2: New file.
37819         * modules/cbrt: New file.
37820         * modules/copysign: New file.
37821         * modules/cos: New file.
37822         * modules/cosh: New file.
37823         * modules/erf: New file.
37824         * modules/erfc: New file.
37825         * modules/exp: New file.
37826         * modules/fabs: New file.
37827         * modules/fmod: New file.
37828         * modules/hypot: New file.
37829         * modules/j0: New file.
37830         * modules/j1: New file.
37831         * modules/jn: New file.
37832         * modules/ldexp: New file.
37833         * modules/lgamma: New file.
37834         * modules/log: New file.
37835         * modules/log10: New file.
37836         * modules/log1p: New file.
37837         * modules/logb: New file.
37838         * modules/modf: New file.
37839         * modules/nextafter: New file.
37840         * modules/pow: New file.
37841         * modules/remainder: New file.
37842         * modules/rint: New file.
37843         * modules/sin: New file.
37844         * modules/sinh: New file.
37845         * modules/sqrt: New file.
37846         * modules/tan: New file.
37847         * modules/tanh: New file.
37848         * modules/y0: New file.
37849         * modules/y1: New file.
37850         * modules/yn: New file.
37851         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37852         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37853         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37854         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37855         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37856         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37857         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37858         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37859         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37860         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37861         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37862         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37863         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37864         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37865         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37866         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37867         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37868         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37869         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37870         * doc/posix-functions/log.texi: Mention the 'log' module.
37871         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37872         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37873         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37874         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37875         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37876         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37877         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37878         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37879         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37880         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37881         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37882         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37883         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37884         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37885         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37886         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37887
37888 2010-01-18  Jim Meyering  <meyering@redhat.com>
37889
37890         ignore-value: relax license to LGPLv2+
37891         * modules/ignore-value (License): Relax to LGPLv2+.
37892
37893         getdate: don't leak when TZ contains two or more '"'s
37894         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37895         double quote in TZ after the first one.
37896
37897         readtokens: do not leak internal token_lengths buffer
37898         * lib/readtokens.c (readtokens): Free the local, lengths,
37899         when the supplied "token_lengths" parameter is NULL.
37900
37901 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37902
37903         Fix a couple of missing LIBTHREAD link failures on AIX.
37904         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37905         $(LIBTHREAD).
37906         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37907
37908         Link test-poll against INET_PTON_LIB.
37909         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37910         for inet_pton on Solaris 10.
37911
37912 2010-01-17  Bruno Haible  <bruno@clisp.org>
37913
37914         unistdio/*-sprintf: Fix typo in module description.
37915         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37916         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37917         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37918         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37919         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37920         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37921         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37923
37924 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37925
37926         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37927         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37928         variables in shell case patterns, for AIX and HP-UX ksh.
37929
37930         Split large sed scripts, for HP-UX sed.
37931         * modules/stdio: Split sed scripts around 50 sed commands,
37932         to avoid HP-UX limit of 99 commands, in the near future.
37933         * modules/string: Likewise.
37934         * modules/unistd: Likewise.
37935
37936         gnulib-tool: avoid writing in the current directory.
37937         * gnulib-tool (func_emit_lib_Makefile_am)
37938         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37939         not in the current directory, so concurrent gnulib-tool
37940         instances do not interfere.
37941
37942 2010-01-16  Jim Meyering  <meyering@redhat.com>
37943
37944         doc: update users.txt
37945         * users.txt: Add grep.
37946         (diffutils, gzip): Update URLs.
37947
37948 2010-01-12  Bruno Haible  <bruno@clisp.org>
37949
37950         posix_spawn: Avoid test failure on Cygwin.
37951         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37952         characters.
37953         Reported by Simon Josefsson.
37954
37955 2010-01-12  Bruno Haible  <bruno@clisp.org>
37956
37957         * tests/test-cond.c (main): When skipping the test, show the reason.
37958
37959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37960
37961         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37962
37963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37964
37965         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37966         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37967
37968 2010-01-12  Eric Blake  <ebb9@byu.net>
37969
37970         build: guarantee AS_VAR_IF
37971         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37972         (gl_AS_VAR_IF): Move...
37973         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37974         Reported by Simon Josefsson.
37975
37976 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37977
37978         * lib/stdio.in.h: Fix typo.
37979
37980 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37981
37982         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37983         libgpg-error.
37984
37985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37986
37987         * tests/test-xalloc-die.sh: Use $EXEEXT.
37988
37989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37990             Bruno Haible  <bruno@clisp.org>
37991
37992         getlogin, getlogin_r: Avoid test failure.
37993         * tests/test-getlogin.c: Include <stdio.h>.
37994         (main): Skip the test when the function fails because stdin is not a
37995         tty.
37996         * tests/test-getlogin_r.c: Include <stdio.h>.
37997         (main): Skip the test when the function fails because stdin is not a
37998         tty.
37999
38000 2010-01-11  Eric Blake  <ebb9@byu.net>
38001
38002         tests: avoid more large file warnings
38003         * tests/test-fflush.c: Avoid warning about ftell use.
38004         * tests/test-fseek.c: Avoid warning about fseek use.
38005
38006 2010-01-10  Bruno Haible  <bruno@clisp.org>
38007
38008         nproc: Work better on Linux when /proc and /sys are not mounted.
38009         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38010         as lower bound when, on glibc/Linux systems,
38011         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38012         Suggested by Pádraig Brady <P@draigbrady.com>.
38013         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38014
38015         nproc: Refactor.
38016         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38017         extracted from num_processors.
38018         (num_processors): Call it.
38019
38020 2010-01-11  Jim Meyering  <meyering@redhat.com>
38021
38022         utimecmp: avoid new warning from upcoming gcc-4.5.0
38023         * lib/utimecmp.c (BILLION): Define using #define rather than an
38024         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38025
38026 2010-01-11  Eric Blake  <ebb9@byu.net>
38027
38028         math: add portability warnings for classification macros
38029         * modules/math (Depends-on): Add warn-on-use.
38030         (Makefile.am): Provide new substitutions.
38031         * m4/math_h.m4 (gl_MATH_H): Require inline.
38032         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38033         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38034         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38035         implement warnings.
38036
38037         unistd: warn on use of environ without module
38038         * modules/unistd (Depends-on): Add warn-on-use.
38039         (Makefile.am): Provide new substitutions.
38040         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38041         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38042
38043         stdio: warn on suspicious uses
38044         * modules/stdio (Depends-on): Add warn-on-use.
38045         (Makefile.am): Provide new substitutions.
38046         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38047         fseeko.
38048         * lib/stdio.in.h (gets): Always warn on use.
38049         (fseek, ftell): Adjust when warnings are issued, and honor
38050         _GL_NO_LARGE_FILES as a way to silence the warning.
38051         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38052         any warning about large file offsets.
38053         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38054         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38055         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38056         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38057         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38058         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38059         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38060         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38061
38062         warn-on-use: new module
38063         * modules/warn-on-use: New file.
38064         * build-aux/warn-on-use.h: Likewise.
38065         * m4/warn-on-use.m4: Likewise.
38066         * MODULES.html.sh (Support for building): Mention it.
38067
38068 2010-01-10  Bruno Haible  <bruno@clisp.org>
38069
38070         Tests for module 'unistr/u32-strdup'.
38071         * modules/unistr/u32-strdup-tests: New file.
38072         * tests/unistr/test-u32-strdup.c: New file.
38073
38074         Tests for module 'unistr/u16-strdup'.
38075         * modules/unistr/u16-strdup-tests: New file.
38076         * tests/unistr/test-u16-strdup.c: New file.
38077
38078         Tests for module 'unistr/u8-strdup'.
38079         * modules/unistr/u8-strdup-tests: New file.
38080         * tests/unistr/test-u8-strdup.c: New file.
38081         * tests/unistr/test-strdup.h: New file.
38082
38083         Tests for module 'unistr/u32-strncmp'.
38084         * modules/unistr/u32-strncmp-tests: New file.
38085         * tests/unistr/test-u32-strncmp.c: New file.
38086
38087         Tests for module 'unistr/u16-strncmp'.
38088         * modules/unistr/u16-strncmp-tests: New file.
38089         * tests/unistr/test-u16-strncmp.c: New file.
38090
38091         Tests for module 'unistr/u8-strncmp'.
38092         * modules/unistr/u8-strncmp-tests: New file.
38093         * tests/unistr/test-u8-strncmp.c: New file.
38094         * tests/unistr/test-strncmp.h: New file.
38095
38096         Tests for module 'unistr/u32-strcoll'.
38097         * modules/unistr/u32-strcoll-tests: New file.
38098         * tests/unistr/test-u32-strcoll.c: New file.
38099
38100         Tests for module 'unistr/u16-strcoll'.
38101         * modules/unistr/u16-strcoll-tests: New file.
38102         * tests/unistr/test-u16-strcoll.c: New file.
38103
38104         Tests for module 'unistr/u8-strcoll'.
38105         * modules/unistr/u8-strcoll-tests: New file.
38106         * tests/unistr/test-u8-strcoll.c: New file.
38107
38108         Tests for module 'unistr/u32-strcmp'.
38109         * modules/unistr/u32-strcmp-tests: New file.
38110         * tests/unistr/test-u32-strcmp.c: New file.
38111         * tests/unistr/test-u32-strcmp.h: New file.
38112
38113         Tests for module 'unistr/u16-strcmp'.
38114         * modules/unistr/u16-strcmp-tests: New file.
38115         * tests/unistr/test-u16-strcmp.c: New file.
38116         * tests/unistr/test-u16-strcmp.h: New file.
38117
38118         Tests for module 'unistr/u8-strcmp'.
38119         * modules/unistr/u8-strcmp-tests: New file.
38120         * tests/unistr/test-u8-strcmp.c: New file.
38121         * tests/unistr/test-u8-strcmp.h: New file.
38122         * tests/unistr/test-strcmp.h: New file.
38123
38124         Tests for module 'unistr/u32-strncat'.
38125         * modules/unistr/u32-strncat-tests: New file.
38126         * tests/unistr/test-u32-strncat.c: New file.
38127
38128         Tests for module 'unistr/u16-strncat'.
38129         * modules/unistr/u16-strncat-tests: New file.
38130         * tests/unistr/test-u16-strncat.c: New file.
38131
38132         Tests for module 'unistr/u8-strncat'.
38133         * modules/unistr/u8-strncat-tests: New file.
38134         * tests/unistr/test-u8-strncat.c: New file.
38135         * tests/unistr/test-strncat.h: New file.
38136
38137         Tests for module 'unistr/u32-strcat'.
38138         * modules/unistr/u32-strcat-tests: New file.
38139         * tests/unistr/test-u32-strcat.c: New file.
38140
38141         Tests for module 'unistr/u16-strcat'.
38142         * modules/unistr/u16-strcat-tests: New file.
38143         * tests/unistr/test-u16-strcat.c: New file.
38144
38145         Tests for module 'unistr/u8-strcat'.
38146         * modules/unistr/u8-strcat-tests: New file.
38147         * tests/unistr/test-u8-strcat.c: New file.
38148         * tests/unistr/test-strcat.h: New file.
38149
38150         Tests for module 'unistr/u32-stpncpy'.
38151         * modules/unistr/u32-stpncpy-tests: New file.
38152         * tests/unistr/test-u32-stpncpy.c: New file.
38153
38154         Tests for module 'unistr/u16-stpncpy'.
38155         * modules/unistr/u16-stpncpy-tests: New file.
38156         * tests/unistr/test-u16-stpncpy.c: New file.
38157
38158         Tests for module 'unistr/u8-stpncpy'.
38159         * modules/unistr/u8-stpncpy-tests: New file.
38160         * tests/unistr/test-u8-stpncpy.c: New file.
38161         * tests/unistr/test-stpncpy.h: New file.
38162
38163         Tests for module 'unistr/u32-strncpy'.
38164         * modules/unistr/u32-strncpy-tests: New file.
38165         * tests/unistr/test-u32-strncpy.c: New file.
38166
38167         Tests for module 'unistr/u16-strncpy'.
38168         * modules/unistr/u16-strncpy-tests: New file.
38169         * tests/unistr/test-u16-strncpy.c: New file.
38170
38171         Tests for module 'unistr/u8-strncpy'.
38172         * modules/unistr/u8-strncpy-tests: New file.
38173         * tests/unistr/test-u8-strncpy.c: New file.
38174         * tests/unistr/test-strncpy.h: New file.
38175
38176         Tests for module 'unistr/u32-stpcpy'.
38177         * modules/unistr/u32-stpcpy-tests: New file.
38178         * tests/unistr/test-u32-stpcpy.c: New file.
38179
38180         Tests for module 'unistr/u16-stpcpy'.
38181         * modules/unistr/u16-stpcpy-tests: New file.
38182         * tests/unistr/test-u16-stpcpy.c: New file.
38183
38184         Tests for module 'unistr/u8-stpcpy'.
38185         * modules/unistr/u8-stpcpy-tests: New file.
38186         * tests/unistr/test-u8-stpcpy.c: New file.
38187         * tests/unistr/test-stpcpy.h: New file.
38188
38189         Tests for module 'unistr/u32-strcpy'.
38190         * modules/unistr/u32-strcpy-tests: New file.
38191         * tests/unistr/test-u32-strcpy.c: New file.
38192
38193         Tests for module 'unistr/u16-strcpy'.
38194         * modules/unistr/u16-strcpy-tests: New file.
38195         * tests/unistr/test-u16-strcpy.c: New file.
38196
38197         Tests for module 'unistr/u8-strcpy'.
38198         * modules/unistr/u8-strcpy-tests: New file.
38199         * tests/unistr/test-u8-strcpy.c: New file.
38200         * tests/unistr/test-strcpy.h: New file.
38201
38202         Tests for module 'unistr/u32-strnlen'.
38203         * modules/unistr/u32-strnlen-tests: New file.
38204         * tests/unistr/test-u32-strnlen.c: New file.
38205
38206         Tests for module 'unistr/u16-strnlen'.
38207         * modules/unistr/u16-strnlen-tests: New file.
38208         * tests/unistr/test-u16-strnlen.c: New file.
38209
38210         Tests for module 'unistr/u8-strnlen'.
38211         * modules/unistr/u8-strnlen-tests: New file.
38212         * tests/unistr/test-u8-strnlen.c: New file.
38213         * tests/unistr/test-strnlen.h: New file.
38214
38215         Tests for module 'unistr/u32-strlen'.
38216         * modules/unistr/u32-strlen-tests: New file.
38217         * tests/unistr/test-u32-strlen.c: New file.
38218
38219         Tests for module 'unistr/u16-strlen'.
38220         * modules/unistr/u16-strlen-tests: New file.
38221         * tests/unistr/test-u16-strlen.c: New file.
38222
38223         Tests for module 'unistr/u8-strlen'.
38224         * modules/unistr/u8-strlen-tests: New file.
38225         * tests/unistr/test-u8-strlen.c: New file.
38226
38227         Tests for module 'unistr/u32-prev'.
38228         * modules/unistr/u32-prev-tests: New file.
38229         * tests/unistr/test-u32-prev.c: New file.
38230
38231         Tests for module 'unistr/u16-prev'.
38232         * modules/unistr/u16-prev-tests: New file.
38233         * tests/unistr/test-u16-prev.c: New file.
38234
38235         Tests for module 'unistr/u8-prev'.
38236         * modules/unistr/u8-prev-tests: New file.
38237         * tests/unistr/test-u8-prev.c: New file.
38238
38239         Tests for module 'unistr/u32-next'.
38240         * modules/unistr/u32-next-tests: New file.
38241         * tests/unistr/test-u32-next.c: New file.
38242
38243         Tests for module 'unistr/u16-next'.
38244         * modules/unistr/u16-next-tests: New file.
38245         * tests/unistr/test-u16-next.c: New file.
38246
38247         Tests for module 'unistr/u8-next'.
38248         * modules/unistr/u8-next-tests: New file.
38249         * tests/unistr/test-u8-next.c: New file.
38250
38251         Tests for module 'unistr/u32-strmbtouc'.
38252         * modules/unistr/u32-strmbtouc-tests: New file.
38253         * tests/unistr/test-u32-strmbtouc.c: New file.
38254
38255         Tests for module 'unistr/u16-strmbtouc'.
38256         * modules/unistr/u16-strmbtouc-tests: New file.
38257         * tests/unistr/test-u16-strmbtouc.c: New file.
38258
38259         Tests for module 'unistr/u8-strmbtouc'.
38260         * modules/unistr/u8-strmbtouc-tests: New file.
38261         * tests/unistr/test-u8-strmbtouc.c: New file.
38262
38263         Tests for module 'unistr/u32-strmblen'.
38264         * modules/unistr/u32-strmblen-tests: New file.
38265         * tests/unistr/test-u32-strmblen.c: New file.
38266
38267         Tests for module 'unistr/u16-strmblen'.
38268         * modules/unistr/u16-strmblen-tests: New file.
38269         * tests/unistr/test-u16-strmblen.c: New file.
38270
38271         Tests for module 'unistr/u8-strmblen'.
38272         * modules/unistr/u8-strmblen-tests: New file.
38273         * tests/unistr/test-u8-strmblen.c: New file.
38274
38275         Tests for module 'unistr/u32-cpy-alloc'.
38276         * modules/unistr/u32-cpy-alloc-tests: New file.
38277         * tests/unistr/test-u32-cpy-alloc.c: New file.
38278
38279         Tests for module 'unistr/u16-cpy-alloc'.
38280         * modules/unistr/u16-cpy-alloc-tests: New file.
38281         * tests/unistr/test-u16-cpy-alloc.c: New file.
38282
38283         Tests for module 'unistr/u8-cpy-alloc'.
38284         * modules/unistr/u8-cpy-alloc-tests: New file.
38285         * tests/unistr/test-u8-cpy-alloc.c: New file.
38286         * tests/unistr/test-cpy-alloc.h: New file.
38287
38288         Tests for module 'unistr/u32-mbsnlen'.
38289         * modules/unistr/u32-mbsnlen-tests: New file.
38290         * tests/unistr/test-u32-mbsnlen.c: New file.
38291
38292         Tests for module 'unistr/u16-mbsnlen'.
38293         * modules/unistr/u16-mbsnlen-tests: New file.
38294         * tests/unistr/test-u16-mbsnlen.c: New file.
38295
38296         Tests for module 'unistr/u8-mbsnlen'.
38297         * modules/unistr/u8-mbsnlen-tests: New file.
38298         * tests/unistr/test-u8-mbsnlen.c: New file.
38299
38300         Tests for module 'unistr/u32-chr'.
38301         * modules/unistr/u32-chr-tests: New file.
38302         * tests/unistr/test-u32-chr.c: New file.
38303
38304         Tests for module 'unistr/u16-chr'.
38305         * modules/unistr/u16-chr-tests: New file.
38306         * tests/unistr/test-u16-chr.c: New file.
38307
38308         Tests for module 'unistr/u8-chr'.
38309         * modules/unistr/u8-chr-tests: New file.
38310         * tests/unistr/test-u8-chr.c: New file.
38311         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38312
38313         Tests for module 'unistr/u32-cmp2'.
38314         * modules/unistr/u32-cmp2-tests: New file.
38315         * tests/unistr/test-u32-cmp2.c: New file.
38316
38317         Tests for module 'unistr/u16-cmp2'.
38318         * modules/unistr/u16-cmp2-tests: New file.
38319         * tests/unistr/test-u16-cmp2.c: New file.
38320
38321         Tests for module 'unistr/u8-cmp2'.
38322         * modules/unistr/u8-cmp2-tests: New file.
38323         * tests/unistr/test-u8-cmp2.c: New file.
38324         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38325
38326         Tests for module 'unistr/u32-cmp'.
38327         * modules/unistr/u32-cmp-tests: New file.
38328         * tests/unistr/test-u32-cmp.c: New file.
38329
38330         Tests for module 'unistr/u16-cmp'.
38331         * modules/unistr/u16-cmp-tests: New file.
38332         * tests/unistr/test-u16-cmp.c: New file.
38333
38334         Tests for module 'unistr/u8-cmp'.
38335         * modules/unistr/u8-cmp-tests: New file.
38336         * tests/unistr/test-u8-cmp.c: New file.
38337         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38338
38339         Tests for module 'unistr/u32-set'.
38340         * modules/unistr/u32-set-tests: New file.
38341         * tests/unistr/test-u32-set.c: New file.
38342
38343         Tests for module 'unistr/u16-set'.
38344         * modules/unistr/u16-set-tests: New file.
38345         * tests/unistr/test-u16-set.c: New file.
38346
38347         Tests for module 'unistr/u8-set'.
38348         * modules/unistr/u8-set-tests: New file.
38349         * tests/unistr/test-u8-set.c: New file.
38350         * tests/unistr/test-set.h: New file.
38351
38352         Tests for module 'unistr/u32-move'.
38353         * modules/unistr/u32-move-tests: New file.
38354         * tests/unistr/test-u32-move.c: New file.
38355
38356         Tests for module 'unistr/u16-move'.
38357         * modules/unistr/u16-move-tests: New file.
38358         * tests/unistr/test-u16-move.c: New file.
38359
38360         Tests for module 'unistr/u8-move'.
38361         * modules/unistr/u8-move-tests: New file.
38362         * tests/unistr/test-u8-move.c: New file.
38363         * tests/unistr/test-move.h: New file.
38364
38365         Tests for module 'unistr/u32-cpy'.
38366         * modules/unistr/u32-cpy-tests: New file.
38367         * tests/unistr/test-u32-cpy.c: New file.
38368
38369         Tests for module 'unistr/u16-cpy'.
38370         * modules/unistr/u16-cpy-tests: New file.
38371         * tests/unistr/test-u16-cpy.c: New file.
38372
38373         Tests for module 'unistr/u8-cpy'.
38374         * modules/unistr/u8-cpy-tests: New file.
38375         * tests/unistr/test-u8-cpy.c: New file.
38376         * tests/unistr/test-cpy.h: New file.
38377
38378 2010-01-09  Bruno Haible  <bruno@clisp.org>
38379
38380         Tests for module 'unistr/u32-uctomb'.
38381         * modules/unistr/u32-uctomb-tests: New file.
38382         * tests/unistr/test-u32-uctomb.c: New file.
38383
38384         Tests for module 'unistr/u16-uctomb'.
38385         * modules/unistr/u16-uctomb-tests: New file.
38386         * tests/unistr/test-u16-uctomb.c: New file.
38387
38388         Tests for module 'unistr/u8-uctomb'.
38389         * modules/unistr/u8-uctomb-tests: New file.
38390         * tests/unistr/test-u8-uctomb.c: New file.
38391
38392         Tests for module 'unistr/u32-mbtoucr'.
38393         * modules/unistr/u32-mbtoucr-tests: New file.
38394         * tests/unistr/test-u32-mbtoucr.c: New file.
38395
38396         Tests for module 'unistr/u16-mbtoucr'.
38397         * modules/unistr/u16-mbtoucr-tests: New file.
38398         * tests/unistr/test-u16-mbtoucr.c: New file.
38399
38400         Tests for module 'unistr/u8-mbtoucr'.
38401         * modules/unistr/u8-mbtoucr-tests: New file.
38402         * tests/unistr/test-u8-mbtoucr.c: New file.
38403
38404         Tests for module 'unistr/u32-mbtouc'.
38405         * modules/unistr/u32-mbtouc-tests: New file.
38406         * tests/unistr/test-u32-mbtouc.c: New file.
38407
38408         Tests for module 'unistr/u16-mbtouc'.
38409         * modules/unistr/u16-mbtouc-tests: New file.
38410         * tests/unistr/test-u16-mbtouc.c: New file.
38411
38412         Tests for module 'unistr/u8-mbtouc'.
38413         * modules/unistr/u8-mbtouc-tests: New file.
38414         * tests/unistr/test-u8-mbtouc.c: New file.
38415
38416         Tests for module 'unistr/u32-mbtouc-unsafe'.
38417         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38418         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38419         * tests/unistr/test-u32-mbtouc.h: New file.
38420
38421         Tests for module 'unistr/u16-mbtouc-unsafe'.
38422         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38423         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38424         * tests/unistr/test-u16-mbtouc.h: New file.
38425
38426         Tests for module 'unistr/u8-mbtouc-unsafe'.
38427         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38428         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38429         * tests/unistr/test-u8-mbtouc.h: New file.
38430
38431         Tests for module 'unistr/u32-mblen'.
38432         * modules/unistr/u32-mblen-tests: New file.
38433         * tests/unistr/test-u32-mblen.c: New file.
38434
38435         Tests for module 'unistr/u16-mblen'.
38436         * modules/unistr/u16-mblen-tests: New file.
38437         * tests/unistr/test-u16-mblen.c: New file.
38438
38439         Tests for module 'unistr/u8-mblen'.
38440         * modules/unistr/u8-mblen-tests: New file.
38441         * tests/unistr/test-u8-mblen.c: New file.
38442
38443         Tests for module 'unistr/u32-to-u16'.
38444         * modules/unistr/u32-to-u16-tests: New file.
38445         * tests/unistr/test-u32-to-u16.c: New file.
38446
38447         Tests for module 'unistr/u32-to-u8'.
38448         * modules/unistr/u32-to-u8-tests: New file.
38449         * tests/unistr/test-u32-to-u8.c: New file.
38450
38451         Tests for module 'unistr/u16-to-u32'.
38452         * modules/unistr/u16-to-u32-tests: New file.
38453         * tests/unistr/test-u16-to-u32.c: New file.
38454
38455         Tests for module 'unistr/u16-to-u8'.
38456         * modules/unistr/u16-to-u8-tests: New file.
38457         * tests/unistr/test-u16-to-u8.c: New file.
38458
38459         Tests for module 'unistr/u8-to-u32'.
38460         * modules/unistr/u8-to-u32-tests: New file.
38461         * tests/unistr/test-u8-to-u32.c: New file.
38462
38463         Tests for module 'unistr/u8-to-u16'.
38464         * modules/unistr/u8-to-u16-tests: New file.
38465         * tests/unistr/test-u8-to-u16.c: New file.
38466
38467         Tests for module 'unistr/u32-check'.
38468         * modules/unistr/u32-check-tests: New file.
38469         * tests/unistr/test-u32-check.c: New file.
38470
38471         Tests for module 'unistr/u16-check'.
38472         * modules/unistr/u16-check-tests: New file.
38473         * tests/unistr/test-u16-check.c: New file.
38474
38475         Tests for module 'unistr/u8-check'.
38476         * modules/unistr/u8-check-tests: New file.
38477         * tests/unistr/test-u8-check.c: New file.
38478
38479         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38480         (category_equals): New function.
38481         (main): Add more tests.
38482         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38483
38484         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38485
38486 2010-01-10  Bruno Haible  <bruno@clisp.org>
38487
38488         unistr/u*-strcoll: Try harder to distinguish different strings.
38489         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38490         compare s1 and s2 to see if they are different.
38491
38492 2010-01-10  Bruno Haible  <bruno@clisp.org>
38493
38494         unistr/u*-stpncpy: Fix the return value.
38495         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38496         description of the return value consistent with stpncpy in glibc.
38497         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38498         written non-NUL unit.
38499
38500 2010-01-10  Bruno Haible  <bruno@clisp.org>
38501
38502         unistr/u*-next: Add missing dependencies.
38503         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38504         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38505         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38506
38507 2010-01-10  Bruno Haible  <bruno@clisp.org>
38508
38509         unistr/u8-mbsnlen: Fix return value for incomplete character.
38510         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38511         u8_mblen.
38512         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38513         Remove unistr/u8-mblen.
38514         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38515         u16_mblen.
38516         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38517         Remove unistr/u16-mblen.
38518
38519 2010-01-10  Bruno Haible  <bruno@clisp.org>
38520
38521         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38522         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38523         Reported by Brian Gough <bjg@gnu.org> and
38524         Chris Clayton <chris2553@googlemail.com> via
38525         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38526
38527 2010-01-09  Bruno Haible  <bruno@clisp.org>
38528
38529         unistr/u16-to-u32: Reject invalid input.
38530         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38531         u16_mbtouc.
38532         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38533         Remove unistr/u16-mbtouc.
38534
38535         unistr/u16-to-u8: Reject invalid input.
38536         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38537         u16_mbtouc.
38538         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38539         Remove unistr/u16-mbtouc.
38540
38541         unistr/u8-to-u32: Reject invalid input.
38542         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38543         u8_mbtouc.
38544         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38545         Remove unistr/u8-mbtouc.
38546
38547         unistr/u8-to-u16: Reject invalid input.
38548         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38549         u8_mbtouc.
38550         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38551         Remove unistr/u8-mbtouc.
38552
38553 2010-01-09  Bruno Haible  <bruno@clisp.org>
38554
38555         Tests for module 'getlogin'.
38556         * modules/getlogin-tests: New file.
38557         * tests/test-getlogin.c: New file.
38558
38559         New module 'getlogin'.
38560         * lib/unistd.in.h (getlogin): New declaration.
38561         * lib/getlogin.c: New file.
38562         * m4/getlogin.m4: New file.
38563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38564         HAVE_GETLOGIN.
38565         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38566         HAVE_GETLOGIN.
38567         * modules/getlogin: New file.
38568         * doc/posix-functions/getlogin.texi: Mention the new module.
38569         Reported by John W. Eaton <jwe@gnu.org>.
38570
38571 2010-01-09  Bruno Haible  <bruno@clisp.org>
38572
38573         getlogin_r: Support for native Windows.
38574         * lib/getlogin_r.c: Include <windows.h>
38575         (getlogin_r): Implement for native Windows.
38576         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38577         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38578         via John W. Eaton <jwe@gnu.org>.
38579
38580 2010-01-09  Bruno Haible  <bruno@clisp.org>
38581
38582         getlogin_r: Small fixes.
38583         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38584         succeeds.
38585         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38586         before testing whether getlogin_r is declared. No need to set
38587         HAVE_DECL_GETLOGIN_R to 1.
38588         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38589
38590 2010-01-09  Bruno Haible  <bruno@clisp.org>
38591
38592         * lib/unistd.in.h (getlogin_r): Add comment.
38593
38594 2010-01-09  Bruno Haible  <bruno@clisp.org>
38595
38596         Tests for module 'getlogin_r'.
38597         * modules/getlogin_r-tests: New file.
38598         * tests/test-getlogin_r.c: New file.
38599
38600 2010-01-09  Jim Meyering  <meyering@redhat.com>
38601
38602         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38603         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38604         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38605
38606 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38607
38608         * lib/dup2.c (rpl_dup2): Improve comment.
38609
38610 2010-01-08  Eric Blake  <ebb9@byu.net>
38611
38612         maint.mk: allow packages to add makefile @@ exceptions
38613         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38614         (sc_makefile_check): Rename...
38615         (sc_makefile_at_at_check): ...to this, and use hook.
38616
38617         dup2: work around mingw bug
38618         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38619         Reported by Simon Josefsson.
38620
38621 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38622
38623         glob: Fix C++ compilation.
38624         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38625         C++.
38626
38627 2010-01-07  Bruno Haible  <bruno@clisp.org>
38628
38629         Fix indentation of wctype.in.h, broken since 2007-01-06.
38630         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38631
38632 2010-01-07  Bruno Haible  <bruno@clisp.org>
38633
38634         mbslen: Avoid collision with system function.
38635         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38636         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38637         * m4/mbslen.m4: New file.
38638         * modules/mbslen (Files): Add it.
38639         (configure.ac): Invoke gl_MBSLEN.
38640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38641         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38642         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38643         via Ian Beckwith <ianb@erislabs.net>.
38644
38645 2010-01-07  Bruno Haible  <bruno@clisp.org>
38646
38647         dirent: Document the last fix.
38648         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38649
38650 2010-01-07  Bruno Haible  <bruno@clisp.org>
38651
38652         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38653         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38654         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38655         va_list are defined.
38656         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38657         Reported by Eric Blake.
38658
38659 2010-01-07  Bruno Haible  <bruno@clisp.org>
38660
38661         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38662         * modules/xlist (Depends-on): Add 'list',
38663         * modules/xoset (Depends-on): Add 'oset'.
38664         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38665
38666 2010-01-07  Bruno Haible  <bruno@clisp.org>
38667
38668         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38669         * doc/posix-functions/strncasecmp.texi: Likewise.
38670
38671 2010-01-07  Bruno Haible  <bruno@clisp.org>
38672
38673         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38674
38675 2010-01-07  John W. Eaton  <jwe@octave.org>
38676
38677         wctype: allow C++ use
38678         * lib/wctype.in.h: Add extern "C" block for C++.
38679
38680 2010-01-06  Eric Blake  <ebb9@byu.net>
38681
38682         maint.mk: detect incorrect GFDL usage
38683         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38684
38685 2010-01-06  Jim Meyering  <meyering@redhat.com>
38686         and Eric Blake  <ebb9@byu.net>
38687
38688         maint.mk: ignore multi-line copyright in NEWS
38689         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38690
38691 2010-01-06  Eric Blake  <ebb9@byu.net>
38692
38693         select: add missing dependency
38694         * modules/select-tests (Depends-on): Move sockets dependency...
38695         * modules/select (Depends-on): ...here.
38696         Reported by Ian Beckwith.
38697
38698         doc: regenerate INSTALL
38699         * doc/INSTALL: Reflect recent autoconf update.
38700         * doc/INSTALL.ISO: Likewise.
38701         * doc/INSTALL.UTF-8: Likewise.
38702
38703         pread: fix compilation on glibc
38704         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38705         Reported by Ralf Wildenhues.
38706
38707         dirent: fix test failure
38708         * lib/dirent.in.h (includes): Guarantee ino_t.
38709         Reported by Ralf Wildenhues.
38710
38711 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38712
38713         linkat, renameat: avoid bad free
38714         * lib/at-func2.c (at_func2): Fix typo.
38715         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38716
38717 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38718
38719         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38720         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38721         to avoid failure of symlink test later.
38722
38723 2010-01-06  Eric Blake  <ebb9@byu.net>
38724
38725         stdio, unistd: guarantee ssize_t
38726         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38727         2008 are exposed when needed.
38728         * lib/stdio.in.h (includes): Likewise.
38729         Reported by Ralf Wildenhues.
38730
38731 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38732
38733         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38734         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38735         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38736
38737 2010-01-06  Jim Meyering  <meyering@redhat.com>
38738
38739         readtokens: this module *does* require xalloc.h
38740         It uses only functions that were omitted by the old syntax-check rule.
38741         * lib/readtokens.c: Include "xalloc.h" once again.
38742         * modules/readtokens (Depends-on): Add xalloc.
38743         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38744
38745 2010-01-05  Eric Blake  <ebb9@byu.net>
38746
38747         maint: support 'make announcement' from a VPATH build
38748         * top/maint.mk (announcement): Look for correct NEWS file.
38749
38750 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38751
38752         utimens (fdutimens): ignore a negative FD, per contract
38753         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38754         when we have a valid file descriptor.  Otherwise, using a brand
38755         new glibc (with just-patched futimens that now fails with EBADF)
38756         would cause this function to fail with ENOSYS.
38757         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38758         See also http://bugzilla.redhat.com/552320.
38759
38760 2010-01-05  Eric Blake  <ebb9@byu.net>
38761
38762         strcase: document what it provides
38763         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38764         gnulib module.
38765         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38766         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38767
38768 2010-01-05  Jim Meyering  <meyering@redhat.com>
38769
38770         maint: remove useless inclusions of "xalloc.h"
38771         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38772         * lib/readtokens.c: Likewise.
38773         * lib/same.c: Likewise.
38774         * modules/getloadavg (Depends-on): Remove xalloc.
38775         * modules/readtokens: Likewise.
38776         * modules/same: Likewise.
38777
38778         maint.mk: include 4 more function names in alloca.h-checking regexp
38779         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38780         regexp.  Before, we would give a false-positive (saying alloca.h
38781         is included unnecessarily) when the only uses involved omitted symbols.
38782
38783         xalloc.h: use consistent formatting
38784         * lib/xalloc.h: Move declarations to start in the first column.
38785
38786 2010-01-05  Eric Blake  <ebb9@byu.net>
38787
38788         mkdir: avoid xalloc
38789         * lib/mkdir.c (includes): Drop unused header.
38790         Reported by John W. Eaton.
38791
38792 2010-01-04  Jim Meyering  <meyering@redhat.com>
38793
38794         nl_langinfo: avoid configure-time syntax error
38795         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38796         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38797         the empty string.  Don't let that provoke a shell syntax error.
38798
38799         regcomp, regexec, fnmatch: avoid array bounds read error
38800         * lib/regcomp.c (build_equiv_class): From glibc:
38801         Use only the low 24 bits of a findidx return value as an index
38802         into the weights array.  Patch by Ulrich Drepper:
38803         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38804         * lib/regexec.c (check_node_accept_bytes): Likewise.
38805         * lib/fnmatch_loop.c (FCT): Likewise.
38806
38807         regcomp: skip collseq lookup when there are no rules
38808         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38809         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38810
38811         regcomp: recognize ill-formed { } expressions
38812         * lib/regcomp.c (parse_dup_op): From glibc:
38813         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38814
38815         regcomp: fix typo in comment
38816         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38817         s/satisfy/satisfies/.
38818
38819         regcomp: sync from glibc: remove dead store
38820         * lib/regcomp.c (duplicate_node_closure): Remove useless
38821         search_duplicated_node call and dead store.
38822
38823         regcomp: sync from glibc; always use nl_langinfo
38824         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38825         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38826         * modules/regex (Depends-on): Add nl_langinfo.
38827
38828 2010-01-04  Eric Blake  <ebb9@byu.net>
38829
38830         fdopendir: fix configure test
38831         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38832
38833 2010-01-01  Bruno Haible  <bruno@clisp.org>
38834
38835         wchar: Remove unused configure check.
38836         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38837
38838 2010-01-01  Eric Blake  <ebb9@byu.net>
38839
38840         headers: make check of system header explicit
38841         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38842         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38843         ourselves.
38844         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38847         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38848         internals.
38849         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38850         missing.
38851         Suggested by Bruno Haible.
38852
38853 2010-01-01  Jim Meyering  <meyering@redhat.com>
38854
38855         ChangeLog: tweak to eliminate unnecessary copyright line
38856         * ChangeLog: Remove a copyright line that was mistakenly updated
38857         by today's update-copyright run.  Reported by Eric Blake.
38858
38859         test-update-copyright: don't let envvar setting cause test failure
38860         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38861
38862 2010-01-01  Bruno Haible  <bruno@clisp.org>
38863
38864         localename: Avoid gcc warning.
38865         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38866         function if it is not used.
38867
38868 2010-01-01  Jim Meyering  <meyering@redhat.com>
38869
38870         update nearly all FSF copyright year lists to include 2010
38871         Use the same procedure as for 2009, outlined in
38872         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38873
38874         version-etc: set COPYRIGHT_YEAR to 2010
38875         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38876
38877 2009-12-31  Eric Blake  <ebb9@byu.net>
38878
38879         doc: correct availability of cygwin 1.5.x getopt
38880         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38881         variables.
38882         * doc/posix-functions/opterr.texi (opterr): Likewise.
38883         * doc/posix-functions/optind.texi (optind): Likewise.
38884         * doc/posix-functions/optopt.texi (optopt): Likewise.
38885         * doc/posix-functions/tzname.texi (tzname): Likewise.
38886
38887         openat: update maintainer
38888         * modules/openat (Maintainer): Add myself.
38889
38890         utimens: avoid shadowing warning
38891         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38892         buffers into one, to avoid shadowing, as well as avoiding a
38893         redundant stat.
38894         Reported by Jim Meyering.
38895
38896         test-dup2: avoid compiler warning
38897         * tests/test-dup2.c (is_inheritable): Only define if used.
38898
38899 2010-01-01  Bruno Haible  <bruno@clisp.org>
38900
38901         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38902         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38903         defined, use wctomb instead of wcrtomb.
38904
38905 2010-01-01  Bruno Haible  <bruno@clisp.org>
38906
38907         iconv: Reject native Solaris iconv.
38908         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38909         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38910
38911 2009-12-31  Bruno Haible  <bruno@clisp.org>
38912
38913         * tests/test-signal.c (main): Remove test of 'SIG'.
38914
38915 2009-12-31  Bruno Haible  <bruno@clisp.org>
38916
38917         spawn: Fix incomplete fix.
38918         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38919         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38920         warnings for GNULIB_POSIXCHECK again.
38921         Reported by Eric Blake.
38922
38923 2009-12-31  Bruno Haible  <bruno@clisp.org>
38924
38925         Avoid namespace pollution on glibc systems.
38926         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38927         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38928         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38929         glibc systems.
38930
38931 2009-12-31  Bruno Haible  <bruno@clisp.org>
38932
38933         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38934         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38935         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38936         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38937         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38938         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38939         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38940
38941 2009-12-31  Bruno Haible  <bruno@clisp.org>
38942
38943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38944         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38945         afterwards.
38946
38947 2009-12-31  Bruno Haible  <bruno@clisp.org>
38948
38949         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38950         SYS_UTSNAME_H.
38951
38952 2009-12-31  Bruno Haible  <bruno@clisp.org>
38953
38954         spawn: Fix misapplied patch.
38955         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38956         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38957         warnings for GNULIB_POSIXCHECK.
38958
38959 2009-12-31  Bruno Haible  <bruno@clisp.org>
38960
38961         times: Update after sys_times changed.
38962         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38963         * modules/times (Files): Add it.
38964         (configure.ac): Invoke gl_FUNC_TIMES.
38965
38966 2009-12-31  Bruno Haible  <bruno@clisp.org>
38967
38968         Use AC_C_INLINE where necessary.
38969         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38970         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38971         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38972         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38973         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38974         * m4/mbiter.m4 (gl_MBITER): Likewise.
38975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38976         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38977         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38978         * modules/u64 (configure.ac): Likewise.
38979
38980 2009-12-31  Bruno Haible  <bruno@clisp.org>
38981
38982         Use AC_C_INLINE instead of module 'inline' where possible.
38983         * modules/inline (Description): Clarify purpose.
38984         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38985         * modules/count-one-bits (Depends-on): Remove inline.
38986         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38987         * modules/openat (Depends-on): Remove inline.
38988         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38989         instead of depending on module 'inline'.
38990         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38991         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38992         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38993         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38994         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38995         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38996         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38997         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38998         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38999         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39000         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39001         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39002         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39003         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39004         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39005         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39006         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39007         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39008         Likewise.
39009         * modules/unictype/property-ascii-hex-digit (Depends-on,
39010         configure.ac): Likewise.
39011         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39012         configure.ac): Likewise.
39013         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39014         configure.ac): Likewise.
39015         * modules/unictype/property-bidi-block-separator (Depends-on,
39016         configure.ac): Likewise.
39017         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39018         configure.ac): Likewise.
39019         * modules/unictype/property-bidi-common-separator (Depends-on,
39020         configure.ac): Likewise.
39021         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39022         Likewise.
39023         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39024         configure.ac): Likewise.
39025         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39026         configure.ac): Likewise.
39027         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39028         configure.ac): Likewise.
39029         * modules/unictype/property-bidi-european-digit (Depends-on,
39030         configure.ac): Likewise.
39031         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39032         configure.ac): Likewise.
39033         * modules/unictype/property-bidi-left-to-right (Depends-on,
39034         configure.ac): Likewise.
39035         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39036         configure.ac): Likewise.
39037         * modules/unictype/property-bidi-other-neutral (Depends-on,
39038         configure.ac): Likewise.
39039         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39040         Likewise.
39041         * modules/unictype/property-bidi-segment-separator (Depends-on,
39042         configure.ac): Likewise.
39043         * modules/unictype/property-bidi-whitespace (Depends-on,
39044         configure.ac): Likewise.
39045         * modules/unictype/property-combining (Depends-on, configure.ac):
39046         Likewise.
39047         * modules/unictype/property-composite (Depends-on, configure.ac):
39048         Likewise.
39049         * modules/unictype/property-currency-symbol (Depends-on,
39050         configure.ac): Likewise.
39051         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39052         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39053         Likewise.
39054         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39055         configure.ac): Likewise.
39056         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39057         Likewise.
39058         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39059         Likewise.
39060         * modules/unictype/property-extender (Depends-on, configure.ac):
39061         Likewise.
39062         * modules/unictype/property-format-control (Depends-on, configure.ac):
39063         Likewise.
39064         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39065         Likewise.
39066         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39067         Likewise.
39068         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39069         Likewise.
39070         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39071         Likewise.
39072         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39073         Likewise.
39074         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39075         Likewise.
39076         * modules/unictype/property-id-start (Depends-on, configure.ac):
39077         Likewise.
39078         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39079         Likewise.
39080         * modules/unictype/property-ids-binary-operator (Depends-on,
39081         configure.ac): Likewise.
39082         * modules/unictype/property-ids-trinary-operator (Depends-on,
39083         configure.ac): Likewise.
39084         * modules/unictype/property-ignorable-control (Depends-on,
39085         configure.ac): Likewise.
39086         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39087         Likewise.
39088         * modules/unictype/property-join-control (Depends-on, configure.ac):
39089         Likewise.
39090         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39091         Likewise.
39092         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39093         Likewise.
39094         * modules/unictype/property-logical-order-exception (Depends-on,
39095         configure.ac): Likewise.
39096         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39097         Likewise.
39098         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39099         * modules/unictype/property-non-break (Depends-on, configure.ac):
39100         Likewise.
39101         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39102         Likewise.
39103         * modules/unictype/property-numeric (Depends-on, configure.ac):
39104         Likewise.
39105         * modules/unictype/property-other-alphabetic (Depends-on,
39106         configure.ac): Likewise.
39107         * modules/unictype/property-other-default-ignorable-code-point
39108         (Depends-on, configure.ac): Likewise.
39109         * modules/unictype/property-other-grapheme-extend (Depends-on,
39110         configure.ac): Likewise.
39111         * modules/unictype/property-other-id-continue (Depends-on,
39112         configure.ac): Likewise.
39113         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39114         Likewise.
39115         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39116         Likewise.
39117         * modules/unictype/property-other-math (Depends-on, configure.ac):
39118         Likewise.
39119         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39120         Likewise.
39121         * modules/unictype/property-paired-punctuation (Depends-on,
39122         configure.ac): Likewise.
39123         * modules/unictype/property-paragraph-separator (Depends-on,
39124         configure.ac): Likewise.
39125         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39126         Likewise.
39127         * modules/unictype/property-pattern-white-space (Depends-on,
39128         configure.ac): Likewise.
39129         * modules/unictype/property-private-use (Depends-on, configure.ac):
39130         Likewise.
39131         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39132         Likewise.
39133         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39134         Likewise.
39135         * modules/unictype/property-radical (Depends-on, configure.ac):
39136         Likewise.
39137         * modules/unictype/property-sentence-terminal (Depends-on,
39138         configure.ac): Likewise.
39139         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39140         Likewise.
39141         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39142         * modules/unictype/property-terminal-punctuation (Depends-on,
39143         configure.ac): Likewise.
39144         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39145         Likewise.
39146         * modules/unictype/property-unassigned-code-value (Depends-on,
39147         configure.ac): Likewise.
39148         * modules/unictype/property-unified-ideograph (Depends-on,
39149         configure.ac): Likewise.
39150         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39151         Likewise.
39152         * modules/unictype/property-variation-selector (Depends-on,
39153         configure.ac): Likewise.
39154         * modules/unictype/property-white-space (Depends-on, configure.ac):
39155         Likewise.
39156         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39157         Likewise.
39158         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39159         Likewise.
39160         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39161         Likewise.
39162         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39163         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39164         Likewise.
39165
39166 2009-12-31  Bruno Haible  <bruno@clisp.org>
39167
39168         Remove unnecessary AC_C_INLINE invocation.
39169         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39170         since 2009-08-21.
39171
39172 2009-12-31  Jim Meyering  <meyering@redhat.com>
39173
39174         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39175         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39176         With this change, we can all remove the gpg_key_ID = ... definition
39177         from our respective cfg.mk files.
39178
39179         maint.mk: create announcement template in ~/, not in /tmp
39180         * top/maint.mk (emit_upload_commands): Adjust.
39181         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39182         Remove temporary file, .ci-msg.
39183
39184 2009-12-31  Eric Blake  <ebb9@byu.net>
39185
39186         link-warning: always build headers with link warnings
39187         * modules/arpa_inet (Makefile.am): Always build replacement
39188         header.
39189         * modules/ctype (Makefile.am): Likewise.
39190         * modules/dirent (Makefile.am): Likewise.
39191         * modules/inttypes (Makefile.am): Likewise.
39192         * modules/langinfo (Makefile.am): Likewise.
39193         * modules/locale (Makefile.am): Likewise.
39194         * modules/spawn (Makefile.am): Likewise.
39195         * modules/sys_file (Makefile.am): Likewise.
39196         * modules/sys_ioctl (Makefile.am): Likewise.
39197         * modules/sys_select (Makefile.am): Likewise.
39198         * modules/sys_socket (Makefile.am): Likewise.
39199         * modules/sys_times (Makefile.am): Likewise.
39200         * modules/sys_utsname (Makefile.am): Likewise.
39201         * modules/sys_wait (Makefile.am): Likewise.
39202         * modules/wchar (Makefile.am): Likewise.
39203         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39204         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39205         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39206         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39207         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39208         Likewise.
39209         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39210         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39211         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39212         Likewise.
39213         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39214         Likewise.
39215         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39216         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39217         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39219         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39220         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39221         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39222         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39223         (gl_WCHAR_H_DEFAULTS): Likewise.
39224
39225 2009-12-31  Eric Blake  <ebb9@byu.net>
39226
39227         signal, spawn: use link warnings
39228         * lib/signal.in.h (sigset_t): Make unconditional.
39229         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39230         (sigpending, sigprocmask, sigaction): Add link warnings.
39231         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39232         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39233         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39234         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39235         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39236         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39237         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39238         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39239         (posix_spawn_file_actions_destroy)
39240         (posix_spawn_file_actions_addopen)
39241         (posix_spawn_file_actions_addclose)
39242         (posix_spawn_file_actions_adddup2): Likewise.
39243         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39244         * tests/test-signal.c (main): Enhance test.
39245
39246         spawn: improve wrapper support
39247         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39248         (gl_SPAWN_H_DEFAULTS): New defaults.
39249         * modules/spawn (Makefile.am): Substitute them.
39250         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39251         Only declare if missing or broken.
39252
39253         sys_times, sys_utsname: use include_next
39254         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39255         header.
39256         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39257         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39258         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39259         * modules/sys_times (Depends-on): Add include_next.
39260         (Makefile.am): Substitute additional values.
39261         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39262         * lib/sys_times.in.h (includes): Include native header, if
39263         available.
39264         * lib/sys_utsname.in.h (includes): Likewise.
39265         * tests/test-sys_times.c (main): Enhance test.
39266
39267         fdutimensat: revert prior patch
39268         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39269         utimens.h.
39270         Reported by Bruno Haible.
39271
39272 2009-12-30  Eric Blake  <ebb9@byu.net>
39273
39274         sys_wait: drop link-warning dependency
39275         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39276         link-warning efforts.
39277         * lib/sys_wait.in.h: Likewise.
39278
39279         fdutimensat: remove bogus dependency
39280         * modules/fdutimensat (Depends-on): Drop inline.
39281
39282         unistd: fix typo
39283         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39284
39285 2009-12-30  Bruno Haible  <bruno@clisp.org>
39286
39287         Fix compilation error with Solaris cc.
39288         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39289         * lib/unicase/u16-is-invariant.c: Likewise.
39290         * lib/unicase/u32-is-invariant.c: Likewise.
39291         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39292
39293 2009-12-30  Bruno Haible  <bruno@clisp.org>
39294
39295         Fix test crash.
39296         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39297         locales.
39298         Reported by Simon Josefsson <simon@josefsson.org>.
39299
39300 2009-12-30  Bruno Haible  <bruno@clisp.org>
39301
39302         Fix compilation error on most platforms.
39303         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39304         Reported by Simon Josefsson <simon@josefsson.org>
39305         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39306
39307 2009-12-30  Eric Blake  <ebb9@byu.net>
39308
39309         futimens, utimensat: work around ntfs-3g bug
39310         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39311         a ctime bug is present, and expand workaround to cover ntfs-3g.
39312         * lib/utimens.c (fdutimens, lutimens): Likewise.
39313         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39314         (validate_timespec): Adjust return value.
39315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39316         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39317         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39318
39319 2009-12-29  Eric Blake  <ebb9@byu.net>
39320
39321         link-warning: make usage consistent
39322         * modules/ctype (Depends-on): Add link-warning.
39323         (Makefile.am): Update rules accordingly.
39324         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39325         * modules/locale (Depends-on, Makefile.am): Likewise.
39326         * modules/sys_file (Makefile.am): Likewise.
39327         * modules/getopt-posix (Makefile.am): Delete unused link warning
39328         efforts.
39329         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39330         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39331         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39332         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39333
39334         stdio: remove unused variables
39335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39337         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39338
39339         tests: test more substitute headers
39340         * modules/ctype-tests: New file.
39341         * modules/dirent-tests: Likewise.
39342         * modules/spawn-tests: Likewise.
39343         * modules/sys_file-tests: Likewise.
39344         * modules/sys_ioctl-tests: Likewise.
39345         * modules/sys_wait-tests: Likewise.
39346         * tests/test-ctype.c: Likewise.
39347         * tests/test-dirent.c: Likewise.
39348         * tests/test-spawn.c: Likewise.
39349         * tests/test-sys_file.c: Likewise.
39350         * tests/test-sys_ioctl.c: Likewise.
39351         * tests/test-sys_wait.c: Likewise.
39352         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39353         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39354         whether or not flock is in use.
39355
39356         tests: remove License section from module
39357         * modules/arpa_inet-tests: Remove unneeded section.
39358         * modules/byteswap-tests: Likewise.
39359         * modules/ceilf-tests: Likewise.
39360         * modules/ceill-tests: Likewise.
39361         * modules/crypto/des-tests: Likewise.
39362         * modules/crypto/gc-arcfour-tests: Likewise.
39363         * modules/crypto/gc-arctwo-tests: Likewise.
39364         * modules/crypto/gc-des-tests: Likewise.
39365         * modules/crypto/gc-hmac-md5-tests: Likewise.
39366         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39367         * modules/crypto/gc-md2-tests: Likewise.
39368         * modules/crypto/gc-md4-tests: Likewise.
39369         * modules/crypto/gc-md5-tests: Likewise.
39370         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39371         * modules/crypto/gc-rijndael-tests: Likewise.
39372         * modules/crypto/gc-sha1-tests: Likewise.
39373         * modules/crypto/gc-tests: Likewise.
39374         * modules/crypto/md2-tests: Likewise.
39375         * modules/crypto/md4-tests: Likewise.
39376         * modules/fcntl-h-tests: Likewise.
39377         * modules/floorf-tests: Likewise.
39378         * modules/floorl-tests: Likewise.
39379         * modules/frexp-nolibm-tests: Likewise.
39380         * modules/frexp-tests: Likewise.
39381         * modules/frexpl-nolibm-tests: Likewise.
39382         * modules/frexpl-tests: Likewise.
39383         * modules/getaddrinfo-tests: Likewise.
39384         * modules/inttypes-tests: Likewise.
39385         * modules/isfinite-tests: Likewise.
39386         * modules/isinf-tests: Likewise.
39387         * modules/ldexpl-tests: Likewise.
39388         * modules/locale-tests: Likewise.
39389         * modules/math-tests: Likewise.
39390         * modules/netdb-tests: Likewise.
39391         * modules/netinet_in-tests: Likewise.
39392         * modules/printf-frexp-tests: Likewise.
39393         * modules/printf-frexpl-tests: Likewise.
39394         * modules/priv-set-tests: Likewise.
39395         * modules/random_r-tests: Likewise.
39396         * modules/round-tests: Likewise.
39397         * modules/roundf-tests: Likewise.
39398         * modules/roundl-tests: Likewise.
39399         * modules/search-tests: Likewise.
39400         * modules/select-tests: Likewise.
39401         * modules/signal-tests: Likewise.
39402         * modules/stdbool-tests: Likewise.
39403         * modules/stddef-tests: Likewise.
39404         * modules/stdint-tests: Likewise.
39405         * modules/stdio-tests: Likewise.
39406         * modules/stdlib-tests: Likewise.
39407         * modules/string-tests: Likewise.
39408         * modules/strings-tests: Likewise.
39409         * modules/sys_select-tests: Likewise.
39410         * modules/sys_socket-tests: Likewise.
39411         * modules/sys_stat-tests: Likewise.
39412         * modules/sys_time-tests: Likewise.
39413         * modules/sys_utsname-tests: Likewise.
39414         * modules/sysexits-tests: Likewise.
39415         * modules/time-tests: Likewise.
39416         * modules/trunc-tests: Likewise.
39417         * modules/truncf-tests: Likewise.
39418         * modules/truncl-tests: Likewise.
39419         * modules/tsearch-tests: Likewise.
39420         * modules/unistd-tests: Likewise.
39421         * modules/wchar-tests: Likewise.
39422         * modules/wctype-tests: Likewise.
39423
39424         tests: fix license on several tests
39425         * tests/test-des.c: Update to GPLv3+.
39426         * tests/test-flock.c: Likewise.
39427         * tests/test-fsync.c: Likewise.
39428         * tests/test-futimens.h: Likewise.
39429         * tests/test-gc-arcfour.c: Likewise.
39430         * tests/test-gc-arctwo.c: Likewise.
39431         * tests/test-gc-des.c: Likewise.
39432         * tests/test-gc-hmac-md5.c: Likewise.
39433         * tests/test-gc-hmac-sha1.c: Likewise.
39434         * tests/test-gc-md2.c: Likewise.
39435         * tests/test-gc-md4.c: Likewise.
39436         * tests/test-gc-md5.c: Likewise.
39437         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39438         * tests/test-gc-rijndael.c: Likewise.
39439         * tests/test-gc-sha1.c: Likewise.
39440         * tests/test-gc.c: Likewise.
39441         * tests/test-getcwd.c: Likewise.
39442         * tests/test-link.c: Likewise.
39443         * tests/test-link.h: Likewise.
39444         * tests/test-lutimens.h: Likewise.
39445         * tests/test-md2.c: Likewise.
39446         * tests/test-md4.c: Likewise.
39447         * tests/test-mkdir.h: Likewise.
39448         * tests/test-rename.c: Likewise.
39449         * tests/test-rename.h: Likewise.
39450         * tests/test-safe-alloc.c: Likewise.
39451         * tests/test-utimens-common.h: Likewise.
39452         * tests/test-utimens.h: Likewise.
39453
39454         maint: sync license texts
39455         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39456         * doc/gpl-3.0.texi: Revert copyright year update.
39457         * doc/lgpl-3.0.texi: Likewise.
39458
39459 2009-12-29  Jim Meyering  <meyering@redhat.com>
39460
39461         update nearly all FSF copyright year lists to include 2009
39462         The files named by the following are exempted:
39463             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39464               test -f "$dst" && { echo "$dst"; continue; }
39465               test -d "$dst" || continue
39466               echo "$dst"/$(basename "$src")
39467             done > exempt
39468             git ls-files tests/unictype >> exempt
39469         In the remaining files, convert to all-interval notation if
39470         - there is already at least one year interval like 2000-2003
39471         - the file is maintained by me
39472         - the file is in lib/uni*/, where that style already prevails
39473         Otherwise, use update-copyright's default.
39474
39475 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39476         and Eric Blake  <ebb9@byu.net>
39477
39478         tests: don't require debug system() to pass
39479         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39480         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39481         * tests/test-unlink.h (test_unlink_func): Likewise.
39482         * tests/test-fstatat.c (main): ...into callers.
39483         * tests/test-lstat.c (main): Likewise.
39484         * tests/test-rmdir.c (main): Likewise.
39485         * tests/test-unlink.c (main): Likewise.
39486         * tests/test-unlinkat.c (main): Likewise.
39487         * tests/test-areadlink-with-size.c (main): Don't require a
39488         debug-only system call to pass, aiding cross-testing to mingw.
39489         * tests/test-areadlink.c (main): Likewise.
39490         * tests/test-areadlinkat-with-size.c (main): Likewise.
39491         * tests/test-areadlinkat.c (main): Likewise.
39492         * tests/test-canonicalize-lgpl.c (main): Likewise.
39493         * tests/test-canonicalize.c (main): Likewise.
39494         * tests/test-chown.c (main): Likewise.
39495         * tests/test-fchownat.c (main): Likewise.
39496         * tests/test-lchown.c (main): Likewise.
39497         * tests/test-fdutimensat.c (main): Likewise.
39498         * tests/test-futimens.c (main): Likewise.
39499         * tests/test-link.c (main): Likewise.
39500         * tests/test-linkat.c (main): Likewise.
39501         * tests/test-mkdir.c (main): Likewise.
39502         * tests/test-mkdirat.c (main): Likewise.
39503         * tests/test-mkfifo.c (main): Likewise.
39504         * tests/test-mkfifoat.c (main): Likewise.
39505         * tests/test-mknod.c (main): Likewise.
39506         * tests/test-readlink.c (main): Likewise.
39507         * tests/test-remove.c (main): Likewise.
39508         * tests/test-rename.c (main): Likewise.
39509         * tests/test-renameat.c (main): Likewise.
39510         * tests/test-symlink.c (main): Likewise.
39511         * tests/test-symlinkat.c (main): Likewise.
39512         * tests/test-utimens.c (main): Likewise.
39513         * tests/test-utimensat.c (main): Likewise.
39514
39515 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39516
39517         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39518         on $(UNUSED_PARAMETER_H) to avoid build failure.
39519
39520 2009-12-28  Jim Meyering  <meyering@redhat.com>
39521
39522         update-copyright: you may specify a max. line length other than 72
39523         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39524
39525         maint: use consistent FSF copyright line syntax
39526         * lib/posixtm.c: Add missing comma in FSF copyright line.
39527         * lib/posixtm.h: Likewise.
39528         * lib/getugroups.c: Add missing ", Inc.".
39529
39530         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39531         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39532         FSF copyright line.  Remove trailing blanks.
39533
39534 2009-12-28  Eric Blake  <ebb9@byu.net>
39535
39536         test-dup2: reduce dependencies
39537         * modules/cloexec (Configure.ac): Set witness.
39538         * modules/dup2-tests (Depends-on): Drop cloexec.
39539         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39540         not present.
39541         Suggested by Bruno Haible.
39542
39543 2009-12-26  Bruno Haible  <bruno@clisp.org>
39544
39545         Remove an unneeded dependency.
39546         * modules/fseterr (Depends-on): Remove dup2.
39547
39548 2009-12-26  Eric Blake  <ebb9@byu.net>
39549
39550         tests: use macros.h in more places
39551         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39552         (ASSERT_STREAM): Provide default of stderr.
39553         * tests/test-dirent-safer.c: Include macros.h, using alternate
39554         stream for assertions.
39555         * tests/test-dup-safer.c: Likewise.
39556         * tests/test-freopen-safer.c: Likewise.
39557         * tests/test-getopt.c: Likewise.
39558         * tests/test-openat-safer.c: Likewise.
39559         * tests/test-pipe.c: Likewise.
39560         * tests/test-popen-safer.c: Likewise.
39561         * modules/dirent-safer-tests (Files): Include macros.h.
39562         * modules/unistd-safer-tests (Files): Likewise.
39563         * modules/freopen-safer-tests (Files): Likewise.
39564         * modules/getopt-posix-tests (Files): Likewise.
39565         * modules/openat-safer-tests (Files): Likewise.
39566         * modules/pipe-tests (Files): Likewise.
39567
39568 2009-12-26  Bruno Haible  <bruno@clisp.org>
39569
39570         javacomp: Portability fix.
39571         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39572         that it also works on Solaris.
39573
39574 2009-12-26  Bruno Haible  <bruno@clisp.org>
39575
39576         localename: Fix storage allocation of gl_locale_name_thread's result.
39577         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39578         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39579         all platforms that have 'uselocale'.
39580         (gl_locale_name_thread_unsafe): New function, extracted from
39581         gl_locale_name_thread.
39582         (gl_locale_name_thread): Call struniq on all platforms that have
39583         'uselocale'.
39584         * tests/test-localename.c (test_locale_name_thread): Check that the
39585         resulting strings are permanently allocated.
39586         * modules/localename-tests (Depends-on): Add strdup.
39587
39588 2009-12-26  Bruno Haible  <bruno@clisp.org>
39589
39590         * tests/test-localename.c (categories): Fill in the strings.
39591
39592 2009-12-26  Jim Meyering  <meyering@redhat.com>
39593
39594         isdir: complete the removal of m4/isdir.m4
39595         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39596
39597         isdir: clean up, since at least grep still uses it
39598         * lib/isdir.c: Include "isdir.h".
39599         (S_ISDIR): Remove now-unneeded definition.
39600         * modules/isdir (Files): Add lib/isdir.h.
39601         * lib/isdir.h: New file, with declaration.
39602         * m4/isdir.m4: Remove file -- unneeded.
39603
39604 2009-12-25  Bruno Haible  <bruno@clisp.org>
39605
39606         selinux-h: Make generated .h files standalone.
39607         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39608         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39609         * lib/se-selinux.in.h: Likewise.
39610         * modules/selinux-h (Depends-on): Add unused-parameter.
39611         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39612         selinux/selinux.h and selinux/context.h.
39613         Suggested by Eric Blake.
39614
39615 2009-12-25  Bruno Haible  <bruno@clisp.org>
39616
39617         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39618         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39619         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39620         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39621         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39622
39623 2009-12-24  Bruno Haible  <bruno@clisp.org>
39624
39625         openat: Fix warning.
39626         * lib/openat-proc.c: Include <unistd.h>.
39627
39628 2009-12-24  Bruno Haible  <bruno@clisp.org>
39629
39630         New module 'unused-parameter'.
39631         * build-aux/unused-parameter.h: New file, extracted from earlier
39632         gnulib-common.m4.
39633         * modules/unused-parameter: New file.
39634         * lib/unistr.h: Include unused-parameter.h.
39635         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39636         _GL_UNUSED.
39637         * modules/unistr/base (Depends-on): Add unused-parameter.
39638
39639 2009-12-24  Bruno Haible  <bruno@clisp.org>
39640
39641         Add missing dependencies to 'extensions' module.
39642         * m4/extensions.m4: Add comment.
39643         * modules/accept4 (Depends-on): Add extensions.
39644         * modules/dup3 (Depends-on): Likewise.
39645         * modules/fcntl (Depends-on): Likewise.
39646         * modules/futimens (Depends-on): Likewise.
39647         * modules/mknod (Depends-on): Likewise.
39648         * modules/pipe2 (Depends-on): Likewise.
39649         * modules/stat-time (Depends-on): Likewise.
39650         * modules/strcasestr-simple (Depends-on): Likewise.
39651         * modules/strsignal (Depends-on): Likewise.
39652         * modules/utimensat (Depends-on): Likewise.
39653         * modules/localcharset (Depends-on): Likewise. Needed because of
39654         gl_FCNTL_O_FLAGS.
39655         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39656         AC_TYPE_MBSTATE_T.
39657         * modules/wcsnrtombs (Depends-on): Likewise.
39658         * modules/wcsrtombs (Depends-on): Likewise.
39659
39660 2009-12-24  Bruno Haible  <bruno@clisp.org>
39661
39662         binary-io: Avoid gcc warning due to SET_BINARY.
39663         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39664         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39665
39666 2009-12-24  Bruno Haible  <bruno@clisp.org>
39667
39668         Avoid future namespace pollution on glibc systems.
39669         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39670         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39671         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39672         glibc systems.
39673
39674 2009-12-24  Bruno Haible  <bruno@clisp.org>
39675
39676         Refactor common macros used in tests.
39677         * tests/macros.h: New file.
39678         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39679         and/or <stdlib.h>, if appropriate.
39680         (ASSERT, SIZEOF): Remove macros.
39681         * tests/test-areadlink-with-size.c: Likewise.
39682         * tests/test-areadlinkat.c: Likewise.
39683         * tests/test-areadlinkat-with-size.c: Likewise.
39684         * tests/test-argmatch.c: Likewise.
39685         * tests/test-argv-iter.c: Likewise.
39686         * tests/test-array-mergesort.c: Likewise.
39687         * tests/test-array_list.c: Likewise.
39688         * tests/test-array_oset.c: Likewise.
39689         * tests/test-avltree_list.c: Likewise.
39690         * tests/test-avltree_oset.c: Likewise.
39691         * tests/test-avltreehash_list.c: Likewise.
39692         * tests/test-base64.c: Likewise.
39693         * tests/test-binary-io.c: Likewise.
39694         * tests/test-bitrotate.c: Likewise.
39695         * tests/test-btowc.c: Likewise.
39696         * tests/test-byteswap.c: Likewise.
39697         * tests/test-c-ctype.c: Likewise.
39698         * tests/test-c-stack.c: Likewise.
39699         * tests/test-c-strcasecmp.c: Likewise.
39700         * tests/test-c-strcasestr.c: Likewise.
39701         * tests/test-c-strncasecmp.c: Likewise.
39702         * tests/test-c-strstr.c: Likewise.
39703         * tests/test-canonicalize-lgpl.c: Likewise.
39704         * tests/test-canonicalize.c: Likewise.
39705         * tests/test-carray_list.c: Likewise.
39706         * tests/test-ceilf1.c: Likewise.
39707         * tests/test-ceilf2.c: Likewise.
39708         * tests/test-ceill.c: Likewise.
39709         * tests/test-chown.c: Likewise.
39710         * tests/test-cloexec.c: Likewise.
39711         * tests/test-copy-acl.c: Likewise.
39712         * tests/test-copy-file.c: Likewise.
39713         * tests/test-count-one-bits.c: Likewise.
39714         * tests/test-dprintf-posix.c: Likewise.
39715         * tests/test-dup2.c: Likewise.
39716         * tests/test-dup3.c: Likewise.
39717         * tests/test-duplocale.c: Likewise.
39718         * tests/test-fbufmode.c: Likewise.
39719         * tests/test-fchdir.c: Likewise.
39720         * tests/test-fchownat.c: Likewise.
39721         * tests/test-fcntl-safer.c: Likewise.
39722         * tests/test-fcntl.c: Likewise.
39723         * tests/test-fdopendir.c: Likewise.
39724         * tests/test-fdutimensat.c: Likewise.
39725         * tests/test-fflush2.c: Likewise.
39726         * tests/test-file-has-acl.c: Likewise.
39727         * tests/test-filevercmp.c: Likewise.
39728         * tests/test-flock.c: Likewise.
39729         * tests/test-floorf1.c: Likewise.
39730         * tests/test-floorf2.c: Likewise.
39731         * tests/test-floorl.c: Likewise.
39732         * tests/test-fnmatch.c: Likewise.
39733         * tests/test-fopen.h: Likewise.
39734         * tests/test-fpending.c: Likewise.
39735         * tests/test-fprintf-posix.c: Likewise.
39736         * tests/test-fpurge.c: Likewise.
39737         * tests/test-freadable.c: Likewise.
39738         * tests/test-freadahead.c: Likewise.
39739         * tests/test-freading.c: Likewise.
39740         * tests/test-freadptr.c: Likewise.
39741         * tests/test-freadptr2.c: Likewise.
39742         * tests/test-freadseek.c: Likewise.
39743         * tests/test-freopen.c: Likewise.
39744         * tests/test-frexp.c: Likewise.
39745         * tests/test-frexpl.c: Likewise.
39746         * tests/test-fseek.c: Likewise.
39747         * tests/test-fseeko.c: Likewise.
39748         * tests/test-fstatat.c: Likewise.
39749         * tests/test-fstrcmp.c: Likewise.
39750         * tests/test-fsync.c: Likewise.
39751         * tests/test-ftell.c: Likewise.
39752         * tests/test-ftello.c: Likewise.
39753         * tests/test-func.c: Likewise.
39754         * tests/test-futimens.c: Likewise.
39755         * tests/test-fwritable.c: Likewise.
39756         * tests/test-fwriting.c: Likewise.
39757         * tests/test-getcwd.c: Likewise.
39758         * tests/test-getdate.c: Likewise.
39759         * tests/test-getdelim.c: Likewise.
39760         * tests/test-getdtablesize.c: Likewise.
39761         * tests/test-getgroups.c: Likewise.
39762         * tests/test-getline.c: Likewise.
39763         * tests/test-getndelim2.c: Likewise.
39764         * tests/test-glob.c: Likewise.
39765         * tests/test-hash.c: Likewise.
39766         * tests/test-i-ring.c: Likewise.
39767         * tests/test-iconv-utf.c: Likewise.
39768         * tests/test-iconv.c: Likewise.
39769         * tests/test-idpriv-drop.c: Likewise.
39770         * tests/test-idpriv-droptemp.c: Likewise.
39771         * tests/test-inet_ntop.c: Likewise.
39772         * tests/test-inet_pton.c: Likewise.
39773         * tests/test-isblank.c: Likewise.
39774         * tests/test-isfinite.c: Likewise.
39775         * tests/test-isinf.c: Likewise.
39776         * tests/test-isnan.c: Likewise.
39777         * tests/test-isnand.h: Likewise.
39778         * tests/test-isnanf.h: Likewise.
39779         * tests/test-isnanl.h: Likewise.
39780         * tests/test-lchown.c: Likewise.
39781         * tests/test-ldexpl.c: Likewise.
39782         * tests/test-link.c: Likewise.
39783         * tests/test-linkat.c: Likewise.
39784         * tests/test-linked_list.c: Likewise.
39785         * tests/test-linkedhash_list.c: Likewise.
39786         * tests/test-localename.c: Likewise.
39787         * tests/test-lseek.c: Likewise.
39788         * tests/test-lstat.c: Likewise.
39789         * tests/test-mbmemcasecmp.c: Likewise.
39790         * tests/test-mbmemcasecoll.c: Likewise.
39791         * tests/test-mbrtowc.c: Likewise.
39792         * tests/test-mbscasecmp.c: Likewise.
39793         * tests/test-mbscasestr1.c: Likewise.
39794         * tests/test-mbscasestr2.c: Likewise.
39795         * tests/test-mbscasestr3.c: Likewise.
39796         * tests/test-mbscasestr4.c: Likewise.
39797         * tests/test-mbschr.c: Likewise.
39798         * tests/test-mbscspn.c: Likewise.
39799         * tests/test-mbsinit.c: Likewise.
39800         * tests/test-mbsncasecmp.c: Likewise.
39801         * tests/test-mbsnrtowcs.c: Likewise.
39802         * tests/test-mbspbrk.c: Likewise.
39803         * tests/test-mbspcasecmp.c: Likewise.
39804         * tests/test-mbsrchr.c: Likewise.
39805         * tests/test-mbsrtowcs.c: Likewise.
39806         * tests/test-mbsspn.c: Likewise.
39807         * tests/test-mbsstr1.c: Likewise.
39808         * tests/test-mbsstr2.c: Likewise.
39809         * tests/test-mbsstr3.c: Likewise.
39810         * tests/test-memchr.c: Likewise.
39811         * tests/test-memchr2.c: Likewise.
39812         * tests/test-memcmp.c: Likewise.
39813         * tests/test-memmem.c: Likewise.
39814         * tests/test-memrchr.c: Likewise.
39815         * tests/test-mkdir.c: Likewise.
39816         * tests/test-mkdirat.c: Likewise.
39817         * tests/test-mkfifo.c: Likewise.
39818         * tests/test-mkfifoat.c: Likewise.
39819         * tests/test-mknod.c: Likewise.
39820         * tests/test-nanosleep.c: Likewise.
39821         * tests/test-nl_langinfo.c: Likewise.
39822         * tests/test-obstack-printf.c: Likewise.
39823         * tests/test-open.c: Likewise.
39824         * tests/test-openat.c: Likewise.
39825         * tests/test-pipe-filter-gi1.c: Likewise.
39826         * tests/test-pipe-filter-gi2-main.c: Likewise.
39827         * tests/test-pipe-filter-ii1.c: Likewise.
39828         * tests/test-pipe-filter-ii2-main.c: Likewise.
39829         * tests/test-pipe2.c: Likewise.
39830         * tests/test-popen.h: Likewise.
39831         * tests/test-posixtm.c: Likewise.
39832         * tests/test-pread.c: Likewise.
39833         * tests/test-printf-frexp.c: Likewise.
39834         * tests/test-printf-frexpl.c: Likewise.
39835         * tests/test-printf-posix.c: Likewise.
39836         * tests/test-priv-set.c: Likewise.
39837         * tests/test-quotearg.c: Likewise.
39838         * tests/test-random_r.c: Likewise.
39839         * tests/test-rawmemchr.c: Likewise.
39840         * tests/test-rbtree_list.c: Likewise.
39841         * tests/test-rbtree_oset.c: Likewise.
39842         * tests/test-rbtreehash_list.c: Likewise.
39843         * tests/test-readlink.c: Likewise.
39844         * tests/test-remove.c: Likewise.
39845         * tests/test-rename.c: Likewise.
39846         * tests/test-renameat.c: Likewise.
39847         * tests/test-rmdir.c: Likewise.
39848         * tests/test-round1.c: Likewise.
39849         * tests/test-roundf1.c: Likewise.
39850         * tests/test-roundl.c: Likewise.
39851         * tests/test-safe-alloc.c: Likewise.
39852         * tests/test-sameacls.c: Likewise.
39853         * tests/test-set-mode-acl.c: Likewise.
39854         * tests/test-setenv.c: Likewise.
39855         * tests/test-sigaction.c: Likewise.
39856         * tests/test-signbit.c: Likewise.
39857         * tests/test-sleep.c: Likewise.
39858         * tests/test-snprintf-posix.c: Likewise.
39859         * tests/test-snprintf.c: Likewise.
39860         * tests/test-sprintf-posix.c: Likewise.
39861         * tests/test-stat-time.c: Likewise.
39862         * tests/test-stat.c: Likewise.
39863         * tests/test-strcasestr.c: Likewise.
39864         * tests/test-strchrnul.c: Likewise.
39865         * tests/test-strerror.c: Likewise.
39866         * tests/test-striconv.c: Likewise.
39867         * tests/test-striconveh.c: Likewise.
39868         * tests/test-striconveha.c: Likewise.
39869         * tests/test-strsignal.c: Likewise.
39870         * tests/test-strstr.c: Likewise.
39871         * tests/test-strtod.c: Likewise.
39872         * tests/test-strverscmp.c: Likewise.
39873         * tests/test-symlink.c: Likewise.
39874         * tests/test-symlinkat.c: Likewise.
39875         * tests/test-trunc1.c: Likewise.
39876         * tests/test-trunc2.c: Likewise.
39877         * tests/test-truncf1.c: Likewise.
39878         * tests/test-truncf2.c: Likewise.
39879         * tests/test-truncl.c: Likewise.
39880         * tests/test-uname.c: Likewise.
39881         * tests/test-unlink.c: Likewise.
39882         * tests/test-unlinkat.c: Likewise.
39883         * tests/test-unsetenv.c: Likewise.
39884         * tests/test-usleep.c: Likewise.
39885         * tests/test-utimens.c: Likewise.
39886         * tests/test-utimensat.c: Likewise.
39887         * tests/test-vasnprintf-posix.c: Likewise.
39888         * tests/test-vasnprintf-posix2.c: Likewise.
39889         * tests/test-vasnprintf.c: Likewise.
39890         * tests/test-vasprintf-posix.c: Likewise.
39891         * tests/test-vasprintf.c: Likewise.
39892         * tests/test-vdprintf-posix.c: Likewise.
39893         * tests/test-vfprintf-posix.c: Likewise.
39894         * tests/test-vprintf-posix.c: Likewise.
39895         * tests/test-vsnprintf-posix.c: Likewise.
39896         * tests/test-vsnprintf.c: Likewise.
39897         * tests/test-vsprintf-posix.c: Likewise.
39898         * tests/test-wcrtomb.c: Likewise.
39899         * tests/test-wcsnrtombs.c: Likewise.
39900         * tests/test-wcsrtombs.c: Likewise.
39901         * tests/test-wctype.c: Likewise.
39902         * tests/test-wcwidth.c: Likewise.
39903         * tests/test-xfprintf-posix.c: Likewise.
39904         * tests/test-xmemdup0.c: Likewise.
39905         * tests/test-xprintf-posix.c: Likewise.
39906         * tests/test-xvasprintf.c: Likewise.
39907         * tests/unicase/test-locale-language.c: Likewise.
39908         * tests/unicase/test-mapping-part1.h: Likewise.
39909         * tests/unicase/test-predicate-part1.h: Likewise.
39910         * tests/unicase/test-u8-casecmp.c: Likewise.
39911         * tests/unicase/test-u8-casecoll.c: Likewise.
39912         * tests/unicase/test-u8-casefold.c: Likewise.
39913         * tests/unicase/test-u8-is-cased.c: Likewise.
39914         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39915         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39916         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39917         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39918         * tests/unicase/test-u8-tolower.c: Likewise.
39919         * tests/unicase/test-u8-totitle.c: Likewise.
39920         * tests/unicase/test-u8-toupper.c: Likewise.
39921         * tests/unicase/test-u16-casecmp.c: Likewise.
39922         * tests/unicase/test-u16-casecoll.c: Likewise.
39923         * tests/unicase/test-u16-casefold.c: Likewise.
39924         * tests/unicase/test-u16-is-cased.c: Likewise.
39925         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39926         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39927         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39928         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39929         * tests/unicase/test-u16-tolower.c: Likewise.
39930         * tests/unicase/test-u16-totitle.c: Likewise.
39931         * tests/unicase/test-u16-toupper.c: Likewise.
39932         * tests/unicase/test-u32-casecmp.c: Likewise.
39933         * tests/unicase/test-u32-casecoll.c: Likewise.
39934         * tests/unicase/test-u32-casefold.c: Likewise.
39935         * tests/unicase/test-u32-is-cased.c: Likewise.
39936         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39937         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39938         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39939         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39940         * tests/unicase/test-u32-tolower.c: Likewise.
39941         * tests/unicase/test-u32-totitle.c: Likewise.
39942         * tests/unicase/test-u32-toupper.c: Likewise.
39943         * tests/unicase/test-ulc-casecmp.c: Likewise.
39944         * tests/unicase/test-ulc-casecoll.c: Likewise.
39945         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39946         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39947         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39948         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39949         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39950         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39951         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39952         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39953         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39954         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39955         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39956         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39957         * tests/unictype/test-bidi_byname.c: Likewise.
39958         * tests/unictype/test-bidi_name.c: Likewise.
39959         * tests/unictype/test-bidi_of.c: Likewise.
39960         * tests/unictype/test-bidi_test.c: Likewise.
39961         * tests/unictype/test-block_list.c: Likewise.
39962         * tests/unictype/test-block_of.c: Likewise.
39963         * tests/unictype/test-block_test.c: Likewise.
39964         * tests/unictype/test-categ_and.c: Likewise.
39965         * tests/unictype/test-categ_and_not.c: Likewise.
39966         * tests/unictype/test-categ_byname.c: Likewise.
39967         * tests/unictype/test-categ_name.c: Likewise.
39968         * tests/unictype/test-categ_none.c: Likewise.
39969         * tests/unictype/test-categ_of.c: Likewise.
39970         * tests/unictype/test-categ_or.c: Likewise.
39971         * tests/unictype/test-categ_test_withtable.c: Likewise.
39972         * tests/unictype/test-combining.c: Likewise.
39973         * tests/unictype/test-decdigit.c: Likewise.
39974         * tests/unictype/test-digit.c: Likewise.
39975         * tests/unictype/test-mirror.c: Likewise.
39976         * tests/unictype/test-numeric.c: Likewise.
39977         * tests/unictype/test-pr_byname.c: Likewise.
39978         * tests/unictype/test-pr_test.c: Likewise.
39979         * tests/unictype/test-predicate-part1.h: Likewise.
39980         * tests/unictype/test-scripts.c: Likewise.
39981         * tests/unictype/test-sy_c_ident.c: Likewise.
39982         * tests/unictype/test-sy_java_ident.c: Likewise.
39983         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39984         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39985         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39986         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39987         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39988         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39989         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39990         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39991         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39992         * tests/uninorm/test-compat-decomposition.c: Likewise.
39993         * tests/uninorm/test-composition.c: Likewise.
39994         * tests/uninorm/test-decomposing-form.c: Likewise.
39995         * tests/uninorm/test-decomposition.c: Likewise.
39996         * tests/uninorm/test-u8-nfc.c: Likewise.
39997         * tests/uninorm/test-u8-nfd.c: Likewise.
39998         * tests/uninorm/test-u8-nfkc.c: Likewise.
39999         * tests/uninorm/test-u8-nfkd.c: Likewise.
40000         * tests/uninorm/test-u8-normcmp.c: Likewise.
40001         * tests/uninorm/test-u8-normcoll.c: Likewise.
40002         * tests/uninorm/test-u16-nfc.c: Likewise.
40003         * tests/uninorm/test-u16-nfd.c: Likewise.
40004         * tests/uninorm/test-u16-nfkc.c: Likewise.
40005         * tests/uninorm/test-u16-nfkd.c: Likewise.
40006         * tests/uninorm/test-u16-normcmp.c: Likewise.
40007         * tests/uninorm/test-u16-normcoll.c: Likewise.
40008         * tests/uninorm/test-u32-nfc.c: Likewise.
40009         * tests/uninorm/test-u32-nfd.c: Likewise.
40010         * tests/uninorm/test-u32-nfkc.c: Likewise.
40011         * tests/uninorm/test-u32-nfkd.c: Likewise.
40012         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40013         * tests/uninorm/test-u32-normcmp.c: Likewise.
40014         * tests/uninorm/test-u32-normcoll.c: Likewise.
40015         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40016         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40017         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40018         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40019         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40020         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40021         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40022         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40023         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40024         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40025         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40026         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40027         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40028         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40029         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40030         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40031         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40032         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40033         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40034         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40035         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40036         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40037         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40038         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40039         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40040         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40041         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40042         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40043         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40044         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40045         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40046         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40047         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40048         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40049         * tests/uniwidth/test-u8-width.c: Likewise.
40050         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40051         * tests/uniwidth/test-u16-width.c: Likewise.
40052         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40053         * tests/uniwidth/test-u32-width.c: Likewise.
40054         * tests/uniwidth/test-uc_width.c: Likewise.
40055         * tests/uniwidth/test-uc_width2.c: Likewise.
40056         * modules/acl-tests (Files): Add tests/macros.h.
40057         * modules/areadlink-tests (Files): Likewise.
40058         * modules/areadlink-with-size-tests (Files): Likewise.
40059         * modules/areadlinkat-tests (Files): Likewise.
40060         * modules/areadlinkat-with-size-tests (Files): Likewise.
40061         * modules/argmatch-tests (Files): Likewise.
40062         * modules/argv-iter-tests (Files): Likewise.
40063         * modules/array-list-tests (Files): Likewise.
40064         * modules/array-mergesort-tests (Files): Likewise.
40065         * modules/array-oset-tests (Files): Likewise.
40066         * modules/avltree-list-tests (Files): Likewise.
40067         * modules/avltree-oset-tests (Files): Likewise.
40068         * modules/avltreehash-list-tests (Files): Likewise.
40069         * modules/base64-tests (Files): Likewise.
40070         * modules/binary-io-tests (Files): Likewise.
40071         * modules/bitrotate-tests (Files): Likewise.
40072         * modules/btowc-tests (Files): Likewise.
40073         * modules/byteswap-tests (Files): Likewise.
40074         * modules/c-ctype-tests (Files): Likewise.
40075         * modules/c-stack-tests (Files): Likewise.
40076         * modules/c-strcase-tests (Files): Likewise.
40077         * modules/c-strcasestr-tests (Files): Likewise.
40078         * modules/c-strstr-tests (Files): Likewise.
40079         * modules/canonicalize-lgpl-tests (Files): Likewise.
40080         * modules/canonicalize-tests (Files): Likewise.
40081         * modules/carray-list-tests (Files): Likewise.
40082         * modules/ceilf-tests (Files): Likewise.
40083         * modules/ceill-tests (Files): Likewise.
40084         * modules/chown-tests (Files): Likewise.
40085         * modules/cloexec-tests (Files): Likewise.
40086         * modules/copy-file-tests (Files): Likewise.
40087         * modules/count-one-bits-tests (Files): Likewise.
40088         * modules/dprintf-posix-tests (Files): Likewise.
40089         * modules/dup2-tests (Files): Likewise.
40090         * modules/dup3-tests (Files): Likewise.
40091         * modules/duplocale-tests (Files): Likewise.
40092         * modules/fbufmode-tests (Files): Likewise.
40093         * modules/fchdir-tests (Files): Likewise.
40094         * modules/fcntl-safer-tests (Files): Likewise.
40095         * modules/fcntl-tests (Files): Likewise.
40096         * modules/fdopendir-tests (Files): Likewise.
40097         * modules/fdutimensat-tests (Files): Likewise.
40098         * modules/fflush-tests (Files): Likewise.
40099         * modules/filevercmp-tests (Files): Likewise.
40100         * modules/flock-tests (Files): Likewise.
40101         * modules/floorf-tests (Files): Likewise.
40102         * modules/floorl-tests (Files): Likewise.
40103         * modules/fnmatch-tests (Files): Likewise.
40104         * modules/fopen-safer-tests (Files): Likewise.
40105         * modules/fopen-tests (Files): Likewise.
40106         * modules/fpending-tests (Files): Likewise.
40107         * modules/fprintf-posix-tests (Files): Likewise.
40108         * modules/fpurge-tests (Files): Likewise.
40109         * modules/freadable-tests (Files): Likewise.
40110         * modules/freadahead-tests (Files): Likewise.
40111         * modules/freading-tests (Files): Likewise.
40112         * modules/freadptr-tests (Files): Likewise.
40113         * modules/freadseek-tests (Files): Likewise.
40114         * modules/freopen-tests (Files): Likewise.
40115         * modules/frexp-nolibm-tests (Files): Likewise.
40116         * modules/frexp-tests (Files): Likewise.
40117         * modules/frexpl-nolibm-tests (Files): Likewise.
40118         * modules/frexpl-tests (Files): Likewise.
40119         * modules/fseek-tests (Files): Likewise.
40120         * modules/fseeko-tests (Files): Likewise.
40121         * modules/fstrcmp-tests (Files): Likewise.
40122         * modules/fsync-tests (Files): Likewise.
40123         * modules/ftell-tests (Files): Likewise.
40124         * modules/ftello-tests (Files): Likewise.
40125         * modules/func-tests (Files): Likewise.
40126         * modules/futimens-tests (Files): Likewise.
40127         * modules/fwritable-tests (Files): Likewise.
40128         * modules/fwriting-tests (Files): Likewise.
40129         * modules/getcwd-tests (Files): Likewise.
40130         * modules/getdate-tests (Files): Likewise.
40131         * modules/getdelim-tests (Files): Likewise.
40132         * modules/getdtablesize-tests (Files): Likewise.
40133         * modules/getgroups-tests (Files): Likewise.
40134         * modules/getline-tests (Files): Likewise.
40135         * modules/getndelim2-tests (Files): Likewise.
40136         * modules/glob-tests (Files): Likewise.
40137         * modules/hash-tests (Files): Likewise.
40138         * modules/i-ring-tests (Files): Likewise.
40139         * modules/iconv-tests (Files): Likewise.
40140         * modules/iconv_open-utf-tests (Files): Likewise.
40141         * modules/idpriv-drop-tests (Files): Likewise.
40142         * modules/idpriv-droptemp-tests (Files): Likewise.
40143         * modules/inet_ntop-tests (Files): Likewise.
40144         * modules/inet_pton-tests (Files): Likewise.
40145         * modules/isblank-tests (Files): Likewise.
40146         * modules/isfinite-tests (Files): Likewise.
40147         * modules/isinf-tests (Files): Likewise.
40148         * modules/isnan-tests (Files): Likewise.
40149         * modules/isnand-nolibm-tests (Files): Likewise.
40150         * modules/isnand-tests (Files): Likewise.
40151         * modules/isnanf-nolibm-tests (Files): Likewise.
40152         * modules/isnanf-tests (Files): Likewise.
40153         * modules/isnanl-nolibm-tests (Files): Likewise.
40154         * modules/isnanl-tests (Files): Likewise.
40155         * modules/lchown-tests (Files): Likewise.
40156         * modules/ldexpl-tests (Files): Likewise.
40157         * modules/link-tests (Files): Likewise.
40158         * modules/linkat-tests (Files): Likewise.
40159         * modules/linked-list-tests (Files): Likewise.
40160         * modules/linkedhash-list-tests (Files): Likewise.
40161         * modules/localename-tests (Files): Likewise.
40162         * modules/lseek-tests (Files): Likewise.
40163         * modules/lstat-tests (Files): Likewise.
40164         * modules/mbmemcasecmp-tests (Files): Likewise.
40165         * modules/mbmemcasecoll-tests (Files): Likewise.
40166         * modules/mbrtowc-tests (Files): Likewise.
40167         * modules/mbscasecmp-tests (Files): Likewise.
40168         * modules/mbscasestr-tests (Files): Likewise.
40169         * modules/mbschr-tests (Files): Likewise.
40170         * modules/mbscspn-tests (Files): Likewise.
40171         * modules/mbsinit-tests (Files): Likewise.
40172         * modules/mbsncasecmp-tests (Files): Likewise.
40173         * modules/mbsnrtowcs-tests (Files): Likewise.
40174         * modules/mbspbrk-tests (Files): Likewise.
40175         * modules/mbspcasecmp-tests (Files): Likewise.
40176         * modules/mbsrchr-tests (Files): Likewise.
40177         * modules/mbsrtowcs-tests (Files): Likewise.
40178         * modules/mbsspn-tests (Files): Likewise.
40179         * modules/mbsstr-tests (Files): Likewise.
40180         * modules/memchr-tests (Files): Likewise.
40181         * modules/memchr2-tests (Files): Likewise.
40182         * modules/memcmp-tests (Files): Likewise.
40183         * modules/memmem-tests (Files): Likewise.
40184         * modules/memrchr-tests (Files): Likewise.
40185         * modules/mkdir-tests (Files): Likewise.
40186         * modules/mkfifo-tests (Files): Likewise.
40187         * modules/mkfifoat-tests (Files): Likewise.
40188         * modules/mknod-tests (Files): Likewise.
40189         * modules/nanosleep-tests (Files): Likewise.
40190         * modules/nl_langinfo-tests (Files): Likewise.
40191         * modules/obstack-printf-tests (Files): Likewise.
40192         * modules/open-tests (Files): Likewise.
40193         * modules/openat-tests (Files): Likewise.
40194         * modules/pipe-filter-gi-tests (Files): Likewise.
40195         * modules/pipe-filter-ii-tests (Files): Likewise.
40196         * modules/pipe2-tests (Files): Likewise.
40197         * modules/popen-safer-tests (Files): Likewise.
40198         * modules/popen-tests (Files): Likewise.
40199         * modules/posixtm-tests (Files): Likewise.
40200         * modules/pread-tests (Files): Likewise.
40201         * modules/printf-frexp-tests (Files): Likewise.
40202         * modules/printf-frexpl-tests (Files): Likewise.
40203         * modules/printf-posix-tests (Files): Likewise.
40204         * modules/priv-set-tests (Files): Likewise.
40205         * modules/quotearg-tests (Files): Likewise.
40206         * modules/random_r-tests (Files): Likewise.
40207         * modules/rawmemchr-tests (Files): Likewise.
40208         * modules/rbtree-list-tests (Files): Likewise.
40209         * modules/rbtree-oset-tests (Files): Likewise.
40210         * modules/rbtreehash-list-tests (Files): Likewise.
40211         * modules/readlink-tests (Files): Likewise.
40212         * modules/remove-tests (Files): Likewise.
40213         * modules/rename-tests (Files): Likewise.
40214         * modules/renameat-tests (Files): Likewise.
40215         * modules/rmdir-tests (Files): Likewise.
40216         * modules/round-tests (Files): Likewise.
40217         * modules/roundf-tests (Files): Likewise.
40218         * modules/roundl-tests (Files): Likewise.
40219         * modules/safe-alloc-tests (Files): Likewise.
40220         * modules/setenv-tests (Files): Likewise.
40221         * modules/sigaction-tests (Files): Likewise.
40222         * modules/signbit-tests (Files): Likewise.
40223         * modules/sleep-tests (Files): Likewise.
40224         * modules/snprintf-posix-tests (Files): Likewise.
40225         * modules/snprintf-tests (Files): Likewise.
40226         * modules/sprintf-posix-tests (Files): Likewise.
40227         * modules/stat-tests (Files): Likewise.
40228         * modules/stat-time-tests (Files): Likewise.
40229         * modules/strcasestr-tests (Files): Likewise.
40230         * modules/strchrnul-tests (Files): Likewise.
40231         * modules/strerror-tests (Files): Likewise.
40232         * modules/striconv-tests (Files): Likewise.
40233         * modules/striconveh-tests (Files): Likewise.
40234         * modules/striconveha-tests (Files): Likewise.
40235         * modules/strsignal-tests (Files): Likewise.
40236         * modules/strstr-tests (Files): Likewise.
40237         * modules/strtod-tests (Files): Likewise.
40238         * modules/strverscmp-tests (Files): Likewise.
40239         * modules/symlink-tests (Files): Likewise.
40240         * modules/symlinkat-tests (Files): Likewise.
40241         * modules/trunc-tests (Files): Likewise.
40242         * modules/truncf-tests (Files): Likewise.
40243         * modules/truncl-tests (Files): Likewise.
40244         * modules/uname-tests (Files): Likewise.
40245         * modules/unicase/cased-tests (Files): Likewise.
40246         * modules/unicase/ignorable-tests (Files): Likewise.
40247         * modules/unicase/locale-language-tests (Files): Likewise.
40248         * modules/unicase/tolower-tests (Files): Likewise.
40249         * modules/unicase/totitle-tests (Files): Likewise.
40250         * modules/unicase/toupper-tests (Files): Likewise.
40251         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40252         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40253         * modules/unicase/u8-casefold-tests (Files): Likewise.
40254         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40255         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40256         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40257         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40258         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40259         * modules/unicase/u8-tolower-tests (Files): Likewise.
40260         * modules/unicase/u8-totitle-tests (Files): Likewise.
40261         * modules/unicase/u8-toupper-tests (Files): Likewise.
40262         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40263         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40264         * modules/unicase/u16-casefold-tests (Files): Likewise.
40265         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40266         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40267         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40268         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40269         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40270         * modules/unicase/u16-tolower-tests (Files): Likewise.
40271         * modules/unicase/u16-totitle-tests (Files): Likewise.
40272         * modules/unicase/u16-toupper-tests (Files): Likewise.
40273         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40274         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40275         * modules/unicase/u32-casefold-tests (Files): Likewise.
40276         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40277         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40278         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40279         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40280         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40281         * modules/unicase/u32-tolower-tests (Files): Likewise.
40282         * modules/unicase/u32-totitle-tests (Files): Likewise.
40283         * modules/unicase/u32-toupper-tests (Files): Likewise.
40284         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40285         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40286         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40287         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40288         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40289         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40290         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40291         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40292         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40293         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40294         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40295         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40296         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40297         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40298         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40299         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40300         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40301         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40302         * modules/unictype/block-list-tests (Files): Likewise.
40303         * modules/unictype/block-of-tests (Files): Likewise.
40304         * modules/unictype/block-test-tests (Files): Likewise.
40305         * modules/unictype/category-C-tests (Files): Likewise.
40306         * modules/unictype/category-Cc-tests (Files): Likewise.
40307         * modules/unictype/category-Cf-tests (Files): Likewise.
40308         * modules/unictype/category-Cn-tests (Files): Likewise.
40309         * modules/unictype/category-Co-tests (Files): Likewise.
40310         * modules/unictype/category-Cs-tests (Files): Likewise.
40311         * modules/unictype/category-L-tests (Files): Likewise.
40312         * modules/unictype/category-Ll-tests (Files): Likewise.
40313         * modules/unictype/category-Lm-tests (Files): Likewise.
40314         * modules/unictype/category-Lo-tests (Files): Likewise.
40315         * modules/unictype/category-Lt-tests (Files): Likewise.
40316         * modules/unictype/category-Lu-tests (Files): Likewise.
40317         * modules/unictype/category-M-tests (Files): Likewise.
40318         * modules/unictype/category-Mc-tests (Files): Likewise.
40319         * modules/unictype/category-Me-tests (Files): Likewise.
40320         * modules/unictype/category-Mn-tests (Files): Likewise.
40321         * modules/unictype/category-N-tests (Files): Likewise.
40322         * modules/unictype/category-Nd-tests (Files): Likewise.
40323         * modules/unictype/category-Nl-tests (Files): Likewise.
40324         * modules/unictype/category-No-tests (Files): Likewise.
40325         * modules/unictype/category-P-tests (Files): Likewise.
40326         * modules/unictype/category-Pc-tests (Files): Likewise.
40327         * modules/unictype/category-Pd-tests (Files): Likewise.
40328         * modules/unictype/category-Pe-tests (Files): Likewise.
40329         * modules/unictype/category-Pf-tests (Files): Likewise.
40330         * modules/unictype/category-Pi-tests (Files): Likewise.
40331         * modules/unictype/category-Po-tests (Files): Likewise.
40332         * modules/unictype/category-Ps-tests (Files): Likewise.
40333         * modules/unictype/category-S-tests (Files): Likewise.
40334         * modules/unictype/category-Sc-tests (Files): Likewise.
40335         * modules/unictype/category-Sk-tests (Files): Likewise.
40336         * modules/unictype/category-Sm-tests (Files): Likewise.
40337         * modules/unictype/category-So-tests (Files): Likewise.
40338         * modules/unictype/category-Z-tests (Files): Likewise.
40339         * modules/unictype/category-Zl-tests (Files): Likewise.
40340         * modules/unictype/category-Zp-tests (Files): Likewise.
40341         * modules/unictype/category-Zs-tests (Files): Likewise.
40342         * modules/unictype/category-and-not-tests (Files): Likewise.
40343         * modules/unictype/category-and-tests (Files): Likewise.
40344         * modules/unictype/category-byname-tests (Files): Likewise.
40345         * modules/unictype/category-name-tests (Files): Likewise.
40346         * modules/unictype/category-none-tests (Files): Likewise.
40347         * modules/unictype/category-of-tests (Files): Likewise.
40348         * modules/unictype/category-or-tests (Files): Likewise.
40349         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40350         * modules/unictype/combining-class-tests (Files): Likewise.
40351         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40352         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40353         * modules/unictype/ctype-blank-tests (Files): Likewise.
40354         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40355         * modules/unictype/ctype-digit-tests (Files): Likewise.
40356         * modules/unictype/ctype-graph-tests (Files): Likewise.
40357         * modules/unictype/ctype-lower-tests (Files): Likewise.
40358         * modules/unictype/ctype-print-tests (Files): Likewise.
40359         * modules/unictype/ctype-punct-tests (Files): Likewise.
40360         * modules/unictype/ctype-space-tests (Files): Likewise.
40361         * modules/unictype/ctype-upper-tests (Files): Likewise.
40362         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40363         * modules/unictype/decimal-digit-tests (Files): Likewise.
40364         * modules/unictype/digit-tests (Files): Likewise.
40365         * modules/unictype/mirror-tests (Files): Likewise.
40366         * modules/unictype/numeric-tests (Files): Likewise.
40367         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40368         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40369         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40370         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40371         Likewise.
40372         * modules/unictype/property-bidi-block-separator-tests (Files):
40373         Likewise.
40374         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40375         Likewise.
40376         * modules/unictype/property-bidi-common-separator-tests (Files):
40377         Likewise.
40378         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40379         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40380         Likewise.
40381         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40382         Likewise.
40383         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40384         Likewise.
40385         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40386         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40387         Likewise.
40388         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40389         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40390         Likewise.
40391         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40392         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40393         * modules/unictype/property-bidi-segment-separator-tests (Files):
40394         Likewise.
40395         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40396         * modules/unictype/property-byname-tests (Files): Likewise.
40397         * modules/unictype/property-combining-tests (Files): Likewise.
40398         * modules/unictype/property-composite-tests (Files): Likewise.
40399         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40400         * modules/unictype/property-dash-tests (Files): Likewise.
40401         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40402         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40403         Likewise.
40404         * modules/unictype/property-deprecated-tests (Files): Likewise.
40405         * modules/unictype/property-diacritic-tests (Files): Likewise.
40406         * modules/unictype/property-extender-tests (Files): Likewise.
40407         * modules/unictype/property-format-control-tests (Files): Likewise.
40408         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40409         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40410         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40411         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40412         * modules/unictype/property-hyphen-tests (Files): Likewise.
40413         * modules/unictype/property-id-continue-tests (Files): Likewise.
40414         * modules/unictype/property-id-start-tests (Files): Likewise.
40415         * modules/unictype/property-ideographic-tests (Files): Likewise.
40416         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40417         * modules/unictype/property-ids-trinary-operator-tests (Files):
40418         Likewise.
40419         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40420         * modules/unictype/property-iso-control-tests (Files): Likewise.
40421         * modules/unictype/property-join-control-tests (Files): Likewise.
40422         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40423         * modules/unictype/property-line-separator-tests (Files): Likewise.
40424         * modules/unictype/property-logical-order-exception-tests (Files):
40425         Likewise.
40426         * modules/unictype/property-lowercase-tests (Files): Likewise.
40427         * modules/unictype/property-math-tests (Files): Likewise.
40428         * modules/unictype/property-non-break-tests (Files): Likewise.
40429         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40430         * modules/unictype/property-numeric-tests (Files): Likewise.
40431         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40432         * modules/unictype/property-other-default-ignorable-code-point-tests
40433         (Files): Likewise.
40434         * modules/unictype/property-other-grapheme-extend-tests (Files):
40435         Likewise.
40436         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40437         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40438         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40439         * modules/unictype/property-other-math-tests (Files): Likewise.
40440         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40441         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40442         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40443         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40444         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40445         * modules/unictype/property-private-use-tests (Files): Likewise.
40446         * modules/unictype/property-punctuation-tests (Files): Likewise.
40447         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40448         * modules/unictype/property-radical-tests (Files): Likewise.
40449         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40450         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40451         * modules/unictype/property-space-tests (Files): Likewise.
40452         * modules/unictype/property-terminal-punctuation-tests (Files):
40453         Likewise.
40454         * modules/unictype/property-test-tests (Files): Likewise.
40455         * modules/unictype/property-titlecase-tests (Files): Likewise.
40456         * modules/unictype/property-unassigned-code-value-tests (Files):
40457         Likewise.
40458         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40459         * modules/unictype/property-uppercase-tests (Files): Likewise.
40460         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40461         * modules/unictype/property-white-space-tests (Files): Likewise.
40462         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40463         * modules/unictype/property-xid-start-tests (Files): Likewise.
40464         * modules/unictype/property-zero-width-tests (Files): Likewise.
40465         * modules/unictype/scripts-tests (Files): Likewise.
40466         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40467         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40468         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40469         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40470         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40471         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40472         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40473         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40474         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40475         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40476         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40477         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40478         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40479         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40480         * modules/uninorm/composition-tests (Files): Likewise.
40481         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40482         * modules/uninorm/decomposition-tests (Files): Likewise.
40483         * modules/uninorm/filter-tests (Files): Likewise.
40484         * modules/uninorm/nfc-tests (Files): Likewise.
40485         * modules/uninorm/nfd-tests (Files): Likewise.
40486         * modules/uninorm/nfkc-tests (Files): Likewise.
40487         * modules/uninorm/nfkd-tests (Files): Likewise.
40488         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40489         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40490         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40491         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40492         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40493         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40494         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40495         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40496         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40497         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40498         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40499         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40500         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40501         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40502         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40503         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40504         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40505         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40506         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40507         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40508         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40509         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40510         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40511         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40512         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40513         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40514         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40515         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40516         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40517         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40518         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40519         * modules/uniwidth/u8-width-tests (Files): Likewise.
40520         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40521         * modules/uniwidth/u16-width-tests (Files): Likewise.
40522         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40523         * modules/uniwidth/u32-width-tests (Files): Likewise.
40524         * modules/uniwidth/width-tests (Files): Likewise.
40525         * modules/unlink-tests (Files): Likewise.
40526         * modules/unsetenv-tests (Files): Likewise.
40527         * modules/usleep-tests (Files): Likewise.
40528         * modules/utimens-tests (Files): Likewise.
40529         * modules/utimensat-tests (Files): Likewise.
40530         * modules/vasnprintf-posix-tests (Files): Likewise.
40531         * modules/vasnprintf-tests (Files): Likewise.
40532         * modules/vasprintf-posix-tests (Files): Likewise.
40533         * modules/vasprintf-tests (Files): Likewise.
40534         * modules/vdprintf-posix-tests (Files): Likewise.
40535         * modules/vfprintf-posix-tests (Files): Likewise.
40536         * modules/vprintf-posix-tests (Files): Likewise.
40537         * modules/vsnprintf-posix-tests (Files): Likewise.
40538         * modules/vsnprintf-tests (Files): Likewise.
40539         * modules/vsprintf-posix-tests (Files): Likewise.
40540         * modules/wcrtomb-tests (Files): Likewise.
40541         * modules/wcsnrtombs-tests (Files): Likewise.
40542         * modules/wcsrtombs-tests (Files): Likewise.
40543         * modules/wctype-tests (Files): Likewise.
40544         * modules/wcwidth-tests (Files): Likewise.
40545         * modules/xmemdup0-tests (Files): Likewise.
40546         * modules/xprintf-posix-tests (Files): Likewise.
40547         * modules/xvasprintf-tests (Files): Likewise.
40548
40549 2009-12-24  Eric Blake  <ebb9@byu.net>
40550
40551         test-nanosleep: fix typo
40552         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40553         patch.
40554         Reported by Bruno Haible.
40555
40556 2009-12-24  Bruno Haible  <bruno@clisp.org>
40557
40558         Reduce namespace pollution on glibc systems.
40559         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40560         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40561         systems.
40562         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40563         <getopt.h> on glibc systems.
40564         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40565         systems.
40566         * lib/fcntl.c: Include <unistd.h> here instead.
40567
40568 2009-12-24  Bruno Haible  <bruno@clisp.org>
40569
40570         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40571
40572 2009-12-24  Eric Blake  <ebb9@byu.net>
40573
40574         tests: add signature checks
40575         * tests/signature.h (SIGNATURE_CHECK): New file.
40576         * modules/atexit-tests (Files): Use it.
40577         * modules/btowc-tests (Files): Likewise.
40578         * modules/canonicalize-lgpl-tests (Files): Likewise.
40579         * modules/ceilf-tests (Files): Likewise.
40580         * modules/ceill-tests (Files): Likewise.
40581         * modules/chown-tests (Files): Likewise.
40582         * modules/dprintf-posix-tests (Files): Likewise.
40583         * modules/dup2-tests (Files): Likewise.
40584         * modules/dup3-tests (Files): Likewise.
40585         * modules/duplocale-tests (Files): Likewise.
40586         * modules/fchdir-tests (Files): Likewise.
40587         * modules/fcntl-tests (Files): Likewise.
40588         * modules/fdopendir-tests (Files): Likewise.
40589         * modules/fflush-tests (Files): Likewise.
40590         * modules/flock-tests (Files): Likewise.
40591         * modules/floorf-tests (Files): Likewise.
40592         * modules/floorl-tests (Files): Likewise.
40593         * modules/fnmatch-tests (Files): Likewise.
40594         * modules/fopen-tests (Files): Likewise.
40595         * modules/fprintf-posix-tests (Files): Likewise.
40596         * modules/freopen-tests (Files): Likewise.
40597         * modules/frexp-nolibm-tests (Files): Likewise.
40598         * modules/frexp-tests (Files): Likewise.
40599         * modules/frexpl-nolibm-tests (Files): Likewise.
40600         * modules/frexpl-tests (Files): Likewise.
40601         * modules/fseek-tests (Files): Likewise.
40602         * modules/fseeko-tests (Files): Likewise.
40603         * modules/fsync-tests (Files): Likewise.
40604         * modules/ftell-tests (Files): Likewise.
40605         * modules/ftello-tests (Files): Likewise.
40606         * modules/futimens-tests (Files): Likewise.
40607         * modules/getaddrinfo-tests (Files): Likewise.
40608         * modules/getcwd-tests (Files): Likewise.
40609         * modules/getdelim-tests (Files): Likewise.
40610         * modules/getdtablesize-tests (Files): Likewise.
40611         * modules/getgroups-tests (Files): Likewise.
40612         * modules/gethostname-tests (Files): Likewise.
40613         * modules/getline-tests (Files): Likewise.
40614         * modules/getopt-posix-tests (Files): Likewise.
40615         * modules/gettimeofday-tests (Files): Likewise.
40616         * modules/glob-tests (Files): Likewise.
40617         * modules/iconv-tests (Files): Likewise.
40618         * modules/inet_ntop-tests (Files): Likewise.
40619         * modules/inet_pton-tests (Files): Likewise.
40620         * modules/isblank-tests (Files): Likewise.
40621         * modules/lchown-tests (Files): Likewise.
40622         * modules/ldexpl-tests (Files): Likewise.
40623         * modules/link-tests (Files): Likewise.
40624         * modules/linkat-tests (Files): Likewise.
40625         * modules/lseek-tests (Files): Likewise.
40626         * modules/lstat-tests (Files): Likewise.
40627         * modules/mbrtowc-tests (Files): Likewise.
40628         * modules/mbsinit-tests (Files): Likewise.
40629         * modules/mbsnrtowcs-tests (Files): Likewise.
40630         * modules/mbsrtowcs-tests (Files): Likewise.
40631         * modules/memchr-tests (Files): Likewise.
40632         * modules/memcmp-tests (Files): Likewise.
40633         * modules/memmem-tests (Files): Likewise.
40634         * modules/memrchr-tests (Files): Likewise.
40635         * modules/mkdir-tests (Files): Likewise.
40636         * modules/mkfifo-tests (Files): Likewise.
40637         * modules/mkfifoat-tests (Files): Likewise.
40638         * modules/mknod-tests (Files): Likewise.
40639         * modules/nanosleep-tests (Files): Likewise.
40640         * modules/nl_langinfo-tests (Files): Likewise.
40641         * modules/obstack-printf-tests (Files): Likewise.
40642         * modules/open-tests (Files): Likewise.
40643         * modules/openat-tests (Files): Likewise.
40644         * modules/perror-tests (Files): Likewise.
40645         * modules/pipe2-tests (Files): Likewise.
40646         * modules/poll-tests (Files): Likewise.
40647         * modules/popen-tests (Files): Likewise.
40648         * modules/posix_spawn-tests (Files): Likewise.
40649         * modules/posix_spawnp-tests (Files): Likewise.
40650         * modules/pread-tests (Files): Likewise.
40651         * modules/printf-posix-tests (Files): Likewise.
40652         * modules/pty-tests (Files): Likewise.
40653         * modules/random_r-tests (Files): Likewise.
40654         * modules/rawmemchr-tests (Files): Likewise.
40655         * modules/readlink-tests (Files): Likewise.
40656         * modules/remove-tests (Files): Likewise.
40657         * modules/rename-tests (Files): Likewise.
40658         * modules/renameat-tests (Files): Likewise.
40659         * modules/rmdir-tests (Files): Likewise.
40660         * modules/round-tests (Files): Likewise.
40661         * modules/roundf-tests (Files): Likewise.
40662         * modules/roundl-tests (Files): Likewise.
40663         * modules/select-tests (Files): Likewise.
40664         * modules/setenv-tests (Files): Likewise.
40665         * modules/sigaction-tests (Files): Likewise.
40666         * modules/sleep-tests (Files): Likewise.
40667         * modules/snprintf-posix-tests (Files): Likewise.
40668         * modules/snprintf-tests (Files): Likewise.
40669         * modules/sprintf-posix-tests (Files): Likewise.
40670         * modules/stat-tests (Files): Likewise.
40671         * modules/strcasestr-tests (Files): Likewise.
40672         * modules/strchrnul-tests (Files): Likewise.
40673         * modules/strerror-tests (Files): Likewise.
40674         * modules/strsignal-tests (Files): Likewise.
40675         * modules/strstr-tests (Files): Likewise.
40676         * modules/strtod-tests (Files): Likewise.
40677         * modules/strverscmp-tests (Files): Likewise.
40678         * modules/symlink-tests (Files): Likewise.
40679         * modules/symlinkat-tests (Files): Likewise.
40680         * modules/times-tests (Files): Likewise.
40681         * modules/trunc-tests (Files): Likewise.
40682         * modules/truncf-tests (Files): Likewise.
40683         * modules/truncl-tests (Files): Likewise.
40684         * modules/tsearch-tests (Files): Likewise.
40685         * modules/uname-tests (Files): Likewise.
40686         * modules/unlink-tests (Files): Likewise.
40687         * modules/unsetenv-tests (Files): Likewise.
40688         * modules/usleep-tests (Files): Likewise.
40689         * modules/utimensat-tests (Files): Likewise.
40690         * modules/vasprintf-tests (Files): Likewise.
40691         * modules/vdprintf-posix-tests (Files): Likewise.
40692         * modules/vfprintf-posix-tests (Files): Likewise.
40693         * modules/vprintf-posix-tests (Files): Likewise.
40694         * modules/vsnprintf-posix-tests (Files): Likewise.
40695         * modules/vsnprintf-tests (Files): Likewise.
40696         * modules/vsprintf-posix-tests (Files): Likewise.
40697         * modules/wcrtomb-tests (Files): Likewise.
40698         * modules/wcsnrtombs-tests (Files): Likewise.
40699         * modules/wcsrtombs-tests (Files): Likewise.
40700         * modules/wcwidth-tests (Files): Likewise.
40701         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40702         * tests/test-isinf.c (isinf): Likewise.
40703         * tests/test-isnan.c (isnan): Likewise.
40704         * tests/test-signbit.c (signbit): Likewise.
40705         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40706         declaration, either as macro or with correct signature.
40707         (select): Ensure function under test is declared with correct
40708         signature in correct header.
40709         * tests/test-atexit.c (atexit): Likewise.
40710         * tests/test-btowc.c (btowc): Likewise.
40711         * tests/test-canonicalize-lgpl.c (realpath)
40712         (canonicalize_file_name): Likewise.
40713         * tests/test-ceilf1.c (ceilf): Likewise.
40714         * tests/test-ceill.c (ceill): Likewise.
40715         * tests/test-chown.c (chown): Likewise.
40716         * tests/test-dprintf-posix.c (dprintf): Likewise.
40717         * tests/test-dup2.c (dup2): Likewise.
40718         * tests/test-dup3.c (dup3): Likewise.
40719         * tests/test-duplocale.c (duplocale): Likewise.
40720         * tests/test-fchdir.c (fchdir): Likewise.
40721         * tests/test-fchownat.c (fchownat): Likewise.
40722         * tests/test-fcntl.c (fcntl): Likewise.
40723         * tests/test-fdopendir.c (fdopendir): Likewise.
40724         * tests/test-fflush.c (fflush): Likewise.
40725         * tests/test-flock.c (flock): Likewise.
40726         * tests/test-floorf1.c (floorf): Likewise.
40727         * tests/test-floorl.c (floorl): Likewise.
40728         * tests/test-fnmatch.c (fnmatch): Likewise.
40729         * tests/test-fopen.c (fopen): Likewise.
40730         * tests/test-fprintf-posix.c (fprintf): Likewise.
40731         * tests/test-freopen.c (freopen): Likewise.
40732         * tests/test-frexp.c (frexp): Likewise.
40733         * tests/test-frexpl.c (frexpl): Likewise.
40734         * tests/test-fseek.c (fseek): Likewise.
40735         * tests/test-fseeko.c (fseeko): Likewise.
40736         * tests/test-fstatat.c (fstatat): Likewise.
40737         * tests/test-fsync.c (fsync): Likewise.
40738         * tests/test-ftell.c (ftell): Likewise.
40739         * tests/test-ftello.c (ftello): Likewise.
40740         * tests/test-futimens.c (futimens): Likewise.
40741         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40742         (gai_strerror): Likewise.
40743         * tests/test-getcwd.c (getcwd): Likewise.
40744         * tests/test-getdelim.c (getdelim): Likewise.
40745         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40746         * tests/test-getgroups.c (getgroups): Likewise.
40747         * tests/test-gethostname.c (gethostname): Likewise.
40748         * tests/test-getline.c (getline): Likewise.
40749         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40750         Likewise.
40751         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40752         * tests/test-glob.c (glob, globfree): Likewise.
40753         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40754         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40755         * tests/test-inet_pton.c (inet_pton): Likewise.
40756         * tests/test-isblank.c (isblank): Likewise.
40757         * tests/test-lchown.c (lchown): Likewise.
40758         * tests/test-ldexpl.c (ldexpl): Likewise.
40759         * tests/test-link.c (link): Likewise.
40760         * tests/test-linkat.c (linkat): Likewise.
40761         * tests/test-lseek.c (lseek): Likewise.
40762         * tests/test-lstat.c (lstat): Likewise.
40763         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40764         * tests/test-mbsinit.c (mbsinit): Likewise.
40765         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40766         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40767         * tests/test-memchr.c (memchr): Likewise.
40768         * tests/test-memcmp.c (memcmp): Likewise.
40769         * tests/test-memmem.c (memmem): Likewise.
40770         * tests/test-memrchr.c (memrchr): Likewise.
40771         * tests/test-mkdir.c (mkdir): Likewise.
40772         * tests/test-mkdirat.c (mkdirat): Likewise.
40773         * tests/test-mkfifo.c (mkfifo): Likewise.
40774         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40775         * tests/test-mknod.c (mknod): Likewise.
40776         * tests/test-nanosleep.c (nanosleep): Likewise.
40777         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40778         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40779         Likewise.
40780         * tests/test-open.c (open): Likewise.
40781         * tests/test-openat.c (openat): Likewise.
40782         * tests/test-perror.c (perror): Likewise.
40783         * tests/test-pipe2.c (pipe2): Likewise.
40784         * tests/test-poll.c (poll): Likewise.
40785         * tests/test-popen.c (popen, pclose): Likewise.
40786         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40787         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40788         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40789         (posix_spawn_file_actions_destroy)
40790         (posix_spawn_file_actions_addclose)
40791         (posix_spawn_file_actions_addopen)
40792         (posix_spawn_file_actions_adddup2): Likewise.
40793         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40794         * tests/test-pread.c (pread): Likewise.
40795         * tests/test-printf-posix.c (printf): Likewise.
40796         * tests/test-pty.c (openpty, forkpty): Likewise.
40797         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40798         (random_r): Likewise.
40799         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40800         * tests/test-readlink.c (readlink): Likewise.
40801         * tests/test-remove.c (remove): Likewise.
40802         * tests/test-rename.c (rename): Likewise.
40803         * tests/test-renameat.c (renameat): Likewise.
40804         * tests/test-rmdir.c (rmdir): Likewise.
40805         * tests/test-round1.c (round): Likewise.
40806         * tests/test-roundf1.c (roundf): Likewise.
40807         * tests/test-roundl.c (roundl): Likewise.
40808         * tests/test-setenv.c (setenv): Likewise.
40809         * tests/test-sigaction.c (sigaction): Likewise.
40810         * tests/test-sleep.c (sleep): Likewise.
40811         * tests/test-snprintf.c (snprintf): Likewise.
40812         * tests/test-sprintf-posix.c (sprintf): Likewise.
40813         * tests/test-stat.c (stat): Likewise.
40814         * tests/test-stpncpy.c (stpncpy): Likewise.
40815         * tests/test-strcasestr.c (strcasestr): Likewise.
40816         * tests/test-strchrnul.c (strchrnul): Likewise.
40817         * tests/test-strerror.c (strerror): Likewise.
40818         * tests/test-strsignal.c (strsignal): Likewise.
40819         * tests/test-strstr.c (strstr): Likewise.
40820         * tests/test-strtod.c (strtod): Likewise.
40821         * tests/test-strverscmp.c (strverscmp): Likewise.
40822         * tests/test-symlink.c (symlink): Likewise.
40823         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40824         * tests/test-times.c (times): Likewise.
40825         * tests/test-trunc1.c (trunc): Likewise.
40826         * tests/test-truncf1.c (truncf): Likewise.
40827         * tests/test-truncl.c (truncl): Likewise.
40828         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40829         Likewise.
40830         * tests/test-uname.c (uname): Likewise.
40831         * tests/test-unlink.c (unlink): Likewise.
40832         * tests/test-unlinkat.c (unlinkat): Likewise.
40833         * tests/test-unsetenv.c (unsetenv): Likewise.
40834         * tests/test-usleep.c (usleep): Likewise.
40835         * tests/test-utimensat.c (utimensat): Likewise.
40836         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40837         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40838         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40839         * tests/test-vprintf-posix.c (vprintf): Likewise.
40840         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40841         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40842         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40843         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40844         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40845         * tests/test-wcwidth.c (wcwidth): Likewise.
40846
40847         build: pull in conditional headers during GNULIB_POSIXCHECK
40848         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40849         definitions from any conditionally-included headers.
40850         * lib/stdlib.in.h (includes): Likewise.
40851         * lib/unistd.in.h (includes): Likewise.
40852
40853 2009-12-24  Bruno Haible  <bruno@clisp.org>
40854
40855         * tests/test-argv-iter.c: Include header file being tested immediately
40856         after config.h.
40857         * tests/test-base64.c: Likewise.
40858         * tests/test-flock.c: Likewise.
40859         * tests/test-fsync.c: Likewise.
40860         * tests/test-getdate.c: Likewise.
40861         * tests/test-getndelim2.c: Likewise.
40862         * tests/test-isfinite.c: Likewise.
40863         * tests/test-isinf.c: Likewise.
40864         * tests/test-strerror.c: Likewise.
40865         * tests/test-strsignal.c: Likewise.
40866
40867 2009-12-23  Eric Blake  <ebb9@byu.net>
40868
40869         unistd: work around cygwin bug
40870         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40871         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40872         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40873
40874 2009-12-23  Bruno Haible  <bruno@clisp.org>
40875
40876         localename: More tests.
40877         * tests/test-localename.c (SIZEOF): New macro.
40878         (categories): New variable.
40879         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40880         test_locale_name_default): Add test w.r.t. thread locale.
40881         (test_locale_name_thread): New function.
40882         (main): Invoke it.
40883
40884         localename: Make aware of thread locale.
40885         * lib/localename.h (gl_locale_name_thread): New declaration.
40886         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40887         behaviour with respect to thread locale.
40888         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40889         <langinfo.h>, glthread/lock.h.
40890         (SIZE_BITS): New macro.
40891         (string_hash): New function.
40892         (struct hash_node): New type.
40893         (HASH_TABLE_SIZE): New macro.
40894         (struniq_hash_table, struniq_lock): New variables.
40895         (struniq): New function.
40896         (gl_locale_name_thread): New function.
40897         (gl_locale_name): Invoke it.
40898         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40899         * modules/localename (Depends-on): Add lock.
40900         Reported by Mike Gran <spk121@yahoo.com>.
40901
40902 2009-12-23  Eric Blake  <ebb9@byu.net>
40903
40904         va-args: new module
40905         * modules/va-args: New file.
40906         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40907         * MODULES.html.sh (Core language properties): Mention it.
40908
40909         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40910         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40911         named alias for __attribute__((__unused__)).
40912         * lib/chown.c: Update client.
40913         * lib/fchmodat.c: Likewise.
40914         * lib/fts.c: Likewise.
40915         * lib/getdate.y: Likewise.
40916         * lib/getgroups.c: Likewise.
40917         * lib/getopt.c: Likewise.
40918         * lib/getugroups.c: Likewise.
40919         * lib/mkdir.c: Likewise.
40920         * lib/mkfifo.c: Likewise.
40921         * lib/mkfifoat.c: Likewise.
40922         * lib/mknod.c: Likewise.
40923         * lib/mknodat.c: Likewise.
40924         * lib/readlink.c: Likewise.
40925         * lib/se-context.in.h: Likewise.
40926         * lib/se-selinux.in.h: Likewise.
40927         * lib/sockets.c: Likewise.
40928         * lib/symlink.c: Likewise.
40929         * lib/symlinkat.c: Likewise.
40930         * lib/unicodeio.c: Likewise.
40931         * lib/unistr.h: Likewise.
40932         * tests/test-areadlink.c: Likewise.
40933         * tests/test-areadlinkat.c: Likewise.
40934         * tests/test-filenamecat.c: Likewise.
40935         * tests/test-fseeko.c: Likewise.
40936         * tests/test-ftello.c: Likewise.
40937         * tests/test-getdate.c: Likewise.
40938         * tests/test-getgroups.c: Likewise.
40939         * tests/test-gethostname.c: Likewise.
40940         * tests/test-quotearg.c: Likewise.
40941         * tests/test-version-etc.c: Likewise.
40942         * tests/test-xalloc-die.c: Likewise.
40943         * tests/test-xfprintf-posix.c: Likewise.
40944         * tests/test-xprintf-posix.c: Likewise.
40945         * tests/test-xvasprintf.c: Likewise.
40946
40947         tests: avoid compiler warnings
40948         * tests/test-fcntl.c (main): Delete unused parameters.
40949         * tests/test-freopen-safer.c (main): Likewise.
40950         * tests/test-xalloc-die.c (main): Mark unused parameters.
40951         * tests/test-fseeko.c (main): Likewise.
40952         * tests/test-ftello.c (main): Likewise.
40953         * tests/test-nanosleep.c (main): Avoid declaration warning.
40954         * tests/test-sleep.c (main): Likewise.
40955         * tests/test-unsetenv.c (main): Silence warning about string
40956         literal.
40957         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40958
40959 2009-12-23  Bruno Haible  <bruno@clisp.org>
40960
40961         * tests/test-localename.c (test_locale_name): New function, extracted
40962         from main. Also test mixed situations.
40963         (test_locale_name_posix, test_locale_name_environ,
40964         test_locale_name_default): New functions.
40965         (main): Invoke them all.
40966         * modules/localename-tests (configure.ac): Test for newlocale.
40967
40968 2009-12-23  Bruno Haible  <bruno@clisp.org>
40969
40970         unistd: Ensure getcwd gets declared before being overridden.
40971         * lib/unistd.in.h: Conditionally include <io.h>.
40972
40973 2009-12-22  Bruno Haible  <bruno@clisp.org>
40974
40975         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40976         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40977         (gl_WCHAR_H): Invoke it.
40978         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40979         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40980         Reported by Karl Berry <karl@freefriends.org>.
40981
40982 2009-12-22  Eric Blake  <ebb9@byu.net>
40983
40984         math, unistd: avoid redundant includes
40985         * lib/math.in.h (isnan): No need to re-include <math.h>.
40986         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40987
40988         getsubopt: work around cygwin bug
40989         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40990         avoid conflicting with system getsubopt.
40991         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40992         bug.
40993
40994         getopt: synchronize from glibc
40995         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40996         parameter order.  Adjust all callers.
40997         (_getopt_internal_r, main): Adjust quoting in error messages.
40998         Drop considerations for outdated POSIX 1003.2 error message.
40999         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41000         callers.
41001         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41002
41003         test-getopt: test stderr behavior
41004         * modules/getopt-posix-tests (Depends-on): Add dup2.
41005         * tests/test-getopt.c (ASSERT): Avoid stderr.
41006         (main): Move stderr to a temporary file.
41007         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41008         Instead, add parameter to inform caller if output occurred.
41009         (test_getopt): Adjust all existing tests to expect silence, and
41010         add new tests of leading ":".
41011         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41012         glibc shortcomings with leading "-:" or "+:" in optstring.
41013         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41014         Likewise.
41015         * doc/posix-functions/getopt.texi (getopt): Likewise.
41016
41017         test-getopt: enhance test
41018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41019         supports optind=0.
41020         * tests/test-getopt.c (OPTIND_MIN): Move...
41021         * tests/test-getopt.h (OPTIND_MIN): ...here.
41022         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41023         Require that optind=0 works, since modern BSD supports it in
41024         addition to optreset, and since coreutils expects it.
41025         (test_getopt_long_only): New test.
41026         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41027         glibc shortcomings with 'W;', and enforcement of optind=0.
41028         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41029         Likewise.
41030
41031 2009-12-21  Bruno Haible  <bruno@clisp.org>
41032
41033         localename: Improvements for MacOS X and Cygwin.
41034         * lib/localename.h (gl_locale_name_environ): New declaration.
41035         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41036         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41037         (gl_locale_name_posix): Invoke it.
41038         (gl_locale_name_default): Add comments. Use Windows native API also on
41039         Cygwin.
41040
41041 2009-12-21  Bruno Haible  <bruno@clisp.org>
41042
41043         Update list of Win32 locale ids.
41044         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41045         (LANG_SAMI): Renamed from LANG_SAAMI.
41046         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41047         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41048         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41049         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41050         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41051         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41052         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41053         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41054         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41055         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41056         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41057         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41058         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41059         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41060         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41061         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41062         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41063         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41064         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41065         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41066         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41067         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41068         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41069         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41070         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41071         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41072         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41073         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41074         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41075         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41076         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41077         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41078         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41079         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41080         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41081         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41082         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41083         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41084         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41085         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41086         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41087         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41088         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41089         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41090         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41091         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41092         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41093         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41094         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41095         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41096         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41097         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41098         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41099         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41100         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41101         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41102         Add more languages and countries for Sami, Sorbian. Add more countries
41103         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41104         for Pashto. Change country for Syriac, Tswana.
41105
41106 2009-12-21  Eric Blake  <ebb9@byu.net>
41107
41108         test-utimens: avoid spurious failure
41109         * tests/test-chown.h (nap): Factor...
41110         * tests/nap.h: ...into new file.
41111         * tests/test-lchown.h (nap): Avoid duplication.
41112         * tests/test-utimens-common.h (nap): Use shared implementation,
41113         necessary on file systems with 1-second resolution.
41114         * modules/chown-tests (Files): Include new file.
41115         * modules/fdutimensat-tests (Files): Likewise.
41116         * modules/futimens-tests (Files): Likewise.
41117         * modules/lchown-tests (Files): Likewise.
41118         * modules/openat-tests (Files): Likewise.
41119         * modules/utimens-tests (Files): Likewise.
41120         * modules/utimensat-tests (Files): Likewise.
41121
41122 2009-12-19  Eric Blake  <ebb9@byu.net>
41123
41124         futimens, utimensat: work around Linux bug
41125         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41126         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41127         * lib/utimensat.c (rpl_utimensat): Work around it.
41128         * lib/futimens.c (rpl_futimens): Adjust comment.
41129
41130         utimens: work around Linux ctime bug
41131         * lib/utimens.c (detect_ctime_bug): New helper function.
41132         (update_timespec): Differentiate between workaround needed for
41133         this bug vs. what is needed for systems that lack utimensat.
41134         (fdutimens, lutimens): Work around bug.
41135
41136         utimens: check for ctime update
41137         * tests/test-utimens-common.h (check_ctime): Define.
41138         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41139         * tests/test-futimens.h (test_futimens): Likewise.
41140         * tests/test-lutimens.h (test_lutimens): Likewise.
41141         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41142         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41143
41144 2009-12-19  Bruno Haible  <bruno@clisp.org>
41145
41146         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41147         * tests/test-dprintf-posix2.sh: New file.
41148         * tests/test-dprintf-posix2.c: New file.
41149         * modules/dprintf-posix-tests (Files): Add them.
41150         (configure.ac): Check for getrlimit and setrlimit.
41151         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41152
41153 2009-12-19  Bruno Haible  <bruno@clisp.org>
41154
41155         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41156         * tests/test-fprintf-posix3.sh: New file.
41157         * tests/test-fprintf-posix3.c: New file.
41158         * modules/fprintf-posix-tests (Files): Add them.
41159         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41160
41161 2009-12-19  Eric Blake  <ebb9@byu.net>
41162
41163         dirfd: fix prototype
41164         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41165         * lib/dirfd.c (dirfd): Likewise.
41166
41167         canonicalize: reduce memory usage
41168         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41169         allocation to size.
41170         Reported by Solar Designer <solar@openwall.com>.
41171
41172 2009-12-19  Bruno Haible  <bruno@clisp.org>
41173
41174         New module attribute 'Applicability'.
41175         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41176         * gnulib-tool: New option --extract-applicability.
41177         (func_usage): Document it.
41178         (sed_extract_prog): Recognize it.
41179         (func_get_applicability): New function.
41180         (func_import): Generalize handling of 'link-warning' module.
41181         * modules/link-warning (Applicability): New section.
41182         * modules/arg-nonnull (Applicability): New section.
41183         Repoted by Simon Josefsson <simon@josefsson.org>.
41184
41185 2009-12-19  Bruno Haible  <bruno@clisp.org>
41186
41187         fflush: tweak
41188         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41189         * lib/fseeko.c (rpl_fseeko): Likewise.
41190
41191 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41192
41193         * lib/gl_list.h: Fix typo in comment.
41194
41195 2009-12-16  Eric Blake  <ebb9@byu.net>
41196
41197         fcntl: use to simplify other modules
41198         * modules/cloexec (Depends-on): Add fcntl.
41199         * modules/fchdir (Depends-on): Likewise.
41200         * modules/fd-safer-flag (Depends-on): Likewise.
41201         * modules/unistd-safer (Depends-on): Likewise.
41202         * modules/dup3 (configure.ac): Set module indicator.
41203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41204         missing.
41205         * lib/fchdir.c (_gl_register_dup): Fix comment.
41206         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41207         * lib/dup-safer.c (dup_safer): Likewise.
41208         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41209         * lib/dup3.c (dup3): Likewise.
41210         * tests/test-fchdir.c (main): Enhance test.
41211         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41212
41213         fcntl: port portions of fcntl to mingw
41214         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41215         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41216         replacement for mingw.
41217         * modules/fcntl (Description): Update.
41218         (Depends-on): Add dup2.
41219         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41220         * modules/fcntl-h (Makefile.am): Substitute it.
41221         * lib/fcntl.in.h (fcntl): Update declaration.
41222         (F_DUPFD, F_GETFD): New macros, when needed.
41223         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41224         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41225         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41226         we now guarantee.
41227
41228         fcntl: work around cygwin bug in F_DUPFD
41229         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41230         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41231         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41232         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41233         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41234
41235         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41236         * modules/fcntl (Files): List new files.
41237         (configure.ac): Run a test.
41238         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41239         * lib/fcntl.c (rpl_fcntl): Likewise.
41240         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41241         (gl_FCNTL_H): Always replace fcntl.h.
41242         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41243         * lib/fcntl.in.h (fcntl): Declare replacement.
41244         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41245         needed, plus a witness.
41246         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41247         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41248         * tests/test-fcntl.c: New file.
41249         * modules/fcntl-tests: Likewise.
41250
41251         binary-io: avoid potential compilation warning
41252         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41253         directives.
41254
41255         fflush: avoid compilation error on NetBSD
41256         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41257         between off_t and fpos_t, since the latter is sometimes a struct.
41258         * lib/fseeko.c (rpl_fseeko): Likewise.
41259         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41260
41261 2009-12-15  Eric Blake  <ebb9@byu.net>
41262
41263         fcntl-h, stdio, sys_ioctl: fix declarations
41264         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41265         function must not take arguments.
41266         * lib/sys_ioctl.in.h (ioctl): Likewise.
41267         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41268         (open): Add a link warning.
41269
41270 2009-12-15  Jim Meyering  <meyering@redhat.com>
41271
41272         areadlink, areadlink-with-size: relax license to LGPLv2+
41273         * modules/areadlink (License): Relax to LGPLv2+.
41274         * modules/areadlink-with-size (License): Likewise.
41275
41276 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41277             Bruno Haible  <bruno@clisp.org>
41278
41279         *printf: Fix memory leak.
41280         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41281         * lib/vfprintf.c (vfprintf): Likewise.
41282         * lib/dprintf.c (dprintf): Likewise.
41283         * lib/vdprintf.c (vdprintf): Likewise.
41284
41285 2009-12-14  Eric Blake  <ebb9@byu.net>
41286
41287         accept4: adjust module dependencies
41288         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41289
41290         utimens: one more try at avoiding compiler warning
41291         * lib/utimens.c (lutimens): Lower scope of result.
41292
41293 2009-12-13  Bruno Haible  <bruno@clisp.org>
41294
41295         Move the malloc checking from module 'list' to new module 'xlist'.
41296         * modules/xlist: New file.
41297         * lib/gl_xlist.h: New file.
41298         * lib/gl_xlist.c: New file.
41299         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41300         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41301         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41302         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41303         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41304         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41305         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41306         gl_sortedlist_nx_add): New declarations.
41307         (struct gl_list_implementation): Rename and change methods accordingly.
41308         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41309         (gl_list_nx_create): Renamed from gl_list_create.
41310         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41311         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41312         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41313         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41314         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41315         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41316         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41317         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41318         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41319         gl_list_create_empty.
41320         (gl_list_nx_create): Renamed from gl_list_create.
41321         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41322         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41323         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41324         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41325         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41326         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41327         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41328         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41329         * lib/gl_array_list.c: Don't include xalloc.h.
41330         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41331         NULL upon out-of-memory.
41332         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41333         out-of-memory.
41334         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41335         Change return type to 'int'.
41336         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41337         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41338         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41339         upon out-of-memory.
41340         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41341         upon out-of-memory.
41342         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41343         upon out-of-memory.
41344         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41345         upon out-of-memory.
41346         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41347         out-of-memory.
41348         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41349         Update.
41350         (gl_array_list_implementation): Update.
41351         * lib/gl_carray_list.c: Don't include xalloc.h.
41352         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41353         Return NULL upon out-of-memory.
41354         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41355         out-of-memory.
41356         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41357         Change return type to 'int'.
41358         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41359         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41360         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41361         upon out-of-memory.
41362         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41363         upon out-of-memory.
41364         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41365         out-of-memory.
41366         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41367         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41368         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41369         Update.
41370         (gl_carray_list_implementation): Update.
41371         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41372         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41373         gl_linked_create_empty. Return NULL upon out-of-memory.
41374         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41375         out-of-memory.
41376         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41377         Change return type to 'int'. Return -1 upon out-of-memory.
41378         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41379         out-of-memory.
41380         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41381         upon out-of-memory.
41382         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41383         upon out-of-memory.
41384         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41385         NULL upon out-of-memory.
41386         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41387         upon out-of-memory.
41388         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41389         out-of-memory.
41390         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41391         Update.
41392         * lib/gl_linked_list.c: Don't include xalloc.h.
41393         (gl_linked_list_implementation): Update.
41394         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41395         (add_to_bucket): Change return type to 'int'.
41396         (gl_linkedhash_list_implementation): Update.
41397         * lib/gl_anytree_list1.h (free_subtree): New function.
41398         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41399         gl_tree_create_empty. Return NULL upon out-of-memory.
41400         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41401         Change return type to 'int'. Return -1 upon out-of-memory.
41402         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41403         out-of-memory.
41404         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41405         (gl_tree_remove_node): New function, moved here from
41406         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41407         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41408         Update.
41409         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41410         malloc, not xmalloc. Return NULL upon out-of-memory.
41411         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41412         out-of-memory.
41413         (gl_tree_remove_node_from_tree): New function, extracted from
41414         gl_tree_remove_node.
41415         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41416         upon out-of-memory.
41417         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41418         out-of-memory.
41419         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41420         upon out-of-memory.
41421         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41422         upon out-of-memory.
41423         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41424         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41425         not xmalloc. Return NULL upon out-of-memory.
41426         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41427         out-of-memory.
41428         (gl_tree_remove_node_from_tree): New function, extracted from
41429         gl_tree_remove_node.
41430         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41431         upon out-of-memory.
41432         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41433         out-of-memory.
41434         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41435         upon out-of-memory.
41436         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41437         upon out-of-memory.
41438         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41439         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41440         gl_anytree_list1.h before gl_anyavltree_list2.h.
41441         (gl_avltree_list_implementation): Update.
41442         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41443         gl_anytree_list1.h before gl_anyavltree_list2.h.
41444         (gl_rbtree_list_implementation): Update.
41445         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41446         Change return type to 'int'. Return -1 upon out-of-memory. Use
41447         __builtin_expect.
41448         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41449         (gl_avltreehash_list_implementation): Update.
41450         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41451         (gl_rbtreehash_list_implementation): Update.
41452         * modules/array-list (Depends-on): Remove xalloc.
41453         * modules/carray-list (Depends-on): Likewise.
41454         * modules/linked-list (Depends-on): Likewise.
41455         * modules/linkedhash-list (Depends-on): Likewise.
41456         * modules/avltree-list (Depends-on): Likewise.
41457         * modules/rbtree-list (Depends-on): Likewise.
41458         * modules/avltreehash-list (Depends-on): Likewise.
41459         * modules/rbtreehash-list (Depends-on): Likewise.
41460
41461         * modules/xsublist: New file.
41462         * lib/gl_xsublist.h: New file.
41463         * lib/gl_xsublist.c: New file.
41464         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41465         (gl_sublist_nx_create): New declaration.
41466         * lib/gl_sublist.c: Don't include xalloc.h.
41467         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41468         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41469         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41470         Change return type to 'int'. Return -1 upon out-of-memory.
41471         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41472         upon out-of-memory.
41473         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41474         NULL upon out-of-memory.
41475         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41476         upon out-of-memory.
41477         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41478         NULL upon out-of-memory.
41479         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41480         NULL upon out-of-memory.
41481         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41482         upon out-of-memory.
41483         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41484         (gl_sublist_list_implementation): Update.
41485         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41486         upon out-of-memory.
41487         * modules/sublist (Depends-on): Remove xalloc.
41488
41489         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41490         * tests/test-carray_list.c: Likewise.
41491         * tests/test-linked_list.c: Likewise.
41492         * tests/test-linkedhash_list.c: Likewise.
41493         * tests/test-avltree_list.c: Likewise.
41494         * tests/test-rbtree_list.c: Likewise.
41495         * tests/test-avltreehash_list.c: Likewise.
41496         * tests/test-rbtreehash_list.c: Likewise.
41497         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41498         * modules/carray-list-tests (Makefile.am): Likewise.
41499         * modules/linked-list-tests (Makefile.am): Likewise.
41500         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41501         * modules/avltree-list-tests (Makefile.am): Likewise.
41502         * modules/rbtree-list-tests (Makefile.am): Likewise.
41503         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41504         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41505
41506         * NEWS: Mention the changes.
41507
41508         * lib/clean-temp.c: Include gl_xlist.h.
41509         * modules/clean-temp (Depends-on): Add xlist.
41510
41511         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41512         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41513
41514         * tests/test-array_oset.c: Include gl_xlist.h.
41515         * modules/array-oset-tests (Depends-on): Add xlist.
41516
41517         Reported by José E. Marchesi <jemarch@gnu.org>.
41518
41519 2009-12-13  Bruno Haible  <bruno@clisp.org>
41520
41521         Move the malloc checking from module 'oset' to new module 'xoset'.
41522         * modules/xoset: New file.
41523         * lib/gl_xoset.h: New file.
41524         * lib/gl_xoset.c: New file.
41525         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41526         declarations.
41527         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41528         (struct gl_oset_implementation): Rename and change methods accordingly.
41529         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41530         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41531         'int'. Mark as __warn_unused_result__.
41532         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41533         gl_oset_create_empty.
41534         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41535         'int'.
41536         * lib/gl_array_oset.c: Don't include xalloc.h.
41537         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41538         malloc, not xmalloc.
41539         (grow): Change return type to 'int'. Don't call xalloc_die.
41540         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41541         to 'int'.
41542         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41543         'int'.
41544         (gl_array_oset_implementation): Update.
41545         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41546         gl_tree_create_empty.
41547         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41548         'int'.
41549         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41550         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41551         xmalloc.
41552         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41553         not xmalloc.
41554         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41555         xmalloc.
41556         (gl_avltree_oset_implementation): Update.
41557         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41558         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41559         xmalloc.
41560         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41561         not xmalloc.
41562         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41563         xmalloc.
41564         (gl_rbtree_oset_implementation): Update.
41565         * modules/array-oset (Depends-on): Remove xalloc.
41566         * modules/avltree-oset (Depends-on): Likewise.
41567         * modules/rbtree-oset (Depends-on): Likewise.
41568         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41569         * tests/test-avltree_oset.c: Likewise.
41570         * tests/test-rbtree_oset.c: Likewise.
41571         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41572         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41573         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41574         * NEWS: Mention the change.
41575
41576 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41577
41578         maint.mk: allow a project to override release-prep commands
41579         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41580         commands into a new rule.
41581         (release-prep): New rule.
41582         (release-prep-hook): New overridable variable.
41583
41584 2009-12-13  Bruno Haible  <bruno@clisp.org>
41585
41586         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41587
41588 2009-12-13  Jim Meyering  <meyering@redhat.com>
41589
41590         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41591         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41592
41593 2009-12-12  Bruno Haible  <bruno@clisp.org>
41594
41595         duplocale: Tweak.
41596         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41597
41598 2009-12-12  Karl Berry  <karl@gnu.org>
41599
41600         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41601
41602 2009-12-12  Bruno Haible  <bruno@clisp.org>
41603
41604         * m4/po.m4: Undo incorrect untabification.
41605
41606 2009-12-12  Bruno Haible  <bruno@clisp.org>
41607
41608         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41609         * modules/c-strtod (Depends-on): Add locale.
41610         * modules/c-strtold (Depends-on): Likewise.
41611
41612 2009-12-12  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41615
41616 2009-12-11  Eric Blake  <ebb9@byu.net>
41617
41618         setenv: relax requirement in light of POSIX ruling
41619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41620         not NULL.
41621         * tests/test-setenv.c (main): Relax test.
41622         * tests/test-unsetenv.c (main): Likewise.
41623         * doc/posix-functions/setenv.texi (setenv): Document this.
41624         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41625
41626 2009-12-11  Bruno Haible  <bruno@clisp.org>
41627
41628         New module 'fd-safer-flag'.
41629         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41630         * lib/dup-safer.c (dup_safer_flag): Remove function.
41631         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41632         * lib/fd-safer.c (fd_safer_flag): Remove function.
41633         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41634         * modules/cloexec (configure.ac): Drop indicator macro.
41635         * modules/fd-safer-flag: New file.
41636         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41637         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41638         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41639
41640 2009-12-11  Bruno Haible  <bruno@clisp.org>
41641
41642         Tests for module 'nl_langinfo'.
41643         * modules/nl_langinfo-tests: New file.
41644         * tests/test-nl_langinfo.sh: New file.
41645         * tests/test-nl_langinfo.c: New file.
41646
41647         New module 'nl_langinfo'.
41648         * lib/nl_langinfo.c: New file.
41649         * m4/nl_langinfo.m4: New file.
41650         * modules/nl_langinfo: New file.
41651         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41652
41653 2009-12-11  Bruno Haible  <bruno@clisp.org>
41654
41655         Tests for module 'langinfo'.
41656         * modules/langinfo-tests: New file.
41657         * tests/test-langinfo.c: New file.
41658
41659         New module 'langinfo'.
41660         * lib/langinfo.in.h: New file.
41661         * m4/langinfo_h.m4: New file.
41662         * modules/langinfo: New file.
41663         * doc/posix-headers/langinfo.texi: Mention the new module.
41664
41665 2009-12-11  Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/config.charset: Untabify.
41668
41669 2009-12-11  Bruno Haible  <bruno@clisp.org>
41670
41671         * modules/unistd-safer (configure.ac): Drop indicator macro.
41672
41673 2009-12-11  Bruno Haible  <bruno@clisp.org>
41674
41675         Move pipe2-safer code to its own file.
41676         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41677         * lib/pipe-safer.c (pipe2_safer): Remove function.
41678         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41679         (Makefile.am): Add it to lib_SOURCES.
41680
41681 2009-12-10  Bruno Haible  <bruno@clisp.org>
41682
41683         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41684
41685 2009-12-10  Bruno Haible  <bruno@clisp.org>
41686
41687         Declare which arguments expect non-NULL values, for GCC and clang.
41688         * build-aux/arg-nonnull.h: New file.
41689         * modules/arg-nonnull: New file.
41690         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41691         (inet_ntop, inet_pton): Use it.
41692         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41693         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41694         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41695         (open, openat): Use it.
41696         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41697         (fnmatch): Use it.
41698         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41699         (getopt, getopt_long, getopt_long_only): Use it.
41700         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41701         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41702         Use it.
41703         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41704         (iconv_open): Use it.
41705         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41706         (strtoimax, strtoumax): Use it.
41707         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41708         (duplocale): Use it.
41709         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41710         (frexp, frexpl): Use it.
41711         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41712         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41713         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41714         (tsearch, tfind, tdelete, twalk): Use it.
41715         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41716         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41717         sigpending): Use it.
41718         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41719         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41720         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41721         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41722         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41723         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41724         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41725         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41726         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41727         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41728         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41729         Use it.
41730         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41731         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41732         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41733         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41734         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41735         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41736         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41737         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41738         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41739         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41740         strtoull, unsetenv): Use it.
41741         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41742         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41743         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41744         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41745         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41746         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41747         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41748         (strcasecmp, strncasecmp): Use it.
41749         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41750         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41751         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41752         rpl_setsockopt): Use it.
41753         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41754         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41755         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41756         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41757         (gettimeofday): Use it.
41758         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41759         (times): Use it.
41760         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41761         (uname): Use it.
41762         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41763         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41764         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41765         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41766         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41767         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41768         unlinkat, write): Use it.
41769         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41770         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41771         * lib/argv-iter.h: Include arg-nonnull.h.
41772         (_ATTRIBUTE_NONNULL_): Remove macro.
41773         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41774         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41775         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41776         optimization.
41777         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41778         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41779         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41780         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41781         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41782         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41783         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41784         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41785         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41786         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41787         * modules/dirent (Depends-on): Add arg-nonnull.
41788         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41789         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41790         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41791         * modules/fnmatch (Depends-on): Add arg-nonnull.
41792         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41793         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41794         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41795         * modules/glob (Depends-on): Add arg-nonnull.
41796         (Makefile.am): Insert arg-nonnull.h into glob.h.
41797         * modules/iconv_open (Depends-on): Add arg-nonnull.
41798         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41799         * modules/inttypes (Depends-on): Add arg-nonnull.
41800         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41801         * modules/locale (Depends-on): Add arg-nonnull.
41802         (Makefile.am): Insert arg-nonnull.h into locale.h.
41803         * modules/math (Depends-on): Add arg-nonnull.
41804         (Makefile.am): Insert arg-nonnull.h into math.h.
41805         * modules/netdb (Depends-on): Add arg-nonnull.
41806         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41807         * modules/search (Depends-on): Add arg-nonnull.
41808         (Makefile.am): Insert arg-nonnull.h into search.h.
41809         * modules/signal (Depends-on): Add arg-nonnull.
41810         (Makefile.am): Insert arg-nonnull.h into signal.h.
41811         * modules/spawn (Depends-on): Add arg-nonnull.
41812         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41813         * modules/stdio (Depends-on): Add arg-nonnull.
41814         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41815         * modules/stdlib (Depends-on): Add arg-nonnull.
41816         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41817         * modules/string (Depends-on): Add arg-nonnull.
41818         (Makefile.am): Insert arg-nonnull.h into string.h.
41819         * modules/strings (Depends-on): Add arg-nonnull.
41820         (Makefile.am): Insert arg-nonnull.h into strings.h.
41821         * modules/sys_socket (Depends-on): Add arg-nonnull.
41822         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41823         * modules/sys_stat (Depends-on): Add arg-nonnull.
41824         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41825         * modules/sys_time (Depends-on): Add arg-nonnull.
41826         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41827         * modules/sys_times (Depends-on): Add arg-nonnull.
41828         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41829         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41830         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41831         * modules/time (Depends-on): Add arg-nonnull.
41832         (Makefile.am): Insert arg-nonnull.h into time.h.
41833         * modules/unistd (Depends-on): Add arg-nonnull.
41834         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41835         * modules/wchar (Depends-on): Add arg-nonnull.
41836         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41837         * modules/argv-iter (Depends-on): Add arg-nonnull.
41838         * tests/test-canonicalize.c (null_ptr): New function.
41839         (main): Use it.
41840         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41841         (main): Use it.
41842         * tests/test-memmem.c (null_ptr): New function.
41843         (main): Use it.
41844         Reported by Jim Meyering.
41845
41846 2009-12-10  Bruno Haible  <bruno@clisp.org>
41847
41848         Use spaces for indentation, not tabs.
41849         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41850         * m4/*.m4: Untabify.
41851         * build-aux/*.h: Untabify.
41852         * tests/**/*.[hc]: Untabify.
41853         * README: New section "Indent with spaces, not TABs", based on
41854         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41855         * NEWS: Mention the change.
41856
41857 2009-12-10  Bruno Haible  <bruno@clisp.org>
41858
41859         pty test: Fix link error.
41860         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41861         test_pty_LDADD.
41862
41863 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41864
41865         * modules/pty: New file.
41866         * modules/pty-tests: New file.
41867         * m4/pty.m4: New file.
41868         * tests/test-pty.c: New file.
41869         * doc/glibc-headers/pty.texi: Modified.
41870         * doc/glibc-functions/forkpty.texi: Modified.
41871         * doc/glibc-functions/openpty.texi: Modified.
41872
41873 2009-12-10  Bruno Haible  <bruno@clisp.org>
41874
41875         Avoid syntax error in C++ mode.
41876         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41877
41878 2009-12-10  Bruno Haible  <bruno@clisp.org>
41879
41880         Use sed with option -e.
41881         * gnulib-tool (func_version, func_emit_copyright_notice,
41882         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41883         option -e to sed.
41884         * modules/link-warning (Makefile.am): Likewise.
41885
41886 2009-12-10  Jim Meyering  <meyering@redhat.com>
41887
41888         mgetgroups: do not write bytes beyond end of malloc'd buffer
41889         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41890         username, we call getgroups with a one-element-shorter buffer,
41891         but still told it the length was original, max_n_groups.
41892
41893 2009-12-09  Eric Blake  <ebb9@byu.net>
41894
41895         cloexec: relax license
41896         * modules/cloexec (Maintainer): Add myself.
41897         (License): Use LGPL, not GPL.
41898
41899         link-warning: optimize generation
41900         * modules/link-warning (Makefile.am): Reduce process usage.
41901
41902 2009-12-09  Bruno Haible  <bruno@clisp.org>
41903
41904         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41905         workaround was added on 2009-11-17.
41906
41907 2009-12-09  Jim Meyering  <meyering@redhat.com>
41908             Bruno Haible  <bruno@clisp.org>
41909
41910         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41911         * modules/link-warning (Makefile.am): Make the comment-removing sed
41912         command more robust in the face of bootstrap-prepended comment lines.
41913
41914 2009-12-09  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41917         most one group.
41918
41919 2009-12-09  Simon Josefsson <simon@josefsson.org>
41920             Bruno Haible  <bruno@clisp.org>
41921
41922         * build-aux/link-warning.h: Add copyright notice.
41923         * modules/link-warning (Makefile.am): Generate link-warning.h from
41924         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41925         * NEWS: Mention change in link-warning module.
41926         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41927         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41928         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41929         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41930         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41931         * modules/math (Makefile.am): Add dependency to math.h.
41932         * modules/search (Makefile.am): Add dependency to search.h.
41933         * modules/signal (Makefile.am): Add dependency to signal.h.
41934         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41935         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41936         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41937         * modules/string (Makefile.am): Add dependency to string.h.
41938         * modules/strings (Makefile.am): Add dependency to strings.h.
41939         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41940         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41941         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41942         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41943         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41944         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41945         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41946         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41947         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41948
41949 2009-12-09  Bruno Haible  <bruno@clisp.org>
41950
41951         fchdir: Optimize away rpl_fstat when possible.
41952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41953         REPLACE_OPEN_DIRECTORY.
41954         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41955
41956 2009-12-09  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/fchdir.c: Update comment.
41959
41960 2009-12-09  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41963
41964 2009-12-08  Eric Blake  <ebb9@byu.net>
41965
41966         fchdir: avoid memory leak on re-registration.
41967         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41968
41969 2009-12-08  Jim Meyering  <meyering@redhat.com>
41970
41971         init.sh: avoid Solaris 10 /bin/sh portability problem
41972         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41973         sourced script:
41974           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41975           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41976           bar
41977         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41978         and two tests used that idiom.
41979         * tests/init.sh: Update suggested usage comments.
41980         (path_prepend_): New function, to be used in place
41981         of the --src-path=DIR option.
41982         (setup_): Move PATH-prepending code into path_prepend_.
41983         * tests/test-pread.sh: Adapt to new usage.
41984         * tests/test-xalloc-die.sh: Likewise.
41985
41986 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41987
41988         * doc/gnulib.texi (Glibc pty.h): Add.
41989         * doc/glibc-functions/forkpty.texi: Add.
41990         * doc/glibc-functions/openpty.texi: Add.
41991         Suggested by Bruno Haible.
41992
41993 2009-12-08  Eric Blake  <ebb9@byu.net>
41994
41995         fchdir: fix logic bugs
41996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41997         * tests/test-fchdir.c (main): Enhance test.
41998         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41999         is in use.
42000
42001         dup2: fix logic bugs
42002         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42003         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42004         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42005         exists.
42006         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42007
42008 2009-12-07  Eric Blake  <ebb9@byu.net>
42009
42010         unlink: fix m4 detection
42011         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42012
42013         unistd-safer: add unit test
42014         * modules/unistd-safer-tests: New file.
42015         * tests/test-dup-safer.c: Likewise.
42016         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42017         * tests/test-dup2.c (setmode): Likewise.
42018         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42019
42020         cloexec: preserve text vs. binary across dup_cloexec
42021         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42022         mode.
42023         * modules/dup2-tests (Depends-on): Add binary-io.
42024         * modules/cloexec-tests (Depends-on): Likewise.
42025         * tests/test-dup2.c (setmode, is_mode): New helpers.
42026         (main): Add tests that translation mode is preserved.
42027         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42028         Reported by Bruno Haible.
42029
42030         mgetgroups: reduce duplicate listings
42031         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42032         resulting array.
42033         * tests/test-chown.h (test_chown): Simplify client.
42034         * tests/test-lchown.h (test_lchown): Likewise.
42035
42036 2009-12-06  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42039         value.
42040
42041 2009-12-06  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/progname.c: Include stdio.h, stdlib.h.
42044         (set_program_name): Reject a NULL argument.
42045
42046 2009-12-05  Eric Blake  <ebb9@byu.net>
42047
42048         pipe2-safer: new module
42049         * modules/pipe2-safer: New file.
42050         * lib/unistd-safer.h (pipe2_safer): New prototype.
42051         * lib/unistd--.h (pipe2): New wrapper.
42052         * lib/pipe-safer.c (pipe2_safer): New function.
42053         * modules/pipe (Depends-on): Add pipe2-safer.
42054         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42055
42056         stdlib-safer: preserve cloexec flag for mkostemp[s]
42057         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42058         fd_safer_flag.
42059
42060         unistd-safer: allow preservation of cloexec status via flag
42061         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42062         prototypes.
42063         * lib/dup-safer.c (dup_safer_flag): New function.
42064         * lib/fd-safer.c (fd_safer_flag): Likewise.
42065         * modules/cloexec (configure.ac): Set witness.
42066
42067         test-dup2: enhance test
42068         * modules/dup2-tests (Depends-on): Add cloexec.
42069         * tests/test-dup2.c (main): Enhance test.
42070
42071         cloexec: add dup_cloexec
42072         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42073         header and comments.
42074         * lib/cloexec.c (set_cloexec_flag): Add comments.
42075         (dup_cloexec): New function, with mingw implementation borrowed
42076         from...
42077         * lib/w32spawn.h (dup_noinherit): ...here.
42078         * modules/execute (Depends-on): Add cloexec.
42079         * modules/pipe (Depends-on): Likewise.
42080         * modules/cloexec (Depends-on): Add dup2.
42081         * modules/cloexec-tests (Files): New file.
42082         * tests/test-cloexec.c: Likewise.
42083
42084         test-xalloc-die: fix test for mingw
42085         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42086         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42087         directory and .exe suffix off argv[0] output.
42088
42089         test-fseeko: fix test for mingw
42090         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42091         than undefining fseek, so test will pass on mingw.
42092
42093 2009-12-05  Bruno Haible  <bruno@clisp.org>
42094
42095         * lib/progname.h (set_program_name): Clarify specification.
42096         * lib/progname.c (set_program_name): Likewise.
42097         Reported by Jim Meyering.
42098
42099 2009-12-05  Jim Meyering  <meyering@redhat.com>
42100
42101         maint.mk: backslash-escape parens in default regexp
42102         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42103         backslash-escape the literal parentheses.
42104
42105         maint.mk: news-date-check: use grep -E
42106         * top/maint.mk (today): Define a Make variable, not a...
42107         (news-date-check): ...shell variable.
42108         (news-date-regexp): Use the Make variable.
42109         Use grep's -E option.  Change the failing diagnostic to mention
42110         the variable, $(news-date-regexp).
42111
42112 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42113
42114         maintainer-makefile: allow customization of NEWS entry format
42115         * top/maint.mk (news-date-regexp): New overridable variable.
42116         (news-date-check): Use it.
42117
42118 2009-12-04  Eric Blake  <ebb9@byu.net>
42119
42120         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42121         * lib/mgetgroups.h (xgetgroups): New prototype.
42122         * lib/mgetgroups.c (xgetgroups): New wrapper.
42123         (mgetgroups): Handle ENOSYS.
42124         * modules/mgetgroups (Depends-on): Add realloc.
42125         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42126
42127         mgetgroups: avoid argument promotion issues with -1
42128         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42129         for invalid gid_t.
42130         * tests/test-chown.h (getegid, test_chown): Likewise.
42131         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42132
42133 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42134
42135         exclude: Fix header file problems.
42136         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42137
42138 2009-12-01  Jim Meyering  <meyering@redhat.com>
42139
42140         fts: fts_open: do not let an empty string cause immediate failure
42141         This is required in support of GNU rm, for which the command
42142         "rm A '' B" must process and remove both A and B, in spite of
42143         the empty string argument.
42144         * lib/fts.c (fts_open): Do not let the presence of an empty string
42145         cause fts_open to fail immediately.  Most fts-using tools must be
42146         able to process all arguments, in order, and can be expected to
42147         diagnose such arguments themselves.
42148
42149 2009-11-30  Eric Blake  <ebb9@byu.net>
42150
42151         utimens: fix compilation error
42152         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42153         Declare variable at right scope.
42154
42155 2009-11-29  Jim Meyering  <meyering@redhat.com>
42156
42157         bootstrap: handle perl-5.11's changed --version output
42158         * build-aux/bootstrap (get_version): Handle perl separately,
42159         since perl-5.11's --version output is different.
42160
42161 2009-11-28  Jim Meyering  <meyering@redhat.com>
42162
42163         userspec: depend on the inttostr module, too
42164         * modules/userspec (Depends-on): Add inttostr.
42165
42166         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42167         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42168         number of MAXUID when it evaluates to (uid_t) -1.
42169         Likewise for group ID.  Reported by Matt McCutchen in
42170         <http://savannah.gnu.org/bugs/?28113>
42171
42172         userspec: reformat to use spaces, not TABs
42173         * lib/userspec.c: Expand TABs to spaces.
42174         Add Emacs' "indent-tabs-mode: nil" hint.
42175
42176 2009-11-27  Eric Blake  <ebb9@byu.net>
42177
42178         getopt-gnu: flush out another BSD bug
42179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42180         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42181         flush out BSD bug.
42182         * tests/test-getopt.h (test_getopt): End lists with NULL.
42183         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42184         (test_getopt_long_posix): Enhance test.
42185         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42186         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42187         getopt-gnu.
42188         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42189         Likewise.
42190
42191 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42192
42193         * modules/idpriv-droptemp-tests (Notice): Fix text.
42194
42195 2009-11-27  Jim Meyering  <meyering@redhat.com>
42196
42197         test-xalloc-die: avoid spurious failure due to libtool argv difference
42198         In a libtool-enabled project, this test would fail due to a difference
42199         in the emitted program name, e.g.,
42200         -test-xalloc-die: memory exhausted
42201         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42202         Use program to avoid that.
42203         * modules/xalloc-die-tests (Depends-on): Add progname.
42204         * tests/test-xalloc-die.c: Include progname.h".
42205         (program_name): Remove decl.
42206         (main): Call set_program_name.
42207         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42208
42209 2009-11-26  Richard Jones  <rjones@redhat.com>
42210
42211         w32sock: leave win32 error in place.
42212         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42213
42214 2009-11-26  Eric Blake  <ebb9@byu.net>
42215
42216         init.sh: suggest to use skip_ and fail_ functions in comments
42217         * tests/init.sh: Add a sentence.
42218
42219 2009-11-25  Bruno Haible  <bruno@clisp.org>
42220
42221         init.sh: add documentation in comments
42222         * tests/init.sh: Add some developer and user documentation.
42223
42224 2009-11-26  Jim Meyering  <meyering@redhat.com>
42225
42226         init.sh: accommodate even those who specify bogus srcdir manually
42227         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42228         configure-time tests to be sanitized, so that there is no need to
42229         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42230         (with no double quotes) suffices.  However, since tests may be
42231         invoked manually, and since you may explicitly set srcdir to the
42232         name of a directory containing spaces, do quote its uses here.
42233         * tests/test-pread.sh: Likewise.
42234         Suggested by Bruno Haible.
42235
42236         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42237         * tests/test-pread.sh: Write no data into the pipe, because
42238         test-pread actually reads none.  This avoids a diagnostic,
42239         "bash: echo: write error: Broken pipe", that arises in the unusual
42240         event something is ignoring SIGPIPE, and might be interpreted
42241         as some sort of failure.  Reported by Bruno Haible.
42242
42243 2009-11-25  Jim Meyering  <meyering@redhat.com>
42244
42245         test-pread: cover failure with ESPIPE and EINVAL
42246         * tests/test-pread.c (main): Test for failure, too.
42247         * tests/test-pread.sh: Invoke with stdin on a pipe.
42248         Suggested by Eric Blake.
42249
42250         pread: improvement and fix
42251         * modules/pread (Depends-on): Depend on lseek, for portability to
42252         e.g., mingw.  Suggested by Eric Blake.
42253         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42254
42255         unistd.in.h: correct declaration of pread
42256         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42257         Reported by Richard W.M. Jones.
42258
42259         test-pread.sh: distribute the test script
42260         * modules/pread-tests (Files): Include test-pread.sh.
42261
42262         test-pread.sh: clean up
42263         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42264         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42265         That is unnecessary, since it's always ".".
42266         Suggestion from Eric Blake.
42267
42268         test-pread.sh: make executable
42269         * tests/test-pread.sh: Set executable bit.
42270         Reported by Eric Blake.
42271
42272         correct typo in test-pread.sh
42273         * tests/test-pread.sh: Add #! line.
42274
42275         test pread
42276         * tests/test-pread.c: New file.
42277         * tests/test-pread.sh: Likewise.
42278         * modules/pread-tests: Likewise.
42279
42280         pread: new module
42281         * modules/pread: New file.
42282         * lib/unistd.in.h (pread): Define/declare.
42283         * lib/pread.c (pread): New file.
42284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42285         * modules/unistd (Makefile.am): Substitute witnesses.
42286         * doc/posix-functions/pread.texi (pread): Update.
42287         * MODULES.html.sh: Add pread.
42288
42289 2009-11-25  Jim Meyering  <meyering@redhat.com>
42290
42291         tests/init.sh: new file to be used via most *.sh tests
42292         * tests/init.sh: New file.
42293
42294 2009-11-25  Eric Blake  <ebb9@byu.net>
42295
42296         utimens: work around older Linux failure with symlinks
42297         * lib/utimens.c (lutimensat_works_really): New variable.
42298         (fdutimens, lutimens): Use it to manage kernels that support
42299         nanosecond times on files, but not on symlinks.
42300         Reported by OndÅ™ej Vašík.
42301
42302         utimes: fix configure grammar
42303         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42304
42305 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42306
42307         regex: Fix fastmap for multibyte character ranges.
42308         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42309         characters when a multibyte character range is included.
42310
42311 2009-11-22  Andy Wingo  <wingo@pobox.com>
42312
42313         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42314         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42315
42316 2009-11-24  Bruno Haible  <bruno@clisp.org>
42317
42318         doc: Most *_l functions exist in MacOS X 10.5.
42319         * doc/posix-functions/duplocale.texi: Update platforms list.
42320         * doc/posix-functions/freelocale.texi: Likewise.
42321         * doc/posix-functions/newlocale.texi: Likewise.
42322         * doc/posix-functions/uselocale.texi: Likewise.
42323         * doc/posix-functions/isalnum_l.texi: Likewise.
42324         * doc/posix-functions/isalpha_l.texi: Likewise.
42325         * doc/posix-functions/isblank_l.texi: Likewise.
42326         * doc/posix-functions/iscntrl_l.texi: Likewise.
42327         * doc/posix-functions/isdigit_l.texi: Likewise.
42328         * doc/posix-functions/isgraph_l.texi: Likewise.
42329         * doc/posix-functions/islower_l.texi: Likewise.
42330         * doc/posix-functions/isprint_l.texi: Likewise.
42331         * doc/posix-functions/ispunct_l.texi: Likewise.
42332         * doc/posix-functions/isspace_l.texi: Likewise.
42333         * doc/posix-functions/isupper_l.texi: Likewise.
42334         * doc/posix-functions/iswalnum_l.texi: Likewise.
42335         * doc/posix-functions/iswalpha_l.texi: Likewise.
42336         * doc/posix-functions/iswblank_l.texi: Likewise.
42337         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42338         * doc/posix-functions/iswctype_l.texi: Likewise.
42339         * doc/posix-functions/iswdigit_l.texi: Likewise.
42340         * doc/posix-functions/iswgraph_l.texi: Likewise.
42341         * doc/posix-functions/iswlower_l.texi: Likewise.
42342         * doc/posix-functions/iswprint_l.texi: Likewise.
42343         * doc/posix-functions/iswpunct_l.texi: Likewise.
42344         * doc/posix-functions/iswspace_l.texi: Likewise.
42345         * doc/posix-functions/iswupper_l.texi: Likewise.
42346         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42347         * doc/posix-functions/isxdigit_l.texi: Likewise.
42348         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42349         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42350         * doc/posix-functions/strcoll_l.texi: Likewise.
42351         * doc/posix-functions/strfmon_l.texi: Likewise.
42352         * doc/posix-functions/strftime_l.texi: Likewise.
42353         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42354         * doc/posix-functions/strxfrm_l.texi: Likewise.
42355         * doc/posix-functions/tolower_l.texi: Likewise.
42356         * doc/posix-functions/toupper_l.texi: Likewise.
42357         * doc/posix-functions/towctrans_l.texi: Likewise.
42358         * doc/posix-functions/towlower_l.texi: Likewise.
42359         * doc/posix-functions/towupper_l.texi: Likewise.
42360         * doc/posix-functions/wcscoll_l.texi: Likewise.
42361         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42362         * doc/posix-functions/wctrans_l.texi: Likewise.
42363         * doc/posix-functions/wctype_l.texi: Likewise.
42364         * doc/glibc-functions/strptime_l.texi: Likewise.
42365         * doc/glibc-functions/strtod_l.texi: Likewise.
42366         * doc/glibc-functions/strtof_l.texi: Likewise.
42367         * doc/glibc-functions/strtol_l.texi: Likewise.
42368         * doc/glibc-functions/strtold_l.texi: Likewise.
42369         * doc/glibc-functions/strtoll_l.texi: Likewise.
42370         * doc/glibc-functions/strtoul_l.texi: Likewise.
42371         * doc/glibc-functions/strtoull_l.texi: Likewise.
42372         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42373         * doc/glibc-functions/wcstod_l.texi: Likewise.
42374         * doc/glibc-functions/wcstof_l.texi: Likewise.
42375         * doc/glibc-functions/wcstol_l.texi: Likewise.
42376         * doc/glibc-functions/wcstold_l.texi: Likewise.
42377         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42378         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42379         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42380
42381 2009-11-24  Bruno Haible  <bruno@clisp.org>
42382
42383         duplocale: Fix logic bug.
42384         * lib/duplocale.c: Don't include <langinfo.h>.
42385         (_NL_LOCALE_NAME): Remove macro.
42386         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42387         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42388
42389 2009-11-23  Jim Meyering  <meyering@redhat.com>
42390
42391         test-update-copyright: don't hard-code /usr/bin/perl
42392         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42393         perl to print the current year.  Gilles Espinasse reported that
42394         the replaced use of perl was hard-coded as /usr/bin/perl.
42395
42396 2009-11-23  Bruno Haible  <bruno@clisp.org>
42397
42398         duplocale: Add support for glibc 2.3.x.
42399         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42400
42401 2009-11-22  Bruno Haible  <bruno@clisp.org>
42402
42403         vasnprintf: Tiny optimization.
42404         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42405         MacOS X.
42406
42407 2009-11-22  Bruno Haible  <bruno@clisp.org>
42408
42409         Tests for module 'duplocale'.
42410         * modules/duplocale-tests: New file.
42411         * tests/test-duplocale.c: New file.
42412
42413         New module 'duplocale'.
42414         * m4/duplocale.m4: New file.
42415         * lib/locale.in.h (duplocale): New declaration.
42416         * lib/duplocale.c: New file.
42417         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42418         gl_LOCALE_H_DEFAULTS): New macros.
42419         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42420         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42421         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42422         REPLACE_DUPLOCALE.
42423         * modules/duplocale: New file.
42424         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42425
42426 2009-11-22  Bruno Haible  <bruno@clisp.org>
42427
42428         * modules/locale-tests (configure.ac): Test for newlocale function.
42429         * tests/test-locale.c: When the system has extended locale functions,
42430         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42431
42432         locale: Make locale_t available when possible.
42433         * lib/locale.in.h: Include <xlocale.h> when it exists.
42434         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42435         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42436         * modules/locale (Depends-on): Add extensions.
42437         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42438         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42439
42440 2009-11-22  Bruno Haible  <bruno@clisp.org>
42441
42442         Add comments.
42443         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42444         invocation.
42445         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42446         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42447         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42448
42449 2009-11-22  Bruno Haible  <bruno@clisp.org>
42450
42451         error: account for the possibility of freopen (stdout).
42452         * lib/error.c: Include <unistd.h>.
42453         (flush_stdout): New function, extracted from error and error_at_line.
42454         Determine stdout's fd dynamically.
42455         (error, error_at_line): Invoke flush_stdout.
42456         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42457         * modules/error (Depends-on): Add unistd.
42458
42459 2009-11-22  Bruno Haible  <bruno@clisp.org>
42460
42461         diffseq: Add comment.
42462         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42463
42464 2009-11-22  Jim Meyering  <meyering@redhat.com>
42465
42466         c-stack: avoid defining an unused static function
42467         * lib/c-stack.c (find_stack_direction): Do not define this function
42468         when it will not be used.
42469
42470         diffseq: avoid spurious gcc warnings
42471         * lib/diffseq.h (IF_LINT2): Define.
42472         (compareseq): Use it to initialize two members of "part".
42473         This avoids two used-uninitialized warnings.
42474
42475 2009-11-21  Jim Meyering  <meyering@redhat.com>
42476
42477         c-stack: avoid "ignoring return value of `write'" warning
42478         * lib/c-stack.c: Include "ignore-value.h".
42479         (die): Explicitly ignore each write return value.
42480         * modules/c-stack (Depends-on): Add ignore-value.
42481
42482 2009-11-21  Bruno Haible  <bruno@clisp.org>
42483
42484         diffseq: reduce scope of variable 'best'.
42485         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42486         variable, earlier used for two different purposes.
42487
42488 2009-11-21  Jim Meyering  <meyering@redhat.com>
42489
42490         diffseq: remove useless assignment to "best"
42491         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42492         assignment.  At that point "best" is already guaranteed to be zero.
42493
42494 2009-11-20  Eric Blake  <ebb9@byu.net>
42495
42496         build: mention ftp redirector in release announcements
42497         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42498         values that used to come from cfg.mk; mention FTP redirect URL.
42499         * build-aux/announce-gen: Mention the mirror list.
42500         Suggested by Karl Berry.
42501
42502         nanosleep: improve port to mingw
42503         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42505         LIB_NANOSLEEP, but only when needed.
42506         * modules/select (Link): Document LIBSOCKET.
42507         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42508         enough.
42509
42510         nanosleep: work around cygwin bug
42511         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42512         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42513         bug.
42514         (getnow): Delete, not needed.
42515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42516         LIB_CLOCK_GETTIME.
42517         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42518         clock-time, gettime.
42519         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42520         bug.
42521         * modules/nanosleep-tests: New test.
42522         * tests/test-nanosleep.c: New file.
42523
42524         sleep: work around cygwin bug
42525         * lib/sleep.c (rpl_sleep): Work around the bug.
42526         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42527         (gl_PREREQ_SLEEP): Delete unused macro.
42528         * modules/sleep (Depends-on): Add verify.
42529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42530         * modules/unistd (Makefile.am): Substitute witness.
42531         * lib/unistd.in.h (sleep): Update prototype.
42532         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42533         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42534         * modules/sleep-tests (Depends-on): Check for alarm.
42535
42536 2009-11-20  Jim Meyering  <meyering@redhat.com>
42537
42538         maint.mk: improve sc_prohibit_magic_number_exit
42539         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42540         so it does not match uses like System.exit(1).
42541         Add comments showing how to correct all offenders.
42542
42543 2009-11-19  Eric Blake  <ebb9@byu.net>
42544
42545         xalloc-die-tests: add missing library
42546         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42547
42548         test-xvasprintf: silence compiler warnings
42549         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42550         empty string from gcc.
42551
42552 2009-11-19  Jim Meyering  <meyering@redhat.com>
42553
42554         xfreopen: new module, from coreutils
42555         * modules/xfreopen: New module.
42556         * lib/xfreopen.c: New file.
42557         * lib/xfreopen.h: New file.
42558         * MODULES.html.sh (File stream based Input/Output"): Add it.
42559
42560 2009-11-19  Eric Blake  <ebb9@byu.net>
42561
42562         manywarnings: depend on warnings
42563         * modules/manywarnings (Depends-on): Add warnings.
42564
42565         build: avoid compiler warnings
42566         * lib/select.c (rpl_select): Delete unused variable.
42567         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42568
42569 2009-11-18  Eric Blake  <ebb9@byu.net>
42570
42571         tests: avoid false negative with --with-packager
42572         * tests/test-version-etc.sh: Discard packager information.
42573         * tests/test-argp-version-etc-1.sh: Likewise.
42574         Reported by Mike Frysinger.
42575
42576         utimens: fix regression on Solaris
42577         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42578         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42579         can only change fd timestamps via futimesat.  Instead, use an
42580         additional witness macro to avoid BSD bug.
42581         Reported by Jim Meyering.
42582
42583 2009-11-17  Eric Blake  <ebb9@byu.net>
42584
42585         usleep: use it to simplify tests
42586         * modules/stat-time-tests (Depends-on): Add usleep.
42587         (configure.ac): Drop usleep check.
42588         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42589         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42590         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42591         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42592         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42593         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42594         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42595         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42596         Likewise.
42597         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42598         * tests/test-lchown.h (nap): Likewise.
42599         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42600         * tests/test-stat-time.c (nap): Likewise.
42601         * tests/test-utimens-common.h (nap): Update comments.
42602
42603         usleep: new module
42604         * modules/usleep: New file.
42605         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42606         * lib/usleep.c (usleep): Likewise.
42607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42608         * modules/unistd (Makefile.am): Substitute witnesses.
42609         * lib/unistd.in.h (usleep): Add declaration.
42610         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42611         * MODULES.html.sh (Date and time): Likewise.
42612         * modules/usleep-tests (Depends-on): New test.
42613         * tests/test-usleep.c: New file.
42614
42615         chown: work around OpenBSD bug
42616         * lib/chown.c (rpl_chown): Work around the bug.
42617         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42618         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42619         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42620         * modules/chown (Depends-on): Add stdbool.
42621         * modules/lchown (Depends-on): Likewise.
42622         * doc/posix-functions/chown.texi (chown): Document the bug.
42623         * doc/posix-functions/lchown.texi (lchown): Likewise.
42624         * tests/test-lchown.h (test_chown): Relax test.
42625
42626         mkstemp: avoid conflict with C++ keyword template
42627         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42628         * lib/mkostemp.c (mkostemp): Likewise.
42629         * lib/mkostemps.c (mkostemps): Likewise.
42630         * lib/mkstemp.c (mkstemp): Likewise.
42631         * lib/mkstemps.c (mkstemps): Likewise.
42632
42633         xalloc-die-tests: optimize
42634         * tests/test-xalloc-die.sh: Reduce number of processes.
42635
42636 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42637
42638         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42639         patch from ludo@gnu.org (Ludovic Courtès).
42640
42641 2009-11-17  Jim Meyering  <meyering@redhat.com>
42642
42643         version-etc: use proper license string
42644         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42645         * modules/version-etc-fsf: Likewise.
42646
42647 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42648
42649         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42650         printed to stdout.  Deal with EOL differences.
42651
42652 2009-11-17  Eric Blake  <ebb9@byu.net>
42653
42654         unsetenv: work around Solaris bug
42655         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42656         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42657         Reported by Jim Meyering.
42658
42659         vasnprintf: avoid compiler warnings
42660         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42661         variables.
42662         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42663
42664 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42665
42666         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42667         settings since xalloc-die is no longer the self test,
42668         xalloc-die.sh is.
42669
42670 2009-11-17  Jim Meyering  <meyering@redhat.com>
42671
42672         test-xalloc-die.sh: make the code agree with the commit log
42673         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42674         at the end, just in case you happen to have a test-xalloc-die
42675         program in some other PATH directory.
42676
42677         test-xalloc-die.sh: fix a portability bug
42678         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42679         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42680         Otherwise, argv[0] (as often seen in diagnostics) would be too
42681         system-dependent, sometimes with, and sometimes without the leading "./".
42682
42683         version-etc-fsf: relax license to LGPLv3+
42684         * modules/version-etc-fsf (License): Relax license.
42685
42686 2009-11-16  Eric Blake  <ebb9@byu.net>
42687
42688         xalloc-die-tests: avoid printing null pointer
42689         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42690         shell script.
42691         * tests/test-xalloc-die.c (program_name): Declare.
42692         * tests/test-xalloc-die.sh (tmpfiles): New file.
42693
42694         setenv, unsetenv: work around various bugs
42695         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42696         (setenv) [HAVE_SETENV]: Work around bugs.
42697         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42698         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42699         for bugs.
42700         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42701         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42703         * modules/stdlib (Makefile.am): Update substitutions.
42704         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42705         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42706         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42707         * modules/setenv-tests: New test.
42708         * modules/unsetenv-tests: Likewise.
42709         * tests/test-setenv.c: New file.
42710         * tests/test-unsetenv.c: Likewise.
42711
42712 2009-11-16  Jim Meyering  <meyering@redhat.com>
42713
42714         version-etc: relax license to LGPLv3+
42715         * modules/version-etc (License): Relax license.
42716
42717         better AC_REQUIRE expanded-before-required-warning avoidance
42718         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42719         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42720         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42721         which is no longer needed.
42722
42723 2009-11-16  Eric Blake  <ebb9@byu.net>
42724
42725         test-freading: clean up temporary file
42726         * tests/test-freading.c (main): Remove file on success, and use
42727         ASSERT more liberally.
42728         Reported by Jim Meyering.
42729
42730 2009-11-16  Jim Meyering  <meyering@redhat.com>
42731
42732         avoid new AC_REQUIRE expanded-before-required warnings
42733         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42734         merely using it.
42735         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42736         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42737
42738 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42739
42740         * tests/test-xalloc-die.c: New file.
42741         * modules/xalloc-die-tests: New file.
42742         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42743         XFAIL_TESTS so it can be appended by modules.
42744
42745 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42746
42747         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42748         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42749
42750 2009-11-14  Eric Blake  <ebb9@byu.net>
42751
42752         fnmatch: avoid compiler warning
42753         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42754         to silence compiler warning about mismatch signedness in ?:.
42755         Reported by Robert Millan.
42756
42757         intprops: add double-inclusion guard
42758         * lib/intprops.h: Allow idempotent includes.
42759         Suggested by Bruce Korb.
42760
42761         openat: detect Solaris fchownat bug
42762         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42763         penalizing glibc chownat when only lchownat is broken.
42764         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42765         trailing slash bugs.
42766         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42767         * modules/openat-tests (Files): Include more files.
42768         (Depends-on): Add mgetgroups, sleep, stat-time.
42769         (configure.ac): Add additional checks.
42770         (Makefile.am): Build new test.
42771         * tests/test-fchownat.c: New file.
42772
42773         lchown: detect Solaris and FreeBSD bug
42774         * lib/lchown.c (rpl_lchown): Work around bug.
42775         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42777         * modules/unistd (Makefile.am): Populate it.
42778         * lib/unistd.in.h (lchown): Update declaration.
42779         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42780         * modules/lchown-tests: New file.
42781         * tests/test-lchown.h (test_lchown): Likewise.
42782         * tests/test-lchown.c (main): Likewise.
42783
42784         chown: detect Solaris and FreeBSD bug
42785         * lib/chown.c (rpl_chown): Work around bug.
42786         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42787         (gl_PREREQ_CHOWN): Delete.
42788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42789         * modules/unistd (Makefile.am): Populate it.
42790         * lib/unistd.in.h (chown): Update declaration.
42791         * lib/lchown.c (chown): Update client.
42792         * modules/lchown (Depends-on): Add lstat.
42793         * doc/posix-functions/chown.texi (chown): Document the bug.
42794         * doc/posix-functions/getgroups.texi (getgroups): Document
42795         getgroups pitfall.
42796         * modules/chown-tests: New file.
42797         * tests/test-chown.h (test_chown): Likewise.
42798         * tests/test-chown.c (main): Likewise.
42799
42800 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42801
42802         gnulib-tool: correctly detect absence of m4 directories
42803         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42804
42805 2009-11-14  Jim Meyering  <meyering@redhat.com>
42806
42807         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42808         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42809
42810 2009-11-14  John W. Eaton  <jwe@gnu.org>
42811
42812         strftime.h: wrap function declaration in extern "C" block
42813         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42814
42815 2009-11-13  Eric Blake  <ebb9@byu.net>
42816
42817         getgroups: avoid compiler warning
42818         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42819
42820         getgroups: work around FreeBSD bug
42821         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42822         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42823         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42824         * tests/test-getgroups.c (main): Fix buffer overrun.
42825
42826         getgroups: avoid compilation failure
42827         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42828         * modules/getgroups (Depends-on): Add stdint.
42829
42830 2009-11-13  Jim Meyering  <meyering@redhat.com>
42831
42832         test-getgroups: avoid compilation failure
42833         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42834
42835 2009-11-13  Eric Blake  <ebb9@byu.net>
42836
42837         mgetgroups: new module, taken from coreutils
42838         * modules/mgetgroups: New file.
42839         * lib/mgetgroups.h: Likewise.
42840         * lib/mgetgroups.c (mgetgroups): Likewise.
42841         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42842         * MODULES.html.sh (Users and groups): Mention it.
42843
42844         getgroups: don't expose GETGROUPS_T to user
42845         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42846         an element at a time if GETGROUPS_T is wrong size.
42847         * lib/getugroups.h (getugroups): Change signature.
42848         * lib/unistd.in.h (getgroups): Likewise.
42849         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42850         signature needs fixing.
42851         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42852         AC_TYPE_GETGROUPS.
42853         * modules/group-member (Depends-on): Add getgroups.
42854         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42855         (group_member): Rely on getgroups replacement.
42856         * lib/getugroups.c (getugroups): Use gid_t.
42857         * tests/test-getgroups.c (main): Likewise.
42858         * NEWS: Mention the signature change.
42859         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42860         problem with signature.
42861         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42862         GETGROUPS_T is still useful for setgroups.
42863
42864         getgroups, getugroups: provide stubs for mingw
42865         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42866         * lib/getugroups.c (getugroups): Likewise.
42867         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42868         function.  Modernize replacement scheme.
42869         (gl_PREREQ_GETGROUPS): Delete.
42870         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42871         * modules/getgroups (configure.ac): Declare witness.
42872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42873         * modules/unistd (Depends-on): Substitute witness.
42874         * lib/unistd.in.h (getgroups): Declare replacement.
42875
42876         getgroups: avoid calling exit
42877         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42878         drop xalloc.
42879         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42880         dependencies.
42881         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42882         exiting, in the rare case of malloc failure.
42883
42884         getgroups: fix logic error
42885         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42886         has more than 20 groups.
42887         * modules/getgroups-tests: New test.
42888         * tests/test-getgroups.c: New file.
42889
42890 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42891
42892         * tests/test-base64.c: Improve.
42893
42894 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42895
42896         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42897         Blake <ebb9@byu.net>.
42898
42899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42900
42901         * tests/test-xvasprintf.c: Add %s%s related checks.
42902
42903 2009-11-12  Eric Blake  <ebb9@byu.net>
42904
42905         version-etc: match standards.texi style
42906         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42907         and use <> only for URLs.
42908
42909 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42910
42911         fts: do not fail on a submount during traversal
42912         * lib/fts.c (fts_build): Read the stat info again after opening
42913         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42914         Original report at http://bugzilla.redhat.com/501848.
42915
42916 2009-11-12  Jim Meyering  <meyering@redhat.com>
42917
42918         bootstrap: sync from coreutils
42919         * build-aux/bootstrap (bootstrap_epilogue): New function.
42920         Use git_modules_config in one more place.  This make bootstrap's
42921         --gnulib-srcdir option more useful for testing.
42922
42923         bootstrap: generalize autoheader check
42924         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42925         AC_CONFIG_HEADERS.
42926
42927 2009-11-11  Eric Blake  <ebb9@byu.net>
42928
42929         mkfifoat: use new modules for Solaris and BSD bugs
42930         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42931         * lib/mkfifoat.c (mknodat): Split...
42932         * lib/mknodat.c (mknodat): ...into new file.
42933         * modules/mkfifoat (Files): Ship new file.
42934         (Depends-on): Add mkfifo, mknod.
42935         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42936         (Depends-on): Add symlink.
42937         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42938         redundant with test_mkfifo.h.
42939         (do_mkfifoat, do_mknodat): New helpers.
42940
42941         mknod: new module
42942         * modules/mknod: New file.
42943         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42944         * lib/mknod.c (mknod): Likewise.
42945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42946         defaults.
42947         * modules/sys_stat (Makefile.am): Substitute them.
42948         * lib/sys_stat.in.h (mknod): Declare replacement.
42949         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42950         Document it.
42951         * doc/posix-functions/mknod.texi (mknod): Likewise.
42952         * modules/mknod-tests: New test.
42953         * tests/test-mknod.c: Likewise.
42954
42955         mkfifo: new module
42956         * modules/mkfifo: New file.
42957         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42958         * lib/mkfifo.c (mkfifo): Likewise.
42959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42960         defaults.
42961         * modules/sys_stat (Makefile.am): Substitute them.
42962         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42963         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42964         Document it.
42965         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42966         * modules/mkfifo-tests: New test.
42967         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42968         from test-mkfifoat.c.
42969         * tests/test-mkfifo.c: New file.
42970
42971         readlink: detect FreeBSD bug
42972         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42973         slash on symlink.
42974         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42975         * tests/test-readlink.h (test_readlink): Enhance test.
42976
42977         symlink: detect FreeBSD bug
42978         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42979         slash on symlink.
42980         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42981         * tests/test-symlink.h (test_symlink): Enhance test.
42982
42983 2009-11-10  Eric Blake  <ebb9@byu.net>
42984
42985         link: detect FreeBSD bug
42986         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42987         symlink.
42988         * doc/posix-functions/link.texi (link): Document the bug.
42989         * tests/test-link.h (test_link): Enhance test.
42990         * tests/test-linkat.c (main): Update caller.
42991
42992         unlink, remove: detect FreeBSD bug
42993         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42994         slash on symlink.
42995         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42996         * doc/posix-functions/remove.texi (remove): Likewise.
42997         * tests/test-unlink.h (test_unlink): Enhance test.
42998         * tests/test-remove.c (main): Likewise.
42999
43000 2009-11-09  Eric Blake  <ebb9@byu.net>
43001
43002         rename: detect FreeBSD bug
43003         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43004         slash on symlink.
43005         * modules/renameat-tests (Depends-on): Add filenamecat.
43006         * tests/test-rename.h (test_rename): Allow one more errno.
43007         * tests/test-renameat.c (main): Likewise.
43008         * doc/posix-functions/rename.texi (rename): Document the bug.
43009
43010         open: detect FreeBSD bug
43011         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43012         symlink.
43013         * doc/posix-functions/open.texi (open): Document the bug.
43014         * doc/posix-functions/utimes.texi (utimes): Likewise.
43015         * tests/test-open.h (test_open): Add parameters, and test symlink
43016         handling.
43017         * tests/test-open.c (main): Adjust caller.
43018         * tests/test-fcntl-safer.c (main): Likewise.
43019         * modules/open-tests (Depends-on): Add stdbool, symlink.
43020         * modules/fcntl-safer-tests (Depends-on): Likewise.
43021         * tests/test-openat.c (main): Add test-open tests.
43022
43023         stat: detect FreeBSD bug
43024         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43025         symlink.
43026         * doc/posix-functions/stat.texi (stat): Document the bug.
43027         * tests/test-stat.h (test_stat_func): Add argument.
43028         * tests/test-stat.c (main): Adjust caller.
43029         * tests/test-fstatat.c (main): Likewise.
43030         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43031         Reported by Jim Meyering.
43032
43033 2009-11-09  James Youngman  <jay@gnu.org>
43034
43035         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43036         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43037
43038 2009-11-08  Jim Meyering  <meyering@redhat.com>
43039
43040         utimens: remove invalid futimesat call
43041         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43042         It used the file descriptor of the target file as the DIR_FD
43043         parameter and NULL as the file name.  That caused failure with
43044         errno == EFAULT on FreeBSD-8.0-rc2
43045
43046 2009-11-07  Eric Blake  <ebb9@byu.net>
43047
43048         fflush, freadseek: use fseeko, not fseek
43049         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43050         (clear_ungetc_buffer): Avoid potential problems on large files.
43051         * lib/freadseek.c (freadseek): Likewise.
43052         * modules/freadseek (Depends-on): Add fseeko.
43053         * modules/fseek (configure.ac): Set a witness.
43054         * tests/test-fflush.c (main): Use fseeko.
43055         * tests/test-fpurge.c (fseek): Disable link warning.
43056         * tests/test-freadable.c (fseek): Likewise.
43057         * tests/test-freading.c (fseek): Likewise.
43058         * tests/test-fseeko.c (fseek): Likewise.
43059         * tests/test-ftell.c (fseek): Likewise.
43060         * tests/test-ftello.c (fseek): Likewise.
43061         * tests/test-fwritable.c (fseek): Likewise.
43062         * tests/test-fwriting.c (fseek): Likewise.
43063
43064 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43065
43066         * modules/memchr (Depends-on): Drop getpagesize dependency.
43067
43068 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43069
43070         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43071         Reported by Ludovic Courtès.
43072         * build-aux/pmccabe2html: Improve example usage.
43073         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43074
43075 2009-11-06  Jim Meyering  <meyering@redhat.com>
43076
43077         do-release-commit-and-tag: New module.
43078         Automate the release-commit and tag process.
43079         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43080         * modules/do-release-commit-and-tag: New file.
43081         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43082
43083 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43084
43085         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43086         because test-select.c uses inet_pton.
43087
43088 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43089
43090         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43091         GETADDRINFO_LIB.  Bump serial number.
43092         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43093         Suggested by Eric Blake <ebb9@byu.net>.
43094
43095 2009-11-05  Eric Blake  <ebb9@byu.net>
43096
43097         strtod: detect darwin bug
43098         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43099         Reported by Leo Davis.
43100
43101         freopen-safer: new module
43102         * modules/freopen-safer: New module.
43103         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43104         * lib/freopen-safer.c (freopen_safer): New file.
43105         * lib/stdio-safer.h (freopen_safer): New declaration.
43106         * lib/stdio--.h (freopen): New override.
43107         * MODULES.html.sh (File stream based Input/Output): Mention it.
43108         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43109         freopen-safer module.
43110         * doc/posix-functions/stderr.texi (stderr): Likewise.
43111         * doc/posix-functions/stdin.texi (stdin): Likewise.
43112         * doc/posix-functions/stdout.texi (stdout): Likewise.
43113         * modules/freopen-safer-tests: New test.
43114         * tests/test-reopen-safer.c: New file.
43115
43116 2009-11-05  Jim Meyering  <meyering@redhat.com>
43117
43118         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43119         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43120
43121 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43122
43123         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43124
43125 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43126
43127         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43128
43129 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43130
43131         Fix link error.
43132         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43133         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43134
43135 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43136
43137         * tests/test-func.c: Also test value of __func__.
43138
43139 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43140
43141         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43142         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43143
43144 2009-11-05  Bruno Haible  <bruno@clisp.org>
43145
43146         Fix link error.
43147         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43149         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43150
43151 2009-11-05  Bruno Haible  <bruno@clisp.org>
43152
43153         Tests for module 'inet_pton'.
43154         * modules/inet_pton-tests: New file.
43155         * tests/test-inet_pton.c: New file.
43156
43157 2009-11-05  Bruno Haible  <bruno@clisp.org>
43158
43159         Tests for module 'inet_ntop'.
43160         * modules/inet_ntop-tests: New file.
43161         * tests/test-inet_ntop.c: New file.
43162
43163 2009-11-04  Eric Blake  <ebb9@byu.net>
43164
43165         stdlib-safer: wrap all mkstemp variants
43166         * modules/mkostemp (configure.ac): Set witness.
43167         * modules/mkostemps (configure.ac): Likewise.
43168         * modules/mkstemps (configure.ac): Likewise.
43169         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43170         (mkstemps_safer): Wrap more functions.
43171         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43172         wrapping.
43173         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43174         (mkstemps_safer): Implement the wrappers.
43175
43176         mkstemps, mkostemps: new modules
43177         * modules/mkostemps: New module.
43178         * modules/mkstemps: Likewise.
43179         * lib/mkostemps.c (mkostemps): New file.
43180         * lib/mkstemps.c (mkstemps): Likewise.
43181         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43182         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43184         * modules/stdlib (Makefile.am): Substitute them.
43185         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43186         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43187         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43188         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43189         * MODULES.html.sh (File system functions): Mention them.
43190
43191         tempname: resync from glibc
43192         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43193         same values for __GT_FILE as glibc.  Abort even when assertions
43194         are disabled.
43195         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43196         match its value otherwise.  Allow idempotent inclusion.
43197         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43198         * lib/mkostemp.c (mkostemp): Likewise.
43199         * lib/mkstemp.c (mkstemp): Likewise.
43200         * lib/tmpfile.c (tmpfile): Likewise.
43201         * NEWS: Document this.
43202
43203         utimens: fix use of futimens on older Linux
43204         * lib/utimens.c (fdutimens): Use updated, rather than original,
43205         timespec to avoid bug in older Linux kernel.
43206         Reported by Simon Josefsson.
43207
43208 2009-11-04  Bruno Haible  <bruno@clisp.org>
43209
43210         Make num_processors more flexible and consistent.
43211         * lib/nproc.h (enum nproc_query): New type.
43212         (num_processors): Add a 'query' argument.
43213         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43214         (num_processors): Add a 'query' argument. Test the value of the
43215         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43216         mingw, count the number of CPUs available for the current process.
43217         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43218         Check for sched_getaffinity and sched_getaffinity_np.
43219         * modules/nproc (Depends-on): Add c-ctype, extensions.
43220         * NEWS: Mention the change.
43221
43222 2009-11-03  Bruno Haible  <bruno@clisp.org>
43223
43224         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43225
43226 2009-11-03  Jim Meyering  <meyering@redhat.com>
43227
43228         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43229         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43230         if it is defined.
43231
43232 2009-11-02  Eric Blake  <ebb9@byu.net>
43233
43234         mktime, timegm: share common declaration
43235         * lib/mktime-internal.h: New file.
43236         * lib/mktime.c: Use it rather than open-coding a declaration.
43237         * lib/timegm.c: Likewise.
43238         * modules/mktime (Files): Ship it.
43239         * modules/timegm (Files): Likewise.
43240         Suggested by Bruno Haible.
43241
43242         test-update-copyright: update test to match script changes
43243         * tests/test-update-copyright.sh: Avoid hard-coding perl
43244         location.  Don't update *.bak created by earlier runs.
43245
43246 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43247             Simon Josefsson  <simon@josefsson.org>
43248             Bruno Haible  <bruno@clisp.org>
43249
43250         Fix link error on Solaris 8.
43251         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43252         also in libnsl. Define also INET_PTON_LIB.
43253         * modules/inet_pton (Link): New section.
43254
43255 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43256             Bruno Haible  <bruno@clisp.org>
43257
43258         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43259         * modules/inet_ntop (Link): New section.
43260         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43261
43262 2009-11-02  Eric Blake  <ebb9@byu.net>
43263
43264         maint: avoid compiler warnings in m4 macros
43265         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43266         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43267
43268 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43269
43270         * m4/pmccabe2html.m4: Remove file.
43271         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43272         function.  Change maintainer.
43273         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43274         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43275         Courtès).
43276
43277 2009-10-31  Eric Blake  <ebb9@byu.net>
43278
43279         fseeko: fix m4 regression
43280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43281         regression from 2009-10-27.
43282         Reported by Ralf Wildenhues.
43283
43284 2009-10-31  Jim Meyering  <meyering@redhat.com>
43285
43286         inttostr: aesthetics and improved (compile-time) safety
43287         Define inttype_is_signed rather than inttype_is_unsigned,
43288         since the sole use is via "#if inttype_is_signed".
43289         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43290         inttype_is_unsigned.
43291         * lib/offtostr.c (inttype_is_signed): Likewise.
43292         * lib/uinttostr.c (inttype_is_signed): Likewise.
43293         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43294         * lib/inttostr.c (inttostr): Use verify to cross-check the
43295         inttype_is_signed value and the signedness of the actual type.
43296         * modules/inttostr (Depends-on): Add verify.
43297
43298 2009-10-30  Eric Blake  <ebb9@byu.net>
43299
43300         build: avoid compiler warnings
43301         * lib/fchmodat.c (lchmod): Mark unused variables.
43302         * lib/getopt.c (_getopt_initialize): Likewise.
43303         * lib/mktime.c (__mktime_internal): Provide prototype.
43304         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43305         older gcc that do not understand #pragma GCC diagnostic.
43306         * lib/uinttostr.c (inttype_is_unsigned): Define.
43307         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43308
43309 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43310
43311         stat: fix compilation on AIX
43312         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43313         only see struct stat64.
43314
43315 2009-10-30  Eric Blake  <ebb9@byu.net>
43316
43317         exclude: make more robust
43318         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43319         rather than masking a coding bug.
43320         Suggested by Bruno Haible.
43321
43322 2009-10-30  Jim Meyering  <meyering@redhat.com>
43323
43324         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43325         Rather than putting #!/usr/bin/perl on the first line,
43326         start with a variant of what's recommended by "man perlrun" that
43327         invokes the first "perl" program from your shell's search path.
43328         * build-aux/gitlog-to-changelog: Replace #!... as above.
43329         Add a "Local Variables" perl mode setting.
43330         Prompted by a patch from Ludovic Courtès.
43331         Improved by Eric Blake.
43332         * build-aux/useless-if-before-free: Likewise.
43333         * build-aux/announce-gen: Likewise.
43334         * build-aux/update-copyright: Likewise.
43335
43336 2009-10-29  Eric Blake  <ebb9@byu.net>
43337
43338         filenamecat-lgpl: adjust clients
43339         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43340         filenamecat.
43341         * modules/renameat (Depends-on): Likewise.
43342
43343         filenamecat: split into filenamecat-lgpl
43344         * modules/filenamecat-lgpl: New module.
43345         * modules/filenamecat (Files): Move library-safe files into
43346         filenamecat-lgpl.
43347         (Depends-on): Add filenamecat-lgpl.
43348         (configure.ac): Declare witness.
43349         * lib/filenamecat.h (file_name_concat): Only declare when using
43350         GPL module.
43351         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43352         Move...
43353         * lib/filenamecat-lgpl.c: ...into new file.
43354         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43355         (gl_FILE_NAME_CONCAT): Use it.
43356         * MODULES.html.sh (File system functions): Mention new module.
43357
43358         argp: avoid memory leak
43359         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43360         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43361         base_name, since the latter malloc()s and can call exit().
43362         Leak introduced 2006-07-03.
43363
43364         dirname-lgpl: adjust clients that don't need full dirname
43365         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43366         * modules/filenamecat (Depends-on): Likewise.
43367         * modules/linkat (Depends-on): Likewise.
43368         * modules/mkancesdirs (Depends-on): Likewise.
43369         * modules/mkdir (Depends-on): Likewise.
43370         * modules/openat (Depends-on): Likewise.
43371         * modules/savewd (Depends-on): Likewise.
43372         * modules/rename (Depends-on): Likewise.
43373         (License): Relax license.
43374         * modules/mkdir-tests (Depends-on): Drop progname.
43375         (Makefile.am): Delete unneeded LDADD.
43376         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43377
43378         dirname: split into dirname-lgpl
43379         * modules/dirname-lgpl: New module.
43380         * modules/dirname (Files): Move library-safe files into
43381         dirname-lgpl.
43382         (Depends-on): Add dirname-lgpl.
43383         (configure.ac): Declare witness.
43384         * modules/double-slash-root (License): Relax license.
43385         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43386         module.
43387         * lib/dirname.c (dir_len, mdir_name): Move...
43388         * lib/dirname-lgpl.c: ...into new file.
43389         * lib/basename.c (last_component, base_len): Move...
43390         * lib/basename-lgpl.c: ...into new file.
43391         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43392         (gl_DIRNAME): Use it.
43393         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43394         Mention new module.
43395         * modules/dirname-tests (Depends-on): Add progname.
43396         * tests/test-dirname.c (program_name): Delete.
43397
43398         mkdir: make safe for libraries
43399         * modules/mkdir (Depends-on): Drop xalloc.
43400         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43401         exit.
43402
43403         tests: avoid some compiler warnings
43404         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43405         literals.
43406         * tests/test-memchr.c (main): Avoid type mismatch.
43407         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43408         * tests/test-base64.c (main): Likewise.
43409         * tests/test-getdelim.c (main): Likewise.
43410         * tests/test-gethostname.c (main): Likewise.
43411         * tests/test-getline.c (main): Likewise.
43412         * tests/test-netinet_in.c (main): Likewise.
43413         * tests/test-select.c (open_server_socket, main): Likewise.
43414         * tests/test-select-stdin.c (main): Likewise.
43415         * tests/test-sockets.c (main): Likewise.
43416         * tests/test-strsignal.c (main): Likewise.
43417         * tests/test-sys_select.c (main): Likewise.
43418         * tests/test-sys_socket.c (main): Likewise.
43419         * tests/test-u64.c (main): Likewise.
43420         * tests/test-xfprintf-posix.c (main): Likewise.
43421         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43422
43423         sockets: avoid compiler warning
43424         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43425
43426         maint: detect usage(1) and other suspicious exits
43427         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43428
43429 2009-10-29  Jim Meyering  <meyering@redhat.com>
43430
43431         timespec: long-to-int truncation could make timespec_cmp malfunction
43432         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43433         a multiple of 2^32 nanoseconds as no difference.
43434
43435 2009-10-28  Jim Meyering  <meyering@redhat.com>
43436
43437         fprintftime: wrap macro code argument in "do {...} while(0)"
43438         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43439         cpy macro must be a statement that can be followed by a semicolon.
43440         Now that the else clause contains a comment and is hence longer
43441         than one line, I require curly braces.  That in turn requires
43442         that we wrap this code block in the standard do...while(0).
43443
43444         fprintftime: remove stray semicolon from previous change
43445         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43446
43447         fprintftime: avoid a warning about ignored fwrite return value
43448         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43449         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43450         that is unsafe.
43451         * modules/fprintftime (Depends-on): Add ignore-value.
43452
43453         exclude: avoid an unwarranted warning
43454         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43455
43456 2009-10-27  Eric Blake  <ebb9@byu.net>
43457
43458         fseek: avoid compilation failure when fflush is replaced
43459         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43460         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43461         module is in use.
43462         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43463         module is not in use; since REPLACE_FSEEK worked otherwise.
43464         (GNULIB_FTELLO): Likewise for ftell.
43465         Reported by Ian Beckwith and others.
43466
43467 2009-10-27  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43470         Reported by Jim Meyering.
43471
43472 2009-10-27  Jim Meyering  <jim@meyering.net>
43473             Bruno Haible  <bruno@clisp.org>
43474
43475         Avoid warning despite dropping the return value of fwrite.
43476         * lib/unicodeio.c: Include ignore-value.h.
43477         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43478         * modules/unicodeio (Depends-on): Add ignore-value.
43479
43480 2009-10-26  Eric Blake  <ebb9@byu.net>
43481
43482         areadlinkat: fix fallback path
43483         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43484         pointer and zero.
43485
43486 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43487
43488         Use a better IO block size for modern systems
43489         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43490         * lib/md2.c: Likewise.
43491         * lib/md4.c: Likewise.
43492         * lib/md5.c: Likewise.
43493         * lib/sha1.c: Likewise.
43494         * lib/sha256.c: Likewise.
43495         * lib/sha512.c: Likewise.
43496
43497 2009-10-22  Eric Blake  <ebb9@byu.net>
43498
43499         tests: avoid several compiler warnings
43500         * tests/test-getcwd.c (main): Avoid buffer underflow.
43501         * tests/test-getdate.c (main): String literals are not safe with
43502         putenv, so use setenv.  Declare unused argument.
43503         * modules/getdate-tests (Depends-on): Add setenv.
43504         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43505         problems with string literals in char *.
43506         * tests/test-hash.c (main): Avoid shadowing declaration.
43507         (insert_new): Treat string literals as char const *.
43508         * tests/test-getopt.h (test_getopt): Likewise.
43509         (getopt_loop): Alter types to minimize casting elsewhere.
43510         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43511         (test_getopt_long_posix): Likewise.
43512         (do_getopt_long): Add wrapper to minimize casting.
43513         * tests/test-atexit.c (clear_temp_file): Use void.
43514         * tests/test-areadlink-with-size.c (main): Declare unused
43515         arguments.
43516         * tests/test-areadlink.c (main): Likewise.
43517         * tests/test-areadlinkat-with-size.c (main): Likewise.
43518         * tests/test-areadlinkat.c (main): Likewise.
43519         * tests/test-canonicalize-lgpl.c (main): Likewise.
43520         * tests/test-canonicalize.c (main): Likewise.
43521         * tests/test-dirent-safer.c (main): Likewise.
43522         * tests/test-dirname.c (main): Likewise.
43523         * tests/test-dup2.c (main): Likewise.
43524         * tests/test-fchdir.c (main): Likewise.
43525         * tests/test-fcntl-h.c (main): Likewise.
43526         * tests/test-fcntl-safer.c (main): Likewise.
43527         * tests/test-fdopendir.c (main): Likewise.
43528         * tests/test-fdutimensat.c (main): Likewise.
43529         * tests/test-fflush.c (main): Likewise.
43530         * tests/test-filenamecat.c (main): Likewise.
43531         * tests/test-filevercmp.c (main): Likewise.
43532         * tests/test-fopen-safer.c (main): Likewise.
43533         * tests/test-fopen.c (main): Likewise.
43534         * tests/test-fpending.c (main): Likewise.
43535         * tests/test-fpurge.c (main): Likewise.
43536         * tests/test-freading.c (main): Likewise.
43537         * tests/test-fstatat.c (main): Likewise.
43538         * tests/test-fsync.c (main): Likewise.
43539         * tests/test-futimens.c (main): Likewise.
43540         * tests/test-getndelim2.c (main): Likewise.
43541         * tests/test-gettimeofday.c (main): Likewise.
43542         * tests/test-getopt.c (main): Likewise.
43543         * tests/test-i-ring.c (main): Likewise.
43544         * tests/test-inttypes.c (main): Likewise.
43545         * tests/test-link.c (main): Likewise.
43546         * tests/test-lstat.c (main): Likewise.
43547         * tests/test-math.c (main): Likewise.
43548         * tests/test-md5.c (main): Likewise.
43549         * tests/test-memchr2.c (main): Likewise.
43550         * tests/test-memrchr.c (main): Likewise.
43551         * tests/test-mkdir.c (main): Likewise.
43552         * tests/test-mkdirat.c (main): Likewise.
43553         * tests/test-mkfifoat.c (main): Likewise.
43554         * tests/test-open.c (main): Likewise.
43555         * tests/test-openat-safer.c (main): Likewise.
43556         * tests/test-openat.c (main): Likewise.
43557         * tests/test-quotearg.c (main): Likewise.
43558         * tests/test-rawmemchr.c (main): Likewise.
43559         * tests/test-readlink.c (main): Likewise.
43560         * tests/test-remove.c (main): Likewise.
43561         * tests/test-rename.c (main): Likewise.
43562         * tests/test-renameat.c (main): Likewise.
43563         * tests/test-rmdir.c (main): Likewise.
43564         * tests/test-sha1.c (main): Likewise.
43565         * tests/test-signal.c (main): Likewise.
43566         * tests/test-sigaction.c (main): Likewise.
43567         * tests/test-stat.c (main): Likewise.
43568         * tests/test-stat-time.c (main): Likewise.
43569         * tests/test-stddef.c (main): Likewise.
43570         * tests/test-stdint.c (main): Likewise.
43571         * tests/test-stdio.c (main): Likewise.
43572         * tests/test-stdlib.c (main): Likewise.
43573         * tests/test-strchrnul.c (main): Likewise.
43574         * tests/test-strerror.c (main): Likewise.
43575         * tests/test-string.c (main): Likewise.
43576         * tests/test-strtod.c (main): Likewise.
43577         * tests/test-strverscmp.c (main): Likewise.
43578         * tests/test-symlink.c (main): Likewise.
43579         * tests/test-symlinkat.c (main): Likewise.
43580         * tests/test-sys_stat.c (main): Likewise.
43581         * tests/test-sys_time.c (main): Likewise.
43582         * tests/test-time.c (main): Likewise.
43583         * tests/test-unistd.c (main): Likewise.
43584         * tests/test-unlink.c (main): Likewise.
43585         * tests/test-unlinkat.c (main): Likewise.
43586         * tests/test-utimens.c (main): Likewise.
43587         * tests/test-utimensat.c (main): Likewise.
43588         * tests/test-version-etc.c (main): Likewise.
43589         * tests/test-wchar.c (main): Likewise.
43590         * tests/test-wctype.c (main): Likewise.
43591         * tests/test-xprintf-posix.c (main): Likewise.
43592         * tests/test-posixtm.c (main): Likewise.
43593         (STREQ): Delete unused macro.
43594         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43595         shadowed variables.
43596         * tests/test-memchr.c (main): Likewise.
43597
43598 2009-10-21  Eric Blake  <ebb9@byu.net>
43599
43600         areadlinkat: avoid failure on older glibc
43601         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43602         rather than mis-comparing 0 against FUNC_RESULT of char*.
43603
43604 2009-10-21  Bruno Haible  <bruno@clisp.org>
43605
43606         * modules/stpncpy (License): Relicense under LGPLv2+.
43607         Reported by David Lutterkort <lutter@redhat.com>.
43608
43609 2009-10-20  Eric Blake  <ebb9@byu.net>
43610
43611         utimensat: work around Solaris 9 bug
43612         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43613         has trailing slash bugs.
43614         * tests/test-lutimens.h (test_lutimens): Enhance test.
43615         * tests/test-utimens.h (test_utimens): Likewise.
43616         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43617         * doc/posix-functions/utimes.texi (utimes): Likewise.
43618         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43619         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43620         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43621         * doc/posix-functions/futimens.texi (futimens): Likewise.
43622
43623         fdutimensat: new module
43624         * modules/fdutimensat: New file.
43625         * lib/fdutimensat.c (fdutimensat): Likewise.
43626         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43627         * MODULES.html.sh (File system functions): Mention module.
43628         * modules/fdutimensat-tests: New test.
43629         * tests/test-fdutimensat.c: Likewise.
43630
43631         doc: regenerate INSTALL
43632         * doc/INSTALL: Reflect recent autoconf update.
43633         * doc/INSTALL.ISO: Likewise.
43634         * doc/INSTALL.UTF-8: Likewise.
43635
43636 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43637
43638         acl: warn if ACL support is not detected
43639         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43640
43641 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43642
43643         * lib/nproc.h: Add extern "C" block for C++.
43644
43645 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43646             Bruno Haible  <bruno@clisp.org>
43647
43648         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43649         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43650         * doc/posix-functions/isalpha.texi: Likewise.
43651         * doc/posix-functions/isblank.texi: Likewise.
43652         * doc/posix-functions/iscntrl.texi: Likewise.
43653         * doc/posix-functions/isdigit.texi: Likewise.
43654         * doc/posix-functions/isgraph.texi: Likewise.
43655         * doc/posix-functions/islower.texi: Likewise.
43656         * doc/posix-functions/isprint.texi: Likewise.
43657         * doc/posix-functions/ispunct.texi: Likewise.
43658         * doc/posix-functions/isspace.texi: Likewise.
43659         * doc/posix-functions/isupper.texi: Likewise.
43660         * doc/posix-functions/isxdigit.texi: Likewise.
43661
43662 2009-10-18  Bruno Haible  <bruno@clisp.org>
43663
43664         Tests for module 'isblank'.
43665         * modules/isblank-tests: New file.
43666         * tests/test-isblank.c: New file.
43667
43668         New module 'isblank'.
43669         * lib/isblank.c: New file.
43670         * m4/isblank.m4: New file.
43671         * modules/isblank: New file.
43672         * doc/posix-functions/isblank.texi: Mention the new module.
43673
43674 2009-10-18  Bruno Haible  <bruno@clisp.org>
43675
43676         New module 'ctype'.
43677         * lib/ctype.in.h: New file.
43678         * m4/ctype.m4: New file.
43679         * modules/ctype: New file.
43680         * doc/posix-headers/ctype.texi: Mention the new module.
43681
43682 2009-10-18  Jim Meyering  <meyering@redhat.com>
43683
43684         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43685         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43686         right after its initialization, rather than farther down.
43687         Keeping these in close proximity makes it easier to ensure
43688         that each such variable is initialized.  E.g.,
43689
43690             LIB_CLOCK_GETTIME=
43691             AC_SUBST([LIB_CLOCK_GETTIME])
43692
43693         This change also increments these serial numbers.
43694         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43695         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43697
43698 2009-10-18  Bruno Haible  <bruno@clisp.org>
43699
43700         Don't let environment variables perturb build.
43701         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43702         (gl_PREREQ_GETHRXTIME): ... not here.
43703
43704 2009-10-18  Bruno Haible  <bruno@clisp.org>
43705
43706         Avoid symlink attack in localcharset module.
43707         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43708         (O_NOFOLLOW): Define fallback.
43709         (get_charset_aliases): Don't open the file if it is a symbolic link.
43710         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43711         gl_FCNTL_H.
43712         (gl_FCNTL_H): Require it.
43713         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43714         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43715         Reported by Fergal Glynn <fglynn@veracode.com>.
43716
43717 2009-10-18  Bruno Haible  <bruno@clisp.org>
43718
43719         Implement nproc for mingw.
43720         * lib/nproc.c: Include <windows.h>
43721         (num_processors): On native Windows platforms, try GetSystemInfo.
43722
43723 2009-10-18  Bruno Haible  <bruno@clisp.org>
43724
43725         Implement nproc for IRIX.
43726         * lib/nproc.c: Include <sys/sysmp.h>.
43727         (num_processors): On IRIX systems, try sysmp.
43728         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43729
43730 2009-10-18  Bruno Haible  <bruno@clisp.org>
43731
43732         Implement nproc for HP-UX.
43733         * lib/nproc.c: Include <sys/pstat.h>
43734         (num_processors): On HP-UX systems, try pstat_getdynamic.
43735         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43736         pstat_getdynamic.
43737
43738 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43739             Bruno Haible  <bruno@clisp.org>
43740
43741         Implement nproc for NetBSD, OpenBSD.
43742         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43743         (ARRAY_SIZE): New macro.
43744         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43745         * m4/nproc.m4: New file.
43746         * modules/nproc (Files): Add m4/nproc.m4.
43747         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43748         (Makefile.am): Instead, augment lib_SOURCES.
43749
43750 2009-10-18  Bruno Haible  <bruno@clisp.org>
43751
43752         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43753         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43754         sys/param.h.
43755
43756 2009-10-16  Eric Blake  <ebb9@byu.net>
43757
43758         utimensat: new module
43759         * modules/utimensat: New file.
43760         * lib/utimensat.c (utimensat): Likewise.
43761         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43762         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43763         so we can work around Linux bugs.
43764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43765         * modules/sys_stat (Makefile.am): Substitute them.
43766         * lib/sys_stat.in.h (utimensat): Declare it.
43767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43768         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43769         * modules/utimensat-tests: New test.
43770         * tests/test-utimensat.c: Likewise.
43771
43772         utimens: let lutimens work on non-symlinks
43773         * lib/utimens.c (lutimens): Fall back to utimens rather than
43774         failing with ENOSYS, when file is not a symlink.
43775         (utimens): Reduce redirection.
43776         * tests/test-lutimens.h (test_lutimens): Update test to cover
43777         non-symlinks.
43778         * tests/test-utimens.h (test_utimens): Update test to cover
43779         symlinks.
43780         * tests/test-utimens.c (main): Update caller.
43781
43782         utimens: cache whether utimensat syscall works
43783         * lib/utimens.c (utimensat_works_really): New cache variable.
43784         (fdutimens, lutimens): Use it to avoid failing syscall.
43785
43786         test-stat-time, test-utimens: improve portability
43787         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43788         ext4 on alpha, and for cygwin.
43789         * tests/test-utimens-common.h: New file.
43790         (nap): Factor delays into single function.
43791         * tests/test-lutimens.h (test_lutimens): Use new header.
43792         * tests/test-futimens.h (test_futimens): Likewise.
43793         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43794         timestamps to occur from same machine, as was done previously for
43795         test_utimens.
43796         * modules/utimens-tests (Files): Ship new file.
43797         * modules/futimens-tests (Files): Likewise.
43798         Reported in part by Jim Meyering.
43799
43800         sys_stat: sort replacement declarations
43801         * lib/sys_stat.in.h: Sort declarations.
43802         * lib/futimens.c (futimens): Fix typo.
43803
43804 2009-10-15  Jim Meyering  <meyering@redhat.com>
43805
43806         don't let environment settings perturb build
43807         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43808         could cause a configure-time and/or build-time malfunction.
43809         Typically, a configure-time function-in-library test is performed
43810         via code like this:
43811
43812           LIB_VAR=
43813           AC_SUBST([LIB_VAR])
43814           prefix_saved_LIBS=$LIBS
43815             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43816                        [test "$ac_cv_search_FUNC" = "none required" ||
43817                         LIB_VAR=$ac_cv_search_FUNC])
43818           LIBS=$prefix_saved_LIBS
43819
43820         However, in each of the files affected by this change, the LIB_VAR=
43821         initialization was omitted.  Thus, when set in the environment, its
43822         value would propagate into generated Makefiles when FUNC is not found
43823         in LIB_NAME.
43824         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43825         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43827
43828 2009-10-14  Eric Blake  <ebb9@byu.net>
43829
43830         fchdir: avoid infinite recursion in mingw
43831         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43832         recursing.
43833
43834         test-stat-time: port to mingw
43835         * tests/test-stat-time.c (force_unlink): Return a value.
43836         (test_ctime) [W32]: Fix compilation error.
43837         (nap): Don't call usleep with too large an argument.  Use
43838         force_unlink.
43839         * doc/pastposix-functions/usleep.texi (usleep): Document the
43840         portability issue.
43841
43842 2009-10-13  Jim Meyering  <meyering@redhat.com>
43843
43844         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43845         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43846         * modules/pipe-filter-ii: Likewise.
43847         * modules/sys_socket-tests: Likewise.
43848         * modules/tsearch-tests: Likewise.
43849         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43850         (check): Depend on it.
43851
43852 2009-10-12  Eric Blake  <ebb9@byu.net>
43853
43854         utimens-tests: port to NFS file systems
43855         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43856         comparisons to avoid spurious failures from timestamp drift
43857         between NFS machines.
43858
43859 2009-10-12  Eric Blake  <ebb9@byu.net>
43860
43861         stat-time-tests: minor cleanups
43862         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43863         * tests/test-stat-time.c (nap): Separate assignment from call.
43864         Suggested by Paolo Bonzini and Bruno Haible.
43865
43866         sys_stat: guarantee struct timespec
43867         * lib/sys_stat.in.h (includes): Always include <time.h>
43868         * modules/sys_stat (Depends-on): Add time.
43869         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43870         mode_t permission values.
43871         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43872         get at subsecond timestamps.
43873
43874 2009-10-10  Eric Blake  <ebb9@byu.net>
43875
43876         futimens: new module
43877         * modules/futimens: New file.
43878         * lib/futimens.c (futimens): Likewise.
43879         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43880         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43881         we can work around Linux bugs.
43882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43883         * modules/sys_stat (Makefile.am): Substitute them.
43884         * lib/sys_stat.in.h (futimens): Declare it.
43885         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43886         * doc/posix-functions/futimens.texi (futimens): Likewise.
43887         * modules/futimens-tests: New test.
43888         * tests/test-futimens.c: Likewise.
43889
43890         utimens: introduce fdutimens
43891         * lib/utimens.h (fdutimens): New prototype.
43892         * lib/utimens.c (gl_futimens): Move guts...
43893         (fdutimens): ...to new interface.
43894         * tests/test-utimens.c (do_fdutimens): Use it.
43895
43896         utimens: add UTIME_NOW and UTIME_OMIT support
43897         * lib/utimens.c (validate_timespec, update_timespec): New helper
43898         functions.
43899         (gl_futimens, lutimens): Use them.
43900         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43901         stdbool, sys_stat.
43902         (Link): Mention resulting library dependency.
43903         * modules/utimecmp (Link): Likewise.
43904         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43905         (Makefile.am): Pick up library dependency.
43906         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43907         definition.
43908         * tests/test-sys_stat.c: Test the definitions.
43909         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43910         * NEWS: Document library dependency.
43911
43912         utimecmp: support symlink timestamps
43913         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43914         hashing when possible.  Use pathconf when available.
43915         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43916         * modules/utimecmp (Depends-on): Add lstat.
43917
43918         utimens: add lutimens interface
43919         * lib/utimens.c (lutimens): New function.
43920         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43921         * lib/utimens.h (lutimens): Declare new interface.
43922         * tests/test-utimens.c (main): Enhance test.
43923         * tests/test-lutimens.h (test_lutimens): New file.
43924         * modules/utimens-tests (Files): Distribute it.
43925         (Depends-on): Add symlink.
43926         (configure.ac): Check for usleep.
43927
43928         utimens: validate futimens usage
43929         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43930         fewer syscalls on failure later on.  Avoid compiler warning on
43931         mingw.
43932         * modules/utimens (Depends-on): Add dup2.
43933
43934         utimens: add test
43935         * modules/utimens-tests: New test.
43936         * tests/test-utimens.h: New file.
43937         * tests/test-futimens.h: Likewise.
43938         * tests/test-utimens.c: Likewise.
43939
43940         doc: mention timestamp portability issues
43941         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43942         instead.
43943         * doc/posix-functions/utime.texi (utime): Likewise.
43944         * doc/posix-functions/utimes.texi (utimes): Likewise.
43945         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43946         instead.
43947         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43948         module.
43949         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43950         Mention weakness with symlink timestamps.
43951         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43952         to utimensat/futimens instead.
43953         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43954
43955         test-dup2: enhance test
43956         * tests/test-dup2.c (main): Also check AT_FDCWD.
43957
43958         test-stat-time: avoid more spurious failures
43959         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43960         xfs; and avoid race if the two timestamps cross quantization edge.
43961
43962         relocatable: prefer 'file system' over 'filesystem'
43963         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43964         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43965         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43966         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43967         * lib/relocatable.c (compute_curr_prefix): Likewise.
43968
43969 2009-10-10  Jim Meyering  <meyering@redhat.com>
43970
43971         stat-time-tests: check for the usleep function
43972         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43973
43974 2009-10-10  Bruno Haible  <bruno@clisp.org>
43975
43976         * modules/xnanosleep: Put the Link section after the Include section.
43977
43978 2009-10-09  Eric Blake  <ebb9@byu.net>
43979
43980         dup2: work around FreeBSD 6.1 bug
43981         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43982         * doc/posix-functions/dup2.texi (dup2): Document it.
43983         Reported by Nelson H. F. Beebe and Jim Meyering.
43984
43985         test-stat-time: port to buggy NFS clients
43986         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43987         (test_ctime): Also skip test if mtime and ctime are skewed.
43988
43989         maint: prefer 'file system' over 'filesystem'
43990         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43991         * doc/posix-functions/lstat.texi (lstat): Likewise.
43992         * lib/file-has-acl.c (file_has_acl): Likewise.
43993         * lib/fwriteerror.c [TEST]: Likewise.
43994         * tests/test-areadlink.h (test_areadlink): Likewise.
43995         * tests/test-areadlinkat-with-size.c (main): Likewise.
43996         * tests/test-areadlinkat.c (main): Likewise.
43997         * tests/test-canonicalize-lgpl.c (main): Likewise.
43998         * tests/test-canonicalize.c (main): Likewise.
43999         * tests/test-fstatat.c (main): Likewise.
44000         * tests/test-linkat.c (main): Likewise.
44001         * tests/test-lstat.h (test_lstat_func): Likewise.
44002         * tests/test-mkdir.h (test_mkdir): Likewise.
44003         * tests/test-readlink.h (test_readlink): Likewise.
44004         * tests/test-remove.c (main): Likewise.
44005         * tests/test-rename.h (test_rename): Likewise.
44006         * tests/test-renameat.c (main): Likewise.
44007         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44008         * tests/test-symlink.h (test_symlink): Likewise.
44009         * tests/test-symlinkat.c (main): Likewise.
44010         * tests/test-unlink.h (test_unlink_func): Likewise.
44011         * tests/test-unlinkat.c (main): Likewise.
44012
44013         maint: make realtime library usage explicit
44014         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44015         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44016         * modules/settime (Link): Likewise.
44017         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44018
44019         test-stat-time: speed up execution
44020         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44021         warning on mingw.
44022         (nap): New helper function.
44023         (prepare_test): Use it to reduce sleep time.
44024         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44025         execution.
44026         * modules/stat-time-tests (configure.ac): Check for usleep.
44027
44028 2009-10-09  Jim Meyering  <meyering@redhat.com>
44029
44030         selinux-h: always use getfilecon wrappers
44031         * lib/getfilecon.c: New file.
44032         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44033         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44034         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44035         (fgetfilecon): Provide a stub.
44036         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44037         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44038         file unconditionally.
44039         When <selinux/selinux.h> is found, arrange to use wrappers.
44040         * modules/selinux-h (Files): Add getfilecon.c.
44041         (Makefile.am): Substitute include-next-related bits
44042         into the now-always-generated selinux/selinux.h file.
44043         * doc/glibc-functions/lgetfilecon.texi: New file.
44044         * doc/glibc-functions/fgetfilecon.texi: New file.
44045         * doc/glibc-functions/getfilecon.texi: New file.
44046         * doc/glibc-functions/getfilecon-desc.texi: New file.
44047         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44048         which to pull in the new files.
44049         * MODULES.html.sh (Misc): Add selinux-h.
44050
44051 2009-10-08  Jim Meyering  <meyering@redhat.com>
44052
44053         unistd: fix comment typo
44054         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44055
44056 2009-10-08  Eric Blake  <ebb9@byu.net>
44057
44058         areadlink: use SIZE_MAX consistently
44059         * modules/areadlink (Depends-on): Add stdint.
44060         * modules/areadlink-with-size (Depends-on): Likewise.
44061         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44062         gives NULL; drop sys/types, since unistd gives size_t; and add
44063         stdint for SIZE_MAX.
44064         (SIZE_MAX): Rely on headers.
44065         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44066         and add stdint.
44067         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44068         (SIZE_MAX): Likewise.
44069         (INITIAL_BUF_SIZE): Turn into enum.
44070         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44071
44072 2009-10-08  Jim Meyering  <meyering@redhat.com>
44073
44074         areadlinkat: avoid compilation failure
44075         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44076         Fix typo in comment.
44077
44078 2009-10-07  Eric Blake  <ebb9@byu.net>
44079
44080         areadlinkat-with-size: new module
44081         * modules/areadlinkat-with-size: New module.
44082         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44083         * lib/areadlink.h (areadlinkat): Declare it.
44084         * MODULES.html.sh (File system functions): Mention it.
44085         * modules/areadlinkat-with-size-tests: New test.
44086         * tests/test-areadlinkat-with-size.c: New file.
44087
44088         xreadlinkat: new module
44089         * modules/xreadlinkat: New module.
44090         * lib/xreadlinkat.c (xreadlinkat): New file.
44091         * lib/xreadlink.h (xreadlinkat): Declare it.
44092         * MODULES.html.sh (File system functions): Mention it.
44093
44094         areadlinkat: new module
44095         * lib/at-func.c (FUNC_FAIL): New define.
44096         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44097         * modules/areadlinkat: New module.
44098         * lib/linkat.c (areadlinkat): Move...
44099         * lib/areadlinkat.c (areadlinkat): ...to new file.
44100         * lib/areadlink.h (areadlinkat): Declare it.
44101         * modules/linkat (Depends-on): Add areadlinkat.
44102         * MODULES.html.sh (File system functions): Mention it.
44103         * modules/areadlinkat-tests: New test.
44104         * tests/test-areadlinkat.c: New file.
44105
44106         areadlink, areadlink-with-size: add tests
44107         * modules/areadlink-tests: New test.
44108         * modules/areadlink-with-size-tests: Likewise.
44109         * tests/test-areadlink.h: New file.
44110         * tests/test-areadlink.c: Likewise.
44111         * tests/test-areadlink-with-size.c: Likewise.
44112
44113         maint: minor cleanups
44114         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44115         _UNUSED_PARAMETER_ instead.
44116         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44117         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44118         * modules/linkat-tests (Files): Distribute test-link.h.
44119
44120         openat, utimens: whitespace cleanup
44121         * lib/openat.c: Prefer space throughout, rather than mix of 8
44122         spaces vs. tabs.
44123         * lib/at-func.c: Likewise.
44124         * lib/utimens.c: Likewise.
44125
44126         openat: avoid using wrong fd
44127         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44128         working directory chooses same fd.
44129         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44130
44131         mkdir, mkdirat: fix cygwin 1.5.x bug
44132         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44133         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44134         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44135         bug.
44136         (gl_PREREQ_MKDIR): Delete unused macro.
44137         * modules/mkdir (Files): Track file rename.
44138         (configure.ac): Update macro name.
44139         * modules/openat (Depends-on): Add mkdir.
44140         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44141
44142         mkdir, mkdirat: add tests
44143         * modules/mkdir-tests: New test.
44144         * tests/test-mkdir.h: New file.
44145         * tests/test-mkdir.c: Likewise.
44146         * tests/test-mkdirat.c: Likewise.
44147         * modules/openat-tests (Files): Add new files.
44148         (Makefile.am): Run new test.
44149
44150 2009-10-06  Eric Blake  <ebb9@byu.net>
44151
44152         doc: tweak *at function documentation
44153         * doc/posix-functions/faccessat.texi (faccessat): Mention
44154         known issue with replacement.
44155         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44156         * doc/posix-functions/linkat.texi (linkat): Likewise.
44157         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44158         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44159         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44160         * doc/posix-functions/renameat.texi (renameat): Likewise.
44161         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44162
44163         openat: fix GNU/Hurd bug in unlinkat
44164         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44165         broken.
44166         * doc/posix-functions/unlink.texi (unlink): Document this.
44167         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44168
44169         fdopendir: fix GNU/Hurd bug
44170         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44171         allowing non-directory fds.
44172         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44174         * modules/dirent (Makefile.am): Substitute it.
44175         * lib/dirent.in.h (fdopendir): Declare replacement.
44176         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44177         * tests/test-fdopendir.c (main): Test something other than
44178         /dev/null, since on Hurd that behaves like a directory.
44179
44180         test-symlink: port to GNU/Hurd
44181         * tests/test-symlink.h (test_symlink): Relax expected errno.
44182
44183         doc: tweak more cygwin information
44184         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44185         now compatible with glibc.
44186         * doc/posix-functions/getopt.texi (getopt): Likewise.
44187
44188         getopt-gnu: add another test
44189         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44190         guarantee behavior relied on by m4.
44191         * tests/test-getopt.c (main): Use it.
44192         * modules/getopt-posix-tests (Depends-on): Add setenv.
44193         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44194
44195         getopt: fix compilation on darwin
44196         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44197         include.
44198         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44199         Reported by Ludovic Courtès.
44200
44201 2009-10-06  Bruno Haible  <bruno@clisp.org>
44202
44203         * modules/size_max (Description): Discourage its use.
44204         Reported by Simon Josefsson.
44205
44206 2009-10-06  Jim Meyering  <meyering@redhat.com>
44207
44208         linkat: avoid compilation failure
44209         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44210
44211 2009-10-05  Eric Blake  <ebb9@byu.net>
44212
44213         linkat: support Linux 2.6.17
44214         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44215         linkat on Linux, but allow cache variable override.
44216         * lib/linkat.c (rpl_linkat): Define override.
44217         * modules/linkat (Depends-on): Add symlinkat.
44218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44219         * modules/unistd (Makefile.am): Substitute it.
44220         * lib/unistd.in.h (linkat): Declare replacement.
44221         Reported by Pádraig Brady.
44222
44223         quotearg: port test to systems with C.UTF-8 locale
44224         * tests/test-quotearg.c (struct result_strings): Add another
44225         member, differentiating between C.ASCII and C.UTF-8 handling.
44226         (compare_strings): Add parameter.
44227         (main): Adjust all callers.
44228
44229         getopt: avoid clash with FreeBSD _getopt_internal
44230         * lib/getopt.in.h (_getopt_internal): Override the name.
44231         * lib/getopt_int.h (includes): Pick up any overrides.
44232         Reported by Reuben Thomas.
44233
44234         hash: allow C89 compilation
44235         * lib/hash.c (check_tuning): Move declaration before statement.
44236         Reported by Reuben Thomas.
44237
44238 2009-10-05  Karl Berry  <karl@gnu.org>
44239
44240         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44241
44242 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44243             Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/uname.c (uname): Use a table-driven algorithm to compute
44246         Windows NT versions.
44247
44248 2009-10-04  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44251         program_invocation_short_name.
44252         * modules/progname (configure.ac): Test for presence of
44253         program_invocation_short_name.
44254         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44255
44256 2009-10-04  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/progname.c (set_program_name): Fix comment.
44259         Reported by Jim Meyering.
44260
44261 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44262             Bruno Haible  <bruno@clisp.org>
44263
44264         * lib/uname.c: Include <string.h>.
44265         (uname): Do only one call to GetVersionEx in the common case.
44266
44267 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44268             Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44271         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44272         (uname): Add support for Windows CE and various non-x86 CPU types.
44273
44274 2009-10-03  Bruno Haible  <bruno@clisp.org>
44275
44276         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44277         invocation to tests/configure.ac.
44278         Reported by Ian Beckwith <ianb@erislabs.net>.
44279
44280 2009-10-02  Eric Blake  <ebb9@byu.net>
44281
44282         fchdir: avoid compiler warning
44283         * lib/fchdir.c (canonicalize_file_name)
44284         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44285
44286         test-open: support mingw errno values
44287         * tests/test-open.h (test_open): Relax test.
44288         * tests/test-fopen.h (test_fopen): Likewise.
44289         * tests/test-openat-safer.c (main): Likewise.
44290
44291         open: fix opening directory on mingw
44292         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44293
44294         test-open: on GNU/Hurd, /dev/null is a directory
44295         * tests/test-fopen.h (main): Rename...
44296         (test_fopen): ...to this.  Use a guaranteed non-directory when
44297         confirming open behavior on trailing slash.
44298         * tests/test-openat-safer.c (main): Likewise.
44299         * tests/test-open.h (main): Likewise....
44300         (test_open): ...to this.
44301         * tests/test-fopen.c (main): Adjust caller.
44302         * tests/test-fopen-safer.c (main): Likewise.
44303         * tests/test-open.c (main): Likewise.
44304         * tests/test-fcntl-safer.c (main): Likewise.
44305         Reported by Samuel Thibault.
44306
44307         rename, fchdir: don't ignore chdir failure
44308         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44309         * lib/rename.c (rpl_rename) [W32]: Likewise.
44310         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44311         an empty destination directory if source cannot be renamed,
44312         although there is still possibility for failure.
44313         * doc/posix-functions/rename.texi (rename): Document the race.
44314         Reported by Jim Meyering.
44315
44316         maint: cleanup whitespace in recent commits
44317         * lib/rename.c (rpl_rename): Remove tabs.
44318         * tests/test-link.h (test_link): Likewise.
44319         * lib/fchdir.c (get_name): Likewise.
44320         Reported by Jim Meyering.
44321
44322 2009-10-02  Ben Pfaff  <blp@gnu.org>
44323
44324         relocatable-prog-wrapper: Add missing dependency on
44325         double-slash-root.
44326         * modules/relocatable-prog-wrapper: Add dependency.
44327         Reported by Ian Beckwith <ianb@erislabs.net>.
44328
44329 2009-10-02  Eric Blake  <ebb9@byu.net>
44330
44331         renameat: fix Solaris bugs
44332         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44333         needed fixing.
44334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44335         * modules/stdio (Makefile.am): Substitute it.
44336         * lib/stdio.in.h (renameat): Declare replacement.
44337         * lib/renameat.c (rpl_renameat): Implement fix.
44338
44339         renameat: new module
44340         * modules/renameat: New file.
44341         * lib/renameat.c (renameat): Likewise.
44342         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44344         * modules/stdio (Makefile.am): Substitute them.
44345         * lib/stdio.in.h (renameat): Declare it.
44346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44347         * doc/posix-functions/renameat.texi (renameat): Likewise.
44348         * modules/renameat-tests: New test.
44349         * tests/test-renameat.c: Likewise.
44350
44351         rename: fix mingw bugs
44352         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44353         directory overwrite bugs.
44354
44355         rename: fix another cygwin 1.5 bug
44356         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44357         checks.
44358         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44359         unnecessary cygwin workarounds.  Also work around bug with moving
44360         full directory onto an empty one.
44361         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44362
44363         rename-dest-slash: merge into rename module
44364         * modules/rename-dest-slash (Status): Mark obsolete.
44365         (Depends-on): Add rename.
44366         (Files): Let rename do it all.
44367         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44368         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44369         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44370         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44371         * lib/rename.c (rpl_rename): Update comments.
44372
44373         rename: fix cygwin 1.5.x bugs
44374         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44375         * lib/rename.c (rpl_rename): Work around them.
44376         * modules/rename (Depends-on): Add same-inode.
44377
44378         rename: fix Solaris 10 bug
44379         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44380         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44381         was the only bug.
44382
44383         rename: fix Solaris 9 bug
44384         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44385         on non-directory.  Avoid calling exit.
44386         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44387         strdup.
44388         * modules/rename-tests (Depends-on): Drop lstat.
44389         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44390         (gl_PREREQ_RENAME): Delete unused macro.
44391
44392         rename-dest-slash: fix NetBSD bug
44393         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44394         links.
44395         * modules/rename-dest-slash (Depends-on): Add same-inode.
44396
44397         rename-tests: new test, exposes several platform bugs
44398         * modules/rename-tests: New file.
44399         * tests/test-rename.h: Likewise.
44400         * tests/test-rename.c: Likewise.
44401         * doc/posix-functions/rename.texi (rename): Improve documentation,
44402         including bugs that will eventually be fixed in gnulib.
44403
44404 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44405
44406         * lib/uname.c: Include <stdlib.h>
44407         (uname): Assume version info is available.
44408
44409 2009-10-02  Jim Meyering  <meyering@redhat.com>
44410
44411         gnu-web-doc-update: correct --help output
44412         * build-aux/gnu-web-doc-update: Make --help output relevant.
44413
44414         gnu-web-doc-update: add standard options
44415         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44416
44417         gnu-web-doc-update: New module.
44418         Use this script to automatically update the on-line web documentation
44419         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44420         * modules/gnu-web-doc-update: New file, from coreutils.
44421         * build-aux/gnu-web-doc-update: New script.
44422
44423 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44424
44425         link: LoadLibrary is not needed.
44426         * lib/link.c: Use GetModuleHandle.
44427
44428 2009-10-01  Eric Blake  <ebb9@byu.net>
44429
44430         getopt: bump serial number
44431         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44432         change.
44433
44434         tests: tighten link, rmdir, and remove tests
44435         * tests/test-link.h (includes): No need to use <config.h> here.
44436         Clean up if directory hard link was created, otherwise test for
44437         trailing '.'.
44438         * tests/test-linkat.c (main): Simplify.
44439         * tests/test-remove.c (main): Enhance test for trailing '.'.
44440         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44441
44442 2009-10-01  Jim Meyering  <meyering@redhat.com>
44443
44444         maint.mk: requiring "make major" was annoying, for a "minor" release.
44445         What is intended is "stable", to contrast with alpha and beta,
44446         so require "make stable", not "make major".
44447         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44448         (get_tool_versions): Likewise.
44449         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44450
44451 2009-09-30  Ben Pfaff  <blp@gnu.org>
44452
44453         Fix broken build of replacement for Windows tmpfile().
44454         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44455         flags argument added along with the 'mkostemp' module.
44456
44457 2009-09-28  Bruno Haible  <bruno@clisp.org>
44458
44459         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44460         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44461         to 'remove_elt'.
44462         (gl_list_remove): Update.
44463         * lib/gl_list.c (gl_list_remove): Update.
44464         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44465         to 'remove_elt'.
44466         (gl_oset_remove): Update.
44467         * lib/gl_list.c (gl_oset_remove): Update.
44468         Reported by Eric Blake.
44469
44470 2009-09-28  Eric Blake  <ebb9@byu.net>
44471
44472         doc: mention yet more cygwin 1.7 status
44473         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44474         cygwin.
44475         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44476         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44477
44478         argp: fix test failure
44479         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44480         that are not upper-case.  Pass correct range to tolower.
44481
44482 2009-09-27  Jim Meyering  <meyering@redhat.com>
44483
44484         test-yesno: work around sparc-dash here-document infelicity
44485         Without this change, the literal \177 byte in a here document
44486         would make dash 0.5.5.1-3 access uninitialized memory.
44487         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44488         Instead, use a marker, "@", and filter through tr to create the desired
44489         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44490
44491 2009-09-27  Bruno Haible  <bruno@clisp.org>
44492
44493         Disable untested support for new flavours of ACLs on AIX.
44494         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44495         progress.
44496         * lib/set-mode-acl.c (qset_acl): Likewise.
44497
44498 2008-12-07  Bruno Haible  <bruno@clisp.org>
44499
44500         Add support for new flavours of ACLs on AIX. (Untested.)
44501         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44502         (file_has_acl): Add support for newer AIX.
44503         * lib/set-mode-acl.c (qset_acl): Likewise.
44504         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44505         Rainer Tammer <tammer@tammer.net>.
44506
44507 2009-09-26  Eric Blake  <ebb9@byu.net>
44508
44509         argp: fix compilation of getopt
44510         * lib/getopt.in.h (includes): Use different guard than glibc.
44511         Reported by Sergey Poznyakoff.
44512
44513         doc: mention more cygwin 1.7 status
44514         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44515         bug.
44516         * doc/posix-functions/execl.texi (execl): Likewise.
44517         * doc/posix-functions/execle.texi (execle): Likewise.
44518         * doc/posix-functions/execlp.texi (execlp): Likewise.
44519         * doc/posix-functions/execv.texi (execv): Likewise.
44520         * doc/posix-functions/execve.texi (execve): Likewise.
44521         * doc/posix-functions/execvp.texi (execvp): Likewise.
44522         * doc/glibc-functions/canonicalize_file_name.texi
44523         (canonicalize_file_name): Cygwin 1.7 now provides this.
44524         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44525         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44526         on AT_SYMLINK_NOFOLLOW.
44527
44528 2009-09-24  Eric Blake  <ebb9@byu.net>
44529
44530         test-linkat: make test more robust
44531         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44532
44533         getopt: fix inclusion guards for cygwin
44534         * modules/getopt-posix (Depends-on): Add include-next.
44535         (Makefile.am): Substitute more items in replacement header.
44536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44537         <getopt.h>.
44538         * lib/getopt.in.h (includes): Use split inclusion guard, and
44539         prefer <getopt.h> over include <unistd.h> when one is present.
44540         (option): Also override name of 'struct option'.
44541
44542         same-inode: revert prior change; it is not yet ready
44543         * NEWS: Undo mention of this change.
44544         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44545         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44546         * lib/cycle-check.c (cycle_check): Likewise.
44547         * lib/same.c (same_name): Likewise.
44548         * lib/at-func2.c (at_func2): Likewise.
44549
44550 2009-09-23  Eric Blake  <ebb9@byu.net>
44551
44552         linkat: new module
44553         * modules/linkat: New file.
44554         * lib/at-func2.c (at_func2): Likewise.
44555         * lib/linkat.c (linkat): Likewise.
44556         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44557         * lib/openat-priv.h (at_func2): Add declaration.
44558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44559         * modules/unistd (Makefile.am): Substitute them.
44560         * lib/unistd.in.h (linkat): Declare it.
44561         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44562         * doc/posix-functions/linkat.texi (linkat): Likewise.
44563         * doc/posix-functions/link.texi (link): Tweak wording.
44564         * tests/test-link.c (main): Move guts...
44565         * tests/test-link.h (test_link): ...into new file.
44566         * modules/linkat-tests: New test.
44567         * tests/test-linkat.c: Likewise.
44568         * modules/link-tests (Files): Ship new file.
44569         (Depends-on): Add stdbool.
44570
44571         dirname: add library-safe mdir_name
44572         * lib/dirname.h (mdir_name): New prototype.
44573         * lib/dirname.c (dir_name): Move guts...
44574         (mdir_name): ...to new function that avoids xalloc_die.
44575
44576         fchdir: another mingw fix
44577         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44578         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44579         on mingw (where it has not yet been ported), and make it optional
44580         elsewhere.
44581         (_gl_register_fd): Use it.
44582
44583         same-inode: make SAME_INODE tri-state, to port to mingw
44584         * NEWS: Mention this change.
44585         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44586         st_ino always being 0.
44587         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44588         * lib/cycle-check.c (cycle_check): Likewise.
44589         * lib/same.c (same_name): Likewise.
44590
44591         lstat: avoid mingw compilation error
44592         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44593         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44594         lstat ourselves.
44595         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44596         was adequate.
44597         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44598         the checks for lstat.
44599         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44600
44601         link: fix test failure on Solaris 9
44602         * lib/link.c (rpl_link): Don't assume link will catch bogus
44603         trailing slash on source.
44604
44605         test-symlinkat: enhance test
44606         * tests/test-readlink.c (main): Move guts...
44607         * tests/test-readlink.h (test_readlink): ...into new file.
44608         * tests/test-symlink.c (main): Move guts...
44609         * tests/test-symlink.h (test_symlink): ...into new file.
44610         * tests/test-symlinkat.c (main): Use new files for further
44611         coverage.
44612         (do_symlink, do_readlink): New helper functions.
44613         * modules/symlink-tests (Files): Ship new file.
44614         (Depends-on): Add stdbool.
44615         * modules/readlink-tests (Files): Ship new file.
44616         (Depends-on): Add stdbool.
44617         * modules/symlinkat-tests (Files): Use new files.
44618
44619 2009-09-23  Eric Blake  <ebb9@byu.net>
44620
44621         readlink: document portability issue with symlink length
44622         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44623         systems have bogus st_size on symlinks, and mention the
44624         areadlink-with-size module.
44625         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44626         * doc/posix-functions/readlink.texi (readlink): Mention the
44627         areadlink module, and ERANGE failure.
44628         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44629         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44630
44631         readlink: fix Solaris 9 bug with trailing slash
44632         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44633         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44634         * doc/posix-functions/readlink.texi (readlink): Document this.
44635         * modules/readlink-tests: New test.
44636         * tests/test-readlink.c: Likewise.
44637
44638         readlink: fix cygwin 1.5.x bug with return type
44639         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44640         * lib/unistd.in.h (readlink): Use ssize_t.
44641         * lib/readlink.c (readlink): Likewise.
44642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44643         * modules/unistd (Makefile.am): Substitute it.
44644         * lib/unistd.in.h (readlink): Declare replacement.
44645         * doc/posix-functions/readlink.texi (readlink): Document this.
44646
44647         symlink: use throughout gnulib
44648         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44649         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44650         symlink is not used.
44651         * modules/symlinkat (Depends-on): Add symlink.
44652         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44653         * modules/canonicalize-tests (Depends-on): Likewise.
44654         * modules/lstat-tests (Depends-on): Likewise.
44655         * modules/openat-tests (Depends-on): Likewise.
44656         * modules/remove-tests (Depends-on): Likewise.
44657         * modules/rmdir-tests (Depends-on): Likewise.
44658         * modules/unlink-tests (Depends-on): Likewise.
44659         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44660         * tests/test-canonicalize.c (symlink): Likewise.
44661         * tests/test-fstatat.c (symlink): Likewise.
44662         * tests/test-lstat.c (symlink): Likewise.
44663         * tests/test-remove.c (symlink): Likewise.
44664         * tests/test-rmdir.c (symlink): Likewise.
44665         * tests/test-unlink.c (symlink): Likewise.
44666         * tests/test-unlinkat.c (symlink): Likewise.
44667
44668         symlink: new module, for Solaris 9 bug
44669         * modules/symlink: New file.
44670         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44671         * lib/symlink.c: Likewise.
44672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44673         * modules/unistd (Makefile.am): Substitute them.
44674         * lib/unistd.in.h (symlink): Declare replacement.
44675         * MODULES.html.sh (File system functions): Mention it.
44676         * doc/posix-functions/symlink.texi (symlink): Likewise.
44677         * modules/symlink-tests: New test.
44678         * tests/test-symlink.c: Likewise.
44679
44680 2009-09-23  Bruno Haible  <bruno@clisp.org>
44681
44682         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44683         when needed.
44684         Test case: gnulib-tool --import --with-tests atexit inttypes.
44685         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44686
44687 2009-09-23  Bruno Haible  <bruno@clisp.org>
44688
44689         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44690         subcommand, not in a subshell.
44691
44692 2009-09-22  Eric Blake  <ebb9@byu.net>
44693
44694         unistd: sort replacement declarations
44695         * lib/unistd.in.h: Sort declarations.
44696
44697         open, openat: minor optimization
44698         * lib/open.c (open): If open succeeded, len is non-zero.
44699         * lib/openat.c (rpl_openat): Likewise.
44700
44701         link-follow: ensure correct result
44702         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44704         distinguish between possible failures.
44705
44706 2009-09-21  Eric Blake  <ebb9@byu.net>
44707
44708         fts: avoid compiler warning
44709         * lib/fts.c (dirent_inode_sort_may_be_useful)
44710         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44711
44712 2009-09-19  Bruno Haible  <bruno@clisp.org>
44713
44714         * lib/progreloc.c (canonicalize_file_name): New declaration.
44715
44716 2009-09-19  Eric Blake  <ebb9@byu.net>
44717
44718         link: fix quoting
44719         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44720
44721         openat: fix openat bugs on Solaris 9
44722         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44723         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44724         * modules/openat (Depends-on): Add open.
44725         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44726         * modules/fcntl-h (Makefile.am): Substitute it.
44727         * lib/fcntl.in.h (openat): Declare replacement.
44728         * doc/posix-functions/openat.texi (openat): Document this.
44729
44730         openat: move fstatat and unlinkat into correct files
44731         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44732         compiled.
44733         * lib/openat.c (fstatat, unlinkat): Move...
44734         * lib/fstatat.c (fstatat): ...into correct files.
44735         * lib/unlinkat.c (unlinkat): Likewise.
44736
44737         openat: fix unlinkat bugs on Solaris 9
44738         * lib/unlinkat.c (unlinkat): New file.
44739         * modules/openat (Depends-on): Add unlink.
44740         (Files): Distribute it.
44741         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44742         trailing slash behavior is broken.
44743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44744         * modules/unistd (Makefile.am): Substitute it.
44745         * lib/unistd.in.h (unlinkat): Declare replacement.
44746         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44747
44748         openat: fix fstatat bugs on Solaris 9
44749         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44750         stat.
44751         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44752
44753         test-unlinkat: enhance test, to expose Solaris 9 bug
44754         * tests/test-unlink.c (main): Factor guts...
44755         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44756         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44757         * tests/test-rmdir.c (main): Adjust caller.
44758         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44759         (unlinker): New helper function.
44760         (rmdirat): Enhance check.
44761         * modules/rmdir-tests (Depends-on): Add stdbool.
44762         * modules/unlink-tests (Depends-on): Likewise.
44763         (Files): Add test-unlink.h.
44764         * modules/openat-tests (Files): Likewise.
44765         (Depends-on): Add unlinkdir.
44766
44767         test-fstatat: new test, to expose Solaris 9 bugs
44768         * tests/test-stat.c (main): Factor guts...
44769         * tests/test-stat.h (test_stat_func): ...into new file.
44770         * tests/test-lstat.c (main): Factor guts...
44771         * tests/test-lstat.h (test_lstat_func): ...into new file.
44772         * tests/test-fstatat.c: New file.
44773         * modules/stat-tests (Files): Add test-stat.h.
44774         * modules/lstat-tests (Files): Add test-lstat.h.
44775         (Depends-on): Add stdbool.
44776         * modules/openat-tests (Depends-on): Add pathmax.
44777         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44778         (Makefile.am): Run new test.
44779
44780         remove: new module, for mingw and Solaris 9 bugs
44781         * modules/remove: New file.
44782         * lib/remove.c: Likewise.
44783         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44785         * modules/stdio (Makefile.am): Use them.
44786         * lib/stdio.in.h (remove): Declare replacement.
44787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44788         * doc/posix-functions/remove.texi (remove): Likewise.
44789         * modules/remove-tests: New test.
44790         * tests/test-remove.c: Likewise.
44791
44792         unlink: new module, for Solaris 9 bug
44793         * modules/unlink: New file.
44794         * lib/unlink.c: Likewise.
44795         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44797         * modules/unistd (Makefile.am): Use them.
44798         * lib/unistd.in.h (stat): Declare replacement.
44799         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44800         * doc/posix-functions/unlink.texi (unlink): Likewise.
44801         * modules/unlink-tests: New test.
44802         * tests/test-unlink.c: Likewise.
44803
44804         lstat: fix Solaris 9 bug
44805         * lib/lstat.c (lstat): Also check for trailing slash on
44806         non-symlink, non-directories.  Use stat module to simplify logic.
44807         * doc/posix-functions/lstat.texi (lstat): Document it.
44808         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44809         (configure.ac): Check for symlink.
44810         * tests/test-lstat.c (main): Add more tests.
44811
44812         stat: add as dependency to other modules
44813         * modules/chown (Depends-on): Add stat.
44814         * modules/euidaccess (Depends-on): Likewise.
44815         * modules/fchdir (Depends-on): Likewise.
44816         * modules/isdir (Depends-on): Likewise.
44817         * modules/link (Depends-on): Likewise.
44818         * modules/lstat (Depends-on): Likewise.
44819         * modules/mkdir-p (Depends-on): Likewise.
44820         * modules/modechange (Depends-on): Likewise.
44821         * modules/open (Depends-on): Likewise.
44822         * modules/readlink (Depends-on): Likewise.
44823         * modules/same (Depends-on): Likewise.
44824
44825         stat: fix Solaris 9 bug
44826         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44827         slash.
44828         * lib/stat.c (rpl_stat): Work around it.
44829         * doc/posix-functions/stat.texi (stat): Update documentation.
44830
44831         stat: new module, for mingw bug
44832         * modules/stat: New file.
44833         * lib/stat.c: Likewise.
44834         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44835         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44836         * modules/sys_stat (Makefile.am): Use them.
44837         * lib/sys_stat.in.h (stat): Declare replacement.
44838         * lib/openat.c (fstatat): Deal with lstat and stat being function
44839         macros.
44840         * modules/openat (Depends-on): Add inline.
44841         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44842         * doc/posix-functions/stat.texi (stat): Likewise.
44843         * modules/stat-tests: New test.
44844         * tests/test-stat.c: Likewise.
44845
44846 2009-09-19  Jim Meyering  <meyering@redhat.com>
44847
44848         syntax-check: detect unnecessary inclusion of canonicalize.h
44849         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44850
44851 2009-09-19  Eric Blake  <ebb9@byu.net>
44852
44853         canonicalize-lgpl: adjust clients to use correct header
44854         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44855         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44856         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44857         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44858         * lib/progreloc.c (includes): Likewise.
44859
44860 2009-09-19  Jim Meyering  <meyering@redhat.com>
44861
44862         test-posixtm.c: correct a comment
44863         * tests/test-posixtm.c: Correct first-line comment.
44864         Spotted by Eric Blake.
44865
44866 2009-09-16  Jim Meyering  <meyering@redhat.com>
44867
44868         posixtm-tests: make T const-correct; add a test case
44869         * tests/test-posixtm.c (T): Declare const.
44870         Add a test for -(2^31+1).
44871         Remove useless can-succeed-only-in-2002 test.
44872
44873         posixtm-tests: adjust the sole failing test
44874         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44875         expected output matches what mktime now produces.  Cross-checked via
44876         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44877
44878         posixtm: move #ifdef'd tests into a new module
44879         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44880         * tests/test-posixtm.c: ... this new file.
44881         * modules/posixtm-tests: New module.
44882
44883 2009-09-19  Eric Blake  <ebb9@byu.net>
44884
44885         openat: simplify use of at-func.c
44886         * lib/at-func.c (includes): Include prerequisites here, to
44887         simplify requirements on client files.
44888         * lib/openat-priv.h: Add double-inclusion guard.
44889         * lib/faccessat.c (includes): Simplify.
44890         * lib/fchmodat.c (includes): Likewise.
44891         * lib/fchownat.c (includes): Likewise.
44892         * lib/mkdirat.c (includes): Likewise.
44893         * lib/mkfifoat.c (includes): Likewise.
44894         * lib/symlinkat.c (includes): Likewise.
44895
44896         openat: allow return of fd 0
44897         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44898         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44899         unistd-safer.
44900         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44901         <fcntl.h>; this module does not leak fds.
44902         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44903         must be allowed to return 0, leaving openat_safer to add the
44904         safety.
44905         (openat_permissive): Avoid writing to just-opened fd 2 if
44906         restoring the current directory fails.
44907         * lib/openat-die.c (openat_restore_fail): Add comment.
44908         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44909         (save_cwd): Guarantee safe fd, but without use of open_safer.
44910         * tests/test-openat.c: New test.
44911         * modules/openat-tests (Files, Makefile.am): Distribute and build
44912         new file.
44913
44914         relocatable-prog-wrapper: fix build
44915         * modules/relocatable-prog-wrapper (Files): Update name of
44916         canonicalize m4 file, broken on 2009-09-17.
44917         Reported by emad hajjar <aleppos@hotmail.com>.
44918
44919 2009-09-19  Bruno Haible  <bruno@clisp.org>
44920
44921         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44922         * lib/safe-alloc.c: Likewise.
44923         Reported by Ian Beckwith <ianb@erislabs.net>.
44924
44925 2009-09-18  Bruno Haible  <bruno@clisp.org>
44926
44927         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44928         Reported by <erobles@sensacd.com.mx>.
44929
44930 2009-09-17  Eric Blake  <ebb9@byu.net>
44931
44932         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44933         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44934         slashes when checking if last component is missing.
44935         * tests/test-canonicalize.c (main): Test this.
44936
44937         canonicalize, canonicalize-lgpl: honor // if distinct from /
44938         * modules/canonicalize (Files): Add double-slash-root.m4.
44939         * modules/canonicalize-lgpl (Files): Likewise.
44940         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44941         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44942         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44943         fallback definition.
44944         (canonicalize_filename_mode): Use it to protect //.
44945         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44946         (__realpath): Likewise.
44947         * tests/test-canonicalize.c (main): Test this.
44948         * tests/test-canonicalize-lgpl.c (main): Likewise.
44949         * modules/canonicalize-tests (Depends-on): Add same-inode.
44950         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44951
44952         canonicalize-lgpl: fix glibc bug with trailing slash
44953         * m4/canonicalize-lgpl.m4: Move contents...
44954         * m4/canonicalize.m4: ...here.
44955         (gl_CANONICALIZE_LGPL): Factor realpath check...
44956         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44957         glibc 2.3.5 bug, fixed 2005-04-27.
44958         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44959         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44960         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44961         * modules/canonicalize-lgpl (Files): Manage file rename.
44962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44963         * modules/stdlib (Makefile.am): Substitute witness.
44964         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44965         is needed.
44966         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44967         replacement is required.
44968         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44969         * doc/glibc-functions/canonicalize_file_name.texi
44970         (canonicalize_file_name): Document this.
44971         * doc/posix-functions/realpath.texi (realpath): Likewise.
44972
44973         canonicalize-lgpl: reject non-directory with trailing slash
44974         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44975         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44976         catches failures in glibc 2.3.5.
44977         * tests/test-canonicalize.c (main): Likewise.
44978
44979         canonicalize-lgpl: use native realpath if it works
44980         * lib/canonicalize-lgpl.c (realpath): Guard with
44981         FUNC_REALPATH_WORKS.
44982         * lib/stdlib.in.h (realpath): Make declaration optional based on
44983         HAVE_REALPATH.
44984         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44985         native realpath works.
44986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44987         * modules/stdlib (Makefile.am): Substitute witness.
44988
44989         canonicalize, canonicalize-lgpl: use <stdlib.h>
44990         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44991         (Include): Mention <stdlib.h>.
44992         (configure.ac): Mention functions we provide.
44993         * modules/canonicalize (configure.ac): Likewise.
44994         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44995         realpath if canonicalize_file_name is missing.
44996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44997         * modules/stdlib (Makefile.am): Substitute witnesses.
44998         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44999         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45000         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45001         * NEWS: Document this.
45002         * doc/glibc-functions/canonicalize_file_name.texi
45003         (canonicalize_file_name): Likewise.
45004         * doc/posix-functions/realpath.texi (realpath): Likewise.
45005         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45006
45007         test-canonicalize: consolidate into single C program
45008         * tests/test-canonicalize.sh: Delete; move setup into...
45009         * tests/test-canonicalize.c (main): ...the program, making it
45010         easier to run in debugger.  Add some tests.
45011         * modules/canonicalize-tests (Files): Remove unused file.
45012         (Depends-on): Add progname.
45013         (configure.ac, Makefile.am): Simplify.
45014
45015         test-canonicalize-lgpl: consolidate into single C program
45016         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45017         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45018         easier to run in debugger.  Add some tests.
45019         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45020         (configure.ac, Makefile.am): Simplify.
45021
45022         canonicalize: avoid resolvepath
45023         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45024         unnecessary checks.
45025         * lib/canonicalize.c (includes): Simplify.
45026         (canonicalize_file_name): Drop resolvepath implementation.
45027         * modules/canonicalize (Depends-on): Drop filenamecat.
45028
45029         canonicalize: don't lose errno
45030         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45031         over calls to free.
45032
45033         canonicalize: simplify errno handling
45034         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45035         assignment.
45036
45037         canonicalize, canonicalize-lgpl: update module dependencies
45038         * modules/canonicalize (Depends-on): Add extensions, lstat,
45039         pathmax, stdlib.
45040         (Files): Drop pathmax.h.
45041         (configure.ac): Adjust macro name.
45042         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45043         lstat, stdlib, sys_stat.
45044         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45045         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45046         extensions.
45047         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45048         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45049         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45050         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45051         declaration, if available.
45052         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45053         we can rely on the readlink module.
45054         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45055         (includes): Use <unistd.h> unconditionally.
45056
45057 2009-09-17  Eric Blake  <ebb9@byu.net>
45058
45059         maint: make Include sections of modules consistent
45060         * modules/alloca: Use only header name; no need to list #include.
45061         * modules/alloca-opt: Likewise.
45062         * modules/arpa_inet: Likewise.
45063         * modules/canon-host: Likewise.
45064         * modules/configmake: Likewise.
45065         * modules/dirent: Likewise.
45066         * modules/eealloc: Likewise.
45067         * modules/environ: Likewise.
45068         * modules/fchdir: Likewise.
45069         * modules/fcntl: Likewise.
45070         * modules/fcntl-h: Likewise.
45071         * modules/gethrxtime: Likewise.
45072         * modules/gettime: Likewise.
45073         * modules/ignore-value: Likewise.
45074         * modules/inet_ntop: Likewise.
45075         * modules/inet_pton: Likewise.
45076         * modules/inttypes: Likewise.
45077         * modules/isnand-nolibm: Likewise.
45078         * modules/isnanf-nolibm: Likewise.
45079         * modules/mbchar: Likewise.
45080         * modules/mbfile: Likewise.
45081         * modules/mbiter: Likewise.
45082         * modules/mbuiter: Likewise.
45083         * modules/netdb: Likewise.
45084         * modules/netinet_in: Likewise.
45085         * modules/nproc: Likewise.
45086         * modules/pagealign_alloc: Likewise.
45087         * modules/poll: Likewise.
45088         * modules/printf-frexp: Likewise.
45089         * modules/pthread: Likewise.
45090         * modules/putenv: Likewise.
45091         * modules/random_r: Likewise.
45092         * modules/relocatable-prog: Likewise.
45093         * modules/search: Likewise.
45094         * modules/select: Likewise.
45095         * modules/selinux-h: Likewise.
45096         * modules/settime: Likewise.
45097         * modules/signal: Likewise.
45098         * modules/size_max: Likewise.
45099         * modules/socklen: Likewise.
45100         * modules/ssize_t: Likewise.
45101         * modules/stdarg: Likewise.
45102         * modules/stdbool: Likewise.
45103         * modules/stddef: Likewise.
45104         * modules/stdint: Likewise.
45105         * modules/stdio: Likewise.
45106         * modules/stdlib: Likewise.
45107         * modules/string: Likewise.
45108         * modules/strings: Likewise.
45109         * modules/sys_file: Likewise.
45110         * modules/sys_ioctl: Likewise.
45111         * modules/sys_select: Likewise.
45112         * modules/sys_socket: Likewise.
45113         * modules/sys_stat: Likewise.
45114         * modules/sys_time: Likewise.
45115         * modules/sys_times: Likewise.
45116         * modules/sys_utsname: Likewise.
45117         * modules/sys_wait: Likewise.
45118         * modules/sysexits: Likewise.
45119         * modules/time: Likewise.
45120         * modules/times: Likewise.
45121         * modules/tmpfile: Likewise.
45122         * modules/trim: Likewise.
45123         * modules/unistd: Likewise.
45124         * modules/wchar: Likewise.
45125         * modules/wctype: Likewise.
45126
45127 2009-09-17  Bruno Haible  <bruno@clisp.org>
45128
45129         Make getdate.y compile on QNX and NetBSD 5 / i386.
45130         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45131         TIME_T_FITS_IN_LONG_INT.
45132         * lib/getdate.y (long_time_t): New type.
45133         (relative_time): Change type of 'seconds' field to long_time_t.
45134         (get_date): Update types of local variables. Check against overflow
45135         during conversion from long_time_t to time_t.
45136         Reported by Matt Kraai <kraai@ftbfs.org>
45137         and Hasso Tepper <hasso@netbsd.org>.
45138
45139 2009-09-17  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/COPYING: Update copyright years.
45142         * modules/README: Likeiwse.
45143         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45144         Reported by Ian Beckwith <ianb@erislabs.net>.
45145
45146 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45147
45148         * users.txt: Update references for gnuit package.
45149
45150 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45151
45152         * m4/getdelim.m4: Fix typo in copyright line.
45153
45154 2009-09-17  Bruno Haible  <bruno@clisp.org>
45155
45156         * lib/atoll.c: Use the standard header with GPL copyright.
45157         * lib/argz.in.h: Likewise.
45158         * lib/glob.c: Likewise.
45159         * lib/glob-libc.h: Likewise.
45160         * lib/random_r.c: Likewise.
45161         * lib/siglist.h: Likewise.
45162         * lib/strsignal.c: Likewise.
45163         Reported by Ian Beckwith <ianb@erislabs.net>.
45164
45165 2009-09-17  Eric Blake  <ebb9@byu.net>
45166
45167         rmdir: ensure correct dependency order
45168         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45169
45170 2009-09-17  Bruno Haible  <bruno@clisp.org>
45171
45172         Disable assertion that fails on NetBSD 5 / i386.
45173         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45174         Reported by Sam Steingold <sds@gnu.org>
45175         and Hasso Tepper <hasso@netbsd.org>.
45176
45177 2009-09-16  Eric Blake  <ebb9@byu.net>
45178
45179         unlinkdir: port to mingw
45180         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45181         on which no one can unlink a directory.
45182
45183         stdlib: sort witness names
45184         * modules/stdlib (Makefile.am): Sort replacements.
45185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45186         * lib/stdlib.in.h: Likewise.
45187
45188         parse-duration-tests: avoid link failure
45189         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45190         LIBINTL.
45191         Reported by Tom G. Christensen.
45192
45193         openat-tests: ensure unlinkat behaves like rmdir
45194         * tests/test-rmdir.c (main): Factor guts...
45195         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45196         * modules/rmdir-tests (Files): Ship new file.
45197         * modules/openat-tests: New test.
45198         * tests/test-unlinkat.c: Likewise.
45199
45200         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45201         * modules/rmdir-errno (Status, Notice): Now obsolete.
45202
45203         rmdir: work around cygwin 1.5.x and mingw bugs
45204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45205         * lib/rmdir.c (rmdir): Work around it.
45206         * modules/rmdir (Status, Notice): No longer obsolete.
45207         (Files): Add dos.m4.
45208         (Depends-on): Add unistd.
45209         (configure.ac): Set witnesses.
45210         (License): Relax to LGPLv2+.
45211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45212         * modules/unistd (Makefile.am): Substitute witnesses.
45213         * lib/unistd.in.h (rmdir): Declare replacement.
45214         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45215         * modules/rmdir-tests: New tests.
45216         * tests/test-rmdir.c: Likewise.
45217
45218 2009-09-15  Eric Blake  <ebb9@byu.net>
45219
45220         fchdir: improve use of replacement functions
45221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45224         REPLACE_CLOSEDIR.
45225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45226         * modules/sys_stat (Makefile.am): Substitute correct witness.
45227         * modules/dirent (Makefile.am): Likewise.
45228         * modules/unistd (Makefile.am): Likewise.
45229         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45230         * lib/unistd.in.h (dup): Likewise.
45231         * lib/sys_stat.in.h (fstat): Likewise.
45232
45233         maint: ignore gnulib-tool temp files
45234         * .gitignore: Ignore files created during gnulib-tool --test.
45235
45236 2009-09-13  Jim Meyering  <meyering@redhat.com>
45237
45238         posixtm: don't reject a time that specify "60" as the number of seconds
45239         * lib/posixtm.c (posixtime): The code to reject invalid dates
45240         would also reject a time specified with the .60 suffix.
45241         But POSIX allows that, in order to accommodate leap seconds.
45242         So don't reject it.
45243         (main): Adjust tests accordingly.
45244         * modules/posixtm (Depends-on): Add stpcpy.
45245
45246 2009-09-11  Jim Meyering  <meyering@redhat.com>
45247
45248         announce-gen: include [$release_type] in emitted Subject:
45249         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45250         e.g., [stable] in the emitted Subject: line.
45251
45252 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45253
45254         Remove obsolete macros from several modules.
45255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45256         obsolete Autoconf macros with their modern counterparts.
45257         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45258         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45259         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45260         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45261         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45262         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45264         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45265         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45266         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45267         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45268         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45269         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45270         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45271         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45272         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45273         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45274         * m4/time_r.m4 (gl_TIME_R): Likewise.
45275         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45276         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45277         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45278
45279         Fix copyright header in build-aux scripts.
45280         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45281         recommendation.
45282         * build-aux/ncftpput-ftp: Likewise.
45283         * build-aux/update-copyright: Likewise.
45284
45285 2009-09-09  Eric Blake  <ebb9@byu.net>
45286
45287         test-link: allow Linux choice of errno
45288         * tests/test-link.c (main): Relax test for alternate error.
45289
45290         strndup: fix improper m4 caching
45291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45292         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45293         (gl_PREREQ_STRNDUP): Delete.
45294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45295         * modules/string (Makefile.am): Substitute it.
45296         * lib/string.in.h (strndup): Modernize prototype.
45297
45298         getcwd: port to mingw
45299         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45300         different from the POSIX assumptions made throughout the getcwd
45301         module; fortunately, the mingw getcwd does not need replacement.
45302         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45303         * modules/getcwd-tests: New test.
45304         * tests/test-getcwd.c: Likewise.
45305
45306         link: fix platform bugs
45307         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45308         * lib/link.c (link): Work around them.  Fix related mingw bug.
45309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45310         * modules/unistd (Makefile.am): Substitute it.
45311         * lib/unistd.in.h (link): Declare replacement.
45312         * doc/posix-functions/link.texi (link): Document this.
45313         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45314
45315         test-link: consolidate into single C program, test more cases
45316         * tests/test-link.sh: Delete.
45317         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45318         at least Cygwin and Solaris.
45319         * modules/link-tests (Files): Remove unused file.
45320         (Depends-on): Add errno, sys_stat.
45321         (Makefile.am): Simplify.
45322
45323 2009-09-08  Bruno Haible  <bruno@clisp.org>
45324
45325         Work around towlower, towupper bug on mingw.
45326         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45327         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45328         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45329         * doc/posix-functions/towupper.texi: Likewise.
45330         Reported by Eric Blake.
45331
45332 2009-09-08  Jim Meyering  <meyering@redhat.com>
45333
45334         build: don't try to run autoheader if we don't use it
45335         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45336         is not used in configure.ac.
45337
45338 2009-09-08  Eric Blake  <ebb9@byu.net>
45339
45340         euidaccess: fix compilation error
45341         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45342
45343         rawmemchr: relax license
45344         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45345         okay.
45346         Reported by Jim Meyering.
45347
45348         mkfifoat: new module
45349         * modules/mkfifoat: New file.
45350         * lib/mkfifoat.c: Likewise.
45351         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45353         * modules/sys_stat (Makefile.am): Use them.
45354         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45355         * MODULES.html.sh (File system functions): Mention module.
45356         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45357         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45358         * modules/mkfifoat-tests: New test.
45359         * tests/test-mkfifoat.c: Likewise.
45360
45361         strchrnul: relax license
45362         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45363         okay.
45364         Reported by Jim Meyering.
45365
45366 2009-09-08  Eric Blake  <ebb9@byu.net>
45367
45368         fstatat: fix compilation on Solaris
45369         * lib/fstatat.c (includes): Add fcntl.h.
45370         Reported by Pádraig Brady.
45371
45372 2009-09-07  Eric Blake  <ebb9@byu.net>
45373
45374         rename: modernize replacement
45375         * modules/rename (Depends-on): Add stdio.
45376         (configure.ac): Declare witness.
45377         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45378         stdio take care of replacement.
45379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45380         * modules/stdio (Makefile.am): Substitute them.
45381         * lib/stdio.in.h (rename): Declare replacement.
45382         * lib/rename.c (includes): Allow cross-compilation to non-windows
45383         machines.
45384         * doc/posix-functions/rename.texi (rename): Improve
45385         documentation.
45386
45387         stdio: sort witness names
45388         * modules/stdio (Makefile.am): Sort replacements.
45389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45390         * lib/stdio.in.h: Likewise.
45391
45392         getcwd: minor cleanups
45393         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45394         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45395
45396         openat: provide more convenience names
45397         * modules/faccessat (configure.ac): Add C witness.
45398         * lib/unistd.in.h (readlinkat): Fix typo.
45399         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45400         convenience wrappers.
45401         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45402         wrappers in syntax checks.
45403
45404 2009-09-06  Eric Blake  <ebb9@byu.net>
45405
45406         doc: fix comments in recent patches
45407         * lib/faccessat.c: Mention correct function.
45408         * lib/fchmodat.c: Likewise.
45409         * lib/fchownat.c: Likewise.
45410         * lib/symlinkat.c: Likewise.
45411         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45412         constants.
45413
45414         faccessat, symlinkat: continue cleanup of previous patch
45415         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45416         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45417         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45419         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45420         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45421         set.
45422
45423 2009-09-06  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45426         (fstatat): Declare if GNULIB_FSTATAT is set.
45427         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45428         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45429         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45430         * modules/fcntl-h (Files): Remove m4/openat.m4.
45431         * modules/sys_stat (Files): Remove m4/openat.m4.
45432         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45433         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45434         * modules/unistd (Files): Remove m4/openat.m4.
45435         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45436         GNULIB_OPENAT.
45437         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45438         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45440         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45441         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45442         gl_OPENAT_DEFAULTS.
45443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45444         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45445         Don't require gl_OPENAT_DEFAULTS.
45446         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45447         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45448         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45449         (gl_OPENAT_DEFAULTS): Remove macro.
45450
45451 2009-09-06  Bruno Haible  <bruno@clisp.org>
45452
45453         * modules/openat (configure.ac): Remove unneeded witness.
45454
45455 2009-09-06  Bruno Haible  <bruno@clisp.org>
45456
45457         Set errno to ENOSYS when a function is entirely unsupported.
45458         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45459         EOPNOTSUPP.
45460         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45461         * modules/chown (Depends-on): Remove errno.
45462
45463 2009-09-06  Bruno Haible  <bruno@clisp.org>
45464
45465         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45466
45467 2009-09-06  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45470
45471 2009-09-06  Ben Pfaff  <blp@gnu.org>
45472             Bruno Haible  <bruno@clisp.org>
45473
45474         Work around a glibc bug in strtok_r.
45475         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45476         Undefine if UNDEFINE_STRTOK_R is set.
45477         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45479         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45481         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45482         UNDEFINE_STRTOK_R.
45483         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45484
45485 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45486
45487         exclude: minor fix
45488         * lib/exclude.c: Include wctype.h
45489
45490 2009-09-06  Akim Demaille  <demaille@gostai.com>
45491
45492         bootstrap: improve error message
45493         * build-aux/bootstrap (find_tool): Upon failure, report the list
45494         of candidates.
45495         Honor the initial value of the envvar.
45496
45497 2009-09-05  Eric Blake  <ebb9@byu.net>
45498
45499         symlinkat: new module
45500         * modules/symlinkat: New file.
45501         * lib/symlinkat.c: Likewise.
45502         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45504         * modules/unistd (Makefile.am): Use them.
45505         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45506         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45507         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45508         * MODULES.html.sh (File system functions): Mention module.
45509         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45510         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45511         * modules/symlinkat-tests: New test.
45512         * tests/test-symlinkat.c: Likewise.
45513
45514         test-openat-safer: add more checks
45515         * tests/test-openat-safer.c (main): Check more code paths.
45516
45517 2009-09-05  Jim Meyering  <meyering@redhat.com>
45518
45519         syntax-check: detect unnecessary inclusion of openat.h
45520         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45521
45522 2009-09-05  Bruno Haible  <bruno@clisp.org>
45523
45524         Support towlower, towupper.
45525         * doc/posix-functions/towlower.texi: Mention module wctype.
45526         * doc/posix-functions/towupper.texi: Likewise.
45527         * lib/wctype.in.h (towlower, towupper): New functions.
45528         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45529         (ASSERT): New macro.
45530         (e): New variable.
45531         (main): Test also towlower, towupper. Test WEOF argument.
45532         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45533
45534 2009-09-05  Bruno Haible  <bruno@clisp.org>
45535
45536         Fix conversion behaviour when the input is invalid.
45537         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45538         mark occurring in first pass of indirect conversion.
45539         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45540         input.
45541         Found by clang's static analyzer.
45542
45543 2009-09-05  Bruno Haible  <bruno@clisp.org>
45544
45545         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45546         where direct conversion is possible.
45547
45548 2009-09-04  Eric Blake  <ebb9@byu.net>
45549
45550         openat: fail with ENOENT on empty name
45551         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45552         buffer.
45553
45554         link-follow: fix logic bug in prior patch
45555         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45556         reversed sense of yes and no in prior patch.  Avoid confusing
45557         compilation failure with desired semantics.
45558
45559         link-follow: accommodate mingw and cross-compilation
45560         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45561         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45562         cross-compilation results to -1, to make linkat easier to
45563         implement when cross-compiling.  Trivially support mingw.
45564         * modules/link-follow (configure.ac): Call new name.
45565         * NEWS: Mention this.
45566
45567 2009-09-03  Eric Blake  <ebb9@byu.net>
45568
45569         faccessat: compile replacement
45570         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45571         needed.
45572
45573         fts: fix compilation error
45574         * lib/fts.c (includes): Re-add "openat.h", for
45575         openat_needs_fchdir.
45576
45577         faccessat: new module
45578         * modules/faccessat: New file.
45579         * lib/faccessat.c: Likewise.
45580         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45582         * modules/unistd (Makefile.am): Use it.
45583         * lib/unistd.in.h (faccessat): Declare it.
45584         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45585         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45586         * MODULES.html.sh (File system functions): Mention it.
45587         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45588         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45589
45590         euidaccess: prefer POSIX over non-standard implementation
45591         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45592         * lib/euidaccess.c (euidaccess): Use it if available.
45593
45594         openat: make template easier to use
45595         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45596         AT_FUNC_F2 to be undefined.
45597         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45598         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45599         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45600         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45601         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45602         Likewise.
45603         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45604         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45605         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45606         Likewise.
45607
45608         openat: declare in POSIX headers
45609         * NEWS: Mention this.
45610         * modules/openat (configure.ac): Declare witnesses.
45611         (Depends-on): Add fcntl-h, sys_stat, unistd.
45612         (Include): Mention correct headers.
45613         * modules/fcntl-h (Depends-on): Add link-warning.
45614         (Files): Add openat.m4.
45615         (Makefile.am): Substitute witnesses.
45616         * modules/sys_stat (Files, Makefile.am): Likewise.
45617         * modules/unistd (Files, Makefile.am): Likewise.
45618         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45619         (gl_OPENAT_DEFAULTS): New macro.
45620         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45622         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45623         (SYS_STAT_H): Remove unused variable.
45624         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45625         * lib/fcntl--.h (includes): Remove unneeded header.
45626         * lib/openat-safer.c (includes): Likewise.
45627         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45628         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45629         appropriate headers.
45630         (__OPENAT_PREFIX): Delete.
45631         * lib/fcntl.in.h (openat): Provide declaration.
45632         (AT_FDCWD): Fix Solaris bug.
45633         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45634         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45635         * lib/fchmodat.c (includes):  Adjust to find declaration.
45636         * lib/fchownat.c (includes): Likewise.
45637         * lib/mkdirat.c (includes): Likewise.
45638         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45639         still visible.
45640
45641 2009-09-02  Eric Blake  <ebb9@byu.net>
45642
45643         errno: use consistently
45644         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45645         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45646         * lib/canonicalize.c (ELOOP): Likewise.
45647         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45648         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45649         * lib/lchown.c (EOPNOTSUPP): Likewise.
45650         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45651         * lib/savewd.c (ESTALE): Likewise.
45652         * lib/settime.c (ENOSYS): Likewise.
45653         * lib/utimens.c (ENOSYS): Likewise.
45654         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45655         * lib/chdir-safer.c (ELOOP): Likewise.
45656         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45657         * modules/c-stack (Depends-on): Add errno.
45658         * modules/canonicalize (Depends-on): Likewise.
45659         * modules/chdir-safer (Depends-on): Likewise.
45660         * modules/fdopendir (Depends-on): Likewise.
45661         * modules/inet_ntop (Depends-on): Likewise.
45662         * modules/inet_pton (Depends-on): Likewise.
45663         * modules/lchown (Depends-on): Likewise.
45664         * modules/openat (Depends-on): Likewise.
45665         * modules/savewd (Depends-on): Likewise.
45666         * modules/settime (Depends-on): Likewise.
45667         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45668
45669         fts: avoid leaking fds
45670         * modules/fts (Depends-on): Add cloexec.
45671         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45672         flag.
45673
45674         fts: make directory fds more robust
45675         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45676         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45677
45678         backupfile, chdir-long, fts, savedir: make safer
45679         * lib/backupfile.c (includes): Use "dirent--.h", since
45680         numbered_backup can write to stderr during readdir.
45681         * lib/savedir.c (includes): Likewise.
45682         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45683         emulation can write to stderr on failure.
45684         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45685         * lib/getcwd.c: Document why opendir_safer is unused.
45686         * lib/glob.c: Likewise.
45687         * lib/scandir.c: Likewise.
45688         * lib/openat-proc.c: Likewise, for open_safer.
45689         * modules/backupfile (Depends-on): Add dirent-safer.
45690         * modules/savedir (Depends-on): Likewise.
45691         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45692         * modules/chdir-long (Depends-on): Add openat-safer.
45693
45694         openat-safer: new module
45695         * modules/openat-safer: New file.
45696         * lib/openat-safer.c: Likewise.
45697         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45698         * lib/fcntl-safer.h (openat_safer): Declare.
45699         * lib/fcntl--.h (openat): Override.
45700         * MODULES.html.sh (File descriptor based I/O): Mention it.
45701         * lib/openat.h: Add double-inclusion guards.
45702         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45703         "fcntl--.h", so we can implement openat.
45704         * modules/openat-safer-tests: New test.
45705         * tests/test-openat-safer.c: New file.
45706
45707         dirent-safer: new module
45708         * modules/dirent-safer: New file.
45709         * lib/dirent--.h: Likewise.
45710         * lib/dirent-safer.h: Likewise.
45711         * lib/opendir-safer.c: Likewise.
45712         * m4/dirent-safer.m4: Likewise.
45713         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45714         * modules/dirent-safer-tests: New test.
45715         * tests/test-dirent-safer.c: New file.
45716         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45717
45718         fdopendir: optimize on mingw
45719         * lib/unistd.in.h (_gl_directory_name): New prototype.
45720         * lib/fchdir.c (_gl_directory_name): Implement it.
45721         (fchdir): Use it to simplify implementation.
45722         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45723         fchdir, when available, to avoid calling [f]chdir().
45724
45725         fdopendir: split into its own module
45726         * lib/openat.c (fdopendir): Move...
45727         * lib/fdopendir.c: ...into new file.
45728         * modules/fdopendir: New module.
45729         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45730         * modules/openat (Depends-on): Add fdopendir.
45731         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45732         fdopendir here.
45733         * modules/savedir (Depends-on): Only need fdopendir, not full
45734         openat.
45735         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45736         * lib/openat.h (fdopendir): Drop prototype.
45737         * lib/dirent.in.h (fdopendir): Provide prototype.
45738         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45739         * modules/dirent (Makefile.am): Substitute them.
45740         * MODULES.html.sh (File system functions): Mention it.
45741         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45742         * modules/fdopendir-tests: New file.
45743         * tests/test-fdopendir.c: Likewise.
45744
45745         fchdir: use more consistent macro convention
45746         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45747         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45748         REPLACE_FCHDIR, rather than relying on config.h macros.
45749         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45750         inside a single make-time REPLACE_FCHDIR block, rather than using
45751         the config.h FCHDIR_REPLACEMENT.
45752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45753         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45754         Manage fstat replacement.
45755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45756         REPLACE_FCHDIR.
45757         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45758         (Makefile.am): Substitute REPLACE_FCHDIR.
45759         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45760         FCHDIR_REPLACEMENT.
45761         * lib/dup-safer.c (dup_safer): Likewise.
45762         * lib/dup2.c (rpl_dup2): Likewise.
45763         * lib/dup3.c (rpl_dup3): Likewise.
45764         * lib/open.c (rpl_open): Likewise.
45765
45766         fchdir: simplify error handling, and support dup3
45767         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45768         stdbool, malloc-posix, realloc-posix.
45769         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45770         (ensure_dirs_slot): Return false on allocation failure.
45771         (rpl_dup2): Delete.
45772         (_gl_register_dup): New function.
45773         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45774         (_gl_register_fd): Close fd on allocation failure.
45775         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45776         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45777         prototype.
45778         (rpl_dup2_fchdir): Delete prototype.
45779         * lib/open.c (open): Update caller.
45780         * lib/dup2.c (dup2): Track fchdir metadata.
45781         * lib/dup3.c (dup3): Likewise.
45782         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45784
45785 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45786
45787         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45788         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45789         don't pass arguments to AC_OUTPUT.
45790
45791 2009-09-02  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/mkdtemp (License): Relicense under LGPLv2+.
45794         Reported by Paolo Bonzini.
45795
45796 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45797
45798         Replace uses of obsolete autoconf macros in Jim's modules.
45799         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45800         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45801         can evoke a warning from autoconf when run with -Wobsolete
45802         enabled.  They were declared obsolete for good reasons (see
45803         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45804         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45805         should not continue using the deprecated macros.
45806         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45807         obsolete Autoconf macros with modern counterparts.
45808         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45809         * m4/dos.m4 (gl_AC_DOS): Likewise.
45810         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45811         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45812         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45813         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45814         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45815         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45816         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45817         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45818         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45819         Likewise.
45820         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45821         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45822         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45823         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45824         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45825         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45826
45827 2009-09-01  Eric Blake  <ebb9@byu.net>
45828
45829         fchdir: fix off-by-one bug in previous patch
45830         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45831         (_gl_unregister_fd): Delete useless if.
45832
45833 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45834
45835         maint.mk: sort the list of syntax-check rules
45836         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45837         easier to get a sense of progress when the rules are run sequentially
45838         and take a long time.
45839
45840 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45841
45842         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45843         * modules/netinet_in: Likewise.
45844         * modules/sys_file: Likewise.
45845         * modules/sys_ioctl: Likewise.
45846         * modules/sys_select: Likewise.
45847         * modules/sys_socket: Likewise.
45848         * modules/sys_stat: Likewise.
45849         * modules/sys_time: Likewise.
45850         * modules/sys_times: Likewise.
45851         * modules/sys_utsname: Likewise.
45852         * modules/sys_wait: Likewise.
45853
45854 2009-09-01  Jim Meyering  <meyering@redhat.com>
45855
45856         fts: help ensure that return values are not ignored
45857         * lib/fts_.h (__GNUC_PREREQ): Define.
45858         (__attribute_warn_unused_result__): Define.
45859         (fts_children, fts_close, fts_open, fts_read): Declare with
45860         __attribute_warn_unused_result__.
45861
45862         fts: fts_close now fails also when closing a dir file descriptor fails
45863         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45864         and propagate to caller, along with errno.
45865
45866         announce-gen: correct formatting in --help output
45867         * build-aux/announce-gen (usage): Move the one-line description in
45868         --help output "up", to where it belongs, just after Usage:.
45869
45870 2009-08-31  Eric Blake  <ebb9@byu.net>
45871
45872         fchdir: port to mingw
45873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45874         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45875         opened, then use a substitute.
45876         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45877         replacement.
45878         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45879         (_gl_register_fd): No need to check stat if open already filters
45880         all directories.
45881         (fchdir): Fix error condition to match POSIX.
45882         * modules/fchdir (Depends-on): Add sys_stat.
45883         * doc/posix-functions/open.texi (open): Document the limitation.
45884         * modules/fchdir-tests: New file.
45885         * tests/test-fchdir.c: Likewise.
45886
45887         canonicalize: allow cross-testing from cygwin to mingw
45888         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45889         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45890         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45891         Likewise.
45892         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45893         target does not support symlinks.
45894         * tests/test-canonicalize-lgpl.sh: Likewise.
45895
45896         chown: avoid compilation warning on mingw
45897         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45898         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45899         mingw.
45900         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45901         * modules/chown (Depends-on): Add errno.
45902
45903 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45904
45905         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45906         command.
45907
45908 2009-08-31  Jim Meyering  <meyering@redhat.com>
45909
45910         canonicalize: remove useless initialization
45911         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45912         initialization of local, "end".
45913
45914 2009-08-30  Bruno Haible  <bruno@clisp.org>
45915
45916         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45917         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45918         ENOSYS.
45919
45920 2009-08-30  Bruno Haible  <bruno@clisp.org>
45921
45922         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45923         /usr/xpg4/bin/tr when it exists.
45924         * tests/test-pipe-filter-gi1.sh: Likewise.
45925
45926 2009-08-30  Bruno Haible  <bruno@clisp.org>
45927
45928         Work around deficient /usr/bin/id program on Solaris.
45929         * tests/test-file-has-acl.sh (ID): New variable.
45930         * tests/test-set-mode-acl.sh (ID): Likewise.
45931         * tests/test-copy-acl.sh (ID): Likewise.
45932         * tests/test-copy-file.sh (ID): Likewise.
45933
45934 2009-08-30  Bruno Haible  <bruno@clisp.org>
45935
45936         New module 'xstriconveh'.
45937         * lib/xstriconveh.h: New file.
45938         * lib/xstriconveh.c: New file.
45939         * modules/xstriconveh: New file.
45940
45941 2009-08-30  Bruno Haible  <bruno@clisp.org>
45942
45943         Make it easier to use mem_cd_iconveh.
45944         * lib/striconveh.h (iconveh_t): New type.
45945         (iconveh_open, iconveh_close): New declarations.
45946         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45947         with a single 'const iconveh_t *' argument.
45948         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45949         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45950         with a single 'const iconveh_t *' argument.
45951         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45952         * tests/test-striconveh.c (main): Update.
45953         * NEWS: Mention the change.
45954
45955 2009-08-30  Bruno Haible  <bruno@clisp.org>
45956
45957         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45958         problem.
45959
45960 2009-08-30  Bruno Haible  <bruno@clisp.org>
45961
45962         Work around iconv_open problem on Solaris.
45963         * lib/iconv_open-solaris.gperf: New file.
45964         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45965         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45966         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45967         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45968         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45969         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45970
45971 2009-08-29  Jim Meyering  <meyering@redhat.com>
45972
45973         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45974         * top/maint.mk (cvs-check): Remove target; it was just an alias
45975         to the better-named vc-diff-check.
45976         (maintainer-distcheck): Remove rule.  It was used only from
45977         the (alpha/beta/major) target, and all of its commands but one
45978         were coreutils-specific.
45979         (vc-dist): Remove rule.
45980         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45981         Run vc-diff-check, not vc-dist.
45982         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45983
45984 2009-08-27  Bruno Haible  <bruno@clisp.org>
45985
45986         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45987         of 0.
45988
45989 2009-08-27  Bruno Haible  <bruno@clisp.org>
45990
45991         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45992         compilers.
45993         * doc/func.texi: Document the SunPRO C bug.
45994
45995 2009-08-27  Bruno Haible  <bruno@clisp.org>
45996
45997         Fix link error on Solaris.
45998         * tests/test-parse-duration.c (xstrdup): Remove function.
45999
46000 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46001
46002         ignore-value: handle pointer types, too
46003         * lib/ignore-value.h (__attribute__): Remove definition.
46004         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46005         of a more concise and more-often effective "(void) i" statement.
46006         (ignore_ptr): New function to suppress warnings from functions that
46007         return pointers, and to make it explicit that one function doesn't
46008         handle all cases.
46009
46010 2009-08-25  Bruno Haible  <bruno@clisp.org>
46011
46012         dup2: work around a Linux bug.
46013         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46014         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46015         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46016         Reported by Simon Josefsson.
46017
46018 2009-08-25  Jim Meyering  <meyering@redhat.com>
46019
46020         libguestfs uses gnulib
46021         * users.txt: Add libguestfs.
46022
46023 2009-08-24  Eric Blake  <ebb9@byu.net>
46024
46025         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46026         * lib/pipe2.c (includes): Add binary-io.h.
46027         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46028
46029 2009-08-24  Bruno Haible  <bruno@clisp.org>
46030
46031         Tolerate declared but missing accept4 syscall.
46032         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46033         available.
46034         * lib/sys_socket.in.h (accept4): If the function is already present,
46035         override it.
46036         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46037         * modules/accept4 (Makefile.am): Compile accept4.c always.
46038         Reported by Paolo Bonzini and Eric Blake.
46039
46040 2009-08-23  Bruno Haible  <bruno@clisp.org>
46041
46042         New module 'accept4'.
46043         * lib/sys_socket.in.h (accept4): New declaration.
46044         * lib/accept4.c: New file.
46045         * m4/accept4.m4: New file.
46046         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46047         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46048         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46049         HAVE_ACCEPT4.
46050         * modules/accept4: New file.
46051         * doc/glibc-functions/accept4.texi: Mention the new module.
46052
46053 2009-08-24  Jim Meyering  <meyering@redhat.com>
46054
46055         progname: also set global program_invocation_name, when possible
46056         Before this change, a libtool-enabled program that calls glibc's
46057         error function would report the program name as
46058         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46059         * modules/progname (configure.ac): Check for a declaration of
46060         program_invocation_name.
46061         * lib/progname.c:  Include <errno.h>.
46062         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46063         Set program_invocation_name.
46064
46065 2009-08-23  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/dup3.c: Include <string.h>.
46068
46069 2009-08-23  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46072         * lib/pipe2.c (pipe2): Likewise.
46073         Suggested by Eric Blake.
46074
46075 2009-08-23  Bruno Haible  <bruno@clisp.org>
46076
46077         Tolerate declared but missing dup3 syscall.
46078         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46079         * lib/unistd.in.h (dup3): If the function is already present,
46080         override it.
46081         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46082         * modules/dup3 (Makefile.am): Compile dup3.c always.
46083         Reported by Paolo Bonzini.
46084
46085 2009-08-23  Bruno Haible  <bruno@clisp.org>
46086
46087         Tolerate declared but missing pipe2 syscall.
46088         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46089         available.
46090         * lib/unistd.in.h (pipe2): If the function is already present,
46091         override it.
46092         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46093         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46094         Reported by Paolo Bonzini.
46095
46096 2009-08-23  Bruno Haible  <bruno@clisp.org>
46097
46098         * lib/pipe2.c (pipe2): Move #ifs inside function.
46099
46100 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46101
46102         quotearg: document limitations of quote_these_too
46103         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46104         those limitations are created.
46105         * lib/quotearg.h (set_char_quoting): Document that digits and
46106         letters that are special after backslash are not permitted.
46107         (quotearg_char): Cross-reference set_char_quoting documentation.
46108
46109 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46110
46111         quotearg: implement custom_quoting_style
46112         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46113         right_quote fields.
46114         (set_custom_quoting): New public function.
46115         (quotearg_buffer_restyled): Add left_quote and right_quote
46116         arguments, handle them very much like locale quoting, and update
46117         all uses.
46118         (quotearg_n_custom): New public function.
46119         (quotearg_n_custom_mem): New public function.
46120         (quotearg_custom): New public function.
46121         (quotearg_custom_mem): New public function.
46122         * lib/quotearg.h: Prototype and document new public functions.
46123         (enum quoting_style): For escape_quoting_style and
46124         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46125         ignored even though they're otherwise like c_quoting_style.
46126         Add custom_quoting_style member and document with comparison to
46127         clocale_quoting_style.
46128         * tests/test-quotearg.c (custom_quotes): New array.
46129         (custom_results): New array.
46130         (main): Extend to test custom quoting.
46131
46132 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46133
46134         quotearg: fix right quote escaping when it's in quote_these_too
46135         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46136         quote, be sure to prepend only one backslash.
46137         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46138         (main): Test it.
46139
46140 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46141
46142         quotearg-tests: test escaping of embedded locale quotes
46143         * tests/test-quotearg.c (struct result_strings): Add member for
46144         new input.
46145         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46146         (inputs): Add new input.
46147         (results_g): Add expected results.
46148         (flag_results): Likewise.
46149         (locale_results): Likewise.
46150         (compare_strings): Check those.
46151
46152 2009-08-23  Bruno Haible  <bruno@clisp.org>
46153
46154         Tests for module 'dup3'.
46155         * modules/dup3-tests: New file.
46156         * tests/test-dup3.c: New file.
46157
46158         New module 'dup3'.
46159         * lib/unistd.in.h (dup3): New declaration.
46160         * lib/dup3.c: New file.
46161         * m4/dup3.m4: New file.
46162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46163         HAVE_DUP3.
46164         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46165         * modules/dup3: New file.
46166         * doc/glibc-functions/dup3.texi: Mention the new module.
46167
46168 2009-08-23  Bruno Haible  <bruno@clisp.org>
46169
46170         Tweak the dup2 test.
46171         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46172         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46173         the test file is still empty. Fix argument order of lseek.
46174
46175 2009-08-23  Bruno Haible  <bruno@clisp.org>
46176
46177         Avoid test link errors when the modules getopt-gnu, gettext are used.
46178         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46180
46181 2009-08-23  Bruno Haible  <bruno@clisp.org>
46182
46183         Fix getdtablesize() on mingw.
46184         * lib/getdtablesize.c (getdtablesize): Implement differently.
46185         * lib/unistd.in.h (getdtablesize): Improve comment.
46186
46187 2009-08-23  Bruno Haible  <bruno@clisp.org>
46188
46189         New module 'mkostemp'.
46190         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46191         * lib/stdlib.in.h (mksotemp): New declaration.
46192         * lib/mkostemp.c: New file, from glibc with modifications.
46193         * lib/tempname.h (GT_FILE): Remove outdated comment.
46194         (gen_tempname): Add flags argument.
46195         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46196         (__GT_FILE): Map to 1.
46197         (small_open, large_open): Remove macros.
46198         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46199         * lib/mkstemp.c (mkstemp): Update.
46200         * lib/mkdtemp.c (mkdtemp): Likewise.
46201         * m4/mkostemp.m4: New file.
46202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46203         HAVE_MKOSTEMP.
46204         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46205         HAVE_MKOSTEMP.
46206         * modules/mkostemp: New file, based on modules/mkstemp.
46207         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46208         * NEWS: Mention the change.
46209
46210 2009-08-23  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46213         Reported by Eric Blake.
46214
46215 2009-08-23  Bruno Haible  <bruno@clisp.org>
46216
46217         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46218         Reported by Eric Blake.
46219
46220 2009-08-23  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46223         * modules/pipe2 (Depends-on): Likewise.
46224
46225 2009-08-23  Eric Blake  <ebb9@byu.net>
46226
46227         fcntl-h: add O_TTY_INIT support
46228         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46229         * tests/test-fcntl-h.c (o): Test it.
46230         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46231
46232         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46233         * modules/fcntl: Move <fcntl.h> header replacement...
46234         * modules/fcntl-h: ...to new name, so as not to collide with
46235         like-named function.
46236         * tests/test-fcntl.c: Rename...
46237         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46238         * modules/fcntl-tests: Rename...
46239         * modules/fcntl-h-tests: ...to this.  Update test file name.
46240         * modules/chdir-long (Depends-on): Update clients.
46241         * modules/chdir-safer (Depends-on): Likewise.
46242         * modules/fcntl-safer (Depends-on): Likewise.
46243         * modules/fts (Depends-on): Likewise.
46244         * modules/mkancesdirs (Depends-on): Likewise.
46245         * modules/mkdir-p (Depends-on): Likewise.
46246         * modules/open (Depends-on): Likewise.
46247         * modules/savewd (Depends-on): Likewise.
46248         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46249         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46250
46251 2009-08-22  Bruno Haible  <bruno@clisp.org>
46252
46253         * modules/binary-io (License): Relicense under LGPL.
46254         * modules/pipe2 (License): Likewise.
46255
46256 2009-08-22  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46259         return value.
46260         * lib/pipe-filter-gi.c (filter_init): Likewise.
46261         Reported by Eric Blake.
46262
46263 2009-08-22  Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46266         * modules/pipe (Depends-on): Add pipe2.
46267
46268 2009-08-22  Bruno Haible  <bruno@clisp.org>
46269
46270         Tests for module 'pipe2'.
46271         * modules/pipe2-tests: New file.
46272         * tests/test-pipe2.c: New file.
46273
46274         New module 'pipe2'.
46275         * lib/unistd.in.h (pipe2): New declaration.
46276         * lib/pipe2.c: New file.
46277         * m4/pipe2.m4: New file.
46278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46279         HAVE_PIPE2.
46280         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46281         * modules/pipe2: New file.
46282         * doc/glibc-functions/pipe2.texi: Mention the new module.
46283
46284 2009-08-22  Bruno Haible  <bruno@clisp.org>
46285
46286         Reference some new glibc functions.
46287         * doc/glibc-functions/accept4.texi: New file.
46288         * doc/glibc-functions/dup3.texi: New file.
46289         * doc/glibc-functions/mkostemp.texi: New file.
46290         * doc/glibc-functions/pipe2.texi: New file.
46291         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46292         (Glibc sys/socket.h): Refer to accept4.
46293         (Glibc unistd.h): Refer to dup3, pipe2.
46294         Reported by Eric Blake.
46295
46296 2009-08-22  Jim Meyering  <meyering@redhat.com>
46297             Bruno Haible  <bruno@clisp.org>
46298
46299         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46300         This makes it so packages using automake-1.11's silent-rules option
46301         can print e.g., a single "GEN    configmake.h" line, rather than
46302         the 30+ statements that perform the job.  If you want to see the
46303         actual commands, you can still run "make V=1".
46304         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46305         so that make output is abbreviated when those variables are defined
46306         appropriately.
46307         * modules/argz: Likewise.
46308         * modules/arpa_inet: Likewise.
46309         * modules/byteswap: Likewise.
46310         * modules/configmake: Likewise.
46311         * modules/dirent: Likewise.
46312         * modules/errno: Likewise.
46313         * modules/fcntl: Likewise.
46314         * modules/float: Likewise.
46315         * modules/fnmatch: Likewise.
46316         * modules/getopt-posix: Likewise.
46317         * modules/glob: Likewise.
46318         * modules/iconv_open: Likewise.
46319         * modules/inttypes: Likewise.
46320         * modules/localcharset: Likewise.
46321         * modules/locale: Likewise.
46322         * modules/math: Likewise.
46323         * modules/netdb: Likewise.
46324         * modules/netinet_in: Likewise.
46325         * modules/poll: Likewise.
46326         * modules/posix_spawnp-tests: Likewise.
46327         * modules/sched: Likewise.
46328         * modules/search: Likewise.
46329         * modules/selinux-h: Likewise.
46330         * modules/signal: Likewise.
46331         * modules/spawn: Likewise.
46332         * modules/stdarg: Likewise.
46333         * modules/stdbool: Likewise.
46334         * modules/stddef: Likewise.
46335         * modules/stdint: Likewise.
46336         * modules/stdio: Likewise.
46337         * modules/stdlib: Likewise.
46338         * modules/string: Likewise.
46339         * modules/strings: Likewise.
46340         * modules/sys_file: Likewise.
46341         * modules/sys_ioctl: Likewise.
46342         * modules/sys_select: Likewise.
46343         * modules/sys_socket: Likewise.
46344         * modules/sys_stat: Likewise.
46345         * modules/sys_time: Likewise.
46346         * modules/sys_times: Likewise.
46347         * modules/sys_utsname: Likewise.
46348         * modules/sys_wait: Likewise.
46349         * modules/sysexits: Likewise.
46350         * modules/time: Likewise.
46351         * modules/unistd: Likewise.
46352         * modules/wchar: Likewise.
46353         * modules/wctype: Likewise.
46354
46355 2009-08-22  Jim Meyering  <meyering@redhat.com>
46356
46357         announce-gen: detect write failure
46358         * build-aux/announce-gen: Add Coda at end.
46359         Remove equivalent-but-more-verbose block at top.
46360
46361 2009-08-19  Akim Demaille  <demaille@gostai.com>
46362
46363         bootstrap: --help to stdout.
46364         * bootstrap (usage): Don't send --help to stderr.
46365         Use a here doc instead of a long string.
46366
46367 2009-08-21  Eric Blake  <ebb9@byu.net>
46368
46369         test-popen-safer: split from test-popen
46370         * tests/test-popen.c (main): Move...
46371         * tests/test-popen.h: ...into new file.
46372         * tests/test-popen-safer2.c: New file.
46373         * modules/popen-tests (Files): Add test-popen.h.
46374         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46375         Suggested by Bruno Haible.
46376
46377         test-fcntl-safer: split from test-open
46378         * tests/test-open.c (main): Move...
46379         * tests/test-open.h: ...into new file.
46380         * tests/test-fcntl-safer.c: New file.
46381         * modules/open-tests (Files): Add test-open.h.
46382         * modules/fcntl-safer-tests: New file.
46383         Suggested by Bruno Haible.
46384
46385         test-fopen-safer: split from test-fopen
46386         * tests/test-fopen.c (main): Move...
46387         * tests/test-fopen.h: ...into new file.
46388         * tests/test-fopen-safer.c: New file.
46389         * modules/fopen-tests (Files): Add test-fopen.h.
46390         * modules/fopen-safer-tests: New file.
46391         Suggested by Bruno Haible.
46392
46393 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46394
46395         popen-safer: test O_CLOEXEC at run-time.
46396         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46397
46398 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46399
46400         fcntl: move more flags to the header
46401         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46402         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46403         * lib/fcntl.in.h: Do both things here.
46404
46405 2009-08-21  Jim Meyering  <meyering@redhat.com>
46406
46407         consistently remove $@-t before redirecting to it
46408         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46409         * modules/alloca-opt: Likewise.
46410         * modules/byteswap: Likewise.
46411         * modules/fnmatch: Likewise.
46412         * modules/getopt-posix: Likewise.
46413         * modules/glob: Likewise.
46414         * modules/poll: Likewise.
46415         * modules/posix_spawnp-tests: Likewise.
46416         * modules/sys_socket: Likewise.
46417         * modules/sysexits: Likewise.
46418
46419 2009-08-21  Eric Blake  <ebb9@byu.net>
46420
46421         popen: simplify access to original popen
46422         * lib/popen.c (rpl_popen): No need to worry about popen being a
46423         macro.
46424         Reported by Bruno Haible.
46425
46426 2009-08-20  Eric Blake  <ebb9@byu.net>
46427
46428         build: avoid some compiler warnings
46429         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46430         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46431         type.
46432         (new_exclude_segment, excluded_file_pattern_p)
46433         (excluded_file_name_p): Reduce scope.
46434         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46435         old-style declaration.
46436
46437 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46438
46439         * tests/test-exclude1.sh: Handle Windows EOL.
46440         * tests/test-exclude2.sh: Likewise.
46441         * tests/test-exclude3.sh: Likewise.
46442         * tests/test-exclude4.sh: Likewise.
46443         * tests/test-exclude5.sh: Likewise.
46444         * tests/test-exclude6.sh: Likewise.
46445         * tests/test-exclude7.sh: Likewise.
46446
46447 2009-08-19  Akim Demaille  <demaille@gostai.com>
46448
46449         bootstrap: find sha1sum when named gsha1sum.
46450         * bootstrap (find_tool): New.
46451         ($SHA1SUM): New.
46452         Use it.
46453
46454 2009-08-20  Jim Meyering  <meyering@redhat.com>
46455
46456         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46457         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46458         expression that converts "." in a file name to "\." in the resulting
46459         regexp.  Start with a dummy statement, so that prior shell variable
46460         definitions are expanded portably.  Reported by Simon Josefsson.
46461
46462 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46463
46464         Fix polling for writeability of a screen buffer.
46465         * lib/poll.c: Distinguish input and screen buffers for the
46466         Win32 implementation.
46467         * lib/select.c: Likewise.
46468
46469 2009-08-19  Eric Blake  <ebb9@byu.net>
46470
46471         popen-safer: prevent popen from clobbering std descriptors
46472         * modules/popen-safer: New file.
46473         * lib/popen-safer.c: Likewise.
46474         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46475         * lib/stdio--.h (popen): Provide override.
46476         * lib/stdio-safer.h (popen_safer): Provide declaration.
46477         * tests/test-popen.c (includes): Partially test this.
46478         * modules/popen-safer-tests: New file, for more tests.
46479         * tests/test-popen-safer.c: Likewise.
46480         * MODULES.html.sh (file stream based Input/Output): Mention it.
46481
46482         tests: test some of the *-safer modules
46483         * modules/fopen-safer (Depends-on): Add fopen.
46484         * modules/fcntl-safer (Depends-on): Add fcntl.
46485         * modules/stdlib-safer (Depends-on): Add stdlib.
46486         (configure.ac): Set indicator.
46487         * modules/unistd-safer (configure.ac): Likewise.
46488         * modules/tmpfile-safer (configure.ac): Likewise.
46489         (Depends-on): Add tmpfile.
46490         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46491         active.
46492         * tests/test-fopen.c (includes): Test safer versions when they are
46493         in use.
46494         * tests/test-open.c (includes): Likewise.
46495
46496         popen: fix cygwin 1.5 bug when stdin closed
46497         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46498         * modules/popen: New file.
46499         * modules/popen-tests: Likewise.
46500         * tests/test-popen.c: Likewise.
46501         * m4/popen.m4: Likewise.
46502         * lib/popen.c: Likewise.
46503         * lib/stdio.in.h (popen): New declaration.
46504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46505         * modules/stdio (Makefile.am): Likewise.
46506         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46507
46508 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46509
46510         maint.mk: give full control over update-copyright exclusions
46511         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46512         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46513         (update-copyright): Don't force inclusion of top-level
46514         ChangeLog.  Don't force exclusion of all COPYING files, but make
46515         them the default exclusion instead.
46516
46517 2009-08-16  Bruno Haible  <bruno@clisp.org>
46518
46519         Fix test failures on Solaris 10.
46520         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46521         tests when Solaris iconv() is used.
46522         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46523         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46524         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46525         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46526         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46527
46528 2009-08-16  Bruno Haible  <bruno@clisp.org>
46529
46530         Fix test failures on Solaris 10.
46531         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46532         'tr' program and pass it as first argument.
46533         * tests/test-pipe-filter-gi1.sh: Likewise.
46534         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46535         program as first argument.
46536         * tests/test-pipe-filter-gi1.c (main): Likewise.
46537
46538 2009-08-16  Eric Blake  <ebb9@byu.net>
46539
46540         fpurge: fix previous commits
46541         * modules/fpurge (Makefile.am): Make replacement conditional,
46542         partially reverting 2007-04-29 change; missed in previous
46543         attempt.
46544         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46545         is missing.
46546
46547 2009-08-16  Bruno Haible  <bruno@clisp.org>
46548
46549         Clarify fpurge's effect on the file position.
46550         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46551         * tests/test-fpurge.c (main): Make a second pass for checking the file
46552         position.
46553
46554 2009-08-16  Bruno Haible  <bruno@clisp.org>
46555
46556         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46557         declaration of fpurge is missing.
46558         * tests/test-fpurge.c (main): Check that the file has not more contents
46559         than expected. Close the file before removing it.
46560
46561 2009-08-15  Eric Blake  <ebb9@byu.net>
46562
46563         fpurge: don't wrap working cygwin implementation
46564         * lib/fpurge.c (fpurge): Fix comment typo.
46565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46566         1.7 to avoid replacement.
46567         * tests/test-fpurge.c (main): Enhance test.
46568
46569 2009-08-15  Eric Blake  <ebb9@byu.net>
46570         and Jim Meyering  <meyering@redhat.com>
46571
46572         test-update-copyright: skip if perl is insufficient
46573         * tests/test-update-copyright.sh: Failure to run maintainer tool
46574         should not cause testsuite failure on cygwin 1.5.
46575
46576 2009-08-14  Eric Blake  <ebb9@byu.net>
46577
46578         doc: mention more functions added in cygwin 1.7.0
46579         * doc/posix-headers/limits.texi (limits.h): Update for recent
46580         cygwin additions.
46581         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46582         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46583         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46584         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46585         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46586
46587 2009-08-14  Eric Blake  <ebb9@byu.net>
46588
46589         maint.mk: simplify update-copyright rule
46590         * top/maint.mk (update-copyright-local): Delete, and document how
46591         to do it in cfg.mk instead.
46592         (update-copyright-exclude-regexp): Delete, and document how to do
46593         it in .x-update-copyright instead.
46594         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46595         exclude ChangeLog.
46596
46597 2009-08-14  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46600
46601 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46602
46603         maint.mk: support update-copyright-env
46604         * top/maint.mk (update-copyright-env): Define place-holder.
46605         (update-copyright): Expand $(update-copyright-env) before
46606         invoking update-copyright.
46607
46608 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46609
46610         update-copyright: implement forced reformatting
46611         * build-aux/update-copyright: Implement and document
46612         UPDATE_COPYRIGHT_FORCE.
46613         * tests/test-update-copyright.sh: Test it.
46614
46615 2009-08-14  Eric Blake  <ebb9@byu.net>
46616         and Bruno Haible  <bruno@clisp.org>
46617
46618         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46619         * tests/test-locale.c: Revert previous patch related to NULL.
46620         * tests/test-stdio.c: Likewise.
46621         * tests/test-stdlib.c: Likewise.
46622         * tests/test-string.c: Likewise.
46623         * tests/test-unistd.c: Likewise.
46624         * modules/time-tests (Depends-on): Add verify.
46625         * modules/wchar-tests (Depends-on): Likewise.
46626         * tests/test-time.c: Test for NULL compliance.
46627         * tests/test-wchar.c: Likewise.
46628         * modules/locale (Depends-on): Add stddef.
46629         * modules/stdio (Depends-on): Likewise.
46630         * modules/stdlib (Depends-on): Likewise.
46631         * modules/string (Depends-on): Likewise.
46632         * modules/time (Depends-on): Likewise.
46633         * modules/unistd (Depends-on): Likewise.
46634         * modules/wchar (Depends-on): Likewise.
46635         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46636         * lib/stdlib.in.h (includes): Likewise.
46637         * lib/string.in.h (includes): Likewise.
46638         * lib/time.in.h (includes): Likewise.
46639         * lib/unistd.in.h (includes): Likewise.
46640         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46641         replaced.
46642         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46643         * m4/stddef_h.m4: New file.
46644         * modules/stddef: Likewise.
46645         * lib/stddef.in.h: Likewise.
46646         * modules/stddef-tests: Likewise.
46647         * tests/test-stddef.c: Likewise.
46648         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46649         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46650         * doc/posix-headers/locale.texi (locale.h): Likewise.
46651         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46652         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46653         * doc/posix-headers/string.texi (string.h): Likewise.
46654         * doc/posix-headers/time.texi (time.h): Likewise.
46655         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46656         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46657
46658 2009-08-14  Eric Blake  <ebb9@byu.net>
46659
46660         doc: improve git diff of texinfo files
46661         * .gitattributes: Add rule for *.texi files, with hint on how to
46662         use it.
46663         Copied from m4, and based on a report by Bruno Haible.
46664
46665 2009-08-14  Bruno Haible  <bruno@clisp.org>
46666
46667         Disable multithread support by default on Cygwin 1.5.x for real.
46668         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46669
46670 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46671
46672         update-copyright: much ado about intervals
46673         * build-aux/update-copyright: Implement and document
46674         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46675         of copyright year intervals.
46676         Also, document UPDATE_COPYRIGHT_YEAR.
46677         * tests/test-update-copyright.sh: Test it.
46678
46679         update-copyright: convert 2-digit to 4-digit years
46680         * build-aux/update-copyright: Implement and document.
46681         * tests/test-update-copyright.sh: Update.
46682
46683 2009-08-14  Jim Meyering  <meyering@redhat.com>
46684
46685         test-exclude: avoid coreutils "make check" failure
46686         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46687         just as in test-argmatch.c.
46688
46689 2009-08-13  Eric Blake  <ebb9@byu.net>
46690
46691         test-dup2: fix bad assumption
46692         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46693         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46694
46695         test-version-etc: fix CRLF portability issue
46696         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46697         recognize \r.
46698         * tests/test-argp-version-etc-1.sh: Likewise.
46699
46700         getopt: update client modules
46701         * modules/argp (Depends-on): Use getopt-gnu.
46702         * modules/git-merge-changelog (Depends-on): Likewise.
46703         * modules/long-options (Depends-on): Likewise.
46704         * modules/xstrtol (Depends-on): Likewise.
46705
46706 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46707
46708         * tests/test-version-etc.sh: Don't fail on different
46709         project/version.  Don't fail on CRLF differences.  Rewrite to use
46710         multiple -e instead of multiple sed forks, suggested by Eric Blake
46711         <ebb9@byu.net>.
46712         * tests/test-argp-version-etc-1.sh: Likewise.
46713
46714 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46715
46716         * tests/test-version-etc.sh: Don't fail on different
46717         project/version.
46718
46719 2009-08-12  Bruno Haible  <bruno@clisp.org>
46720
46721         Tests for modules 'getopt-posix', 'getopt-gnu'.
46722         * modules/getopt-posix-tests: New file.
46723         * tests/test-getopt.c: New file.
46724         * tests/test-getopt.h: New file.
46725         * tests/test-getopt_long.h: New file.
46726
46727         New modules 'getopt-posix', 'getopt-gnu'.
46728         * modules/getopt-gnu: New file, renamed from modules/getopt.
46729         * modules/getopt-posix: New file.
46730         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46731         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46732         (gl_GETOPT): Remove macro.
46733         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46734         Disable the test against BSD systems that declare optreset. Test
46735         against mingw bug. Test against lack of support of optional arguments
46736         on many platforms.
46737         * doc/glibc-headers/getopt.texi: Update module name and list of
46738         relevant platforms.
46739         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46740         'getopt-gnu' and more portability problems.
46741         * NEWS: Mention the changes.
46742
46743 2009-08-12  Bruno Haible  <bruno@clisp.org>
46744
46745         Ensure that optarg etc. get declared by <unistd.h>.
46746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46747         AC_USE_SYSTEM_EXTENSIONS.
46748         * modules/getopt (Depends-on): Add 'extensions'.
46749
46750 2009-08-12  Bruno Haible  <bruno@clisp.org>
46751
46752         Avoid test link errors.
46753         * modules/pipe-filter-ii-tests (Makefile.am): Define
46754         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46755         * modules/pipe-filter-gi-tests (Makefile.am): Define
46756         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46758
46759 2009-08-12  Bruno Haible  <bruno@clisp.org>
46760
46761         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46762         gl_GETOPT_SUBSTITUTE before.
46763         (gl_GETOPT): Use it.
46764         * m4/argp.m4 (gl_ARGP): Update.
46765         Reported by Sergey Poznyakoff.
46766
46767         * m4/getopt.m4: Reorder macros.
46768         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46769         (gl_GETOPT_SUBSTITUTE): Remove macro.
46770
46771 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46772
46773         Minor improvement in gitlog-to-changelog
46774
46775         * build-aux/gitlog-to-changelog: New option `--format' makes
46776         output format string configurable.
46777
46778 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46779
46780         Optimize exclude: use hash tables for non-wildcard patterns.
46781
46782         * lib/exclude.c: Include hash.h and mbuiter.h
46783         (struct exclude_pattern, exclude_segment): New data types.
46784         (struct exclude): Rewrite.
46785         (fnmatch_pattern_has_wildcards): New function.
46786         (new_exclude_segment, free_exclude_segment): New functions.
46787         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46788         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46789         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46790         * modules/exclude: Depend on hash and mbuiter.
46791
46792         * modules/exclude-tests: New file.
46793         * tests/test-exclude.c: New file.
46794         * tests/test-exclude1.sh: New file.
46795         * tests/test-exclude2.sh: New file.
46796         * tests/test-exclude3.sh: New file.
46797         * tests/test-exclude4.sh: New file.
46798         * tests/test-exclude5.sh: New file.
46799         * tests/test-exclude6.sh: New file.
46800         * tests/test-exclude7.sh: New file.
46801
46802 2009-08-12  Bruno Haible  <bruno@clisp.org>
46803
46804         Ensure that getopt() gets declared by <unistd.h>.
46805         * lib/unistd.in.h: Conditionally include getopt.h.
46806         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46807         Set GNULIB_UNISTD_H_GETOPT.
46808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46809         GNULIB_UNISTD_H_GETOPT.
46810         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46811
46812 2009-08-12  Bruno Haible  <bruno@clisp.org>
46813
46814         Clarify logic.
46815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46816         gl_replace_getopt instead of GETOPT_H.
46817
46818 2009-08-12  Bruno Haible  <bruno@clisp.org>
46819
46820         * m4/getopt.m4: Add comments.
46821
46822 2009-08-12  Bruno Haible  <bruno@clisp.org>
46823
46824         Disable multithread support by default on Cygwin 1.5.x.
46825         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46826         set gl_use_threads=no if not specified otherwise.
46827
46828 2009-08-11  Bruno Haible  <bruno@clisp.org>
46829
46830         Avoid compilation error on NetBSD 5.0.
46831         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46832         * tests/test-stdio.c: Likewise.
46833         * tests/test-stdlib.c: Likewise.
46834         * tests/test-string.c: Likewise.
46835         * tests/test-unistd.c: Likewise.
46836         Reported by Greg Troxel <gdt@ir.bbn.com>
46837         at <https://savannah.gnu.org/support/?106973>.
46838
46839 2009-08-11  Bruno Haible  <bruno@clisp.org>
46840
46841         * modules/dup2-tests (Depends-on): Remove close.
46842
46843         Undo 2009-07-19 commit.
46844         * modules/acl-tests (Depends-on): Remove close.
46845         * modules/binary-io-tests (Depends-on): Likewise.
46846         * modules/closein-tests (Depends-on): Likewise.
46847         * modules/flock-tests (Depends-on): Likewise.
46848         * modules/fsync-tests (Depends-on): Likewise.
46849         * modules/lseek-tests (Depends-on): Likewise.
46850         * modules/pipe-tests (Depends-on): Likewise.
46851         * modules/posix_spawn-tests (Depends-on): Likewise.
46852         * modules/posix_spawnp-tests (Depends-on): Likewise.
46853         * modules/stat-time-tests (Depends-on): Likewise.
46854         * modules/yesno-tests (Depends-on): Likewise.
46855
46856 2009-08-10  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46859
46860 2009-08-10  Bruno Haible  <bruno@clisp.org>
46861
46862         Fix a gcc warning.
46863         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46864
46865 2009-08-10  Bruno Haible  <bruno@clisp.org>
46866
46867         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46868         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46869         not only the first time.
46870         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46871         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46872         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46873         is 1, not only the the first time.
46874
46875 2009-08-10  Bruno Haible  <bruno@clisp.org>
46876
46877         Make it possible to use module 'gethostname' without module 'close'.
46878         * lib/unistd.in.h (close): Evoke a link error only if
46879         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46881         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46882         * modules/unistd (Makefile.am): Substitute
46883         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46884         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46885         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46887         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46888         * modules/sys_ioctl (Makefile.am): Substitute
46889         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46890         * modules/socket (configure.ac): On native Windows, set
46891         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46892         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46893         Reported by Sam Steingold <sds@gnu.org>.
46894
46895 2009-08-10  Bruno Haible  <bruno@clisp.org>
46896
46897         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46898         * modules/ioctl (configure.ac): Likewise.
46899
46900 2009-08-10  Bruno Haible  <bruno@clisp.org>
46901
46902         Avoid collision between gnulib wrapper and libintl wrapper.
46903         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46904         already defined in intl/printf.c.
46905         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46906         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46907
46908 2009-08-09  Bruno Haible  <bruno@clisp.org>
46909
46910         Make <sys/select.h> really self-contained, also on Solaris 10.
46911         * lib/sys_select.in.h: Include <string.h>.
46912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46913         Solaris 10 problem.
46914         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46915         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46916         Reported by Jim Meyering.
46917
46918 2009-08-09  Bruno Haible  <bruno@clisp.org>
46919
46920         Avoid warnings from 'aclocal' that are due to a use of macro name
46921         AM_XGETTEXT_OPTION that is not defined in automake.
46922         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46923         automake.
46924         * modules/error (configure.ac): Likewise.
46925         * modules/propername (configure.ac): Likewise.
46926         * modules/vasprintf (configure.ac): Likewise.
46927         * modules/verror (configure.ac): Likewise.
46928         * modules/xprintf (configure.ac): Likewise.
46929         * modules/xvasprintf (configure.ac): Likewise.
46930
46931 2009-08-08  Bruno Haible  <bruno@clisp.org>
46932
46933         Avoid compilation error in C++ mode.
46934         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46935         Reported by Sam Steingold <sds@gnu.org>.
46936
46937 2009-08-08  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46940         for the various Unix platforms.
46941         * doc/posix-headers/limits.texi: Update platforms list regarding
46942         HOST_NAME_MAX.
46943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46944
46945 2009-08-07  Jim Meyering  <meyering@redhat.com>
46946
46947         selinux-at: fix typo in a comment
46948         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46949         Spotted by Paolo Bonzini.
46950
46951         selinux-at: remove redundant m4 code, add documentation
46952         * modules/selinux-at (configure.ac): Remove redundant code.
46953         LIB_SELINUX is already set via the dependent module, selinux-h.
46954         (Include): Add quotes around selinux-at.h.
46955         * lib/selinux-at.h: Add documentation.
46956         Reported by Bruno Haible in
46957         http://marc.info/?l=gnulib-bug&m=124958988300749
46958
46959 2009-08-07  Bruno Haible  <bruno@clisp.org>
46960
46961         Avoid link error on MacOS X 10.3 and 10.4.
46962         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46963         on non-ELF systems.
46964         * lib/argp-pv.c (argp_program_version): Likewise.
46965         Reported by Simon Josefsson.
46966
46967 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46968
46969         * tests/test-version-etc.sh: Use $EXEEXT.
46970
46971 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46972
46973         update-copyright: update documentation to point to maint.mk
46974         * build-aux/update-copyright: Here.
46975
46976 2009-08-06  Jim Meyering  <meyering@redhat.com>
46977
46978         maint.mk: support update-copyright-local
46979         * top/maint.mk (update-copyright-local): Define place-holder.
46980         (update-copyright): Depend on $(update-copyright-local).
46981
46982 2009-08-06  Jim Meyering  <meyering@redhat.com>
46983
46984         selinux-at: new module
46985         Initially written for coreutils, this module will soon be
46986         used by findutils, too.
46987         * MODULES.html.sh [Misc]: Add selinux-at.
46988         * lib/selinux-at.h: New file, from coreutils.
46989         * lib/selinux-at.c: Likewise.
46990         * modules/selinux-at: Likewise.
46991         (License): Change from LGPL to GPL, since it depends
46992         on the GPL'd openat module.
46993
46994         doc: update README
46995         * README: Remove references to cogito.
46996         Remove cvs-repo-updating instructions from 2007.
46997         Don't imply that CVS is better if you have limited disk space.
46998
46999 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47000
47001         update-copyright: support C-style comments
47002         * build-aux/update-copyright: Implement and document.
47003         * tests/test-update-copyright.sh: Test.
47004
47005 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47006
47007         update-copyright: support omitted "(C)"
47008         * build-aux/update-copyright: Implement and document.  Also,
47009         allow variable whitespace before "(C)".
47010         * tests/test-update-copyright.sh: Test.
47011
47012 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47013
47014         update-copyright: don't trip on non-FSF copyright statements
47015         * build-aux/update-copyright: Fix so that the first correctly
47016         formatted FSF copyright statement is recognized no matter what
47017         appears before it.  Update documentation.
47018         * tests/test-update-copyright.sh: Test that.
47019
47020 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47021
47022         update-copyright: clean up code a little
47023         * build-aux/update-copyright: Append "_re" to the name of any
47024         variable holding a regular expression.
47025         Replace "old" and "new" with "stmt" in variable names.
47026         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47027         handled correctly.
47028         Format code more consistently.
47029
47030 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47031
47032         update-copyright-tests: improve portability
47033         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47034         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47035
47036 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47037
47038         update-copyright: support @copyright{} and &copy;
47039         * build-aux/update-copyright: Implement and document.
47040         * tests/test-update-copyright.sh: Test.
47041
47042 2009-08-04  Jim Meyering  <meyering@redhat.com>
47043
47044         update-copyright-tests: correctly test EOL=\r\n handling
47045         * tests/test-update-copyright.sh: Put \r at the end of some lines
47046         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47047
47048         maint.mk: make update-copyright exclusion list more configurable
47049         * top/maint.mk (update-copyright): Default to excluding COPYING,
47050         but allow an override, in case someone does want to update that file.
47051
47052         maint.mk: don't update copyright date in COPYING
47053         * top/maint.mk (update-copyright): Exclude COPYING.
47054
47055         maint.mk: add a copyright-updating rule
47056         * top/maint.mk (update-copyright): New rule.
47057         Derived from coreutils/Makefile.am.
47058
47059         update-copyright: rename some variables
47060         * build-aux/update-copyright: Rename a few variables for clarity.
47061         Tweak syntax.  List Joel E. Denny as coauthor.
47062
47063 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47064
47065         update-copyright: fix bug for 2-digit last year and add tests
47066         * build-aux/update-copyright: Fix bug.
47067         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47068         specified.
47069         * modules/update-copyright-tests: New
47070         * tests/test-update-copyright.sh: New.
47071
47072 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47073
47074         update-copyright: handle leading tabs in line prefix
47075         * build-aux/update-copyright: Count leading tabs as 8 spaces
47076         when computing margin.  This helps with the formatting of
47077         ChangeLogs, for example.
47078         Fix documentation a little.
47079
47080 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47081
47082         update-copyright: support EOL=\r\n
47083         * build-aux/update-copyright: Implement that.
47084
47085 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47086
47087         update-copyright: automatically format copyright statements
47088         * build-aux/update-copyright: Implement that.
47089         Also, be a little more predictable and safer by always failing
47090         when the full copyright format is not perfectly recognized as an
47091         unbroken whole.  Discussed at
47092         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47093         Rewrite documentation.
47094
47095 2009-08-03  Bruno Haible  <bruno@clisp.org>
47096
47097         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47098
47099 2009-08-02  Bruno Haible  <bruno@clisp.org>
47100
47101         Tests for module 'uname'.
47102         * modules/uname-tests: New file.
47103         * tests/test-uname.c: New file.
47104
47105         New module 'uname'.
47106         * lib/uname.c: New file.
47107         * m4/uname.m4: New file.
47108         * modules/uname: New file.
47109         * doc/posix-functions/uname.texi: Mention the new module.
47110
47111 2009-08-02  Bruno Haible  <bruno@clisp.org>
47112
47113         Tests for module 'sys_utsname'.
47114         * modules/sys_utsname-tests: New file.
47115         * tests/test-sys_utsname.c: New file.
47116
47117         New module 'sys_utsname'.
47118         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47119         * m4/sys_utsname_h.m4: New file.
47120         * modules/sys_utsname: New file.
47121         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47122
47123 2009-08-02  Bruno Haible  <bruno@clisp.org>
47124
47125         Implicitly initialize the sockets library.
47126         * lib/gethostname.c: Include sockets.h.
47127         (rpl_gethostname): Invoke gl_sockets_startup.
47128         * lib/socket.c: Include sockets.h.
47129         (rpl_socket): Invoke gl_sockets_startup.
47130         * modules/gethostname (Depends-on): Add sockets.
47131         * modules/socket (Depends-on): Likewise.
47132         * tests/test-poll.c: Don't include sockets.h.
47133         (main): Don't invoke gl_sockets_startup.
47134         * tests/test-select.c: Don't include sockets.h.
47135         (main): Don't invoke gl_sockets_startup.
47136
47137 2009-08-02  Bruno Haible  <bruno@clisp.org>
47138
47139         Allow multiple calls to gl_sockets_startup.
47140         * lib/sockets.c (initialized_sockets_version): New variable.
47141         (gl_sockets_startup): Do nothing if already called for this or a higher
47142         version.
47143         (gl_sockets_cleanup): Reset initialized_sockets_version.
47144
47145 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47146
47147         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47148         different project/version.
47149
47150 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47151             Bruno Haible  <bruno@clisp.org>
47152
47153         Tests for module 'pipe-filter-gi'.
47154         * modules/pipe-filter-gi-tests: New file.
47155         * tests/test-pipe-filter-gi1.sh: New file.
47156         * tests/test-pipe-filter-gi1.c: New file.
47157         * tests/test-pipe-filter-gi2.sh: New file.
47158         * tests/test-pipe-filter-gi2-main.c: New file.
47159         * tests/test-pipe-filter-gi2-child.c: New file.
47160
47161         New module 'pipe-filter-gi'.
47162         * lib/pipe-filter-gi.c: New file.
47163         * modules/pipe-filter-gi: New file.
47164
47165 2009-08-02  Bruno Haible  <bruno@clisp.org>
47166             Paolo Bonzini  <bonzini@gnu.org>
47167
47168         Tests for module 'pipe-filter-ii'.
47169         * modules/pipe-filter-ii-tests: New file.
47170         * tests/test-pipe-filter-ii1.sh: New file.
47171         * tests/test-pipe-filter-ii1.c: New file.
47172         * tests/test-pipe-filter-ii2.sh: New file.
47173         * tests/test-pipe-filter-ii2-main.c: New file.
47174         * tests/test-pipe-filter-ii2-child.c: New file.
47175
47176         New module 'pipe-filter-ii'.
47177         * lib/pipe-filter.h: New file.
47178         * lib/pipe-filter-ii.c: New file.
47179         * lib/pipe-filter-aux.h: New file.
47180         * modules/pipe-filter-ii: New file.
47181
47182 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47183
47184         * lib/gc-libgcrypt.c: Change copyright to FSF.
47185         * lib/gc-gnulib.c: Likewise.
47186
47187 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47188
47189         * lib/gethostname.c: Include limits.h.
47190
47191 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47192             Bruno Haible  <bruno@clisp.org>
47193
47194         Ensure HOST_NAME_MAX as part of the gethostname module.
47195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47196         define also HOST_NAME_MAX.
47197         * tests/test-gethostname.c: Include <limits.h>.
47198         (main): Check also HOST_NAME_MAX.
47199         * doc/posix-headers/limits.texi: Document the mingw problem.
47200
47201 2009-08-02  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47204         Add comments.
47205
47206 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47207
47208         * lib/gethostname.c: Add Windows wrapper.
47209         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47210         * modules/gethostname: Depend on sys_socket & errno, for also
47211         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47212         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47213
47214 2009-07-31  Jim Meyering  <meyering@redhat.com>
47215
47216         getloadavg: fix symbol name in comment
47217         * lib/getloadavg.c: Correct a typo I introduced when adding
47218         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47219         Matt Kraai spotted the problem.
47220
47221 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47222
47223         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47224         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47225         code also if ! defined N_NAME_POINTER.
47226         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47227         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47228         but the n_name member is a 12-byte array.
47229
47230 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47231
47232         update-copyright: generalize comment handling
47233         * build-aux/update-copyright: Handle copyright statements
47234         within more comment styles.
47235         Document usage.
47236         Report any file with an external copyright holder or parse failure.
47237
47238 2009-07-29  Jim Meyering  <meyering@redhat.com>
47239
47240         mktime: correct setting of REPLACE_MKTIME
47241         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47242
47243         update-copyright: new module
47244         * modules/update-copyright: New file.
47245         * build-aux/update-copyright: New file.
47246         * MODULES.html.sh (maint+release support): Add update-copyright.
47247
47248 2009-07-27  Bruno Haible  <bruno@clisp.org>
47249
47250         Fix compilation error when <ctime> is used and mktime is replaced.
47251         * lib/time.in.h (mktime): New declaration.
47252         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47253         REPLACE_MKTIME instead of defining mktime in config.h.
47254         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47255         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47256         Reported by Ross McFarland <rwmcfa1@neces.com>.
47257
47258 2009-07-27  Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47261         Reported by Matt Kraai <mkraai@beckman.com>.
47262
47263 2009-07-25  Jim Meyering  <meyering@redhat.com>
47264
47265         maint.mk: avoid warnings about missing files
47266         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47267         diagnostic when .prev-version does not exist.
47268         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47269         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47270         nonexistent cfg.mk.
47271         Suggestions from Simon Josefsson.
47272
47273 2009-07-25  Bruno Haible  <bruno@clisp.org>
47274
47275         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47276         defined as macros. Needed on QNX 6.4.1.
47277         Reported by Matt Kraai <mkraai@beckman.com>.
47278
47279 2009-07-23  Jim Meyering  <meyering@redhat.com>
47280
47281         maint.mk: invoke "make dist" with a working value of XZ_OPT
47282         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47283
47284 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47285
47286         Make fseeko.c compile on QNX.
47287         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47288
47289 2009-07-22  Peter Simons  <simons@cryp.to>
47290
47291         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47292         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47293         * lib/md4.h: Likewise.
47294         * lib/md5.h: Likewise.
47295         * lib/sha1.h: Likewise.
47296         * lib/sha256.h: Likewise.
47297         * lib/sha512.h: Likewise.
47298
47299         tests-sha1: don't assign literal string to 'char *' variable
47300         * tests/test-sha1.c (main): Declare locals with "const" to match
47301         attributes of the right hand side.
47302
47303 2009-07-21  Eric Blake  <ebb9@byu.net>
47304
47305         dup2: fix more mingw problems
47306         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47307         fd to itself.
47308         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47309         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47310         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47311         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47312         care of mingw bugs.
47313
47314 2009-07-21  Jim Meyering  <meyering@redhat.com>
47315
47316         vc-list-files: avoid failure when /bin/sh is dash
47317         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47318         On some Debian based systems, /bin/sh is a symlink to dash, and running
47319         this command would omit the "/" following each 'tests' prefix:
47320           dash -x build-aux/vc-list-files -C . tests
47321         That is because bash and dash work differently:
47322           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47323           bash ok
47324           dash odd
47325
47326 2009-07-21  Eric Blake  <ebb9@byu.net>
47327
47328         dup2-tests: test previous patch
47329         * modules/dup2-tests: New file.
47330         * tests/test-dup2.c: Likewise.
47331         * tests/test-open.c (main): Avoid unspecified behavior.
47332         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47333         test.
47334
47335         dup2: work around mingw and cygwin 1.5 bug
47336         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47338         * modules/unistd (Makefile.am): Substitute it.
47339         * lib/unistd.in.h (dup2): Declare the replacement.
47340         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47341         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47342         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47343         * modules/execute (Depends-on): Add dup2.
47344         * modules/fseterr (Depends-on): Likewise.
47345         * modules/pipe (Depends-on): Likewise.
47346         * modules/posix_spawn-internal (Depends-on): Likewise.
47347
47348 2009-07-21  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/.gitattributes: New file.
47351
47352 2009-07-20  Bruno Haible  <bruno@clisp.org>
47353
47354         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47355         (main): Use it.
47356
47357 2009-07-20  Eric Blake  <ebb9@byu.net>
47358
47359         test-pipe: make a bit more robust.
47360         * tests/test-pipe.c (myerr): Allow error messages regardless of
47361         what we do to stderr.
47362         (test_pipe): Rearrange to avoid deadlock.
47363         (child_main): Try a larger read, to ensure we avoided deadlock.
47364         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47365         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47366         if misused.
47367
47368 2009-07-19  Jim Meyering  <meyering@redhat.com>
47369
47370         fts: avoid false-positive cycle-detection
47371         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47372         for each new command line argument.
47373
47374 2009-07-19  Bruno Haible  <bruno@clisp.org>
47375
47376         Fix build error on mingw with the modules sys_select and unistd.
47377         * modules/acl-tests (Depends-on): Add close.
47378         * modules/binary-io-tests (Depends-on): Likewise.
47379         * modules/closein-tests (Depends-on): Likewise.
47380         * modules/flock-tests (Depends-on): Likewise.
47381         * modules/fsync-tests (Depends-on): Likewise.
47382         * modules/lseek-tests (Depends-on): Likewise.
47383         * modules/pipe-tests (Depends-on): Likewise.
47384         * modules/posix_spawn-tests (Depends-on): Likewise.
47385         * modules/posix_spawnp-tests (Depends-on): Likewise.
47386         * modules/stat-time-tests (Depends-on): Likewise.
47387         * modules/yesno-tests (Depends-on): Likewise.
47388
47389 2009-07-19  Bruno Haible  <bruno@clisp.org>
47390
47391         Unify conditionals.
47392         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47393         macros, not at the compiler macros.
47394         * lib/pipe.c: Likewise.
47395         * lib/execute.c: Likewise.
47396         * lib/spawni.c: Likewise.
47397
47398 2009-07-19  Bruno Haible  <bruno@clisp.org>
47399
47400         Fix handling of closed stdin/stdout/stderr on mingw.
47401         * lib/w32spawn.h: Include unistd.h.
47402         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47403         file descriptor with O_NOINHERIT flag.
47404         (fd_safer_noinherit): New function, based on fd-safer.c.
47405         (dup_safer_noinherit): New function, based on dup-safer.c.
47406         (undup_safer_noinherit): New function.
47407         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47408         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47409         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47410         instead of fd_safer.
47411         * tests/test-pipe.c: Include <windows.h>.
47412         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47413         result.
47414
47415         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47416         from main.
47417         (test_pipe): Pass an extra argument for disambiguation.
47418         (main): Invoke parent_main or child_main.
47419
47420         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47421         consistently.
47422
47423 2009-07-18  Eric Blake  <ebb9@byu.net>
47424
47425         test-pipe: fix mingw build
47426         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47427
47428 2009-07-18  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/pipe-tests (Makefile.am): Fix typo.
47431
47432 2009-07-18  Eric Blake  <ebb9@byu.net>
47433
47434         error: fix mingw build
47435         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47436         Reported by Bruno Haible.
47437
47438         error: avoid undefined use of stdout
47439         * lib/error.c (error, error_at_line): Check that fd 1 is open
47440         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47441         is handling faults and the close_stdout module wants to report the
47442         detection of closed stdout as an error.
47443
47444 2009-07-17  Eric Blake  <ebb9@byu.net>
47445
47446         pipe: be robust in face of closed fds
47447         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47448         should cause child to misbehave.
47449         * modules/pipe-tests: New module.
47450         * tests/test-pipe.c: New file.
47451         * tests/test-pipe.sh: New file.
47452         Reported by Akim Demaille.
47453
47454 2009-07-14  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47457         Reported by anonymous kc.
47458
47459 2009-07-07  Jim Meyering  <meyering@redhat.com>
47460
47461         maint.mk: don't look for translatable strings in *.m4 or *.mk
47462         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47463         when searching for translatable strings.
47464
47465 2009-07-05  Jim Meyering  <meyering@redhat.com>
47466
47467         remove superfluous parentheses in STREQ definition
47468         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47469         * lib/getugroups.c (STREQ): Likewise.
47470         * lib/fnmatch.c (STREQ): Likewise.
47471         Spotted by Bruno Haible.
47472
47473 2009-07-04  Jim Meyering  <meyering@redhat.com>
47474
47475         argv-iter: new module
47476         * MODULES.html.sh: Add argv-iter.
47477         * lib/argv-iter.c, lib/argv-iter.h: New files.
47478         * modules/argv-iter: New file.
47479         * modules/argv-iter-tests: New file.
47480         * tests/test-argv-iter.c: Test it.
47481
47482 2009-07-04  Bruno Haible  <bruno@clisp.org>
47483
47484         Fix assertion.
47485         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47486         contains more exact copies of a given entry than file2, leave the extra
47487         copies unpaired rather than aborting.
47488         Reported by Eric Blake.
47489
47490 2009-07-02  Bruno Haible  <bruno@clisp.org>
47491
47492         Speedup git-merge-changelog for git cherry-pick.
47493         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47494         (entries_mapping_get): New function, extracted from compute_mapping.
47495         (entries_mapping_reverse_get): New function.
47496         (compute_mapping): Add a 'full' argument. Return the result in a
47497         'struct entries_mapping'.
47498         (main): Update. Access the mappings through entries_mapping_get.
47499         Reported by Eric Blake.
47500
47501 2009-07-02  Bruno Haible  <bruno@clisp.org>
47502
47503         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47504         best_i.
47505
47506 2009-07-02  Bruno Haible  <bruno@clisp.org>
47507
47508         Speed up approximate search for matching ChangeLog entries.
47509         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47510         argument. Call fstrcmp_bounded instead of fstrcmp.
47511         (compute_mapping, try_split_merged_entry, main): Update callers.
47512
47513 2009-07-02  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47516
47517 2009-06-30  Bruno Haible  <bruno@clisp.org>
47518
47519         Reduce the number of uc_is_cased calls.
47520         * lib/unicase.h (casing_suffix_context_t): Add
47521         'first_char_except_ignorable' field.
47522         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47523         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47524         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47525         Update initializer.
47526         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47527         case-ignorable characters.
47528         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47529         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47530         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47531         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47532         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47533
47534 2009-06-30  Bruno Haible  <bruno@clisp.org>
47535
47536         Tests for module 'unicase/ignorable'.
47537         * modules/unicase/ignorable-tests: New file.
47538         * tests/unicase/test-ignorable.c: New file, generated by
47539         gen-uni-tables.
47540
47541         Tests for module 'unicase/cased'.
47542         * modules/unicase/cased-tests: New file.
47543         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47544         * tests/unicase/test-predicate-part1.h: New file, derived from
47545         tests/unictype/test-predicate-part1.h.
47546         * tests/unicase/test-predicate-part2.h: New file, same as
47547         tests/unictype/test-predicate-part2.h.
47548
47549         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47550         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47551         (output_casing_properties): New function.
47552         (main): Call it.
47553         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47554         * lib/unicase/cased.c: Include unictype/bitmap.h.
47555         (uc_is_cased): Define through a bitmap lookup.
47556         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47557         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47558         (uc_is_case_ignorable): Define through a bitmap lookup.
47559         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47560         lib/unictype/bitmap.h.
47561         (Depends-on): Add inline. Clean up.
47562         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47563         lib/unictype/bitmap.h.
47564         (Depends-on): Add inline. Clean up.
47565         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47566         recognition.
47567         * tests/unicase/test-u16-tolower.c (main): Likewise.
47568         * tests/unicase/test-u32-tolower.c (main): Likewise.
47569
47570 2009-06-30  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47573         * lib/unicase/u16-casemap.c: Likewise.
47574         * lib/unicase/u32-casemap.c: Likewise.
47575
47576 2009-06-29  Bruno Haible  <bruno@clisp.org>
47577
47578         Define u32_casefold as a wrapper around u32_ct_casefold.
47579         * lib/unicase/u32-casefold.c: Update.
47580         * modules/unicase/u32-casefold (Depends-on): Add
47581         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47582         unicase/empty-suffix-context. Clean up.
47583
47584         Define u16_casefold as a wrapper around u16_ct_casefold.
47585         * lib/unicase/u16-casefold.c: Update.
47586         * modules/unicase/u16-casefold (Depends-on): Add
47587         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47588         unicase/empty-suffix-context. Clean up.
47589
47590         Define u8_casefold as a wrapper around u8_ct_casefold.
47591         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47592         * lib/unicase/u8-casefold.c: Update.
47593         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47594         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47595
47596         Define u32_totitle as a wrapper around u32_ct_totitle.
47597         * lib/unicase/u32-totitle.c: Update.
47598         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47599         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47600
47601         Define u16_totitle as a wrapper around u16_ct_totitle.
47602         * lib/unicase/u16-totitle.c: Update.
47603         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47604         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47605
47606         Define u8_totitle as a wrapper around u8_ct_totitle.
47607         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47608         functions.
47609         (FUNC): Delegate to U_CT_TOTITLE.
47610         * lib/unicase/u8-totitle.c: Update.
47611         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47612         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47613
47614         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47615         invocation.
47616         * modules/unicase/u32-tolower (Depends-on): Add
47617         unicase/empty-prefix-context, unicase/empty-suffix-context.
47618
47619         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47620         invocation.
47621         * modules/unicase/u16-tolower (Depends-on): Add
47622         unicase/empty-prefix-context, unicase/empty-suffix-context.
47623
47624         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47625         * modules/unicase/u8-tolower (Depends-on): Add
47626         unicase/empty-prefix-context, unicase/empty-suffix-context.
47627
47628         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47629         invocation.
47630         * modules/unicase/u32-toupper (Depends-on): Add
47631         unicase/empty-prefix-context, unicase/empty-suffix-context.
47632
47633         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47634         invocation.
47635         * modules/unicase/u16-toupper (Depends-on): Add
47636         unicase/empty-prefix-context, unicase/empty-suffix-context.
47637
47638         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47639         * modules/unicase/u8-toupper (Depends-on): Add
47640         unicase/empty-prefix-context, unicase/empty-suffix-context.
47641
47642         New module 'unicase/u32-ct-casefold'.
47643         * lib/unicase/u32-ct-casefold.c: New file.
47644         * modules/unicase/u32-ct-casefold: New file.
47645
47646         New module 'unicase/u16-ct-casefold'.
47647         * lib/unicase/u16-ct-casefold.c: New file.
47648         * modules/unicase/u16-ct-casefold: New file.
47649
47650         New module 'unicase/u8-ct-casefold'.
47651         * lib/unicase/u8-ct-casefold.c: New file.
47652         * lib/unicase/u-ct-casefold.h: New file, derived from
47653         lib/unicase/u-casefold.h.
47654         * modules/unicase/u8-ct-casefold: New file.
47655
47656         New module 'unicase/u32-ct-totitle'.
47657         * lib/unicase/u32-ct-totitle.c: New file.
47658         * modules/unicase/u32-ct-totitle: New file.
47659
47660         New module 'unicase/u16-ct-totitle'.
47661         * lib/unicase/u16-ct-totitle.c: New file.
47662         * modules/unicase/u16-ct-totitle: New file.
47663
47664         New module 'unicase/u8-ct-totitle'.
47665         * lib/unicase/u8-ct-totitle.c: New file.
47666         * lib/unicase/u-ct-totitle.h: New file, derived from
47667         lib/unicase/u-totitle.h.
47668         * modules/unicase/u8-ct-totitle: New file.
47669
47670         New module 'unicase/u32-ct-tolower'.
47671         * lib/unicase/u32-ct-tolower.c: New file.
47672         * modules/unicase/u32-ct-tolower: New file.
47673
47674         New module 'unicase/u16-ct-tolower'.
47675         * lib/unicase/u16-ct-tolower.c: New file.
47676         * modules/unicase/u16-ct-tolower: New file.
47677
47678         New module 'unicase/u8-ct-tolower'.
47679         * lib/unicase/u8-ct-tolower.c: New file.
47680         * modules/unicase/u8-ct-tolower: New file.
47681
47682         New module 'unicase/u32-ct-toupper'.
47683         * lib/unicase/u32-ct-toupper.c: New file.
47684         * modules/unicase/u32-ct-toupper: New file.
47685
47686         New module 'unicase/u16-ct-toupper'.
47687         * lib/unicase/u16-ct-toupper.c: New file.
47688         * modules/unicase/u16-ct-toupper: New file.
47689
47690         New module 'unicase/u8-ct-toupper'.
47691         * lib/unicase/u8-ct-toupper.c: New file.
47692         * modules/unicase/u8-ct-toupper: New file.
47693
47694         Add context arguments to u*_casemap functions.
47695         * lib/unicase/unicasemap.h: Include unicase.h.
47696         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47697         suffix_context arguments.
47698         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47699         functions.
47700         (FUNC): Add prefix_context and suffix_context arguments. Use
47701         uc_is_cased and uc_is_case_ignorable.
47702         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47703         * lib/unicase/u16-casemap.c: Likewise.
47704         * lib/unicase/u32-casemap.c: Likewise.
47705         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47706         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47707         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47708         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47709         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47710         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47711
47712         New module 'unicase/u32-suffix-context'.
47713         * lib/unicase/u32-suffix-context.c: New file.
47714         * modules/unicase/u32-suffix-context: New file.
47715
47716         New module 'unicase/u16-suffix-context'.
47717         * lib/unicase/u16-suffix-context.c: New file.
47718         * modules/unicase/u16-suffix-context: New file.
47719
47720         New module 'unicase/u8-suffix-context'.
47721         * lib/unicase/u8-suffix-context.c: New file.
47722         * lib/unicase/u-suffix-context.h: New file.
47723         * modules/unicase/u8-suffix-context: New file.
47724
47725         New module 'unicase/empty-suffix-context'.
47726         * lib/unicase/empty-suffix-context.c: New file.
47727         * modules/unicase/empty-suffix-context: New file.
47728
47729         New module 'unicase/u32-prefix-context'.
47730         * lib/unicase/u32-prefix-context.c: New file.
47731         * modules/unicase/u32-prefix-context: New file.
47732
47733         New module 'unicase/u16-prefix-context'.
47734         * lib/unicase/u16-prefix-context.c: New file.
47735         * modules/unicase/u16-prefix-context: New file.
47736
47737         New module 'unicase/u8-prefix-context'.
47738         * lib/unicase/u8-prefix-context.c: New file.
47739         * lib/unicase/u-prefix-context.h: New file.
47740         * lib/unicase/context.h: New file.
47741         * modules/unicase/u8-prefix-context: New file.
47742
47743         New module 'unicase/empty-prefix-context'.
47744         * lib/unicase/empty-prefix-context.c: New file.
47745         * modules/unicase/empty-prefix-context: New file.
47746
47747         New module 'unicase/ignorable'.
47748         * lib/unicase/ignorable.c: New file.
47749         * modules/unicase/ignorable: New file.
47750
47751         New module 'unicase/cased'.
47752         * lib/unicase/caseprop.h: New file.
47753         * lib/unicase/cased.c: New file.
47754         * modules/unicase/cased: New file.
47755
47756         New functions for case mapping of substrings.
47757         * lib/unicase.h (casing_prefix_context_t): New type.
47758         (unicase_empty_prefix_context): New variable.
47759         (u8_casing_prefix_context, u16_casing_prefix_context,
47760         u32_casing_prefix_context, u8_casing_prefixes_context,
47761         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47762         declarations.
47763         (casing_suffix_context_t): New type.
47764         (unicase_empty_suffix_context): New variable.
47765         (u8_casing_suffix_context, u16_casing_suffix_context,
47766         u32_casing_suffix_context, u8_casing_suffixes_context,
47767         u16_casing_suffixes_context, u32_casing_suffixes_context,
47768         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47769         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47770         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47771         declarations.
47772
47773 2009-06-28  Jim Meyering  <meyering@redhat.com>
47774
47775         boostrap: indent only with spaces
47776         * build-aux/bootstrap: Indent only with spaces, never TABs.
47777
47778         bootstrap: split long lines
47779         * build-aux/bootstrap: Keep line length < 80.
47780
47781         bootstrap: sync from coreutils
47782         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47783         just as autoreconf does.  Verify a list of prerequisite
47784         package-name,version-number pairs if defined in bootstrap.conf.
47785         Refer to README-prereq, if prerequisites are not satisfied.
47786
47787 2009-06-27  Eric Blake  <ebb9@byu.net>
47788
47789         tests: add test for bogus NULL definition
47790         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47791         * tests/test-stdlib.c: Likewise.
47792         * tests/test-string.c: Likewise.
47793         * tests/test-locale.c: Likewise.
47794         * tests/test-unistd.c: Likewise.
47795         * modules/stdio-tests (Depends-on): Add verify.
47796         * modules/stdlib-tests (Depends-on): Likewise.
47797         * modules/string-tests (Depends-on): Likewise.
47798         * modules/locale-tests (Depends-on): Likewise.
47799         * modules/unistd-tests (Depends-on): Likewise.
47800
47801 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47802
47803         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47804         self-explaining comment.
47805         * m4/selinux-selinux-h: Update serial.
47806         (gl_LIBSELINUX): New macro, adding a warning for missing development
47807         packages to code extracted from...
47808         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47809         Add warning for missing development packages here, too.
47810
47811 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47812
47813         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47814
47815 2009-06-25  Eric Blake  <ebb9@byu.net>
47816
47817         version-etc: fix regression
47818         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47819         gcc.
47820         (version_etc): Use it, to catch bugs with trailing NULL.
47821         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47822         (version_etc_va): Fix logic bug.
47823         * modules/version-etc-tests: Add test.
47824         * tests/test-version-etc.c: New file.
47825         * tests/test-version-etc.sh: Likewise.
47826
47827 2009-06-25  Sam Steingold  <sds@gnu.org>
47828
47829         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47830         mbtowc declaration.
47831
47832 2009-06-25  Eric Blake  <ebb9@byu.net>
47833
47834         fpurge: migrate into <stdio.h>
47835         * lib/fpurge.h: Delete...
47836         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47837         * lib/fpurge.c (fpurge): Change declaring header.
47838         * modules/fpurge (Files): Drop deleted file.
47839         (Depends-on): Add stdio.
47840         (configure.ac): Set witness.
47841         * modules/stdio (Makefile.am): Support fpurge macros.
47842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47843         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47844         * lib/fflush.c: Update client.
47845         * tests/test-fpurge.c: Likewise.
47846         * NEWS: Mention the change.
47847
47848 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47849
47850         * lib/argp-version-etc.c (program_authors): Add const
47851         qualifier.
47852         * lib/version-etc.c: Fix typos in the comments.
47853         * modules/argp-version-etc: Depends on version-etc.
47854
47855 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47856
47857         argp-version-etc: new module.
47858
47859         * lib/argp-version-etc.c: New file.
47860         * lib/argp-version-etc.h: New file.
47861         * modules/argp-version-etc: New file.
47862         * modules/argp-version-etc-tests: New file.
47863         * tests/test-argp-version-etc.c: New test.
47864         * tests/test-argp-version-etc-1.sh: New test.
47865
47866 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47867
47868         Provide additional interfaces and documentation for version-etc
47869         module.
47870
47871         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47872         interfaces.
47873         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47874         prototypes.
47875
47876 2009-06-24  Bruno Haible  <bruno@clisp.org>
47877
47878         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47879         HAVE_LIB${NAME} macro.
47880         Reported by Sam Steingold <sds@gnu.org>.
47881
47882 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47883
47884         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47885         needed.
47886
47887 2009-06-21  Bruno Haible  <bruno@clisp.org>
47888
47889         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47890         work.
47891         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47892         together with LIB${NAME}, LTLIB${NAME}.
47893         Reported by Sam Steingold <sds@gnu.org>.
47894
47895 2009-06-20  Jim Meyering  <meyering@redhat.com>
47896
47897         tests: make sc_require_test_exit_idiom more generic
47898         * top/maint.mk (Exit_witness_file): New overridable variable.
47899         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47900         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47901
47902 2009-06-19  Jim Meyering  <meyering@redhat.com>
47903
47904         hash: reverse order of src/dst parameters in an internal interface
47905         * lib/hash.c (transfer_entries): Reverse order of parameters to
47906         put DST before SRC.  Adjust callers.
47907
47908         tests: test-hash: avoid wholesale duplication
47909         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47910         Instead, use a loop and add a single conditional.
47911
47912         tests: test-hash: allow seed selection via a command line argument
47913         * tests/test-hash.c (get_seed): New function.
47914         (main): Use it.
47915
47916 2009-06-19  Eric Blake  <ebb9@byu.net>
47917
47918         hash: avoid memory leak on allocation failure
47919         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47920         failure.  Factor repeated algorithm...
47921         (transfer_entries): ...into new helper routine.
47922         (hash_delete): React to hash_rehash return value.
47923
47924         hash: reduce memory pressure in hash_rehash no-op case
47925         * lib/hash.c (next_prime): Avoid overflow.
47926         (hash_initialize): Factor bucket size computation...
47927         (compute_bucket_size): ...into new helper function.
47928         (hash_rehash): Use new function and open coding to reduce memory
47929         pressure, and avoid a memory leak in USE_OBSTACK code.
47930         Reported by Jim Meyering.
47931
47932 2009-06-18  Eric Blake  <ebb9@byu.net>
47933
47934         hash: make rotation more obvious
47935         * modules/hash (Depends-on): Add bitrotate and stdint.
47936         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47937         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47938         (SIZE_MAX): Rely on headers for definition.
47939         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47940         (raw_hasher): Use rotr_sz.
47941         Suggested by Jim Meyering.
47942
47943         hash: fix memory leak in last patch
47944         * lib/hash.c (hash_rehash): Avoid memory leak.
47945
47946         hash: avoid no-op rehashing
47947         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47948
47949         hash: provide default callback functions
47950         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47951         (hash_initialize): Use them as defaults.
47952         * tests/test-hash.c (main): Test this.
47953
47954         hash: minor optimization
47955         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47956         when possible.
47957         (hash_initialize): Document this promise.
47958         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47959         * tests/test-hash.c (hash_compare_strings): Test this.
47960
47961 2009-06-18  Bruno Haible  <bruno@clisp.org>
47962
47963         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47964         going to be replaced anyway.
47965
47966 2009-06-18  Bruno Haible  <bruno@clisp.org>
47967
47968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47969         in one place.
47970         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47971         be replaced anyway.
47972
47973 2009-06-18  Eric Blake  <ebb9@byu.net>
47974
47975         hash: check for resize before insertion
47976         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47977         threshold before insertion, so that a pathological hash_rehash
47978         that fills every bucket can still trigger another rehash.
47979
47980 2009-06-18  Jim Meyering  <meyering@redhat.com>
47981
47982         hash-tests: add a loop around the small tests
47983         * tests/test-hash.c (main): Repeat small tests with selected
47984         small initial table sizes.
47985
47986 2009-06-17  Eric Blake  <ebb9@byu.net>
47987
47988         hash: minor cleanups
47989         * lib/hash.h (hash_entry): Make opaque, by moving...
47990         * lib/hash.c (hash_entry): ...here.
47991         (hash_insert): Clarify restrictions on what can be inserted.
47992         (hash_get_next): Clarify when it is safe to remove an element
47993         during traversal.
47994         (check_tuning): Skip verification when tuning is known safe.
47995         (hash_initialize): Clarify restrictions on tuning.
47996
47997 2009-06-17  Jim Meyering  <jim@meyering.net>
47998         and Eric Blake  <ebb9@byu.net>
47999
48000         hash-tests: new module
48001         * modules/hash-tests: New file.
48002         * tests/test-hash.c: New file.
48003
48004 2009-06-17  Eric Blake  <ebb9@byu.net>
48005
48006         strstr-simple: document new module
48007         * MODULES.html.sh: Document new module.
48008
48009         strstr, strcasestr: replace on platforms with broken memchr
48010         * modules/strstr: Split into...
48011         * modules/strstr-simple: ...new module that does not care about
48012         performance, but does care about glibc bug.
48013         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48014         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48015         if platform memchr is broken, per Debian bug 521737.
48016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48017         memchr.
48018         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48019         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48020         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48021         * modules/mountlist (Depends-on): Add strstr-simple.
48022         * modules/gen-uni-tables (Depends-on): Likewise.
48023         * modules/argz (Depends-on): Add strstr.
48024
48025 2009-06-17  Bruno Haible  <bruno@clisp.org>
48026
48027         * modules/posix_spawn-internal (Depends-on): Add errno.
48028
48029 2009-06-17  Bruno Haible  <bruno@clisp.org>
48030
48031         Define missing ESTALE on Interix 3.5.
48032         * lib/errno.in.h (ESTALE): Assign a value if missing.
48033         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48035         missing.
48036         * doc/posix-headers/errno.texi: Mention the Interix bug.
48037         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48038
48039 2009-06-15  Eric Blake  <ebb9@byu.net>
48040
48041         memchr, memchr2: add valgrind exception
48042         * lib/memchr.valgrind: New file.
48043         * lib/memchr2.valgrind: New file.
48044         * modules/memchr (Files): Distribute valgrind file.
48045         * modules/memchr2 (Files): Likewise.
48046
48047         docs: memchr is no longer obsolete
48048         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48049         * lib/string.in.h (memchr): Simplify logic.
48050
48051 2009-06-14  Jim Meyering  <meyering@redhat.com>
48052
48053         link-follow: fix the "checking..." message to not mention trailing slash
48054         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48055         never considered trailing slashes.
48056
48057 2009-06-14  Bruno Haible  <bruno@clisp.org>
48058
48059         * m4/memchr.m4: Mention also the bug on IA-64.
48060         * doc/posix-functions/memchr.texi: Likewise.
48061
48062 2009-06-12  Eric Blake  <ebb9@byu.net>
48063
48064         memchr: detect broken x86_64 and alpha implementations
48065         * modules/memchr-tests (Depends-on): Move mmap detection...
48066         * modules/memchr (Depends-on): ...here.
48067         (configure.ac): Set indicator.
48068         * lib/string.in.h (memchr): Declare replacement.
48069         * modules/string (Makefile.am): Trigger replacement.
48070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48071         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48072         bugs.
48073         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48074         * modules/getpagesize (License): Relax license.
48075
48076 2009-06-11  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/idpriv.h: Add more references.
48079
48080 2009-06-08  Bruno Haible  <bruno@clisp.org>
48081
48082         Tests for module 'idpriv-droptemp'.
48083         * modules/idpriv-droptemp-tests: New file.
48084         * tests/test-idpriv-droptemp.sh: New file.
48085         * tests/test-idpriv-droptemp.su.sh: New file.
48086         * tests/test-idpriv-droptemp.c: New file.
48087
48088         New module 'idpriv-droptemp'.
48089         * lib/idpriv-droptemp.c: New file.
48090         * modules/idpriv-droptemp: New file.
48091
48092 2009-06-08  Bruno Haible  <bruno@clisp.org>
48093
48094         Tests for module 'idpriv-drop'.
48095         * modules/idpriv-drop-tests: New file.
48096         * tests/test-idpriv-drop.sh: New file.
48097         * tests/test-idpriv-drop.su.sh: New file.
48098         * tests/test-idpriv-drop.c: New file.
48099
48100         New module 'idpriv-drop'.
48101         * lib/idpriv.h: New file.
48102         * lib-idpriv-drop.c: New file.
48103         * m4/idpriv.m4: New file.
48104         * modules/idpriv-drop: New file.
48105
48106 2009-06-08  Bruno Haible  <bruno@clisp.org>
48107
48108         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48110         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48111         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48112         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48113         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48114         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48115
48116 2009-06-08  Eric Blake  <ebb9@byu.net>
48117
48118         test-strstr: use memory fence, when possible
48119         * tests/test-strstr.c (main): Use memory fence, in order to be
48120         more likely to trigger Debian bug 521737.
48121         * modules/strstr-tests (Files): Pull in additional files.
48122
48123         memchr: no longer obsolete, for wider field testing
48124         * modules/memchr (Status, Notice): Delete, this module is no
48125         longer obsolete.
48126         * modules/vasnprintf (Depends-on): Add memchr.
48127
48128 2009-06-07  Jim Meyering  <meyering@redhat.com>
48129
48130         hash: declare some functions with the warn_unused_result attribute
48131         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48132
48133 2009-06-07  Bruno Haible  <bruno@clisp.org>
48134
48135         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48136         Reported by Eric Blake.
48137
48138 2009-06-06  Eric Blake  <ebb9@byu.net>
48139
48140         test-alignof: fix typo with long double
48141         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48142         compiler error.
48143
48144 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48145
48146         Escape non-texinfo { and }s.
48147         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48148         markup error.
48149
48150 2009-06-04  Jim Meyering  <meyering@redhat.com>
48151
48152         gitlog-to-changelog: don't infloop on an empty commit log
48153         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48154         Reported by Boris Petersen <transacid@centerim.org>.
48155
48156 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48157
48158         version-etc: extend for packagers
48159         Add three new configure options, intended for packagers:
48160           --with-packager="packager name"
48161           --with-packager-version="packager-specific version"
48162           --with-packager-bug-reports="packager bug reporting"
48163         An example with coreutils:
48164           $ ./configure \
48165             --with-packager=Gentoo \
48166             --with-packager-bug-report=http://bugs.gentoo.org/ \
48167             --with-packager-version="patchset 1.6"
48168           $ ./src/ls --version | head -n2
48169           ls (GNU coreutils) 7.1-dirty
48170           Packaged by Gentoo (patchset 1.6)
48171         Note that the bug reporting info via --help doesn't show up because
48172         coreutils uses its own custom emit_bug_reporting_address() implementation
48173         in src/system.h.  If it didn't, it'd look like:
48174           $ ./src/ls --help | tail -n4
48175           Report bugs to <bug-coreutils@gnu.org>.
48176           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48177           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48178           General help using GNU software: <http://www.gnu.org/gethelp/>.
48179         * lib/version-etc.c: Print new information, if provided.
48180         * m4/version-etc.m4: New file.
48181         * modules/version-etc (Files): Add m4/version-etc.m4.
48182         (configure.ac): Add gl_VERSION_ETC.
48183
48184 2009-05-31  Bruno Haible  <bruno@clisp.org>
48185
48186         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48187         and 'int64_t'.
48188         * modules/alignof-tests (Dependencies): Add stdint.
48189         Reported by Eric Blake.
48190
48191 2009-05-31  Bruno Haible  <bruno@clisp.org>
48192
48193         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48194         restriction due to compiler bugs.
48195         Reported by Eric Blake.
48196
48197 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48198             Bruno Haible  <bruno@clisp.org>
48199
48200         Fix test-alignof failure.
48201         * lib/alignof.h (alignof_slot): New macro.
48202         (alignof_type): New macro, with the same semantics as the previous
48203         'alignof'.
48204         (alignof): Alias to alignof_slot.
48205         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48206         check that the results are usable as constant expressions.
48207
48208 2009-05-31  Bruno Haible  <bruno@clisp.org>
48209
48210         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48211         * tests/test-memchr.c (main): Check that memchr does not read past the
48212         first occurrence of the byte.
48213         * tests/test-strstr.c (main): Update comment.
48214         Suggested by Eric Blake.
48215
48216 2009-05-30  Bruno Haible  <bruno@clisp.org>
48217
48218         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48219         detail how to use dumpbin.
48220         Reported by David Byron <dbyron@dbyron.com>.
48221
48222 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48223
48224         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48225
48226 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48227
48228         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48229
48230 2009-05-28  Bruno Haible  <bruno@clisp.org>
48231
48232         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48233         build-aux/ files.
48234
48235 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48236
48237         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48238
48239 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48240
48241         * gnulib-tool (sed_transform_main_lib_file)
48242         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48243         regexps.
48244
48245 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48246
48247         * tests/test-strstr.c: Add another self-test.
48248         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48249         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48250
48251 2009-05-23  Bruno Haible  <bruno@clisp.org>
48252
48253         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48254         change.
48255
48256 2009-05-21  Bruno Haible  <bruno@clisp.org>
48257
48258         Simplify use of mode_t varargs.
48259         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48260         uses 'mode_t' or 'int'.
48261         * lib/openat.c (openat): Likewise.
48262         * lib/open-safer.c (open_safer): Likewise.
48263         * m4/mode_t.m4: New file.
48264         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48265         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48267         * modules/open (Files): Add m4/mode_t.m4.
48268         * modules/openat (Files): Likewise.
48269         * modules/fcntl-safer (Files): Likewise.
48270         Suggested by Eric Blake.
48271
48272 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48273
48274         * doc/glibc-functions/fallocate.texi: New file.
48275         * doc/gnulib.texi: Include it.
48276
48277 2009-05-21  Eric Blake  <ebb9@byu.net>
48278             Bruno Haible  <bruno@clisp.org>
48279
48280         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48281         invocations.
48282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48283
48284 2009-05-21  Eric Blake  <ebb9@byu.net>
48285             Bruno Haible  <bruno@clisp.org>
48286
48287         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48288         include_next. Fix of 2008-11-20 commit.
48289         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48290         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48291         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48292         NEXT_MATH_H.
48293         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48294         instead of NEXT_MATH_H.
48295
48296 2009-05-21  Bruno Haible  <bruno@clisp.org>
48297
48298         Avoid redefinition warnings for SIZE_MAX.
48299         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48300         Reported by Simon Josefsson.
48301
48302 2009-05-21  Bruno Haible  <bruno@clisp.org>
48303
48304         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48305         AC_CACHE_VAL.
48306
48307 2009-05-20  Bruno Haible  <bruno@clisp.org>
48308
48309         Make zeroptr.h work on mingw.
48310         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48311         mprotect.
48312         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48313         * modules/memchr2-tests (configure.ac): Likewise.
48314         * modules/memcmp-tests (configure.ac): Likewise.
48315         * modules/memmem-tests (configure.ac): Likewise.
48316         * modules/memrchr-tests (configure.ac): Likewise.
48317         Reported by Simon Josefsson.
48318
48319 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48320
48321         * tests/test-glob.c: Include string.h for strcmp prototype.
48322
48323 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48324
48325         * modules/getdelim (Depends-on): Add explicit stdint, although it
48326         was implicitly already pulled in via realloc-posix.
48327         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48328
48329 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48330
48331         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48332         G. Christensen" <tgc@jupiterrise.com>.
48333         * m4/sys_socket_h.m4: Check for sa_family_t.
48334         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48335         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48336         * tests/test-sys_socket.c: Check that sa_family_t works.
48337
48338 2009-05-18  Eric Blake  <ebb9@byu.net>
48339
48340         maint.mk: allow gnulib_dir in VPATH build
48341         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48342
48343 2009-05-15  Jim Meyering  <meyering@redhat.com>
48344
48345         maint.mk: Give gnulib_dir a default definition.
48346         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48347         Thus, most packages no longer need to specify this variable in cfg.mk
48348
48349 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48350
48351         rename.m4: fix typos that would make non-mingw cross-configure fail
48352         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48353
48354 2009-05-13  Eric Blake  <ebb9@byu.net>
48355
48356         mmap-anon: avoid out-of-order autoconf expansion
48357         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48358         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48359         * modules/memchr-tests (Depends-on): Add extensions.
48360         * modules/memchr2-tests (Depends-on): Add extensions.
48361         * modules/memcmp-tests (Depends-on): Add extensions.
48362         * modules/memmem-tests (Depends-on): Add extensions.
48363         * modules/memrchr-tests (Depends-on): Add extensions.
48364
48365 2009-05-13  Bruno Haible  <bruno@clisp.org>
48366
48367         Make some tests ISO C 99 compliant.
48368         * tests/zerosize-ptr.h: New file.
48369         * tests/test-memchr.c: Include zerosize-ptr.h.
48370         (main): Use a zero-size object pointer instead of NULL.
48371         * tests/test-memchr2.c: Include zerosize-ptr.h.
48372         (main): Use a zero-size object pointer instead of NULL.
48373         * tests/test-memcmp.c: Include zerosize-ptr.h.
48374         (main): Use a zero-size object pointer instead of NULL.
48375         * tests/test-memmem.c: Include zerosize-ptr.h.
48376         (main): Use a zero-size object pointer instead of NULL.
48377         * tests/test-memrchr.c: Include zerosize-ptr.h.
48378         (main): Use a zero-size object pointer instead of NULL.
48379         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48380         m4/mmap-anon.m4.
48381         (Depends-on): Add getpagesize.
48382         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48383         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48384         m4/mmap-anon.m4.
48385         (Depends-on): Add getpagesize.
48386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48387         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48388         m4/mmap-anon.m4.
48389         (Depends-on): Add getpagesize.
48390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48391         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48392         m4/mmap-anon.m4.
48393         (Depends-on): Add getpagesize.
48394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48395         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48396         m4/mmap-anon.m4.
48397         (Depends-on): Add getpagesize.
48398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48399
48400 2009-05-12  Bruno Haible  <bruno@clisp.org>
48401
48402         Tests for module 'alignof'.
48403         * modules/alignof-tests: New file.
48404         * tests/test-alignof.c: New file.
48405
48406 2009-05-12  Bruno Haible  <bruno@clisp.org>
48407
48408         Fix alignof macro.
48409         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48410         vendor compilers that are always correct.
48411
48412 2009-05-12  Bruno Haible  <bruno@clisp.org>
48413
48414         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48415         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48416         not whether its fully works.
48417
48418 2009-05-12  Bruno Haible  <bruno@clisp.org>
48419
48420         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48421
48422 2009-05-12  Jim Meyering  <meyering@redhat.com>
48423
48424         * top/maint.mk: Adjust backslash alignment.
48425
48426 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48427
48428         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48429
48430 2009-05-11  Eric Blake  <ebb9@byu.net>
48431
48432         argp: avoid undefined behavior
48433         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48434         macros.
48435
48436 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48437
48438         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48439         user.name to prevent git commit from complaining.
48440
48441 2009-05-10  Bruno Haible  <bruno@clisp.org>
48442
48443         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48444         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48445         it rewrites every file name only once.
48446         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48447
48448 2009-05-08  Bruno Haible  <bruno@clisp.org>
48449
48450         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48451         instead of 'max'.
48452
48453 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48454
48455         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48456         sockaddr_storage test.
48457
48458 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48459
48460         * modules/sys_socket (Makefile.am): Substitute
48461         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48462         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48463         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48464         * tests/test-sys_socket.c: Check sockaddr_storage.
48465
48466 2009-05-08  Bruno Haible  <bruno@clisp.org>
48467
48468         New module 'alignof'.
48469         * lib/alignof.h: New file.
48470         * modules/alignof: New file.
48471
48472 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48473             Bruno Haible  <bruno@clisp.org>
48474
48475         Fix test-file-has-acl on FreeBSD.
48476         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48477         mask is implicitly added.
48478         * tests/test-file-has-acl.c: Include <signal.h>.
48479         (main): Terminate the test after 5 seconds.
48480         * modules/acl-tests (configure.ac): Check for alarm function.
48481
48482 2009-05-04  Bruno Haible  <bruno@clisp.org>
48483
48484         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48486         * modules/errno (configure.ac): Drop AC_REQUIRE.
48487         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48488         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48489
48490 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48491
48492         * modules/glob-tests: New module.
48493         * tests/test-glob.c: Add.
48494
48495 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48496
48497         * modules/fnmatch-tests: New module.
48498         * tests/test-fnmatch.c: Add.
48499
48500 2009-05-04  Eric Blake  <ebb9@byu.net>
48501
48502         maint: make the new no-submodule-changes rule VPATH-safe
48503         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48504
48505 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48506             Bruno Haible  <bruno@clisp.org>
48507
48508         acl: Fix infinite loop on FreeBSD.
48509         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48510         of return value from acl_get_entry.
48511         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48512         Likewise.
48513
48514 2009-05-03  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/acl-internal.h (acl_entries): Clarify return value.
48517         * lib/acl_entries.c (acl_entries): Likewise.
48518
48519 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48520
48521         Bug fix in acl module.
48522         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48523
48524 2009-05-03  Bruno Haible  <bruno@clisp.org>
48525
48526         Create gperf-generated file in the source dir, not in the build dir.
48527         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48528         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48529         * modules/unicase/locale-language (unicase/locale-languages.h):
48530         Likewise.
48531         * modules/unicase/special-casing (unicase/special-casing-table.h):
48532         Likewise.
48533         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48534         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48535         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48536         Reported by Ralf Wildenhues.
48537
48538 2009-05-03  Bruno Haible  <bruno@clisp.org>
48539
48540         * modules/fnmatch (Description, configure.ac): Taken from
48541         fnmatch-posix.
48542         * modules/fnmatch-posix: Turn into a symbolic reference to the
48543         'fnmatch' module, and deprecate.
48544         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48545
48546 2009-05-03  Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48549         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48550         Reported by Ralf Wildenhues.
48551
48552 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48553
48554         * m4/fnmatch.m4: Fix fnmatch re-define.
48555
48556 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48557
48558         priv-set: new module and tests; adapt write-any-file
48559         * lib/priv-set.c: New file.
48560         * lib/priv-set.h: New file.
48561         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48562         * lib/write-any-file.c: Simplify by using priv-set module.
48563         * m4/priv-set.m4: New file.
48564         * modules/priv-set: New file.
48565         * modules/unlinkdir: Add dependency on priv-set module.
48566         * modules/write-any-file: Likewise.
48567
48568         Tests for module 'priv-set'.
48569         * modules/priv-set-tests: New file.
48570         * tests/test-priv-set.c: New file.
48571
48572 2009-05-03  Jim Meyering  <meyering@redhat.com>
48573             Bruno Haible  <bruno@clisp.org>
48574
48575         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48576         use the converted UTF-8 variant of the name instead.
48577
48578 2009-05-03  Jim Meyering  <meyering@redhat.com>
48579
48580         tests: tighten some getdate tests
48581         * tests/test-getdate.c (main): Tighten tests: require equality,
48582         not just greater than.  Set TZ envvar to UTC0.
48583
48584 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48585
48586         getdate: correctly interpret "next monday" when run on a Monday
48587         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48588         that e.g., "next tues" (when run on a tuesday) results in a date
48589         that is one week in the future, and not today's date.
48590         I.e., add a week when the wday is the same as the current one.
48591         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48592         and earlier by Martin Bernreuther and Jan Minář.
48593         * tests/test-getdate.c (main): Check that "next DAY" is always in
48594         the future and that "last DAY" is always in the past.
48595
48596 2009-05-02  Jim Meyering  <meyering@redhat.com>
48597
48598         build: ensure that a release build fails when a submodule is unclean
48599         * top/maint.mk (no-submodule-changes): New rule.
48600         (alpha beta major): Depend on it.
48601
48602 2009-05-02  Bruno Haible  <bruno@clisp.org>
48603
48604         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48605         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48606         shell variable gl_fnmatch_required to detect which variant is
48607         requested.
48608         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48609         gl_FUNC_FNMATCH_POSIX.
48610         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48611         exclude fnmatch-posix.
48612
48613 2009-05-02  Bruno Haible  <bruno@clisp.org>
48614
48615         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48616         * modules/mbsrtowcs (License): Change to LGPLv2+.
48617         * modules/strnlen1 (License): Likewise.
48618         Reported by Simon Josefsson.
48619
48620 2009-05-02  Bruno Haible  <bruno@clisp.org>
48621
48622         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48623         "cross".
48624         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48625         gnulib-tool was called with option --source-base=lib.
48626
48627 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48628
48629         Use automake *-local hooks without commands, for extensibility.
48630         * modules/localcharset (Makefile.am): Rename install-exec-local
48631         rule to install-exec-localcharset, and make it a prerequisite of
48632         install-exec-local.  Likewise, rename the uninstall-local rule to
48633         uninstall-localcharset, and make it a prerequisite of the former.
48634
48635 2009-05-01  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48638         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48639         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48641         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48642         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48643         m4/locale-zh.m4, m4/codeset.m4.
48644
48645         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48646         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48647         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48648         m4/locale-zh.m4.
48649
48650         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48651         REPLACE_WCRTOMB if mbstate_t must be replaced.
48652         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48653         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48654
48655 2009-05-01  Bruno Haible  <bruno@clisp.org>
48656
48657         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48658         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48659         dngettext, dcngettext, textdomain, bindtextdomain,
48660         bind_textdomain_codeset): Undefine before redefining.
48661
48662 2009-04-30  Bruno Haible  <bruno@clisp.org>
48663
48664         Fix bug introduced on 2009-04-25.
48665         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48666         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48667         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48668         is defined.
48669         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48670         is defined.
48671         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48672         is defined.
48673         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48674
48675 2009-04-28  Bruno Haible  <bruno@clisp.org>
48676
48677         Comment tweaks.
48678         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48679         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48680         * lib/unicase.h (u*_casexfrm): Likewise.
48681         Reported by Paolo Bonzini.
48682
48683 2009-04-28  Bruno Haible  <bruno@clisp.org>
48684
48685         Fix a compilation error.
48686         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48687         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48688         Reported by Jim Meyering.
48689
48690 2009-04-27  Bruno Haible  <bruno@clisp.org>
48691
48692         New module 'libunistring'.
48693         * modules/libunistring: New file.
48694         * m4/libunistring.m4: New file.
48695         * MODULES.html.sh (Unicode string functions): Add it.
48696
48697 2009-04-27  Eric Blake  <ebb9@byu.net>
48698
48699         maint.mk: allow package-specific header to provide <config.h>
48700         * top/maint.mk (sc_require_config_h): New variable.
48701         (sc_require_config_h, sc_require_config_h_first): Use it.
48702
48703 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48704
48705         * top/maint.mk (sc_avoid_if_before_free): Except
48706         useless-if-before-free script.
48707
48708 2009-04-27  Eric Blake  <ebb9@byu.net>
48709
48710         maintainer-makefile: depend on all required helper scripts
48711         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48712         useless-if-before-free.
48713         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48714         version, rather than assuming gnulib checkout is available.
48715         Reported by Simen Josefsson.
48716
48717 2009-04-26  Bruno Haible  <bruno@clisp.org>
48718
48719         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48720         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48721         "../" or "..".
48722
48723 2009-04-26  Bruno Haible  <bruno@clisp.org>
48724
48725         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48726         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48727         AC_LIB_HAVE_LINKFLAGS.
48728
48729 2009-04-26  Bruno Haible  <bruno@clisp.org>
48730
48731         Simplify calling convention of u*_conv_from_encoding.
48732         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48733         u32_conv_from_encoding): Expect a resultbuf argument and return the
48734         result directly as a pointer.
48735         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48736         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48737         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48738         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48739         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48740         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48741         Update.
48742         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48743         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48744         * lib/vasnprintf.c (VASNPRINTF): Update.
48745         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48746         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48747         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48748         * NEWS: Mention the change.
48749
48750 2009-04-26  Bruno Haible  <bruno@clisp.org>
48751
48752         Simplify calling convention of u*_conv_to_encoding.
48753         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48754         u32_conv_to_encoding): Expect a resultbuf argument and return the
48755         result directly as a pointer.
48756         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48757         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48758         freeing scaled_offsets if mem_iconveha failed.
48759         * lib/unicase/u-casexfrm.h (FUNC): Update.
48760         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48761         * lib/vasnprintf.c (VASNPRINTF): Update.
48762         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48763         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48764         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48765         * NEWS: Mention the change.
48766
48767 2009-04-26  Bruno Haible  <bruno@clisp.org>
48768
48769         Avoid test failures on AIX and OSF/1.
48770         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48771         malloc(0).
48772         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48773         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48774         Likewise.
48775         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48776         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48777         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48778         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48779         * doc/posix-functions/malloc.texi: Document the portability problem
48780         related to malloc(0).
48781
48782 2009-04-26  Bruno Haible  <bruno@clisp.org>
48783
48784         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48785         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48786         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48787
48788 2009-04-25  Bruno Haible  <bruno@clisp.org>
48789
48790         Avoid link error when creating a namespace clean library.
48791         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48792         as macro with arguments if already defined as an alias.
48793         * lib/signbitf.c (gl_signbitf): Don't undefine.
48794         * lib/signbitd.c (gl_signbitd): Don't undefine.
48795         * lib/signbitl.c (gl_signbitl): Don't undefine.
48796
48797 2009-04-25  Jim Meyering  <meyering@redhat.com>
48798
48799         vc-list-files: fix another quoting bug
48800         * build-aux/vc-list-files: Avoid sed backslash expansion
48801         of pathological directory names.
48802
48803 2009-04-25  Eric Blake  <ebb9@byu.net>
48804
48805         vc-list-files: fix shell quoting error
48806         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48807         timestamp.
48808
48809 2009-04-25  Jim Meyering  <meyering@redhat.com>
48810
48811         vc-list-files: restore lost functionality with subdir argument
48812         * build-aux/vc-list-files: When given a non-"." sub-directory
48813         argument, substitute the $dir/ prefix back onto each resulting name.
48814         Otherwise, coreutils' root_tests check would fail.
48815
48816 2009-04-24  Eric Blake  <ebb9@byu.net>
48817
48818         vc-list-files: ignore git symlinks
48819         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48820         than ls-files, to ignore git symlinks.
48821
48822         maint.mk: import improvements from m4
48823         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48824         (move_if_change): Delete unused macro.
48825         (news-date-check, vc-diff-check): Support VPATH builds.
48826         (announcement): Likewise.  Split --bootstrap-tools list...
48827         (boostrap-tools): ...into separate list, which can be overridden
48828         in cfg.mk.
48829         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48830         requiring dependency on useless-if-before-free module.
48831         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48832         Support VPATH builds.
48833
48834 2009-04-24  Jim Meyering  <meyering@redhat.com>
48835
48836         maint.mk: remove coreutils-specific rules and variables
48837         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48838         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48839         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48840
48841         maint.mk: remove obsolete rule
48842         * top/maint.mk (rel-check): Remove rule.
48843         (WGET, WGETFLAGS): Remove now-unused variables.
48844
48845 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48846
48847         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48848         consistency.
48849
48850         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48851         '$(PATH_SEPARATOR)' instead of ':'.
48852
48853 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48854
48855         * lib/getopt1.c (main): Use 'const' for static array.
48856
48857 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48858
48859         * top/maint.mk: Sync with coreutils.
48860         * NEWS: Explain incompatibilities.
48861
48862 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48863             Bruno Haible  <bruno@clisp.org>
48864
48865         Fix cross-compilation results.
48866         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48867         statement, as third argument of AC_TRY_RUN.
48868         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48869         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48870         Likewise.
48871         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48872         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48873         Likewise.
48874         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48876         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48877
48878 2009-04-20  Bruno Haible  <bruno@clisp.org>
48879
48880         Avoid test failure on mingw.
48881         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48882
48883 2009-04-20  Bruno Haible  <bruno@clisp.org>
48884
48885         Avoid compilation error on mingw.
48886         * modules/localename-tests (Depends-on): Add locale.
48887
48888 2009-04-19  Bruno Haible  <bruno@clisp.org>
48889
48890         Support for building a shared library on Windows platforms.
48891         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48892         (main): Test the presence of UNINORM_NFC here.
48893         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48894         (main): Test the presence of UNINORM_NFD here.
48895         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48896         (main): Test the presence of UNINORM_NFKC here.
48897         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48898         (main): Test the presence of UNINORM_NFKD here.
48899
48900 2009-04-19  Bruno Haible  <bruno@clisp.org>
48901
48902         Avoid a compiler warning.
48903         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48904         Change type of variable 'sequence'.
48905
48906 2009-04-19  Bruno Haible  <bruno@clisp.org>
48907
48908         * modules/configmake (Makefile.am): When the contents of configmake.h
48909         does not change, arrange to preserve its modification time.
48910
48911 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48912
48913         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48914         gettext domain.
48915
48916 2009-04-16  Jim Meyering  <meyering@redhat.com>
48917
48918         useless-if-before-free: improve conversion code
48919         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48920         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48921
48922 2009-04-14  Bruno Haible  <bruno@clisp.org>
48923
48924         * modules/fcntl (Depends-on): Add extensions.
48925         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48926
48927 2009-04-12  Ben Pfaff  <blp@gnu.org>
48928
48929         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48930         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48931
48932 2009-03-20  Ben Pfaff  <blp@gnu.org>
48933
48934         Make rename replace existing destinations on Windows.
48935         * m4/rename.m4: Add test for Mingw.
48936         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48937         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48938         * doc/posix-functions/rename.texi: Document.
48939
48940 2009-04-10  Bruno Haible  <bruno@clisp.org>
48941
48942         New include file "iconveh.h".
48943         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48944         * lib/striconveh.h: Include it.
48945         (enum iconv_ilseq_handler): Remove definition.
48946         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48947         striconveh.h.
48948         * lib/striconveha.c: Include striconveh.h.
48949         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48950         * modules/striconveh (Files): Add lib/iconveh.h.
48951         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48952         lib/striconveh.h.
48953
48954 2009-04-10  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/uniconv.h: Update comment.
48957
48958 2009-04-10  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48961         always.
48962         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48963         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48964         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48965         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48966         "unistring-notinline.h", so that the function gets defined always.
48967         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48968         * lib/unistr/u8-uctomb.c: Likewise.
48969         * lib/unistr/u16-mbtouc.c: Likewise.
48970         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48971         * lib/unistr/u16-uctomb.c: Likewise.
48972         * lib/unistr/u32-mbtouc.c: Likewise.
48973         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48974         * lib/unistr/u32-uctomb.c: Likewise.
48975
48976 2009-04-10  Bruno Haible  <bruno@clisp.org>
48977
48978         Mark 'utime' obsolete.
48979         * modules/utime (Status, Notice): New sections.
48980         Suggested by Jim Meyering.
48981
48982         Fix cross-compile guess for utime test.
48983         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48984         autoconf.
48985         * doc/posix-functions/utime.texi: Give more precisions.
48986         Reported by Jan <ipif@ymail.com>.
48987
48988 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48989
48990         filevercmp: correct today's change
48991         * lib/filevercmp.c: Also handle coreutils' test inputs.
48992         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48993
48994         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48995         for reporting it.
48996         * lib/filevercmp.c: Special handle for "", "." and "..".
48997         * tests/test-filevercmp.c: Enlarge the set suite.
48998
48999 2009-04-07  Jim Meyering  <meyering@redhat.com>
49000
49001         useless-if-before-free: show how to remove braced useless free, too
49002         * build-aux/useless-if-before-free: still only in a comment, though.
49003
49004 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49005
49006         maint.mk: import changes to syntax-check macros from coreutils
49007         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49008         Use them in the relevant macros.
49009
49010 2009-04-06  Bruno Haible  <bruno@clisp.org>
49011
49012         Fix unportable use of bit-fields.
49013         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49014         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49015         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49016
49017 2009-04-06  Bruno Haible  <bruno@clisp.org>
49018
49019         Avoid test failures on AIX and OSF/1.
49020         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49021         that malloc(0) = NULL.
49022         * tests/unicase/test-u8-tolower.c (check): Likewise.
49023         * tests/unicase/test-u8-totitle.c (check): Likewise.
49024         * tests/unicase/test-u8-toupper.c (check): Likewise.
49025         * tests/unicase/test-u16-casefold.c (check): Likewise.
49026         * tests/unicase/test-u16-tolower.c (check): Likewise.
49027         * tests/unicase/test-u16-totitle.c (check): Likewise.
49028         * tests/unicase/test-u16-toupper.c (check): Likewise.
49029         * tests/unicase/test-u32-casefold.c (check): Likewise.
49030         * tests/unicase/test-u32-tolower.c (check): Likewise.
49031         * tests/unicase/test-u32-totitle.c (check): Likewise.
49032         * tests/unicase/test-u32-toupper.c (check): Likewise.
49033         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49034         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49035         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49036         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49037         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49038         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49039         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49040         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49041         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49042         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49043         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49044         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49045
49046 2009-04-05  Bruno Haible  <bruno@clisp.org>
49047
49048         Work around an autoconf limitation.
49049         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49050         comment line if it would be longer than 3 KB.
49051
49052 2009-04-05  Bruno Haible  <bruno@clisp.org>
49053
49054         Avoid test failure with libiconv-1.13.
49055         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49056         of the expected test results.
49057
49058 2009-04-05  Bruno Haible  <bruno@clisp.org>
49059
49060         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49061         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49062         that it should be installed.
49063
49064 2009-04-05  Bruno Haible  <bruno@clisp.org>
49065
49066         * gnulib-tool: New option --copy-file.
49067         (func_usage): Document it.
49068         (func_dest_tmpfilename): Moved out of func_import.
49069         (func_add_file, func_update_file): New functions, extracted from
49070         func_import.
49071         (func_import): Update.
49072
49073 2009-04-05  Karl Berry  <karl@gnu.org>
49074
49075         * README: prominently mention gnulib-tool.
49076         Rearrange sections so getting the code is near the top.
49077
49078 2009-04-05  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/unicase.h: Mention u*_cmp2.
49081         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49082         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49083         * lib/unicase/ulc-casecmp.c: Likewise.
49084         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49085         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49086         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49087         unistr/u8-cmp.
49088         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49089         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49090         unistr/u16-cmp.
49091         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49092         unistr/u32-cmp.
49093
49094         * lib/uninorm.h: Mention u*_cmp2.
49095         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49096         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49097         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49098         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49099         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49100         unistr/u8-cmp.
49101         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49102         unistr/u16-cmp.
49103         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49104         unistr/u32-cmp.
49105
49106         New module 'unistr/u32-cmp2'.
49107         * lib/unistr/u32-cmp2.c: New file.
49108         * modules/unistr/u32-cmp2: New file.
49109
49110         New module 'unistr/u16-cmp2'.
49111         * lib/unistr/u16-cmp2.c: New file.
49112         * modules/unistr/u16-cmp2: New file.
49113
49114         New module 'unistr/u8-cmp2'.
49115         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49116         * lib/unistr/u8-cmp2.c: New file.
49117         * lib/unistr/u-cmp2.h: New file.
49118         * modules/unistr/u8-cmp2: New file.
49119
49120 2009-04-05  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/unictype.h (uc_property_is_valid): New macro.
49123         * tests/unictype/test-pr_byname.c (main): Use it.
49124
49125         * lib/unistr.h: Doc fixes.
49126         * lib/uniconv.h: Doc fixes.
49127         * lib/unictype.h: Doc fixes.
49128
49129 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         Port coreutils 7.2 to Solaris 8.
49132
49133         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49134         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49135         for Solaris 8.  This is a bit of a hack, as it means it's the
49136         caller's responsibility to add -lnsl if needed, but most likely it
49137         won't be needed since only getaddrinfo uses this and getaddrinfo
49138         isn't needed on Solaris 8.
49139
49140         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49141         problem to Solaris 8 encountered with coreutils 7.2, which
49142         resulted in a message "fnmatch.c:292: warning: passing argument 4
49143         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49144         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49145
49146 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49147
49148         * m4/ld-version-script.m4: Add FIXME comment.
49149
49150 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49151
49152         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49153         SOVERSION variable.
49154
49155 2009-04-02  Bruno Haible  <bruno@clisp.org>
49156
49157         * Makefile (info, html, dvi, pdf): Combine the rules.
49158         Suggested by Jim Meyering.
49159
49160 2009-04-01  Bruno Haible  <bruno@clisp.org>
49161
49162         * Makefile (info, html, dvi, pdf): New targets.
49163         Reported by Reuben Thomas <rrt@sc3d.org>.
49164
49165 2009-04-01  Bruno Haible  <bruno@clisp.org>
49166
49167         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49168         can be put into PATH.
49169         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49170
49171 2009-04-01  Bruno Haible  <bruno@clisp.org>
49172
49173         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49174
49175 2009-04-01  Bruno Haible  <bruno@clisp.org>
49176
49177         Rename module 'visibility'.
49178         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49179         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49180         * doc/gnulib.texi: Update.
49181         * MODULES.html.sh (Misc): Update.
49182         * NEWS: Mention the change.
49183
49184 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49185
49186         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49187         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49188         Eric Blake <ebb9@byu.net> for review.
49189         * MODULES.html.sh: Add lib-msvc-compat.
49190         * doc/gnulib.texi: Link to new section.
49191         * m4/ld-output-def.m4: New file.
49192         * doc/ld-output-def.texi: New file.
49193
49194 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49195
49196         Rename ld-version-script to lib-symbol-versions.  Suggested by
49197         Bruno Haible <bruno@clisp.org>.
49198         * modules/ld-version-script: Renamed to lib-symbol-versions.
49199         * doc/ld-version-script.texi: Fix module name.
49200         * MODULES.html.sh: Add lib-symbol-versions.
49201
49202 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49203
49204         * modules/u64-tests: New file.
49205         * tests/test-u64.c: New file.
49206
49207 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49208
49209         * MODULES.html.sh: Mention u64.
49210         * modules/u64: New module.
49211         * modules/crypto/sha512: Depend on u64 module instead of providing
49212         u64.h.
49213
49214 2009-03-27  Eric Blake  <ebb9@byu.net>
49215
49216         test-strerror: make debugging EAI_SYSTEM easier
49217         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49218         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49219         failure was EAI_SYSTEM.
49220
49221 2009-03-25  Bruno Haible  <bruno@clisp.org>
49222
49223         Fix a problem with --enable-relocatable on Solaris 7.
49224         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49225         since 2008-02-24.
49226
49227 2009-03-25  Eric Blake  <ebb9@byu.net>
49228
49229         test-sockets: avoid gcc warning
49230         * tests/test-sockets.c (main): Silence compiler warning.
49231
49232 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         New modules nproc, pthread, contributed by Glen Lenker.
49235
49236         * MODULES.html.sh: Add pthread, nproc.
49237         * lib/nproc.c: New file.
49238         * lib/nproc.h: New file.
49239         * lib/pthread.in.h: New file.
49240         * m4/pthread.m4: New file.
49241         * modules/nproc: New file.
49242         * modules/pthread: New file.
49243
49244 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49245
49246         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49247         New variable.
49248
49249 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49250
49251         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49252         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49253         * tests/test-filevercmp.c: Add tests for backup suffixes.
49254
49255 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49256
49257         * modules/stdlib (Depends-on): Add stdint, needed when defining
49258         struct random_data on, for example, HP-UX 10.20.  Reported by
49259         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49260
49261 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49262
49263         * lib/readline.c (readline): Call fflush on stdout after printing
49264         prompt.
49265
49266 2009-03-20  Bruno Haible  <bruno@clisp.org>
49267
49268         Remove dependency from 'close' module to -lws2_32 on native Windows.
49269         * lib/close-hook.h: New file.
49270         * lib/close-hook.c: New file.
49271         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49272         w32sock.h.
49273         (_gl_close_fd_maybe_socket): Remove function.
49274         (rpl_close): Invoke execute_all_close_hooks instead of
49275         _gl_close_fd_maybe_socket.
49276         * lib/sockets.c: Include close-hook.h, w32sock.h.
49277         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49278         (close_sockets_hook): New variable.
49279         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49280         (gl_sockets_cleanup): Unregister it.
49281         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49282         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49283         * modules/close-hook: New file.
49284         * modules/close (Files): Remove lib/w32sock.h.
49285         (Depends-on): Add close-hook.
49286         (Link): Remove section.
49287         * modules/sockets (Files): Add lib/w32sock.h.
49288         (Depends-on): Add close-hook.
49289         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49290         invocation.
49291         * NEWS: Mention that LIB_CLOSE is gone.
49292
49293 2009-03-23  Eric Blake  <ebb9@byu.net>
49294
49295         signal-tests: test previous patch
49296         * tests/test-signal.c: New file.
49297         * modules/signal-tests: Likewise.
49298
49299         signal.h: always support 'volatile sig_atomic_t'
49300         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49301         (gl_SIGNAL_H_DEFAULTS): Add a default.
49302         * modules/signal (Makefile.am): Substitute if needed.
49303         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49304         users can blindly add volatile.
49305         * doc/posix-headers/signal.texi (signal.h): Document it.
49306         Reported by Matthew Woehlke.
49307
49308 2009-03-23  Jim Meyering  <meyering@redhat.com>
49309
49310         pathmax: PATH_MAX: use pathconf only when available
49311         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49312         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49313         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49314         This avoids a link failure in a PSP cross-compilation environment
49315         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49316
49317         * lib/vasnprintf.c (divide): Fix typo in comment.
49318
49319 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49320
49321         * gnulib-tool (func_filter_filelist): Fix comment.
49322
49323 2009-03-20  Bruno Haible  <bruno@clisp.org>
49324
49325         Make sockets.h self-contained.
49326         * lib/sockets.c: Include sockets.h first.
49327         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49328
49329 2009-03-19  Eric Blake  <ebb9@byu.net>
49330
49331         doc: mention more functions added in cygwin 1.7.0
49332         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49333         addition.
49334         * doc/posix-functions/log2f.texi: Likewise.
49335
49336 2009-03-19  Jim Meyering  <meyering@redhat.com>
49337
49338         fsusage: avoid syntax error due to statement-before-declaration
49339         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49340         after all declarations.  Reported by Matthew Woehlke in
49341         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49342
49343 2009-03-18  Eric Blake  <ebb9@byu.net>
49344
49345         build-aux/compile: sync from automake
49346         * build-aux/compile: New file, from automake.
49347         * config/srclist.txt: Mention build-aux/compile.
49348
49349 2009-03-17  Bruno Haible  <bruno@clisp.org>
49350
49351         * lib/git-merge-changelog.c: Fix typo in comment.
49352         Reported by Reuben Thomas <rrt@sc3d.org>.
49353
49354 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49355
49356         * m4/regex.m4: update and improve help for
49357         --without-included-regex.
49358
49359 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49360
49361         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49362         failure on missing include files.
49363
49364 2009-03-17  Eric Blake  <ebb9@byu.net>
49365
49366         doc: mention more functions added in cygwin 1.7.0
49367         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49368         addition.
49369         * doc/posix-functions/fwscanf.texi: Likewise.
49370         * doc/posix-functions/swprintf.texi: Likewise.
49371         * doc/posix-functions/swscanf.texi: Likewise.
49372         * doc/posix-functions/vfwprintf.texi: Likewise.
49373         * doc/posix-functions/vfwscanf.texi: Likewise.
49374         * doc/posix-functions/vswprintf.texi: Likewise.
49375         * doc/posix-functions/vswscanf.texi: Likewise.
49376         * doc/posix-functions/vwprintf.texi: Likewise.
49377         * doc/posix-functions/vwscanf.texi: Likewise.
49378         * doc/posix-functions/wcscasecmp.texi: Likewise.
49379         * doc/posix-functions/wcsdup.texi: Likewise.
49380         * doc/posix-functions/wcsftime.texi: Likewise.
49381         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49382         * doc/posix-functions/wprintf.texi: Likewise.
49383         * doc/posix-functions/wscanf.texi: Likewise.
49384         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49385
49386 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49387
49388         maint.mk: really add $(AM_MAKEFLAGS)
49389         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49390         was inadvertently omitted in the last commit.
49391         Spotted by Bruno Haible.
49392
49393         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49394         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49395         $(AM_MAKEFLAGS)' rather than plain `make'.
49396
49397         gnulib-tool: execute $MAKE not make
49398         * gnulib-tool: Default $MAKE to 'make'.
49399         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49400         than make.  Initialize $MAKE in the do-autobuild script.
49401
49402         gnulib-tool: use $MAKE not make in generated files
49403         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49404         make, in generated files.  Initialize $MAKE in the do-autobuild
49405         script.
49406
49407         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49408
49409         GNUmakefile: disable parallelism only for multiple, recursive targets
49410         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49411         additions in the Makefile.
49412         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49413         by Automake.
49414         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49415         are listed on the command line and at least one of them is
49416         listed in $(ALL_RECURSIVE_TARGETS).
49417
49418 2009-03-14  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49421         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49422         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49423         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49424         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49425         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49426         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49427         unistr/u8-uctomb.
49428         * modules/unistr/u8-strchr (Depends-on): Likewise.
49429         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49430         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49431         unistr/u16-uctomb.
49432         * modules/unistr/u16-strchr (Depends-on): Likewise.
49433         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49434
49435 2009-03-12  Bruno Haible  <bruno@clisp.org>
49436
49437         Work around select() bug on Interix 3.5.
49438         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49439         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49440         * m4/select.m4: New file.
49441         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49442         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49443         * modules/select (Files): Add m4/select.m4.
49444         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49445         * modules/nanosleep (Depends-on): Add select.
49446         * modules/poll (Depends-on): Likewise.
49447         * doc/posix-functions/select.texi: Mention the Interix bug.
49448         Reported by Markus Duft <mduft@gentoo.org>.
49449
49450         * lib/select.c: Renamed from lib/winsock-select.c.
49451         * modules/select (Files): Add lib/select.c, remove
49452         lib/winsock-select.c.
49453         (configure.ac): Update.
49454
49455 2009-03-12  Jim Meyering  <meyering@redhat.com>
49456
49457         avoid gcc warnings about unused macro definitions
49458         * lib/readtokens.c (STREQ): Remove unused definition.
49459         * lib/xmalloc.c (SIZE_MAX): Likewise.
49460         * lib/openat-die.c (N_): Likewise.
49461         * lib/mountlist.c (SIZE_MAX): Remove definition.
49462         Instead, include <stdint.h>.
49463         * lib/readutmp.c: Likewise.
49464         * modules/readutmp (Depends-on): Add stdint.
49465         * modules/mountlist (Depends-on): Add stdint.
49466         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49467
49468 2009-03-10  Bruno Haible  <bruno@clisp.org>
49469
49470         Tests for module 'mbmemcasecoll'.
49471         * modules/mbmemcasecoll-tests: New file.
49472         * tests/test-mbmemcasecoll1.sh: New file.
49473         * tests/test-mbmemcasecoll2.sh: New file.
49474         * tests/test-mbmemcasecoll3.sh: New file.
49475         * tests/test-mbmemcasecoll.c: New file.
49476
49477         New module 'mbmemcasecoll'.
49478         * lib/mbmemcasecoll.h: New file.
49479         * lib/mbmemcasecoll.c: New file.
49480         * modules/mbmemcasecoll: New file.
49481
49482         * tests/test-mbmemcasecmp.h: New file, extracted from
49483         tests/test-mbmemcasecmp.c.
49484         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49485         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49486         (main): Update.
49487         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49488
49489 2009-03-09  Bruno Haible  <bruno@clisp.org>
49490
49491         Tests for module 'mbmemcasecmp'.
49492         * modules/mbmemcasecmp-tests: New file.
49493         * tests/test-mbmemcasecmp1.sh: New file.
49494         * tests/test-mbmemcasecmp2.sh: New file.
49495         * tests/test-mbmemcasecmp3.sh: New file.
49496         * tests/test-mbmemcasecmp.c: New file.
49497
49498         New module 'mbmemcasecmp'.
49499         * lib/mbmemcasecmp.h: New file.
49500         * lib/mbmemcasecmp.c: New file.
49501         * modules/mbmemcasecmp: New file.
49502
49503 2009-03-09  Bruno Haible  <bruno@clisp.org>
49504
49505         Tests for module 'unicase/ulc-casecoll'.
49506         * modules/unicase/ulc-casecoll-tests: New file.
49507         * tests/unicase/test-ulc-casecoll1.sh: New file.
49508         * tests/unicase/test-ulc-casecoll2.sh: New file.
49509         * tests/unicase/test-ulc-casecoll.c: New file.
49510
49511         New module 'unicase/ulc-casecoll'.
49512         * lib/unicase.h (ulc_casecoll): New declaration.
49513         * lib/unicase/ulc-casecoll.c: New file.
49514         * modules/unicase/ulc-casecoll: New file.
49515
49516         New module 'unicase/ulc-casexfrm'.
49517         * lib/unicase.h (ulc_casexfrm): New declaration.
49518         * lib/unicase/ulc-casexfrm.c: New file.
49519         * modules/unicase/ulc-casexfrm: New file.
49520
49521 2009-03-09  Bruno Haible  <bruno@clisp.org>
49522
49523         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49524         invocations.
49525
49526         * m4/mbscasecmp.m4: Remove file.
49527         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49528         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49529
49530         * m4/mbscasestr.m4: Remove file.
49531         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49532         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49533
49534         * m4/mbschr.m4: Remove file.
49535         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49536         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49537
49538         * m4/mbscspn.m4: Remove file.
49539         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49540         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49541
49542         * m4/mbslen.m4: Remove file.
49543         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49544         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49545
49546         * m4/mbsncasecmp.m4: Remove file.
49547         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49548         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49549
49550         * m4/mbsnlen.m4: Remove file.
49551         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49552         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49553
49554         * m4/mbspbrk.m4: Remove file.
49555         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49556         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49557
49558         * m4/mbspcasecmp.m4: Remove file.
49559         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49560         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49561
49562         * m4/mbsrchr.m4: Remove file.
49563         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49564         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49565
49566         * m4/mbssep.m4: Remove file.
49567         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49568         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49569
49570         * m4/mbsspn.m4: Remove file.
49571         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49572         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49573
49574         * m4/mbsstr.m4: Remove file.
49575         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49576         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49577
49578         * m4/mbstok_r.m4: Remove file.
49579         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49580         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49581
49582         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49583
49584         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49585         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49586
49587         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49588
49589 2009-03-08  Bruno Haible  <bruno@clisp.org>
49590
49591         Tests for module 'unicase/ulc-casecmp'.
49592         * modules/unicase/ulc-casecmp-tests: New file.
49593         * tests/unicase/test-ulc-casecmp1.sh: New file.
49594         * tests/unicase/test-ulc-casecmp2.sh: New file.
49595         * tests/unicase/test-ulc-casecmp.c: New file.
49596
49597         New module 'unicase/ulc-casecmp'.
49598         * lib/unicase.h (ulc_casecmp): New declaration.
49599         * lib/unicase/ulc-casecmp.c: New file.
49600         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49601         'const SRC_UNIT *'.
49602         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49603         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49604         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49605         * modules/unicase/ulc-casecmp: New file.
49606
49607         Tests for module 'unicase/u32-is-cased'.
49608         * modules/unicase/u32-is-cased-tests: New file.
49609         * tests/unicase/test-u32-is-cased.c: New file.
49610
49611         Tests for module 'unicase/u16-is-cased'.
49612         * modules/unicase/u16-is-cased-tests: New file.
49613         * tests/unicase/test-u16-is-cased.c: New file.
49614
49615         Tests for module 'unicase/u8-is-cased'.
49616         * modules/unicase/u8-is-cased-tests: New file.
49617         * tests/unicase/test-u8-is-cased.c: New file.
49618         * tests/unicase/test-is-cased.h: New file.
49619
49620         New module 'unicase/u32-is-cased'.
49621         * lib/unicase/u32-is-cased.c: New file.
49622         * modules/unicase/u32-is-cased: New file.
49623
49624         New module 'unicase/u16-is-cased'.
49625         * lib/unicase/u16-is-cased.c: New file.
49626         * modules/unicase/u16-is-cased: New file.
49627
49628         New module 'unicase/u8-is-cased'.
49629         * lib/unicase/u8-is-cased.c: New file.
49630         * lib/unicase/u-is-cased.h: New file.
49631         * modules/unicase/u8-is-cased: New file.
49632
49633         Tests for module 'unicase/u32-is-casefolded'.
49634         * modules/unicase/u32-is-casefolded-tests: New file.
49635         * tests/unicase/test-u32-is-casefolded.c: New file.
49636
49637         Tests for module 'unicase/u16-is-casefolded'.
49638         * modules/unicase/u16-is-casefolded-tests: New file.
49639         * tests/unicase/test-u16-is-casefolded.c: New file.
49640
49641         Tests for module 'unicase/u8-is-casefolded'.
49642         * modules/unicase/u8-is-casefolded-tests: New file.
49643         * tests/unicase/test-u8-is-casefolded.c: New file.
49644         * tests/unicase/test-is-casefolded.h: New file.
49645
49646         New module 'unicase/u32-is-casefolded'.
49647         * lib/unicase/u32-is-casefolded.c: New file.
49648         * modules/unicase/u32-is-casefolded: New file.
49649
49650         New module 'unicase/u16-is-casefolded'.
49651         * lib/unicase/u16-is-casefolded.c: New file.
49652         * modules/unicase/u16-is-casefolded: New file.
49653
49654         New module 'unicase/u8-is-casefolded'.
49655         * lib/unicase/u8-is-casefolded.c: New file.
49656         * modules/unicase/u8-is-casefolded: New file.
49657
49658         Tests for module 'unicase/u32-is-titlecase'.
49659         * modules/unicase/u32-is-titlecase-tests: New file.
49660         * tests/unicase/test-u32-is-titlecase.c: New file.
49661
49662         Tests for module 'unicase/u16-is-titlecase'.
49663         * modules/unicase/u16-is-titlecase-tests: New file.
49664         * tests/unicase/test-u16-is-titlecase.c: New file.
49665
49666         Tests for module 'unicase/u8-is-titlecase'.
49667         * modules/unicase/u8-is-titlecase-tests: New file.
49668         * tests/unicase/test-u8-is-titlecase.c: New file.
49669         * tests/unicase/test-is-titlecase.h: New file.
49670
49671         New module 'unicase/u32-is-titlecase'.
49672         * lib/unicase/u32-is-titlecase.c: New file.
49673         * modules/unicase/u32-is-titlecase: New file.
49674
49675         New module 'unicase/u16-is-titlecase'.
49676         * lib/unicase/u16-is-titlecase.c: New file.
49677         * modules/unicase/u16-is-titlecase: New file.
49678
49679         New module 'unicase/u8-is-titlecase'.
49680         * lib/unicase/u8-is-titlecase.c: New file.
49681         * modules/unicase/u8-is-titlecase: New file.
49682
49683         Tests for module 'unicase/u32-is-lowercase'.
49684         * modules/unicase/u32-is-lowercase-tests: New file.
49685         * tests/unicase/test-u32-is-lowercase.c: New file.
49686
49687         Tests for module 'unicase/u16-is-lowercase'.
49688         * modules/unicase/u16-is-lowercase-tests: New file.
49689         * tests/unicase/test-u16-is-lowercase.c: New file.
49690
49691         Tests for module 'unicase/u8-is-lowercase'.
49692         * modules/unicase/u8-is-lowercase-tests: New file.
49693         * tests/unicase/test-u8-is-lowercase.c: New file.
49694         * tests/unicase/test-is-lowercase.h: New file.
49695
49696         New module 'unicase/u32-is-lowercase'.
49697         * lib/unicase/u32-is-lowercase.c: New file.
49698         * modules/unicase/u32-is-lowercase: New file.
49699
49700         New module 'unicase/u16-is-lowercase'.
49701         * lib/unicase/u16-is-lowercase.c: New file.
49702         * modules/unicase/u16-is-lowercase: New file.
49703
49704         New module 'unicase/u8-is-lowercase'.
49705         * lib/unicase/u8-is-lowercase.c: New file.
49706         * modules/unicase/u8-is-lowercase: New file.
49707
49708         Tests for module 'unicase/u32-is-uppercase'.
49709         * modules/unicase/u32-is-uppercase-tests: New file.
49710         * tests/unicase/test-u32-is-uppercase.c: New file.
49711
49712         Tests for module 'unicase/u16-is-uppercase'.
49713         * modules/unicase/u16-is-uppercase-tests: New file.
49714         * tests/unicase/test-u16-is-uppercase.c: New file.
49715
49716         Tests for module 'unicase/u8-is-uppercase'.
49717         * modules/unicase/u8-is-uppercase-tests: New file.
49718         * tests/unicase/test-u8-is-uppercase.c: New file.
49719         * tests/unicase/test-is-uppercase.h: New file.
49720
49721         New module 'unicase/u32-is-uppercase'.
49722         * lib/unicase/u32-is-uppercase.c: New file.
49723         * modules/unicase/u32-is-uppercase: New file.
49724
49725         New module 'unicase/u16-is-uppercase'.
49726         * lib/unicase/u16-is-uppercase.c: New file.
49727         * modules/unicase/u16-is-uppercase: New file.
49728
49729         New module 'unicase/u8-is-uppercase'.
49730         * lib/unicase/u8-is-uppercase.c: New file.
49731         * modules/unicase/u8-is-uppercase: New file.
49732
49733         New module 'unicase/u32-is-invariant'.
49734         * lib/unicase/u32-is-invariant.c: New file.
49735         * modules/unicase/u32-is-invariant: New file.
49736
49737         New module 'unicase/u16-is-invariant'.
49738         * lib/unicase/u16-is-invariant.c: New file.
49739         * modules/unicase/u16-is-invariant: New file.
49740
49741         New module 'unicase/u8-is-invariant'.
49742         * lib/unicase/u8-is-invariant.c: New file.
49743         * lib/unicase/invariant.h: New file.
49744         * lib/unicase/u-is-invariant.h: New file.
49745         * modules/unicase/u8-is-invariant: New file.
49746
49747         Tests for module 'unicase/u32-casecoll'.
49748         * modules/unicase/u32-casecoll-tests: New file.
49749         * tests/unicase/test-u32-casecoll.c: New file.
49750
49751         Tests for module 'unicase/u16-casecoll'.
49752         * modules/unicase/u16-casecoll-tests: New file.
49753         * tests/unicase/test-u16-casecoll.c: New file.
49754
49755         Tests for module 'unicase/u8-casecoll'.
49756         * modules/unicase/u8-casecoll-tests: New file.
49757         * tests/unicase/test-u8-casecoll.c: New file.
49758
49759         New module 'unicase/u32-casecoll'.
49760         * lib/unicase/u32-casecoll.c: New file.
49761         * modules/unicase/u32-casecoll: New file.
49762
49763         New module 'unicase/u16-casecoll'.
49764         * lib/unicase/u16-casecoll.c: New file.
49765         * modules/unicase/u16-casecoll: New file.
49766
49767         New module 'unicase/u8-casecoll'.
49768         * lib/unicase/u8-casecoll.c: New file.
49769         * lib/unicase/u-casecoll.h: New file.
49770         * modules/unicase/u8-casecoll: New file.
49771
49772         New module 'unicase/u32-casexfrm'.
49773         * lib/unicase/u32-casexfrm.c: New file.
49774         * modules/unicase/u32-casexfrm: New file.
49775
49776         New module 'unicase/u16-casexfrm'.
49777         * lib/unicase/u16-casexfrm.c: New file.
49778         * modules/unicase/u16-casexfrm: New file.
49779
49780         New module 'unicase/u8-casexfrm'.
49781         * lib/unicase/u8-casexfrm.c: New file.
49782         * lib/unicase/u-casexfrm.h: New file.
49783         * modules/unicase/u8-casexfrm: New file.
49784
49785         Tests for module 'unicase/u32-casecmp'.
49786         * modules/unicase/u32-casecmp-tests: New file.
49787         * tests/unicase/test-u32-casecmp.c: New file.
49788
49789         Tests for module 'unicase/u16-casecmp'.
49790         * modules/unicase/u16-casecmp-tests: New file.
49791         * tests/unicase/test-u16-casecmp.c: New file.
49792
49793         Tests for module 'unicase/u8-casecmp'.
49794         * modules/unicase/u8-casecmp-tests: New file.
49795         * tests/unicase/test-u8-casecmp.c: New file.
49796         * tests/unicase/test-casecmp.h: New file.
49797
49798         New module 'unicase/u32-casecmp'.
49799         * lib/unicase/u32-casecmp.c: New file.
49800         * modules/unicase/u32-casecmp: New file.
49801
49802         New module 'unicase/u16-casecmp'.
49803         * lib/unicase/u16-casecmp.c: New file.
49804         * modules/unicase/u16-casecmp: New file.
49805
49806         New module 'unicase/u8-casecmp'.
49807         * lib/unicase/u8-casecmp.c: New file.
49808         * lib/unicase/u-casecmp.h: New file.
49809         * modules/unicase/u8-casecmp: New file.
49810
49811         Tests for module 'unicase/u32-casefold'.
49812         * modules/unicase/u32-casefold-tests: New file.
49813         * tests/unicase/test-u32-casefold.c: New file.
49814
49815         Tests for module 'unicase/u16-casefold'.
49816         * modules/unicase/u16-casefold-tests: New file.
49817         * tests/unicase/test-u16-casefold.c: New file.
49818
49819         Tests for module 'unicase/u8-casefold'.
49820         * modules/unicase/u8-casefold-tests: New file.
49821         * tests/unicase/test-u8-casefold.c: New file.
49822
49823         New module 'unicase/u32-casefold'.
49824         * lib/unicase/u32-casefold.c: New file.
49825         * modules/unicase/u32-casefold: New file.
49826
49827         New module 'unicase/u16-casefold'.
49828         * lib/unicase/u16-casefold.c: New file.
49829         * modules/unicase/u16-casefold: New file.
49830
49831         New module 'unicase/u8-casefold'.
49832         * lib/unicase/u8-casefold.c: New file.
49833         * lib/unicase/u-casefold.h: New file.
49834         * modules/unicase/u8-casefold: New file.
49835
49836         New module 'unicase/tocasefold'.
49837         * lib/unicase/casefold.h: New file.
49838         * lib/unicase/tocasefold.c: New file.
49839         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49840         * modules/unicase/tocasefold: New file.
49841
49842         Tests for module 'unicase/u32-totitle'.
49843         * modules/unicase/u32-totitle-tests: New file.
49844         * tests/unicase/test-u32-totitle.c: New file.
49845
49846         Tests for module 'unicase/u16-totitle'.
49847         * modules/unicase/u16-totitle-tests: New file.
49848         * tests/unicase/test-u16-totitle.c: New file.
49849
49850         Tests for module 'unicase/u8-totitle'.
49851         * modules/unicase/u8-totitle-tests: New file.
49852         * tests/unicase/test-u8-totitle.c: New file.
49853
49854         New module 'unicase/u32-totitle'.
49855         * lib/unicase/u32-totitle.c: New file.
49856         * modules/unicase/u32-totitle: New file.
49857
49858         New module 'unicase/u16-totitle'.
49859         * lib/unicase/u16-totitle.c: New file.
49860         * modules/unicase/u16-totitle: New file.
49861
49862         New module 'unicase/u8-totitle'.
49863         * lib/unicase/u8-totitle.c: New file.
49864         * lib/unicase/u-totitle.h: New file.
49865         * modules/unicase/u8-totitle: New file.
49866
49867         Tests for module 'unicase/u32-tolower'.
49868         * modules/unicase/u32-tolower-tests: New file.
49869         * tests/unicase/test-u32-tolower.c: New file.
49870
49871         Tests for module 'unicase/u16-tolower'.
49872         * modules/unicase/u16-tolower-tests: New file.
49873         * tests/unicase/test-u16-tolower.c: New file.
49874
49875         Tests for module 'unicase/u8-tolower'.
49876         * modules/unicase/u8-tolower-tests: New file.
49877         * tests/unicase/test-u8-tolower.c: New file.
49878
49879         New module 'unicase/u32-tolower'.
49880         * lib/unicase/u32-tolower.c: New file.
49881         * modules/unicase/u32-tolower: New file.
49882
49883         New module 'unicase/u16-tolower'.
49884         * lib/unicase/u16-tolower.c: New file.
49885         * modules/unicase/u16-tolower: New file.
49886
49887         New module 'unicase/u8-tolower'.
49888         * lib/unicase/u8-tolower.c: New file.
49889         * modules/unicase/u8-tolower: New file.
49890
49891         Tests for module 'unicase/u32-toupper'.
49892         * modules/unicase/u32-toupper-tests: New file.
49893         * tests/unicase/test-u32-toupper.c: New file.
49894
49895         Tests for module 'unicase/u16-toupper'.
49896         * modules/unicase/u16-toupper-tests: New file.
49897         * tests/unicase/test-u16-toupper.c: New file.
49898
49899         Tests for module 'unicase/u8-toupper'.
49900         * modules/unicase/u8-toupper-tests: New file.
49901         * tests/unicase/test-u8-toupper.c: New file.
49902
49903         New module 'unicase/u32-toupper'.
49904         * lib/unicase/u32-toupper.c: New file.
49905         * modules/unicase/u32-toupper: New file.
49906
49907         New module 'unicase/u16-toupper'.
49908         * lib/unicase/u16-toupper.c: New file.
49909         * modules/unicase/u16-toupper: New file.
49910
49911         New module 'unicase/u8-toupper'.
49912         * lib/unicase/u8-toupper.c: New file.
49913         * modules/unicase/u8-toupper: New file.
49914
49915         New module 'unicase/u32-casemap'.
49916         * lib/unicase/u32-casemap.c: New file.
49917         * modules/unicase/u32-casemap: New file.
49918
49919         New module 'unicase/u16-casemap'.
49920         * lib/unicase/u16-casemap.c: New file.
49921         * modules/unicase/u16-casemap: New file.
49922
49923         New module 'unicase/u8-casemap'.
49924         * lib/unicase/unicasemap.h: New file.
49925         * lib/unicase/u8-casemap.c: New file.
49926         * lib/unicase/u-casemap.h: New file.
49927         * modules/unicase/u8-casemap: New file.
49928
49929         New module 'unicase/special-casing'.
49930         * lib/unicase/special-casing.h: New file.
49931         * lib/unicase/special-casing.c: New file.
49932         * lib/unicase/special-casing-table.gperf: New file, generated by
49933         gen-uni-tables.c.
49934         * modules/unicase/special-casing: New file.
49935
49936         Tests for module 'unicase/locale-language'.
49937         * modules/unicase/locale-language-tests: New file.
49938         * tests/unicase/test-locale-language.sh: New file.
49939         * tests/unicase/test-locale-language.c: New file.
49940
49941         New module 'unicase/locale-language'.
49942         * lib/unicase/locale-language.c: New file.
49943         * lib/unicase/locale-languages.gperf: New file.
49944         * modules/unicase/locale-language: New file.
49945
49946         Generate more tables for case conversion and case folding.
49947         * lib/gen-uni-tables.c (SCC_*): New enum items.
49948         (struct special_casing_rule): New type.
49949         (casing_rules, num_casing_rules, allocated_casing_rules): New
49950         variables.
49951         (add_casing_rule, fill_casing_rules): New functions.
49952         (struct casefold_rule): New type.
49953         (casefolding_rules, num_casefolding_rules,
49954         allocated_casefolding_rules): New variables.
49955         (fill_casefolding_rules): New function.
49956         (unicode_casefold): New variable.
49957         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49958         sort_casing_rules, output_casing_rules): New functions.
49959         (main): Accept to more arguments: SpecialCasing.txt and
49960         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49961         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49962         Output mapping for casefolding.
49963
49964         * lib/unicase.h: Include stdbool.h, uninorm.h.
49965         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49966         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49967         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49968         arguments.
49969         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49970         resultp arguments.
49971         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49972         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49973         resultp arguments.
49974         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49975         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49976         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49977         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49978         declarations.
49979         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49980
49981 2009-03-08  Bruno Haible  <bruno@clisp.org>
49982
49983         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49984         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49985         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49986         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49987
49988 2009-03-07  Bruno Haible  <bruno@clisp.org>
49989
49990         Adjust u*_normcmp, u*_normcoll API.
49991         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49992         u16_normcoll, u32_normcoll): Change failure conventions.
49993         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49994         errno and return -1.
49995         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49996
49997 2009-03-07  Bruno Haible  <bruno@clisp.org>
49998
49999         Tests for module 'uninorm/u32-normcoll'.
50000         * modules/uninorm/u32-normcoll-tests: New file.
50001         * tests/uninorm/test-u32-normcoll.c: New file.
50002
50003         Tests for module 'uninorm/u16-normcoll'.
50004         * modules/uninorm/u16-normcoll-tests: New file.
50005         * tests/uninorm/test-u16-normcoll.c: New file.
50006
50007         Tests for module 'uninorm/u8-normcoll'.
50008         * modules/uninorm/u8-normcoll-tests: New file.
50009         * tests/uninorm/test-u8-normcoll.c: New file.
50010
50011 2009-03-07  Bruno Haible  <bruno@clisp.org>
50012
50013         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50014         tests/uninorm/test-u32-normcmp.c.
50015         * tests/uninorm/test-u32-normcmp.c: Include it.
50016         (test_nonascii): New function, extracted from main. Add some more
50017         tests.
50018         (main): Invoke test_ascii and test_nonascii.
50019         * modules/uninorm/u32-normcmp-tests (Files): Add
50020         tests/uninorm/test-u32-normcmp.h.
50021         (Depends-on): Remove uninorm/u32-normcmp.
50022
50023         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50024         tests/uninorm/test-u16-normcmp.c.
50025         * tests/uninorm/test-u16-normcmp.c: Include it.
50026         (test_nonascii): New function, extracted from main. Add some more
50027         tests.
50028         (main): Invoke test_ascii and test_nonascii.
50029         * modules/uninorm/u16-normcmp-tests (Files): Add
50030         tests/uninorm/test-u16-normcmp.h.
50031         (Depends-on): Remove uninorm/u16-normcmp.
50032
50033         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50034         tests/uninorm/test-u8-normcmp.c.
50035         * tests/uninorm/test-u8-normcmp.c: Include it.
50036         (test_nonascii): New function, extracted from main. Add some more
50037         tests.
50038         (main): Invoke test_ascii and test_nonascii.
50039         * modules/uninorm/u8-normcmp-tests (Files): Add
50040         tests/uninorm/test-u8-normcmp.h.
50041         (Depends-on): Remove uninorm/u8-normcmp.
50042
50043 2009-03-07  Bruno Haible  <bruno@clisp.org>
50044
50045         New module 'uninorm/u32-normcoll'.
50046         * lib/uninorm/u32-normcoll.c: New file.
50047         * modules/uninorm/u32-normcoll: New file.
50048
50049         New module 'uninorm/u16-normcoll'.
50050         * lib/uninorm/u16-normcoll.c: New file.
50051         * modules/uninorm/u16-normcoll: New file.
50052
50053         New module 'uninorm/u8-normcoll'.
50054         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50055         declarations.
50056         * lib/uninorm/u8-normcoll.c: New file.
50057         * lib/uninorm/u-normcoll.h: New file.
50058         * modules/uninorm/u8-normcoll: New file.
50059
50060         New module 'uninorm/u32-normxfrm'.
50061         * lib/uninorm/u32-normxfrm.c: New file.
50062         * modules/uninorm/u32-normxfrm: New file.
50063
50064         New module 'uninorm/u16-normxfrm'.
50065         * lib/uninorm/u16-normxfrm.c: New file.
50066         * modules/uninorm/u16-normxfrm: New file.
50067
50068         New module 'uninorm/u8-normxfrm'.
50069         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50070         declarations.
50071         * lib/uninorm/u8-normxfrm.c: New file.
50072         * lib/uninorm/u-normxfrm.h: New file.
50073         * modules/uninorm/u8-normxfrm: New file.
50074
50075 2009-03-07  Bruno Haible  <bruno@clisp.org>
50076
50077         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50078         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50079         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50080
50081 2009-03-07  Bruno Haible  <bruno@clisp.org>
50082
50083         New module 'memxfrm'.
50084         * lib/memxfrm.h: New file.
50085         * lib/memxfrm.c: New file.
50086         * modules/memxfrm: New file.
50087
50088 2009-03-07  Bruno Haible  <bruno@clisp.org>
50089
50090         New module 'memcmp2'.
50091         * lib/memcmp2.h: New file.
50092         * lib/memcmp2.c: New file.
50093         * modules/memcmp2: New file.
50094
50095 2009-03-07  Bruno Haible  <bruno@clisp.org>
50096
50097         Tests for module 'uninorm/decomposing-form'.
50098         * modules/uninorm/decomposing-form-tests: New file.
50099         * tests/uninorm/test-decomposing-form.c: New file.
50100
50101         New module 'uninorm/decomposing-form'.
50102         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50103         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50104         Add 'decomposing_variant' field.
50105         * lib/uninorm/decomposing-form.c: New file.
50106         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50107         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50108         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50109         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50110         * modules/uninorm/decomposing-form: New file.
50111         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50112         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50113
50114 2009-03-07  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50117         strings.
50118
50119 2009-03-06  Bruno Haible  <bruno@clisp.org>
50120
50121         Tests for module 'uninorm/u32-normcmp'.
50122         * tests/uninorm/test-u32-normcmp.c: New file.
50123         * modules/uninorm/u32-normcmp-tests: New file.
50124
50125         Tests for module 'uninorm/u16-normcmp'.
50126         * tests/uninorm/test-u16-normcmp.c: New file.
50127         * modules/uninorm/u16-normcmp-tests: New file.
50128
50129         Tests for module 'uninorm/u8-normcmp'.
50130         * tests/uninorm/test-u8-normcmp.c: New file.
50131         * modules/uninorm/u8-normcmp-tests: New file.
50132
50133         New module 'uninorm/u32-normcmp'.
50134         * lib/uninorm/u32-normcmp.c: New file.
50135         * modules/uninorm/u32-normcmp: New file.
50136
50137         New module 'uninorm/u16-normcmp'.
50138         * lib/uninorm/u16-normcmp.c: New file.
50139         * modules/uninorm/u16-normcmp: New file.
50140
50141         New module 'uninorm/u8-normcmp'.
50142         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50143         declarations.
50144         * lib/uninorm/u8-normcmp.c: New file.
50145         * lib/uninorm/u-normcmp.h: New file.
50146         * modules/uninorm/u8-normcmp: New file.
50147
50148 2009-03-06  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50151         Reported by Eric Blake.
50152
50153 2009-03-06  Eric Blake  <ebb9@byu.net>
50154             Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50157         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50158         condition.
50159         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50160         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50161         condition.
50162         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50163
50164 2009-03-06  Eric Blake  <ebb9@byu.net>
50165
50166         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50167         to avoid compiler warnings.
50168         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50169
50170 2009-03-05  Bruno Haible  <bruno@clisp.org>
50171
50172         * tests/test-ftell.c (main): Disable test beyond end of file on
50173         FreeMiNT.
50174         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50175
50176 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50177
50178         * lib/filevercmp.c: Move hidden files up in ordering.
50179         * tests/test-filevercmp.c: Add tests for hidden files.
50180
50181 2009-03-04  Bruno Haible  <bruno@clisp.org>
50182
50183         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50184         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50185         AM_CFLAGS.
50186         Reported by Simon Josefsson.
50187
50188 2009-03-03  Bruno Haible  <bruno@clisp.org>
50189
50190         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50191         Reported by Simon Josefsson.
50192
50193         * doc/ld-version-script.texi: Update node reference.
50194
50195 2009-03-03  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/visibility (License): Change to 'unlimited'.
50198         Suggested by Simon Josefsson.
50199
50200 2009-03-03  Jim Meyering  <meyering@redhat.com>
50201
50202         unlinkdir: cannot_unlink_dir may modify process state
50203         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50204         it's neither thread-safe nor appropriate for use in a library.
50205
50206 2009-03-03  Eric Blake  <ebb9@byu.net>
50207
50208         test-closein: silence test under Darwin
50209         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50210         care if it dies from EPIPE or EBADF.
50211
50212 2009-03-03  Bruno Haible  <bruno@clisp.org>
50213
50214         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50215         earlier.
50216         * doc/visibility.texi: Fix @node and @section.
50217
50218 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50219
50220         * doc/gnulib.texi: Link to sections for ld version script and
50221         visibility.
50222         * doc/visibility.texi: Add @node and @section.
50223         * modules/ld-version-script: New module.
50224         * m4/ld-version-script.m4: New file.
50225         * doc/ld-version-script.texi: New file.
50226
50227 2009-03-02  David Lutterkort  <lutter@redhat.com>
50228
50229         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50231
50232 2009-03-02  Bruno Haible  <bruno@clisp.org>
50233
50234         * doc/visibility.texi: Mention libtool's -export-symbols option.
50235
50236 2009-03-02  Jim Meyering  <meyering@redhat.com>
50237
50238         announce-gen: new option: --no-print-checksums
50239         * build-aux/announce-gen (usage): Describe it.
50240         (print_checksums): Print a newline here, not in the [*] footnote.
50241         (main): Honor it.
50242
50243 2009-03-01  Bruno Haible  <bruno@clisp.org>
50244
50245         Use socklen_t in the native Windows replacements prototypes.
50246         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50247         instead of 'int'.
50248         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50249         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50250         * modules/getsockopt (Depends-on): Add socklen.
50251         * modules/setsockopt (Depends-on): Add socklen.
50252
50253 2009-03-01  Bruno Haible  <bruno@clisp.org>
50254
50255         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50256         least 4.2.
50257
50258 2009-03-01  Eric Blake  <ebb9@byu.net>
50259             Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50262         error messages.
50263         * lib/wait-process.c (wait_subprocess): Omit error message about
50264         deadly signal sent to the child of termsigp != NULL.
50265
50266 2009-03-01  Eric Blake  <ebb9@byu.net>
50267
50268         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50269
50270 2009-03-01  Bruno Haible  <bruno@clisp.org>
50271
50272         Avoid a gcc warning.
50273         * tests/test-sched.c (b): Make global.
50274         Reported by Eric Blake.
50275
50276 2009-01-19  Martin Lambers  <marlam@marlam.de>
50277
50278         Provide POSIX semantics for socket timeout options on W32.
50279         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50280         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50281         * modules/setsockopt: Depend on sys_time module for struct timeval.
50282         * modules/getsockopt: Depend on sys_time module for struct timeval.
50283
50284 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50285
50286         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50287         __USE_GNU, for consistency with netdb.in.h.
50288         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50289
50290 2009-03-01  Bruno Haible  <bruno@clisp.org>
50291
50292         More support for FreeMiNT.
50293         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50294         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50295
50296 2009-03-01  Bruno Haible  <bruno@clisp.org>
50297
50298         More support for FreeMiNT.
50299         * lib/fpurge.c (fpurge): Correct last commit.
50300         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50301
50302 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50303
50304         Fix unportable awk script in vc-list-files.
50305         * build-aux/vc-list-files: In the replacement awk script, use
50306         substr with a second argument of 1, not zero.
50307         Report by Simon Josefsson.
50308
50309 2009-02-28  Bruno Haible  <bruno@clisp.org>
50310
50311         More support for FreeMiNT.
50312         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50313         to FreeMiNT today.
50314         * lib/fwriting.c (fwriting): Likewise.
50315         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50316
50317 2009-02-28  Bruno Haible  <bruno@clisp.org>
50318
50319         * tests/test-freadseek.c (main): Disable test beyond end of file on
50320         FreeMiNT.
50321         * tests/test-ftello.c (main): Likewise.
50322         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50323
50324 2009-02-28  Bruno Haible  <bruno@clisp.org>
50325
50326         Add tentative support for FreeMiNT.
50327         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50328         * lib/fpurge.c (fpurge): Likewise.
50329         * lib/freadable.c (freadable): Likewise.
50330         * lib/freading.c (freading): Likewise.
50331         * lib/freadptr.c (freadptr): Likewise.
50332         * lib/freadseek.c (freadptrinc): Likewise.
50333         * lib/fseeko.c (rpl_fseeko): Likewise.
50334         * lib/fseterr.c (fseterr): Likewise.
50335         * lib/fwritable.c (fwritable): Likewise.
50336         * lib/fwriting.c (fwriting): Likewise.
50337         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50338         Hourihane.
50339         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50340
50341 2009-02-28  Bruno Haible  <bruno@clisp.org>
50342
50343         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50344         SIGCHLD.
50345         Reported by Jim Meyering.
50346
50347 2009-02-28  Bruno Haible  <bruno@clisp.org>
50348
50349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50350         Mention the results of these tests on various platforms.
50351         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50352         order.
50353         * doc/posix-functions/printf.texi: Likewise.
50354         * doc/posix-functions/snprintf.texi: Likewise.
50355         * doc/posix-functions/sprintf.texi: Likewise.
50356         * doc/posix-functions/vfprintf.texi: Likewise.
50357         * doc/posix-functions/vprintf.texi: Likewise.
50358         * doc/posix-functions/vsnprintf.texi: Likewise.
50359         * doc/posix-functions/vsprintf.texi: Likewise.
50360         * doc/glibc-functions/obstack_printf.texi: Likewise.
50361         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50362
50363 2009-02-28  Bruno Haible  <bruno@clisp.org>
50364
50365         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50366         Reported by Loïc Minier <lool@dooz.org>.
50367
50368 2009-02-27  Bruno Haible  <bruno@clisp.org>
50369
50370         * gnulib-tool (func_import): Make the sed expression used to create the
50371         sed script for updating the .gitignore file POSIX compliant.
50372         Reported by Eric Blake.
50373
50374 2009-02-27  Bruno Haible  <bruno@clisp.org>
50375
50376         * gnulib-tool (sed): Don't alias as "sed --posix".
50377         Reported by Eric Blake.
50378
50379 2009-02-27  Bruno Haible  <bruno@clisp.org>
50380
50381         Avoid test link errors.
50382         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50383         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50384         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50385         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50387
50388 2009-02-27  Bruno Haible  <bruno@clisp.org>
50389
50390         Avoid spurious "(cached)" in configure output.
50391         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50392         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50393         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50394         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50395         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50396         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50397         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50398         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50399         Reported by Eric Blake.
50400
50401 2009-02-27  Eric Blake  <ebb9@byu.net>
50402
50403         printf: fix regression in previous patch
50404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50405
50406 2009-02-27  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50409         value.
50410         * lib/stdint.in.h: Likewise.
50411         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50412
50413 2009-02-27  Eric Blake  <ebb9@byu.net>
50414
50415         doc: mention more functions added in cygwin 1.7.0
50416         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50417         addition.
50418         * doc/posix-functions/open_wmemstream.texi: Likewise.
50419         * doc/posix-functions/wcsnlen.texi: Likewise.
50420         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50421         * doc/posix-functions/wcstod.texi: Likewise.
50422         * doc/posix-functions/wcstof.texi: Likewise.
50423         * doc/posix-functions/wcstoimax.texi: Likewise.
50424         * doc/posix-functions/wcstok.texi: Likewise.
50425         * doc/posix-functions/wcstoumax.texi: Likewise.
50426
50427         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50429         * doc/posix-functions/fprintf.texi: Update.
50430         * doc/posix-functions/printf.texi: Update.
50431         * doc/posix-functions/snprintf.texi: Update.
50432         * doc/posix-functions/sprintf.texi: Update.
50433         * doc/posix-functions/vfprintf.texi: Update.
50434         * doc/posix-functions/vprintf.texi: Update.
50435         * doc/posix-functions/vsnprintf.texi: Update.
50436         * doc/posix-functions/vsprintf.texi: Update.
50437         * doc/glibc-functions/obstack_printf.texi: Update.
50438         * doc/glibc-functions/obstack_vprintf.texi: Update.
50439
50440 2009-02-26  Eric Blake  <ebb9@byu.net>
50441
50442         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50443         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50444         compilation bug by using runtime conversion.
50445         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50446         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50447         * modules/ceill-tests (Files): Use nan.h.
50448         * modules/floorl-tests (Files): Likewise.
50449         * modules/frexpl-tests (Files): Likewise.
50450         * modules/isnanl-tests (Files): Likewise.
50451         * modules/ldexpl-tests (Files): Likewise.
50452         * modules/roundl-tests (Files): Likewise.
50453         * modules/truncl-tests (Files): Likewise.
50454         * tests/test-ceill.c (main): Use a working NaN.
50455         * tests/test-floorl.c (main): Likewise.
50456         * tests/test-frexpl.c (main): Likewise.
50457         * tests/test-isnan.c (test_long_double): Likewise.
50458         * tests/test-isnanl.h (main): Likewise.
50459         * tests/test-ldexpl.h (main): Likewise.
50460         * tests/test-roundl.h (main): Likewise.
50461         * tests/test-truncl.h (main): Likewise.
50462         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50463
50464 2009-02-26  Eric Blake  <ebb9@byu.net>
50465             Bruno Haible  <bruno@clisp.org>
50466
50467         Work around a *printf bug with %ls on Solaris.
50468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50469         precision is specified, sprintf stops converting the wide string
50470         argument when the number of bytes that have been produced by this
50471         conversion equals or exceeds the precision.
50472         * doc/posix-functions/fprintf.texi: Update.
50473         * doc/posix-functions/printf.texi: Update.
50474         * doc/posix-functions/snprintf.texi: Update.
50475         * doc/posix-functions/sprintf.texi: Update.
50476         * doc/posix-functions/vfprintf.texi: Update.
50477         * doc/posix-functions/vprintf.texi: Update.
50478         * doc/posix-functions/vsnprintf.texi: Update.
50479         * doc/posix-functions/vsprintf.texi: Update.
50480         * doc/glibc-functions/obstack_printf.texi: Update.
50481         * doc/glibc-functions/obstack_vprintf.texi: Update.
50482
50483 2009-02-26  Eric Blake  <ebb9@byu.net>
50484
50485         stdlib: favor compiler check of random.h
50486         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50487         to avoid an ObjC random.h installed by Swarm.
50488
50489 2009-02-26  Bruno Haible  <bruno@clisp.org>
50490
50491         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50492         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50493         Reported by Gary V. Vaughan <gary@gnu.org>.
50494
50495 2009-02-26  Bruno Haible  <bruno@clisp.org>
50496
50497         Fix *printf behaviour regarding the %ls directive.
50498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50499         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50500         NEED_PRINTF_DIRECTIVE_LS.
50501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50502         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50504         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50505         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50506         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50507         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50509         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50512         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50516         * doc/posix-functions/fprintf.texi: Update.
50517         * doc/posix-functions/printf.texi: Update.
50518         * doc/posix-functions/snprintf.texi: Update.
50519         * doc/posix-functions/sprintf.texi: Update.
50520         * doc/posix-functions/vfprintf.texi: Update.
50521         * doc/posix-functions/vprintf.texi: Update.
50522         * doc/posix-functions/vsnprintf.texi: Update.
50523         * doc/posix-functions/vsprintf.texi: Update.
50524         * doc/glibc-functions/obstack_printf.texi: Update.
50525         * doc/glibc-functions/obstack_vprintf.texi: Update.
50526         Reported by Eric Blake.
50527
50528 2009-02-25  Bruno Haible  <bruno@clisp.org>
50529
50530         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50531         with known value.
50532         Reported by Gary V. Vaughan <gary@gnu.org>.
50533
50534 2009-02-25  Bruno Haible  <bruno@clisp.org>
50535
50536         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50537         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50538         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50539         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50540         Reported by Gary V. Vaughan <gary@gnu.org>.
50541
50542 2009-02-25  Bruno Haible  <bruno@clisp.org>
50543
50544         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50545         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50546         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50547         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50548         Reported by Gary V. Vaughan <gary@gnu.org>.
50549
50550 2009-02-25  Eric Blake  <ebb9@byu.net>
50551
50552         tests: skip fseek/ftell tests if ungetc is broken
50553         * m4/ungetc.m4: New file.
50554         * modules/fseek-tests: Split test, so ungetc dependency is
50555         separate from rest of test.
50556         * modules/fseeko-tests: Likewise.
50557         * modules/ftell-tests: Likewise.
50558         * modules/ftello-tests: Likewise.
50559         * tests/test-fseek.c (main): Isolate ungetc dependency.
50560         * tests/test-fseeko.c (main): Likewise.
50561         * tests/test-ftell.c (main): Likewise.
50562         * tests/test-ftello.c (main): Likewise.
50563         * tests/test-fseek2.sh: New file.
50564         * tests/test-fseeko2.sh: Likewise.
50565         * tests/test-ftell2.sh: Likewise.
50566         * tests/test-ftello2.sh: Likewise.
50567
50568 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50569
50570         test-getaddrinfo: fix usage of skip return code 77
50571         * tests/test-gettaddrinfo.c: Return skip code 77 only
50572         for first occurrence of skip (4x77 is not 77)
50573
50574 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50575
50576         strtod: avoid C99 decl-after-statement
50577         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50578
50579 2009-02-24  Eric Blake  <ebb9@byu.net>
50580
50581         strtod: detect HP-UX 11.31 bug
50582         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50583         Reported by Gary V. Vaughan.
50584
50585 2009-02-23  Bruno Haible  <bruno@clisp.org>
50586
50587         Fix invalid read past end of memory block.
50588         * lib/vasnprintf.c (DCHAR_SET): Define.
50589         (local_wcslen): Define only when needed.
50590         (local_strnlen, local_wcsnlen): New functions.
50591         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50592         directives that involve a conversion ourselves.
50593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50594         wcsnlen, mbrtowc, wcrtomb.
50595         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50596         * tests/test-vasprintf-posix.c (test_function): Likewise.
50597         * tests/test-snprintf-posix.h (test_function): Likewise.
50598         * tests/test-sprintf-posix.h (test_function): Likewise.
50599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50600
50601 2009-02-22  Bruno Haible  <bruno@clisp.org>
50602
50603         Implement new clarified decomposition of Hangul syllables.
50604         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50605         of type LTV, return only a pairwise decomposition.
50606         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50607         Likewise.
50608         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50609         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50610         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50611
50612 2009-02-22  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50615         zero-length results and shrink excess allocated memory.
50616         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50617         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50618         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50619         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50620         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50621         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50622         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50623         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50624         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50625         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50626         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50627         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50628
50629 2009-02-21  Bruno Haible  <bruno@clisp.org>
50630
50631         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50632         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50633         spaces after a period. Put a space between a macro name and its
50634         argument list. Trivial rewordings.
50635         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50636         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50637         (main): Return 0 explicitly.
50638
50639 2009-02-21  Bruno Haible  <bruno@clisp.org>
50640
50641         Tests for module 'uninorm/filter'.
50642         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50643         * modules/uninorm/filter-tests: New file.
50644
50645         New module 'uninorm/filter'.
50646         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50647         uninorm_filter_flush, uninorm_filter_free): New declarations.
50648         * lib/uninorm/uninorm-filter.c: New file.
50649         * modules/uninorm/filter: New file.
50650
50651 2009-02-21  Bruno Haible  <bruno@clisp.org>
50652
50653         Tests for module 'uninorm/nfkc'.
50654         * tests/uninorm/test-nfkc.c: New file.
50655         * tests/uninorm/test-u8-nfkc.c: New file.
50656         * tests/uninorm/test-u16-nfkc.c: New file.
50657         * tests/uninorm/test-u32-nfkc.c: New file.
50658         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50659         * tests/uninorm/test-u32-nfkc-big.c: New file.
50660         * modules/uninorm/nfkc-tests: New file.
50661
50662         New module 'uninorm/nfkc'.
50663         * lib/uninorm/nfkc.c: New file.
50664         * modules/uninorm/nfkc: New file.
50665
50666         Tests for module 'uninorm/nfkd'.
50667         * tests/uninorm/test-nfkd.c: New file.
50668         * tests/uninorm/test-u8-nfkd.c: New file.
50669         * tests/uninorm/test-u16-nfkd.c: New file.
50670         * tests/uninorm/test-u32-nfkd.c: New file.
50671         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50672         * tests/uninorm/test-u32-nfkd-big.c: New file.
50673         * modules/uninorm/nfkd-tests: New file.
50674
50675         New module 'uninorm/nfkd'.
50676         * lib/uninorm/nfkd.c: New file.
50677         * modules/uninorm/nfkd: New file.
50678
50679         Tests for module 'uninorm/nfc'.
50680         * tests/uninorm/test-nfc.c: New file.
50681         * tests/uninorm/test-u8-nfc.c: New file.
50682         * tests/uninorm/test-u16-nfc.c: New file.
50683         * tests/uninorm/test-u32-nfc.c: New file.
50684         * tests/uninorm/test-u32-nfc-big.sh: New file.
50685         * tests/uninorm/test-u32-nfc-big.c: New file.
50686         * modules/uninorm/nfc-tests: New file.
50687
50688         New module 'uninorm/nfc'.
50689         * lib/uninorm/nfc.c: New file.
50690         * modules/uninorm/nfc: New file.
50691
50692         Tests for module 'uninorm/nfd'.
50693         * tests/uninorm/test-nfd.c: New file.
50694         * tests/uninorm/test-u8-nfd.c: New file.
50695         * tests/uninorm/test-u16-nfd.c: New file.
50696         * tests/uninorm/test-u32-nfd.c: New file.
50697         * tests/uninorm/test-u32-nfd-big.sh: New file.
50698         * tests/uninorm/test-u32-nfd-big.c: New file.
50699         * tests/uninorm/test-u32-normalize-big.h: New file.
50700         * tests/uninorm/test-u32-normalize-big.c: New file.
50701         * tests/uninorm/NormalizationTest.txt: New file, created from
50702         Unicode 5.1.0 NormalizationTest.txt.
50703         * modules/uninorm/nfd-tests: New file.
50704
50705         New module 'uninorm/nfd'.
50706         * lib/uninorm/nfd.c: New file.
50707         * modules/uninorm/nfd: New file.
50708
50709         New module 'uninorm/u32-normalize'.
50710         * lib/uninorm/u32-normalize.c: New file.
50711         * modules/uninorm/u32-normalize: New file.
50712
50713         New module 'uninorm/u16-normalize'.
50714         * lib/uninorm/u16-normalize.c: New file.
50715         * modules/uninorm/u16-normalize: New file.
50716
50717         New module 'uninorm/u8-normalize'.
50718         * lib/uninorm/u8-normalize.c: New file.
50719         * lib/uninorm/normalize-internal.h: New file.
50720         * lib/uninorm/u-normalize-internal.h: New file.
50721         * modules/uninorm/u8-normalize: New file.
50722
50723         New module 'uninorm/decompose-internal'.
50724         * lib/uninorm/decompose-internal.c: New file.
50725         * modules/uninorm/decompose-internal: New file.
50726
50727         Tests for module 'uninorm/composition'.
50728         * tests/uninorm/test-composition.c: New file.
50729         * modules/uninorm/composition-tests: New file.
50730
50731         New module 'uninorm/composition'.
50732         * lib/uninorm/composition.c: New file.
50733         * lib/uninorm/composition-table.gperf: New file, generated by
50734         gen-uni-tables.
50735         * modules/uninorm/composition: New file.
50736
50737         Tests for module 'uninorm/compat-decomposition'.
50738         * tests/uninorm/test-compat-decomposition.c: New file.
50739         * modules/uninorm/compat-decomposition-tests: New file.
50740
50741         New module 'uninorm/compat-decomposition'.
50742         * lib/uninorm/decompose-internal.h: New file.
50743         * lib/uninorm/compat-decomposition.c: New file.
50744         * modules/uninorm/compat-decomposition: New file.
50745
50746         Tests for module 'uninorm/canonical-decomposition'.
50747         * tests/uninorm/test-canonical-decomposition.c: New file.
50748         * modules/uninorm/canonical-decomposition-tests: New file.
50749
50750         New module 'uninorm/canonical-decomposition'.
50751         * lib/uninorm/canonical-decomposition.c: New file.
50752         * modules/uninorm/canonical-decomposition: New file.
50753
50754         Tests for module 'uninorm/decomposition'.
50755         * tests/uninorm/test-decomposition.c: New file.
50756         * modules/uninorm/decomposition-tests: New file.
50757
50758         New module 'uninorm/decomposition'.
50759         * lib/uninorm/decomposition.c: New file.
50760         * modules/uninorm/decomposition: New file.
50761
50762         New module 'uninorm/decomposition-table'.
50763         * lib/uninorm/decomposition-table.h: New file.
50764         * lib/uninorm/decomposition-table.c: New file.
50765         * lib/uninorm/decomposition-table1.h: New file, generated by
50766         gen-uni-tables.
50767         * lib/uninorm/decomposition-table2.h: New file, generated by
50768         gen-uni-tables.
50769         * modules/uninorm/decomposition-table: New file.
50770
50771         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50772         (UC_DECOMP_*): New enumeration items.
50773         (get_decomposition): New function.
50774         (struct decomp_table): New type.
50775         (output_decomposition, output_decomposition_tables): New functions.
50776         (unicode_composition_exclusions): New variable.
50777         (fill_composition_exclusions, debug_output_composition_tables): New
50778         functions.
50779         (main): Accept one more argument. Invoke fill_composition_exclusions.
50780         Output decomposition and composition tables.
50781
50782         New module 'uninorm/base'.
50783         * lib/uninorm.h: New file.
50784         * lib/unictype.h: Update comment.
50785         * modules/uninorm/base: New file.
50786
50787 2009-02-21  David Lutterkort  <lutter@redhat.com>
50788
50789         Tests for module 'safe-alloc'.
50790         * tests/test-safe-alloc.c: New file.
50791         * modules/safe-alloc-tests: New file.
50792
50793         New module 'safe-alloc'.
50794         * lib/safe-alloc.h: New file.
50795         * lib/safe-alloc.c: New file.
50796         * m4/safe-alloc.m4: New file.
50797         * modules/safe-alloc: New file.
50798         * doc/safe-alloc.texi: New file.
50799         * doc/gnulib.texi: Include it.
50800         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50801         safe-alloc.
50802
50803 2009-02-18  Bruno Haible  <bruno@clisp.org>
50804
50805         Fix link error on non-glibc systems.
50806         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50807         variable.
50808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50809
50810 2009-02-18  Jim Meyering  <meyering@redhat.com>
50811
50812         fts: avoid used-uninitialized error due to recent change
50813         * lib/fts.c (fts_read): Guard uses of the new member,
50814         parent->fts_n_dirs_remaining, since it's not relevant for
50815         the parent of a directory specified on the command-line.
50816
50817 2009-02-17  James Youngman  <jay@gnu.org>
50818             Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/include_next.m4: Reformulate comment.
50821
50822 2009-02-16  Jim Meyering  <meyering@redhat.com>
50823
50824         fts: add #if guards so that the fts_lgpl module still builds
50825         * lib/fts.c: Guard just-added hash-table-using parts with
50826         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50827         Reported by Simon Josefsson.
50828
50829 2009-02-15  Bruno Haible  <bruno@clisp.org>
50830
50831         * modules/array-mergesort-tests: New file.
50832         * tests/test-array-mergesort.c: New file.
50833
50834         New module 'array-mergesort'.
50835         * modules/array-mergesort: New file.
50836         * lib/array-mergesort.h: New file.
50837
50838 2009-02-15  Bruno Haible  <bruno@clisp.org>
50839
50840         Fix 2009-02-07 commit.
50841         * lib/gen-uni-tables.c (output_predicate, output_category,
50842         output_combclass, output_bidi_category, output_decimal_digit,
50843         output_digit, output_numeric, output_mirror, output_scripts,
50844         output_ident_category, output_simple_mapping): Fix format directives.
50845         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50846
50847 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50848
50849         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50850         fixes are available from IBM.
50851
50852 2009-02-13  Jim Meyering  <meyering@redhat.com>
50853
50854         fts: arrange not to stat non-directories in more cases
50855         This makes GNU find (when it doesn't need to stat each file)
50856         *much* more efficient at traversing reiserfs file systems.
50857         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50858         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50859         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50860         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50861         (leaf_optimization_applies): New function.
50862         (LCO_hash, LCO_compare): New helper functions.
50863         (link_count_optimize_ok): New function.
50864         (fts_stat): Initialize new member (if dir).
50865         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50866         we've just stat'ed a directory.  Skip the stat call when possible.
50867         ---
50868         Note this AFS-related exchange:
50869         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50870         and note find's pioctl call in find/fstype.c.
50871         But that is necessary only if you want to enable the
50872         optimization for AFS, and for now, I don't.
50873
50874         fts: move a function definition "up" (no semantic change)
50875         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50876         "up" to precede upcoming use of a related function.
50877
50878 2009-02-11  Jim Meyering  <meyering@redhat.com>
50879
50880         fts: correct internal computation of nlinks (optimization-related)
50881         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50882         whether the current entry is a directory, so don't test it.
50883
50884 2009-02-10  Bruno Haible  <bruno@clisp.org>
50885
50886         Tests for module 'uniwbrk/ulc-wordbreaks'.
50887         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50888         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50889         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50890
50891         Tests for module 'uniwbrk/u32-wordbreaks'.
50892         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50893         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50894
50895         Tests for module 'uniwbrk/u16-wordbreaks'.
50896         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50897         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50898
50899         Tests for module 'uniwbrk/u8-wordbreaks'.
50900         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50901         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50902
50903 2009-02-10  Bruno Haible  <bruno@clisp.org>
50904
50905         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50906         property.
50907         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50908         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50909         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50910
50911 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50912
50913         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50914         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50915
50916 2009-02-10  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50919         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50920         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50921         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50922         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50923         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50924
50925 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50926
50927         * lib/sockets.h (gl_fd_to_handle): New function.
50928
50929         * tests/test-sockets.c: Call gl_fd_to_handle.
50930
50931 2009-02-09  Bruno Haible  <bruno@clisp.org>
50932
50933         * doc/havelib.texi: Document the conventions on bi-arch systems.
50934
50935 2009-02-08  Bruno Haible  <bruno@clisp.org>
50936
50937         Document the AC_LIB_LINKFLAGS macro.
50938         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50939         * doc/gnulib.texi: Include it.
50940
50941 2009-02-08  Bruno Haible  <bruno@clisp.org>
50942
50943         Fix wrong order of sections, compared to TOC.
50944         * doc/gnulib.texi: Include relocatable-maint.texi after the
50945         "Regular expressions" node, not before.
50946
50947 2009-02-08  Bruno Haible  <bruno@clisp.org>
50948
50949         Tests for module 'unicase/totitle'.
50950         * modules/unicase/totitle-tests: New file.
50951
50952         Tests for module 'unicase/tolower'.
50953         * modules/unicase/tolower-tests: New file.
50954
50955         Tests for module 'unicase/toupper'.
50956         * modules/unicase/toupper-tests: New file.
50957         * tests/unicase/test-mapping-part1.h: New file.
50958         * tests/unicase/test-mapping-part2.h: New file.
50959
50960         New module 'unicase/totitle'.
50961         * modules/unicase/totitle: New file.
50962         * lib/unicase/totitle.c: New file.
50963
50964         New module 'unicase/tolower'.
50965         * modules/unicase/tolower: New file.
50966         * lib/unicase/tolower.c: New file.
50967
50968         New module 'unicase/toupper'.
50969         * modules/unicase/toupper: New file.
50970         * lib/unicase/toupper.c: New file.
50971         * lib/unicase/simple-mapping.h: New file.
50972
50973         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50974         (mapping_table): New structure.
50975         (output_simple_mapping): New function.
50976         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50977         * modules/gen-uni-tables (Description): Update.
50978         * lib/unicase/toupper.h: New file, automatically generated by
50979         gen-uni-tables.
50980         * lib/unicase/tolower.h: New file, automatically generated by
50981         gen-uni-tables.
50982         * lib/unicase/totitle.h: New file, automatically generated by
50983         gen-uni-tables.
50984         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50985         gen-uni-tables.
50986         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50987         gen-uni-tables.
50988         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50989         gen-uni-tables.
50990
50991         New module 'unicase/base'.
50992         * modules/unicase/base: New file.
50993         * lib/unicase.h: New file.
50994
50995 2009-02-08  Bruno Haible  <bruno@clisp.org>
50996
50997         New module 'uniwbrk/ulc-wordbreaks'.
50998         * modules/uniwbrk/ulc-wordbreaks: New file.
50999         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51000
51001         New module 'uniwbrk/u32-wordbreaks'.
51002         * modules/uniwbrk/u32-wordbreaks: New file.
51003         * lib/uniwbrk/u32-wordbreaks.c: New file.
51004
51005         New module 'uniwbrk/u16-wordbreaks'.
51006         * modules/uniwbrk/u16-wordbreaks: New file.
51007         * lib/uniwbrk/u16-wordbreaks.c: New file.
51008
51009         New module 'uniwbrk/u8-wordbreaks'.
51010         * modules/uniwbrk/u8-wordbreaks: New file.
51011         * lib/uniwbrk/u8-wordbreaks.c: New file.
51012         * lib/uniwbrk/u-wordbreaks.h: New file.
51013
51014         New module 'uniwbrk/table'.
51015         * modules/uniwbrk/table: New file.
51016         * lib/uniwbrk/wbrktable.h: New file.
51017         * lib/uniwbrk/wbrktable.c: New file.
51018
51019         New module 'uniwbrk/wordbreak-property'.
51020         * modules/uniwbrk/wordbreak-property: New file.
51021         * lib/uniwbrk/wordbreak-property.c: New file.
51022
51023         * lib/gen-uni-tables.c (WBP_*): New enum items.
51024         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51025         (unicode_org_wbp): New variable.
51026         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51027         New functions.
51028         (wbp_table): New structure.
51029         (output_wbp, output_wbrk_tables): New functions.
51030         (main): Accept additional argument. Invoke fill_org_wbp,
51031         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51032         output_wbrk_tables.
51033         * modules/gen-uni-tables (Description): Update.
51034         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51035         gen-uni-tables.
51036
51037         New module 'uniwbrk/base'.
51038         * modules/uniwbrk/base: New file.
51039         * lib/uniwbrk.h: New file.
51040
51041 2009-02-08  Bruno Haible  <bruno@clisp.org>
51042
51043         Update to Unicode 5.1.0.
51044         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51045         U+2185..U+2188.
51046         (is_property_default_ignorable_code_point): Don't include characters
51047         of category Cc or Cs and not-a-characters.
51048         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51049         U+0D79, U+109E, U+109F, U+A60C.
51050         * lib/unictype/bidi_of.h: Regenerated.
51051         * lib/unictype/blocks.h: Regenerated.
51052         * lib/unictype/categ_C.h: Regenerated.
51053         * lib/unictype/categ_Cf.h: Regenerated.
51054         * lib/unictype/categ_Cn.h: Regenerated.
51055         * lib/unictype/categ_L.h: Regenerated.
51056         * lib/unictype/categ_Ll.h: Regenerated.
51057         * lib/unictype/categ_Lm.h: Regenerated.
51058         * lib/unictype/categ_Lo.h: Regenerated.
51059         * lib/unictype/categ_Lu.h: Regenerated.
51060         * lib/unictype/categ_M.h: Regenerated.
51061         * lib/unictype/categ_Mc.h: Regenerated.
51062         * lib/unictype/categ_Me.h: Regenerated.
51063         * lib/unictype/categ_Mn.h: Regenerated.
51064         * lib/unictype/categ_N.h: Regenerated.
51065         * lib/unictype/categ_Nd.h: Regenerated.
51066         * lib/unictype/categ_Nl.h: Regenerated.
51067         * lib/unictype/categ_No.h: Regenerated.
51068         * lib/unictype/categ_P.h: Regenerated.
51069         * lib/unictype/categ_Pd.h: Regenerated.
51070         * lib/unictype/categ_Pe.h: Regenerated.
51071         * lib/unictype/categ_Pf.h: Regenerated.
51072         * lib/unictype/categ_Pi.h: Regenerated.
51073         * lib/unictype/categ_Po.h: Regenerated.
51074         * lib/unictype/categ_Ps.h: Regenerated.
51075         * lib/unictype/categ_S.h: Regenerated.
51076         * lib/unictype/categ_Sk.h: Regenerated.
51077         * lib/unictype/categ_Sm.h: Regenerated.
51078         * lib/unictype/categ_So.h: Regenerated.
51079         * lib/unictype/categ_of.h: Regenerated.
51080         * lib/unictype/combining.h: Regenerated.
51081         * lib/unictype/ctype_alnum.h: Regenerated.
51082         * lib/unictype/ctype_alpha.h: Regenerated.
51083         * lib/unictype/ctype_graph.h: Regenerated.
51084         * lib/unictype/ctype_lower.h: Regenerated.
51085         * lib/unictype/ctype_print.h: Regenerated.
51086         * lib/unictype/ctype_punct.h: Regenerated.
51087         * lib/unictype/ctype_upper.h: Regenerated.
51088         * lib/unictype/decdigit.h: Regenerated.
51089         * lib/unictype/digit.h: Regenerated.
51090         * lib/unictype/mirror.h: Regenerated.
51091         * lib/unictype/numeric.h: Regenerated.
51092         * lib/unictype/pr_alphabetic.h: Regenerated.
51093         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51094         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51095         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51096         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51097         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51098         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51099         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51100         * lib/unictype/pr_combining.h: Regenerated.
51101         * lib/unictype/pr_dash.h: Regenerated.
51102         * lib/unictype/pr_decimal_digit.h: Regenerated.
51103         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51104         * lib/unictype/pr_deprecated.h: Regenerated.
51105         * lib/unictype/pr_diacritic.h: Regenerated.
51106         * lib/unictype/pr_extender.h: Regenerated.
51107         * lib/unictype/pr_format_control.h: Regenerated.
51108         * lib/unictype/pr_grapheme_base.h: Regenerated.
51109         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51110         * lib/unictype/pr_grapheme_link.h: Regenerated.
51111         * lib/unictype/pr_id_continue.h: Regenerated.
51112         * lib/unictype/pr_id_start.h: Regenerated.
51113         * lib/unictype/pr_ideographic.h: Regenerated.
51114         * lib/unictype/pr_ignorable_control.h: Regenerated.
51115         * lib/unictype/pr_lowercase.h: Regenerated.
51116         * lib/unictype/pr_math.h: Regenerated.
51117         * lib/unictype/pr_numeric.h: Regenerated.
51118         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51119         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51120         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51121         * lib/unictype/pr_other_id_continue.h: Regenerated.
51122         * lib/unictype/pr_other_lowercase.h: Regenerated.
51123         * lib/unictype/pr_other_math.h: Regenerated.
51124         * lib/unictype/pr_punctuation.h: Regenerated.
51125         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51126         * lib/unictype/pr_soft_dotted.h: Regenerated.
51127         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51128         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51129         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51130         * lib/unictype/pr_uppercase.h: Regenerated.
51131         * lib/unictype/pr_xid_continue.h: Regenerated.
51132         * lib/unictype/pr_xid_start.h: Regenerated.
51133         * lib/unictype/pr_zero_width.h: Regenerated.
51134         * lib/unictype/scripts.h: Regenerated.
51135         * lib/unictype/scripts_byname.gperf: Regenerated.
51136         * lib/unictype/sy_java_ident.h: Regenerated.
51137         * lib/unilbrk/lbrkprop1.h: Regenerated.
51138         * lib/unilbrk/lbrkprop2.h: Regenerated.
51139         * tests/unictype/test-categ_C.c: Regenerated.
51140         * tests/unictype/test-categ_Cf.c: Regenerated.
51141         * tests/unictype/test-categ_Cn.c: Regenerated.
51142         * tests/unictype/test-categ_L.c: Regenerated.
51143         * tests/unictype/test-categ_Ll.c: Regenerated.
51144         * tests/unictype/test-categ_Lm.c: Regenerated.
51145         * tests/unictype/test-categ_Lo.c: Regenerated.
51146         * tests/unictype/test-categ_Lu.c: Regenerated.
51147         * tests/unictype/test-categ_M.c: Regenerated.
51148         * tests/unictype/test-categ_Mc.c: Regenerated.
51149         * tests/unictype/test-categ_Me.c: Regenerated.
51150         * tests/unictype/test-categ_Mn.c: Regenerated.
51151         * tests/unictype/test-categ_N.c: Regenerated.
51152         * tests/unictype/test-categ_Nd.c: Regenerated.
51153         * tests/unictype/test-categ_Nl.c: Regenerated.
51154         * tests/unictype/test-categ_No.c: Regenerated.
51155         * tests/unictype/test-categ_P.c: Regenerated.
51156         * tests/unictype/test-categ_Pd.c: Regenerated.
51157         * tests/unictype/test-categ_Pe.c: Regenerated.
51158         * tests/unictype/test-categ_Pf.c: Regenerated.
51159         * tests/unictype/test-categ_Pi.c: Regenerated.
51160         * tests/unictype/test-categ_Po.c: Regenerated.
51161         * tests/unictype/test-categ_Ps.c: Regenerated.
51162         * tests/unictype/test-categ_S.c: Regenerated.
51163         * tests/unictype/test-categ_Sk.c: Regenerated.
51164         * tests/unictype/test-categ_Sm.c: Regenerated.
51165         * tests/unictype/test-categ_So.c: Regenerated.
51166         * tests/unictype/test-ctype_alnum.c: Regenerated.
51167         * tests/unictype/test-ctype_alpha.c: Regenerated.
51168         * tests/unictype/test-ctype_graph.c: Regenerated.
51169         * tests/unictype/test-ctype_lower.c: Regenerated.
51170         * tests/unictype/test-ctype_print.c: Regenerated.
51171         * tests/unictype/test-ctype_punct.c: Regenerated.
51172         * tests/unictype/test-ctype_upper.c: Regenerated.
51173         * tests/unictype/test-decdigit.h: Regenerated.
51174         * tests/unictype/test-digit.h: Regenerated.
51175         * tests/unictype/test-numeric.h: Regenerated.
51176         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51177         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51178         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51179         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51180         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51181         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51182         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51183         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51184         * tests/unictype/test-pr_combining.c: Regenerated.
51185         * tests/unictype/test-pr_dash.c: Regenerated.
51186         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51187         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51188         * tests/unictype/test-pr_deprecated.c: Regenerated.
51189         * tests/unictype/test-pr_diacritic.c: Regenerated.
51190         * tests/unictype/test-pr_extender.c: Regenerated.
51191         * tests/unictype/test-pr_format_control.c: Regenerated.
51192         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51193         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51194         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51195         * tests/unictype/test-pr_id_continue.c: Regenerated.
51196         * tests/unictype/test-pr_id_start.c: Regenerated.
51197         * tests/unictype/test-pr_ideographic.c: Regenerated.
51198         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51199         * tests/unictype/test-pr_lowercase.c: Regenerated.
51200         * tests/unictype/test-pr_math.c: Regenerated.
51201         * tests/unictype/test-pr_numeric.c: Regenerated.
51202         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51203         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51204         Regenerated.
51205         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51206         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51207         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51208         * tests/unictype/test-pr_other_math.c: Regenerated.
51209         * tests/unictype/test-pr_punctuation.c: Regenerated.
51210         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51211         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51212         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51213         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51214         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51215         * tests/unictype/test-pr_uppercase.c: Regenerated.
51216         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51217         * tests/unictype/test-pr_xid_start.c: Regenerated.
51218         * tests/unictype/test-pr_zero_width.c: Regenerated.
51219
51220         Update to Unicode 5.1.0.
51221         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51222         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51223         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51224         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51225         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51226         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51227         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51228         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51229         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51230         (nonspacing_table_ind): Update.
51231         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51232
51233         Update to Unicode 5.1.0.
51234         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51235         code transform.
51236         * lib/uniname/uniname.c (unicode_character_name,
51237         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51238         * lib/uniname/uninames.h: Regenerated.
51239         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51240
51241 2009-02-07  Bruno Haible  <bruno@clisp.org>
51242
51243         Merge gen-ctype and gen-lbrk into a single program.
51244         * lib/gen-uni-tables.c: New file, incorporating
51245         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51246         Add directory prefixes to the names of the generated files.
51247         * lib/unictype/gen-ctype.c: Remove file.
51248         * lib/unilbrk/gen-lbrk.c: Remove file.
51249         * modules/gen-uni-tables: New file.
51250         * modules/unictype/gen-ctype: Remove file.
51251         * modules/unilbrk/gen-lbrk: Remove file.
51252
51253 2009-02-07  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51256
51257         New module 'unistr/u32-strcoll'.
51258         * modules/unistr/u32-strcoll: New file.
51259         * lib/unistr/u32-strcoll.c: New file.
51260
51261         New module 'unistr/u16-strcoll'.
51262         * modules/unistr/u16-strcoll: New file.
51263         * lib/unistr/u16-strcoll.c: New file.
51264
51265         New module 'unistr/u8-strcoll'.
51266         * modules/unistr/u8-strcoll: New file.
51267         * lib/unistr/u8-strcoll.c: New file.
51268         * lib/unistr/u-strcoll.h: New file.
51269
51270 2009-02-07  Bruno Haible  <bruno@clisp.org>
51271
51272         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51273         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51274         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51275         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51276         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51277         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51278
51279 2009-02-07  Bruno Haible  <bruno@clisp.org>
51280
51281         Make 64-bit clean.
51282         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51283         output_combclass, output_bidi_category, output_decimal_digit,
51284         output_digit, output_numeric, output_mirror, output_scripts,
51285         output_ident_category): Use proper width specifier in format strings.
51286
51287 2009-02-07  Bruno Haible  <bruno@clisp.org>
51288
51289         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51290         failure behaviour.
51291
51292 2009-02-07  Jim Meyering  <meyering@redhat.com>
51293
51294         regex: avoid compilation failure with upcoming gcc-4.4
51295         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51296         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51297         "... error: integer overflow in preprocessor expression".
51298
51299 2009-02-05  Ben Pfaff  <blp@gnu.org>
51300
51301         Fix link errors on Windows when close module is used.
51302         * modules/close: Add $(LIB_CLOSE) to Link section.
51303         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51304         $(LIB_CLOSE) on Windows.
51305
51306 2009-02-05  Jim Meyering  <meyering@redhat.com>
51307
51308         still avoid unused-parameter warnings, but do it cleanly
51309         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51310         (get_fs_usage): Cast to void instead.
51311         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51312         (dev_from_mount_options, read_file_system_list): Cast to void.
51313         Prompted by Bruno Haible.
51314
51315 2009-02-04  Jim Meyering  <meyering@redhat.com>
51316
51317         fsusage.c: correct copyright year
51318         * lib/fsusage.c: Reflect year in which the change is pushed into
51319
51320         avoid misc. warnings
51321         * lib/fsusage.c (UNUSED_PARAM): Define.
51322         (get_fs_usage): Mark parameter "disk" as unused.
51323         * lib/getugroups.c (getgrent): Use "void" in prototype.
51324         * lib/mountlist.c: Mark unused parameters.
51325         (read_file_system_list): Declare a local with "const".
51326         * lib/nanosleep.c (getnow): Declare static.
51327         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51328
51329         dirfd: set errno upon failure
51330         * lib/dirfd.c: Include <errno.h>.
51331         Set errno to ENOTSUP when returning -1.
51332         * modules/dirfd (Depends-on): Add errno.
51333         Suggested by John Kodis <kodis@comcast.net>.
51334
51335 2009-02-01  Bruno Haible  <bruno@clisp.org>
51336
51337         Don't assume sizeof (long) >= sizeof (void *).
51338         * lib/memcmp.c: Include stdint.h.
51339         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51340         srcp2 to 'const byte *'.
51341         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51342         types to uintptr_t.
51343         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51344         * modules/memcmp (Depends-on): Add stdint.
51345         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51346
51347 2009-01-30  Eric Blake  <ebb9@byu.net>
51348
51349         fix more require-before-expand issues
51350         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51351         expand, AC_PROG_AWK.
51352         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51353
51354 2009-01-28  Eric Blake  <ebb9@byu.net>
51355
51356         version-etc: use consistent URL formatting
51357         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51358         Improve formatting.  Use fputs for string without %.
51359
51360 2009-01-28  Jim Meyering  <meyering@redhat.com>
51361
51362         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51363         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51364         "underquoted definition of NAME" from autoconf-2.59.
51365
51366 2009-01-28  Bruno Haible  <bruno@clisp.org>
51367
51368         * doc/gnulib.texi: Add "Obsolete modules" to index.
51369
51370 2009-01-28  Jim Meyering  <meyering@redhat.com>
51371
51372         useless-if-before-free: recognize more variants
51373         * build-aux/useless-if-before-free: Also recognize e.g.,
51374         if (NULL != p) free (p);
51375
51376 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51377
51378         test-getaddrinfo: skip (don't fail) this test when there's no network
51379         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51380         on the presumption that it means you lack network access.
51381
51382 2009-01-26  Jim Meyering  <meyering@redhat.com>
51383
51384         fflush: avoid warnings on modern systems
51385         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51386         pos and result, into scopes where they're used.
51387
51388 2009-01-26  Eric Blake  <ebb9@byu.net>
51389
51390         Silence warning reintroduced by recent extensions patch.
51391         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51392         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51393         autoconf.
51394
51395         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51396         * m4/00gnulib.m4: New file.
51397         * gnulib-tool (func_get_filelist): Always use it.
51398         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51399         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51400
51401 2009-01-25  Bruno Haible  <bruno@clisp.org>
51402
51403         Make test-quotearg work on MacOS X and AIX.
51404         * tests/test-quotearg.sh: New file.
51405         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51406         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51407         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51408         include <libintl.h>.
51409         (fake_locale): Remove variable.
51410         (gettext, dgettext, dcgettext): Remove functions.
51411         (main): Instead of setting a fake locale, set a real locale. Call
51412         textdomain and bindtextdomain.
51413         * modules/quotearg-tests (Files): Add the new files.
51414         (Depends-on): Add gettext, setenv, unsetenv.
51415         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51416         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51417         Augment TESTS_ENVIRONMENT.
51418
51419 2009-01-25  Bruno Haible  <bruno@clisp.org>
51420
51421         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51422         fr_FR.ISO8859-1 locale on MacOS X.
51423         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51424         ja_JP.eucJP locale on MacOS X.
51425         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51426         zh_CN.GB18030 locale on MacOS X.
51427
51428 2009-01-25  Bruno Haible  <bruno@clisp.org>
51429
51430         Avoid link errors on MacOS X 10.3.
51431         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51432         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51433
51434 2009-01-25  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51437         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51438         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51439         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51440         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51441         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51442         posix_spawnattr_init, posix_spawnattr_setsigmask,
51443         posix_spawnattr_setflags, posix_spawnattr_destroy.
51444
51445         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51446         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51447         * modules/execute (Files): Remove m4/posix_spawn.m4.
51448         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51449         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51450         posix_spawnattr_init, posix_spawnattr_setsigmask,
51451         posix_spawnattr_setflags, posix_spawnattr_destroy.
51452
51453 2009-01-25  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/glthread/threadlib.c: Include <stdlib.h>.
51456
51457 2009-01-25  Bruno Haible  <bruno@clisp.org>
51458
51459         * lib/glthread/threadlib.c (dummy): New declaration.
51460
51461 2009-01-25  Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51464         multibyte characters also for the GB18030 encoding. Don't crash when
51465         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51466
51467 2009-01-25  Bruno Haible  <bruno@clisp.org>
51468
51469         Avoid redefining 'struct random_data' on OSF/1 5.1.
51470         * lib/stdlib.in.h: Include <random.h> if it exists.
51471         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51472         HAVE_RANDOM_H. Include <random.h> when testing whether
51473         'struct random_data' exists.
51474         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51475
51476 2009-01-25  Bruno Haible  <bruno@clisp.org>
51477
51478         Don't install charset.alias on MacOS X >= 10.3.
51479         * lib/localcharset.c (DARWIN7): New macro.
51480         (get_charset_aliases): Hardcode the result for Darwin7.
51481         * modules/localcharset (install-exec-local): Don't install
51482         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51483
51484 2009-01-25  Bruno Haible  <bruno@clisp.org>
51485
51486         Don't install charset.alias on mingw and Cygwin.
51487         * modules/localcharset (install-exec-local): Don't install
51488         charset.alias on mingw and Cygwin, if the file does not yet exist.
51489         The result for these platforms is hardcoded in localcharset.c.
51490
51491 2009-01-25  Bruno Haible  <bruno@clisp.org>
51492
51493         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51495         before requiring AC_USE_SYSTEM_EXTENSIONS.
51496
51497 2009-01-25  Jim Meyering  <meyering@redhat.com>
51498
51499         c-strtod: avoid warnings
51500         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51501         "assignment discards qualifiers from pointer target type" warnings.
51502
51503 2009-01-24  Bruno Haible  <bruno@clisp.org>
51504
51505         Add support for non-UTF-8 locales on MacOS X.
51506         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51507         canonical encodings. For Darwin 7 and newer, don't map traditional
51508         encodings to UTF-8.
51509         Reported by Vincent Lefevre <vincent@vinc17.org>
51510         at <http://savannah.gnu.org/bugs/?25235>.
51511
51512 2009-01-24  Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/gnulib.texi (Obsolete modules): New section.
51515         Reported by Mike Frysinger <vapier@gentoo.org>.
51516
51517 2009-01-24  Bruno Haible  <bruno@clisp.org>
51518
51519         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51520         (%.dvi): New rule.
51521
51522 2009-01-24  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51525         Reported by Eric Blake.
51526
51527 2009-01-24  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51530         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51531         Reported by Gary V. Vaughan <gary@gnu.org>.
51532
51533 2009-01-24  Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51536
51537 2009-01-23  Bruno Haible  <bruno@clisp.org>
51538
51539         Make c-strtod, c-strtold usable in libraries.
51540         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51541         (C_STRTOD): Call strdup instead of xstrdup.
51542         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51543         * modules/c-strtold (Depends-on): Likewise.
51544         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51545         * NEWS: Mention the change.
51546         Reported by Michael Gold <mgold@ncf.ca>.
51547
51548 2009-01-23  Jim Meyering  <meyering@redhat.com>
51549
51550         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51551         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51552         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51553
51554 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51555
51556         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51557         GNU CoreUtils.
51558         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51559         * modules/version-etc (Description): Update.
51560
51561 2009-01-22  Bruno Haible  <bruno@clisp.org>
51562
51563         Cache the C locale object.
51564         * lib/c-strtod.c (c_locale_cache): New variable.
51565         (c_locale): New function.
51566         (C_STRTOD): Use it, and don't call freelocale.
51567         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51568         Suggested by Paolo Bonzini.
51569
51570 2009-01-21  Bruno Haible  <bruno@clisp.org>
51571
51572         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51573         conditions other than overflow.
51574
51575 2009-01-21  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/c-strtod.c: Include errno.h.
51578         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51579         value from STRTOD_L and STRTOD.
51580
51581 2009-01-21  Bruno Haible  <bruno@clisp.org>
51582         and Jim Meyering  <meyering@redhat.com>
51583
51584         nanosleep: skip configure test (fail it) for apple universal builds
51585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51586         universal builds, assume that nanosleep does not work.
51587         * modules/nanosleep (Depends-on): Add multiarch.
51588
51589         mktime: skip configure test (fail it) for apple universal builds
51590         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51591         universal builds, assume that mktime does not work.
51592         * modules/mktime (Depends-on): Add multiarch.
51593
51594 2009-01-21  Eric Blake  <ebb9@byu.net>
51595
51596         multiarch: avoid expand-before-require warning
51597         * modules/multiarch (configure.ac): Require, rather than expand,
51598         gl_MULTIARCH.
51599         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51600         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51601         enforce that all clients require it.  Partial reversion of
51602         2008-12-29 patch.
51603
51604         error: avoid expand-before-require warning
51605         * modules/errno (configure.ac): Require, rather than expand,
51606         gl_HEADER_ERRNO_H.
51607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51608         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51609         enforce that all clients require it.
51610
51611         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51612         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51613         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51614         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51615
51616 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51617
51618         Revert:
51619         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51620
51621         regex: do not depend on obsolete modules.
51622         * modules/regex: Remove memcmp and memmove.
51623
51624 2009-01-20  Bruno Haible  <bruno@clisp.org>
51625
51626         Make the 'link' module link on Windows NT 4.
51627         * lib/link.c (_WIN32_WINNT): Don't define.
51628         (CreateHardLinkFuncType): New type.
51629         (CreateHardLinkFunc, initialized): New variables.
51630         (initialize): New function.
51631         (link): Invoke CreateHardLink indirectly through the function pointer.
51632
51633 2009-01-20  Bruno Haible  <bruno@clisp.org>
51634
51635         Fix compilation failure on mingw.
51636         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51637
51638 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51639
51640         * doc/c-strtod.texi: Mention a couple of restrictions.
51641
51642 2009-01-20  Jim Meyering  <meyering@redhat.com>
51643
51644         gettimeofday: move more declarations out of functions
51645         * lib/gettimeofday.c: Move extern declarations of tzset and
51646         gmtime out of containing functions.  Prompted by Bruno Haible.
51647
51648 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51649
51650         regex: do not depend on obsolete modules.
51651         * modules/regex: Remove memcmp and memmove.
51652
51653 2009-01-19  Bruno Haible  <bruno@clisp.org>
51654
51655         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51656         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51657         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51658         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51659         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51660
51661 2009-01-19  Bruno Haible  <bruno@clisp.org>
51662
51663         * tests/test-link.c: Include <errno.h>.
51664         (main): Exit with code 77 when a hard link cannot be created due to
51665         the file system.
51666         * tests/test-link.sh: Skip test when a hard link cannot be created due
51667         to the file system.
51668         Suggested by Eric Blake.
51669
51670 2009-01-19  Martin Lambers  <marlam@marlam.de>
51671
51672         * modules/link-tests: New file.
51673         * tests/test-link.sh: New file.
51674         * tests/test-link.c: New file.
51675
51676 2009-01-19  Eric Blake  <ebb9@byu.net>
51677
51678         doc: mention another function added in cygwin 1.7.0
51679         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51680         Another new function in cygwin 1.7.
51681
51682 2009-01-19  Bruno Haible  <bruno@clisp.org>
51683
51684         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51685         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51686         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51687         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51689         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51691         * m4/md4.m4 (gl_MD4): Likewise.
51692         * m4/md5.m4 (gl_MD5): Likewise.
51693         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51694         * m4/sha1.m4 (gl_SHA1): Likewise.
51695         * m4/sha256.m4 (gl_SHA256): Likewise.
51696         * m4/sha512.m4 (gl_SHA512): Likewise.
51697
51698 2009-01-19  Bruno Haible  <bruno@clisp.org>
51699
51700         * modules/uniname/uniname-tests (Depends-on): Add progname.
51701         * tests/uniname/test-uninames.c: Include progname.h.
51702         (main): Call set_program_name.
51703
51704         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51705         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51706         (main): Call set_program_name.
51707
51708         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51709         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51710         (main): Call set_program_name.
51711
51712         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51713         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51714         (main): Call set_program_name.
51715
51716         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51717         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51718         (main): Call set_program_name.
51719
51720         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51721         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51722         (main): Call set_program_name.
51723
51724         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51725         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51726         (main): Call set_program_name.
51727
51728         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51729         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51730         (main): Call set_program_name.
51731
51732         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51733         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51734         (main): Call set_program_name.
51735
51736 2009-01-19  Eric Blake  <ebb9@byu.net>
51737
51738         test-unistd: test previous patch
51739         * tests/test-unistd.c: Test *_FILENO macros.
51740
51741         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51742         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51743         Guarantee a definition.
51744         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51745         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51746         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51747         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51748         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51749         Likewise.
51750         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51751         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51752         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51753         Likewise.
51754         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51755         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51756         (STDERR_FILENO): Likewise.
51757         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51758         (STDERR_FILENO): Likewise.
51759         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51760         (STDERR_FILENO): Likewise.
51761         Reported by Elbert Pol.
51762
51763 2009-01-19  Eric Blake  <ebb9@byu.net>
51764
51765         doc: mention more functions added in cygwin 1.7.0
51766         * doc/posix-functions/abort.texi (abort): Update wording related
51767         to cygwin.
51768         * doc/posix-functions/daylight.texi (daylight): Likewise.
51769         * doc/posix-functions/optarg.texi (optarg): Likewise.
51770         * doc/posix-functions/optarg.texi (opterr): Likewise.
51771         * doc/posix-functions/optarg.texi (optind): Likewise.
51772         * doc/posix-functions/optarg.texi (optopt): Likewise.
51773         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51774         worked in 1.5.x, and was withdrawn in 1.7.
51775         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51776         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51777         cygwin versions.
51778         * doc/posix-functions/perror.texi (perror): Likewise.
51779         * doc/posix-functions/printf.texi (printf): Likewise.
51780         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51781         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51782         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51783         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51784         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51785         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51786         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51787         Likewise.
51788         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51789         Likewise.
51790         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51791         this function.
51792         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51793         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51794         Likewise.
51795         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51796         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51797         * doc/posix-functions/confstr.texi (confstr): Likewise.
51798         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51799         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51800         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51801         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51802         * doc/posix-functions/fputws.texi (fputws): Likewise.
51803         * doc/posix-functions/fwide.texi (fwide): Likewise.
51804         * doc/posix-functions/getwc.texi (getwc): Likewise.
51805         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51806         * doc/posix-functions/putwc.texi (putwc): Likewise.
51807         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51808         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51809         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51810         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51811         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51812         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51813         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51814         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51815         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51816         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51817         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51818
51819 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51820
51821         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51822         * lib/ioctl.c: Include <sys/ioctl.h>.
51823
51824 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51825
51826         * modules/getdate-tests (Depends-on): Add progname.
51827         * tests/test-getdate.c: Use progname module, to avoid link errors
51828         on non-glibc systems.
51829
51830 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51831
51832         * modules/filenamecat-tests (Depends-on): Add progname.
51833         * modules/fstrcmp-tests (Depends-on): Likewise.
51834
51835         * tests/test-filenamecat.c: Use progname module, to avoid link
51836         errors on non-glibc systems.
51837         * tests/test-fstrcmp.c: Likewise.
51838
51839 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51840
51841         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51842         * lib/gettimeofday.c: Move extern declaration out of function.
51843
51844 2009-01-18  Bruno Haible  <bruno@clisp.org>
51845
51846         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51847         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51848         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51849
51850 2009-01-18  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/strftime.c (MEMPCPY): Remove unused macro.
51853         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51854
51855 2009-01-18  Martin Lambers  <marlam@marlam.de>
51856
51857         New module 'link'.
51858         * lib/unistd.in.h (link): New declaration.
51859         * lib/link.c: New file.
51860         * m4/link.m4: New file.
51861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51862         HAVE_LINK.
51863         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51864         * modules/link: New file.
51865         * doc/posix-functions/link.texi: Mention the new module.
51866
51867 2009-01-18  Bruno Haible  <bruno@clisp.org>
51868
51869         * tests/test-avltree_list.c (main): Call set_program_name.
51870         * tests/test-avltree_oset.c (main): Likewise.
51871         * tests/test-obstack-printf.c: Include progname.h.
51872         (main): Call set_program_name.
51873         * tests/test-quotearg.c: Include progname.h.
51874         (main): Call set_program_name.
51875         * tests/test-xmemdup0.c: Include progname.h.
51876         (main): Call set_program_name.
51877
51878 2009-01-18  Bruno Haible  <bruno@clisp.org>
51879
51880         New module 'alphasort'.
51881         * lib/dirent.in.h (alphasort): New declaration.
51882         * lib/alphasort.c: New file, from glibc with modifications.
51883         * m4/alphasort.m4: New file.
51884         * modules/alphasort: New file.
51885         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51886         HAVE_ALPHASORT.
51887         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51888         HAVE_ALPHASORT.
51889         * doc/posix-functions/alphasort.texi: Mention the new module and the
51890         portability problems.
51891
51892 2009-01-18  Bruno Haible  <bruno@clisp.org>
51893
51894         New module 'scandir'.
51895         * lib/dirent.in.h (scandir): New declaration.
51896         * lib/scandir.c: New file, from glibc with modifications.
51897         * m4/scandir.m4: New file.
51898         * modules/scandir: New file.
51899         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51900         HAVE_SCANDIR.
51901         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51902         HAVE_SCANDIR.
51903         * doc/posix-functions/scandir.texi: Mention the new module and the
51904         portability problems.
51905
51906 2009-01-17  Bruno Haible  <bruno@clisp.org>
51907
51908         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51909         Update documentation.
51910         (func_remove_suffix): Escape all dots in the suffix. Update
51911         documentation.
51912         (func_filter_filelist): Update documentation.
51913         Reported by Ralf Wildenhues.
51914
51915 2009-01-17  Bruno Haible  <bruno@clisp.org>
51916
51917         * modules/dprintf-posix-tests: New file.
51918         * tests/test-dprintf-posix.sh: New file.
51919         * tests/test-dprintf-posix.c: New file.
51920
51921         New modules 'dprintf', 'dprintf-posix'.
51922         * lib/stdio.in.h (dprintf): New declaration.
51923         * lib/dprintf.c: New file.
51924         * m4/dprintf.m4: New file.
51925         * m4/dprintf-posix.m4: New file.
51926         * modules/dprintf: New file.
51927         * modules/dprintf-posix: New file.
51928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51929         HAVE_DPRINTF, REPLACE_DPRINTF.
51930         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51931         HAVE_DPRINTF, REPLACE_DPRINTF.
51932         * doc/posix-functions/dprintf.texi: Mention the new modules.
51933
51934 2009-01-17  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/vdprintf-posix-tests: New file.
51937         * tests/test-vdprintf-posix.sh: New file.
51938         * tests/test-vdprintf-posix.c: New file.
51939
51940         New modules 'vdprintf', 'vdprintf-posix'.
51941         * lib/stdio.in.h (vdprintf): New declaration.
51942         * lib/vdprintf.c: New file.
51943         * m4/vdprintf.m4: New file.
51944         * m4/vdprintf-posix.m4: New file.
51945         * modules/vdprintf: New file.
51946         * modules/vdprintf-posix: New file.
51947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51948         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51949         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51950         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51951         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51952
51953 2009-01-17  Bruno Haible  <bruno@clisp.org>
51954
51955         Fix replacement of fopen on mingw.
51956         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51957         mingw.
51958
51959 2009-01-17  Bruno Haible  <bruno@clisp.org>
51960
51961         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51962         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51963
51964 2009-01-17  Bruno Haible  <bruno@clisp.org>
51965
51966         Avoid test-fflush2.sh failure on mingw.
51967         * tests/test-fflush2.c: Include binary-io.h.
51968         (main): Put standard input into binary mode.
51969         * modules/fflush-tests (Depends-on): Add binary-io.
51970
51971 2009-01-17  Bruno Haible  <bruno@clisp.org>
51972
51973         * lib/wchar.in.h: In another particular situation, include only the
51974         system's <wchar.h> file.
51975         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51976         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51977         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51978
51979 2009-01-17  Bruno Haible  <bruno@clisp.org>
51980
51981         Support for stripping executables in --enable-relocatable.
51982         * build-aux/install-reloc: Expect one more argument, or an environment
51983         variable RELOC_STRIP_PROG. If set, strip the destination program and
51984         its wrapper.
51985         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51986         RELOC_STRIP_PROG.
51987         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51988         to set RELOCATABLE_STRIP.
51989         * NEWS: Mention the new Makefile requirement.
51990
51991 2009-01-17  Bruno Haible  <bruno@clisp.org>
51992
51993         * build-aux/install-reloc: Remove debugging information left over by
51994         C compiler on MacOS X.
51995
51996 2009-01-17  Bruno Haible  <bruno@clisp.org>
51997
51998         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51999         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52000         _NSGetExecutablePath.
52001
52002 2009-01-16  Jim Meyering  <meyering@redhat.com>
52003
52004         strerror: avoid warnings about discarding "const"
52005         * lib/strerror.c (rpl_strerror): Instead of returning a const
52006         string from each and every "case", use a variable, and add a single
52007         cast after the switch.
52008
52009 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52010
52011         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52012
52013 2009-01-16  Bruno Haible  <bruno@clisp.org>
52014
52015         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52016         array initializer syntax that also works in C++ mode.
52017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52018
52019 2009-01-16  Jim Meyering  <meyering@redhat.com>
52020
52021         poll: suppress a warning
52022         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52023         to ignore "...unsigned expression < 0 is always false" warnings.
52024
52025 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52026
52027         poll: remove declarations of unused variables
52028         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52029         sockbuf and optlen.
52030
52031 2009-01-15  Bruno Haible  <bruno@clisp.org>
52032
52033         Make fflush-after-ungetc POSIX compliant on BSD systems.
52034         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52035         (clear_ungetc_buffer): Implement also for other systems.
52036         (rpl_fflush): On glibc systems, invoke
52037         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52038         clear_ungetc_buffer after fetching the stream's position, not before.
52039
52040 2009-01-15  Bruno Haible  <bruno@clisp.org>
52041
52042         Make fflush-after-ungetc POSIX compliant on glibc systems.
52043         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52044         after ungetc.
52045         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52046         (rpl_fflush): On glibc systems, simply call the system's fflush
52047         function after clearing the ungetc buffer.
52048         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52049         Instead, lseek only to the end of file, then use the system's fseeko
52050         for the rest. On glibc systems, reset the EOF indicator bit.
52051
52052 2009-01-15  Jim Meyering  <meyering@redhat.com>
52053
52054         openmp.m4: revert quote-adding change, for portability to older autoconf
52055         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52056         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52057         Simon Josefsson noticed the problem when using autoconf-2.61.
52058
52059 2009-01-15  Bruno Haible  <bruno@clisp.org>
52060
52061         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52062         * tests/test-fflush2.c (ASSERT): Always fail.
52063         (main): Add two tests for fflush() after ungetc(), taking into account
52064         the Austin Group's clarification.
52065         Suggested by Eric Blake.
52066
52067 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52068
52069         mktime.m4: remove K&R-style function prototypes
52070         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52071         for the Sun C++ compiler.
52072
52073 2009-01-14  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52076         while including <wchar.h>.
52077         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52078         the system's <wchar.h> file.
52079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52080
52081 2009-01-14  Bruno Haible  <bruno@clisp.org>
52082
52083         * m4/csharp.m4: Don't mention gettext on the serial number line.
52084         * m4/csharpexec.m4: Likewise.
52085         * m4/eaccess.m4: Likewise.
52086         * m4/javaexec.m4: Likewise.
52087         * m4/sig_atomic_t.m4: Likewise.
52088         * m4/tmpdir.m4: Likewise.
52089         * m4/intldir.m4: Bump gettext version.
52090         * m4/lib-ld.m4: Likewise.
52091
52092 2009-01-14  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/progname.c (set_program_name): Add more comments.
52095         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52096
52097 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52098
52099         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52100         were sys/stat.h does not define it.
52101
52102 2009-01-14  Jim Meyering  <meyering@redhat.com>
52103
52104         many *.m4 files: improve m4 quoting
52105         99% of this change was performed by running the following commands:
52106         git ls-files | grep '\.m4$' | xargs perl -pi \
52107           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52108           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52109           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52110           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52111         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52112         The remainder were to add Copyright dates, increment serial numbers,
52113         undo some changes in comments, exclude m4/intl.m4, and add quotes
52114         around the "1" in ",1" where the unusual spacing prohibited the
52115         above regexps from doing the job.  For more details, see
52116         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52117         * m4/acl.m4: Modified.
52118         * m4/afs.m4: Likewise.
52119         * m4/alloca.m4: Likewise.
52120         * m4/argp.m4: Likewise.
52121         * m4/argz.m4: Likewise.
52122         * m4/atexit.m4: Likewise.
52123         * m4/bison-i18n.m4: Likewise.
52124         * m4/bison.m4: Likewise.
52125         * m4/byteswap.m4: Likewise.
52126         * m4/c-stack.m4: Likewise.
52127         * m4/c-strtod.m4: Likewise.
52128         * m4/calloc.m4: Likewise.
52129         * m4/canonicalize-lgpl.m4: Likewise.
52130         * m4/chown.m4: Likewise.
52131         * m4/clock_time.m4: Likewise.
52132         * m4/codeset.m4: Likewise.
52133         * m4/copy-file.m4: Likewise.
52134         * m4/csharp.m4: Likewise.
52135         * m4/csharpcomp.m4: Likewise.
52136         * m4/csharpexec.m4: Likewise.
52137         * m4/d-ino.m4: Likewise.
52138         * m4/d-type.m4: Likewise.
52139         * m4/dirfd.m4: Likewise.
52140         * m4/double-slash-root.m4: Likewise.
52141         * m4/eaccess.m4: Likewise.
52142         * m4/eealloc.m4: Likewise.
52143         * m4/environ.m4: Likewise.
52144         * m4/errno_h.m4: Likewise.
52145         * m4/euidaccess.m4: Likewise.
52146         * m4/execute.m4: Likewise.
52147         * m4/fatal-signal.m4: Likewise.
52148         * m4/fchdir.m4: Likewise.
52149         * m4/fcntl_h.m4: Likewise.
52150         * m4/fileblocks.m4: Likewise.
52151         * m4/filenamecat.m4: Likewise.
52152         * m4/findprog.m4: Likewise.
52153         * m4/flexmember.m4: Likewise.
52154         * m4/fnmatch.m4: Likewise.
52155         * m4/fopen.m4: Likewise.
52156         * m4/fpending.m4: Likewise.
52157         * m4/fprintf-posix.m4: Likewise.
52158         * m4/free.m4: Likewise.
52159         * m4/frexp.m4: Likewise.
52160         * m4/frexpl.m4: Likewise.
52161         * m4/fsusage.m4: Likewise.
52162         * m4/ftruncate.m4: Likewise.
52163         * m4/gc-camellia.m4: Likewise.
52164         * m4/gc-random.m4: Likewise.
52165         * m4/gc.m4: Likewise.
52166         * m4/getaddrinfo.m4: Likewise.
52167         * m4/getcwd-abort-bug.m4: Likewise.
52168         * m4/getcwd-path-max.m4: Likewise.
52169         * m4/getdate.m4: Likewise.
52170         * m4/getdomainname.m4: Likewise.
52171         * m4/getgroups.m4: Likewise.
52172         * m4/gethostname.m4: Likewise.
52173         * m4/gethrxtime.m4: Likewise.
52174         * m4/getline.m4: Likewise.
52175         * m4/getloadavg.m4: Likewise.
52176         * m4/getndelim2.m4: Likewise.
52177         * m4/getpass.m4: Likewise.
52178         * m4/gettext.m4: Likewise.
52179         * m4/gettime.m4: Likewise.
52180         * m4/gettimeofday.m4: Likewise.
52181         * m4/gnulib-common.m4: Likewise.
52182         * m4/group-member.m4: Likewise.
52183         * m4/host-os.m4: Likewise.
52184         * m4/iconv.m4: Likewise.
52185         * m4/iconv_open.m4: Likewise.
52186         * m4/inet_ntop.m4: Likewise.
52187         * m4/inet_pton.m4: Likewise.
52188         * m4/inline.m4: Likewise.
52189         * m4/intldir.m4: Likewise.
52190         * m4/intlmacosx.m4: Likewise.
52191         * m4/intmax.m4: Likewise.
52192         * m4/intmax_t.m4: Likewise.
52193         * m4/inttypes.m4: Likewise.
52194         * m4/inttypes_h.m4: Likewise.
52195         * m4/inttypes-pri.m4: Likewise.
52196         * m4/isapipe.m4: Likewise.
52197         * m4/isnand.m4: Likewise.
52198         * m4/isnanf.m4: Likewise.
52199         * m4/isnanl.m4: Likewise.
52200         * m4/javacomp.m4: Likewise.
52201         * m4/javaexec.m4: Likewise.
52202         * m4/jm-winsz1.m4: Likewise.
52203         * m4/jm-winsz2.m4: Likewise.
52204         * m4/lchown.m4: Likewise.
52205         * m4/lcmessage.m4: Likewise.
52206         * m4/ldexpl.m4: Likewise.
52207         * m4/lib-ld.m4: Likewise.
52208         * m4/lib-link.m4: Likewise.
52209         * m4/libsigsegv.m4: Likewise.
52210         * m4/link-follow.m4: Likewise.
52211         * m4/localcharset.m4: Likewise.
52212         * m4/locale-fr.m4: Likewise.
52213         * m4/locale-ja.m4: Likewise.
52214         * m4/locale-tr.m4: Likewise.
52215         * m4/locale-zh.m4: Likewise.
52216         * m4/lock.m4: Likewise.
52217         * m4/longlong.m4: Likewise.
52218         * m4/ls-mntd-fs.m4: Likewise.
52219         * m4/lstat.m4: Likewise.
52220         * m4/malloc.m4: Likewise.
52221         * m4/mathl.m4: Likewise.
52222         * m4/mbrtowc.m4: Likewise.
52223         * m4/mbstate_t.m4: Likewise.
52224         * m4/mbswidth.m4: Likewise.
52225         * m4/memchr.m4: Likewise.
52226         * m4/memcmp.m4: Likewise.
52227         * m4/memcpy.m4: Likewise.
52228         * m4/memmem.m4: Likewise.
52229         * m4/memmove.m4: Likewise.
52230         * m4/mempcpy.m4: Likewise.
52231         * m4/memrchr.m4: Likewise.
52232         * m4/memset.m4: Likewise.
52233         * m4/minmax.m4: Likewise.
52234         * m4/mkdir-slash.m4: Likewise.
52235         * m4/mkdtemp.m4: Likewise.
52236         * m4/mktime.m4: Likewise.
52237         * m4/mmap-anon.m4: Likewise.
52238         * m4/mountlist.m4: Likewise.
52239         * m4/nanosleep.m4: Likewise.
52240         * m4/nls.m4: Likewise.
52241         * m4/nocrash.m4: Likewise.
52242         * m4/open.m4: Likewise.
52243         * m4/openat.m4: Likewise.
52244         * m4/openmp.m4: Likewise.
52245         * m4/pathmax.m4: Likewise.
52246         * m4/perl.m4: Likewise.
52247         * m4/physmem.m4: Likewise.
52248         * m4/pipe.m4: Likewise.
52249         * m4/po.m4: Likewise.
52250         * m4/poll.m4: Likewise.
52251         * m4/posixtm.m4: Likewise.
52252         * m4/posixver.m4: Likewise.
52253         * m4/printf-frexp.m4: Likewise.
52254         * m4/printf-frexpl.m4: Likewise.
52255         * m4/printf-posix.m4: Likewise.
52256         * m4/printf-posix-rpl.m4: Likewise.
52257         * m4/printf.m4: Likewise.
52258         * m4/progtest.m4: Likewise.
52259         * m4/putenv.m4: Likewise.
52260         * m4/readline.m4: Likewise.
52261         * m4/readlink.m4: Likewise.
52262         * m4/readutmp.m4: Likewise.
52263         * m4/realloc.m4: Likewise.
52264         * m4/regex.m4: Likewise.
52265         * m4/relocatable.m4: Likewise.
52266         * m4/relocatable-lib.m4: Likewise.
52267         * m4/rename-dest-slash.m4: Likewise.
52268         * m4/rename.m4: Likewise.
52269         * m4/rmdir-errno.m4: Likewise.
52270         * m4/rmdir.m4: Likewise.
52271         * m4/roundf.m4: Likewise.
52272         * m4/roundl.m4: Likewise.
52273         * m4/rpmatch.m4: Likewise.
52274         * m4/save-cwd.m4: Likewise.
52275         * m4/selinux-selinux-h.m4: Likewise.
52276         * m4/setenv.m4: Likewise.
52277         * m4/settime.m4: Likewise.
52278         * m4/sig2str.m4: Likewise.
52279         * m4/sig_atomic_t.m4: Likewise.
52280         * m4/signalblocking.m4: Likewise.
52281         * m4/signbit.m4: Likewise.
52282         * m4/sigpipe.m4: Likewise.
52283         * m4/sockets.m4: Likewise.
52284         * m4/sockpfaf.m4: Likewise.
52285         * m4/st_dm_mode.m4: Likewise.
52286         * m4/stat-time.m4: Likewise.
52287         * m4/stdbool.m4: Likewise.
52288         * m4/stdint.m4: Likewise.
52289         * m4/stdint_h.m4: Likewise.
52290         * m4/stpcpy.m4: Likewise.
52291         * m4/stpncpy.m4: Likewise.
52292         * m4/strcase.m4: Likewise.
52293         * m4/strchrnul.m4: Likewise.
52294         * m4/strcspn.m4: Likewise.
52295         * m4/strdup.m4: Likewise.
52296         * m4/strftime.m4: Likewise.
52297         * m4/strndup.m4: Likewise.
52298         * m4/strnlen.m4: Likewise.
52299         * m4/strpbrk.m4: Likewise.
52300         * m4/strptime.m4: Likewise.
52301         * m4/strsep.m4: Likewise.
52302         * m4/strtod.m4: Likewise.
52303         * m4/strtoimax.m4: Likewise.
52304         * m4/strtok_r.m4: Likewise.
52305         * m4/strtol.m4: Likewise.
52306         * m4/strtoll.m4: Likewise.
52307         * m4/strtoul.m4: Likewise.
52308         * m4/strtoull.m4: Likewise.
52309         * m4/strtoumax.m4: Likewise.
52310         * m4/strverscmp.m4: Likewise.
52311         * m4/threadlib.m4: Likewise.
52312         * m4/timegm.m4: Likewise.
52313         * m4/tm_gmtoff.m4: Likewise.
52314         * m4/tmpdir.m4: Likewise.
52315         * m4/tmpfile.m4: Likewise.
52316         * m4/tzset.m4: Likewise.
52317         * m4/uintmax_t.m4: Likewise.
52318         * m4/unlinkdir.m4: Likewise.
52319         * m4/unlocked-io.m4: Likewise.
52320         * m4/uptime.m4: Likewise.
52321         * m4/userspec.m4: Likewise.
52322         * m4/utimbuf.m4: Likewise.
52323         * m4/utime.m4: Likewise.
52324         * m4/utimes-null.m4: Likewise.
52325         * m4/utimes.m4: Likewise.
52326         * m4/vararrays.m4: Likewise.
52327         * m4/vasnprintf.m4: Likewise.
52328         * m4/vfprintf-posix.m4: Likewise.
52329         * m4/vprintf-posix.m4: Likewise.
52330         * m4/wait-process.m4: Likewise.
52331         * m4/wchar_t.m4: Likewise.
52332         * m4/wint_t.m4: Likewise.
52333         * m4/write-any-file.m4: Likewise.
52334         * m4/yield.m4: Likewise.
52335
52336 2009-01-13  Bruno Haible  <bruno@clisp.org>
52337
52338         Avoid test-copy-file.sh failures when ACL support insufficient.
52339         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52340         TESTS_ENVIRONMENT.
52341         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52342         Reported by Jim Meyering.
52343
52344 2009-01-13  Bruno Haible  <bruno@clisp.org>
52345
52346         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52347         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52348         * modules/unistdio/u8-printf-parse (Files): Likewise.
52349         * modules/unistdio/u32-printf-parse (Files): Likewise.
52350         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52351
52352 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52353
52354         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52355         and m4/inttypes_h.m4 too.
52356
52357 2009-01-12  Eric Blake  <ebb9@byu.net>
52358
52359         tests: IRIX 6.2 cc can't compile -0.0 into .data
52360         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52361         rather than at compile-time.
52362         * tests/test-floorl.c (minus_zero): Likewise.
52363         * tests/test-frexpl.c (minus_zero): Likewise.
52364         * tests/test-isnan.c (minus_zerol): Likewise.
52365         * tests/test-isnanl.h (minus_zero): Likewise.
52366         * tests/test-ldexpl.c (minus_zero): Likewise.
52367         * tests/test-roundl.c (minus_zero): Likewise.
52368         * tests/test-signbit.c (minus_zerol): Likewise.
52369         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52370         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52371         * tests/test-truncl.c (minus_zero): Likewise.
52372         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52373         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52374         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52375
52376 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52377
52378         regex: fix glibc bug 9697
52379         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52380         handling.
52381
52382 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52383
52384         regex: fix glibc bug 697
52385         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52386         being NULL also if there are no backreferences.
52387
52388 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52389
52390         regex: merge glibc changes
52391         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52392         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52393         re_string_skip_chars, re_string_reconstruct): Likewise.
52394         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52395
52396 2009-01-07  Jim Meyering  <meyering@redhat.com>
52397
52398         poll: filter through cppi
52399         * lib/poll.c: Indent cpp directives to reflect nesting.
52400
52401 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52402
52403         poll: don't return uninitialized
52404         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52405
52406 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52407
52408         avoid compile failure on AIX 6.1
52409         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52410         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52411
52412 2009-01-04  Jim Meyering  <meyering@redhat.com>
52413
52414         remove duplicate inclusion of <stdio.h>
52415         * tests/test-fprintf-posix.c: Likewise.
52416         * tests/test-printf-posix.c: Likewise.
52417         * tests/test-snprintf-posix.c: Likewise.
52418         * tests/test-sprintf-posix.c: Likewise.
52419         * tests/test-vasprintf-posix.c: Likewise.
52420         * tests/test-vfprintf-posix.c: Likewise.
52421         * tests/test-vprintf-posix.c: Likewise.
52422         * tests/test-vsnprintf-posix.c: Likewise.
52423         * tests/test-vsprintf-posix.c: Likewise.
52424
52425 2009-01-03  Jim Meyering  <meyering@redhat.com>
52426
52427         gnulib-tool: fix sed-based filtering
52428         * gnulib-tool (func_filter_filelist): Remove extra backslash
52429         in sed_fff_filter definition.
52430
52431 2009-01-02  Jim Meyering  <meyering@redhat.com>
52432
52433         strftime: avoid compilation failure on Solaris 2.6
52434         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52435         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52436         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52437         be available.  Reported by Tom G. Christensen.  Details in
52438         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52439
52440 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52441             Bruno Haible  <bruno@clisp.org>
52442
52443         Speed up gnulib-tool by doing more string processing through shell
52444         built-ins.
52445         * gnulib-tool (fast_func_append): New variable.
52446         (func_remove_prefix, func_remove_suffix): New functions.
52447         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52448         (func_filter_filelist): New function.
52449         (func_get_dependencies): Use func_remove_suffix instead of sed.
52450         (func_get_automake_snippet): Use func_filter_filelist instead of a
52451         subshell and sed invocation.
52452
52453 2009-01-01  Bruno Haible  <bruno@clisp.org>
52454
52455         Fix a security bug.
52456         * gnulib-tool (func_import, import, update): Don't allow the characters
52457         '"', '$', '`', '\' in macro arguments that become part of commands that
52458         are evaluated.
52459
52460 2009-01-01  Bruno Haible  <bruno@clisp.org>
52461
52462         * gnulib-tool (func_reset_sigpipe): Add more comments.
52463
52464 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52465
52466         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52467         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52468         already know the answer.
52469
52470 2009-01-01  Jim Meyering  <meyering@redhat.com>
52471
52472         * lib/version-etc.c (version_etc_va): Update copyright year.
52473
52474 2008-12-30  Bruno Haible  <bruno@clisp.org>
52475
52476         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52477         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52478         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52479
52480 2008-12-29  Eric Blake  <ebb9@byu.net>
52481
52482         multiarch: avoid autoconf AC_REQUIRE bug
52483         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52484         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52485         2.63 and older.
52486         Reported by Bruno Haible, and analyzed in
52487         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52488
52489 2008-12-29  Bruno Haible  <bruno@clisp.org>
52490
52491         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52492         files in subdirectories correctly.
52493         Reported by Ralf Wildenhues.
52494
52495 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52496
52497         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52498         rather than 'join FILE -', for Solaris join.
52499
52500 2008-12-29  Bruno Haible  <bruno@clisp.org>
52501
52502         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52503         quoting.
52504         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52505         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52506         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52507         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52508         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52509         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52510         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52511         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52512         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52513         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52514         * m4/nls.m4 (AM_NLS): Likewise.
52515         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52516         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52517         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52518         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52519         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52520         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52521         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52522         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52523         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52524         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52525         * m4/xsize.m4 (gl_XSIZE): Likewise.
52526         Suggested by Jim Meyering.
52527
52528 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52529
52530         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52531         * lib/parse-duration.c: use a switch instead of cascading if's.
52532
52533 2008-12-29  Eric Blake  <ebb9@byu.net>
52534
52535         wchar.h: supply WEOF on Irix 5.3
52536         * lib/wchar.in.h (wint_t): Also supply WEOF.
52537         * lib/wctype.in.h (wint_t): Likewise.
52538         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52539         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52540         Reported by Tom G. Christensen.
52541
52542 2008-12-26  Bruno Haible  <bruno@clisp.org>
52543
52544         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52545         i486, i586, i686.
52546
52547 2008-12-26  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52550
52551 2008-12-26  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52554         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52555         not __STDC_CONSTANT_MACROS.
52556         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52557
52558 2008-12-25  Bruno Haible  <bruno@clisp.org>
52559
52560         Add support for universal builds to vasnprintf.
52561         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52562         universal builds, guess no.
52563         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52564         * modules/vasprintf-posix (Depends-on): Likewise.
52565         * modules/fprintf-posix (Depends-on): Likewise.
52566         * modules/vfprintf-posix (Depends-on): Likewise.
52567         * modules/snprintf-posix (Depends-on): Likewise.
52568         * modules/vsnprintf-posix (Depends-on): Likewise.
52569         * modules/sprintf-posix (Depends-on): Likewise.
52570         * modules/vsprintf-posix (Depends-on): Likewise.
52571         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52572         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52573         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52574         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52575         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52576         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52577         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52578
52579         Add support for universal builds to <inttypes.h>.
52580         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52581         _SCNu64_PREFIX): In Apple
52582         universal builds, define directly, using _LP64.
52583         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52584         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52585         * modules/inttypes (Depends-on): Add multiarch.
52586         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52587
52588         Add support for universal builds to <stdint.h>.
52589         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52590         universal builds, define directly, using _LP64.
52591         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52592         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52593         and size_t.
52594         * modules/stdint (Depends-on): Add multiarch.
52595         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52596
52597         New module 'multiarch'.
52598         * modules/multiarch: New file.
52599         * m4/multiarch.m4: New file.
52600
52601 2008-12-25  Bruno Haible  <bruno@clisp.org>
52602
52603         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52604
52605 2008-12-25  Bruno Haible  <bruno@clisp.org>
52606
52607         * modules/btowc (License): Relicense under LGPLv2+.
52608         * modules/mbsinit (License): Likewise.
52609         * modules/mbrtowc (License): Likewise.
52610         * modules/wcrtomb (License): Likewise.
52611         * modules/streq (License): Likewise.
52612         Reported by David Lutterkort <lutter@redhat.com>.
52613
52614 2008-12-23  Bruno Haible  <bruno@clisp.org>
52615
52616         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52617
52618 2008-12-23  Bruno Haible  <bruno@clisp.org>
52619
52620         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52622         GETADDRINFO_LIB, not in LIBS.
52623         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52624         * modules/canon-host (Link): Likewise.
52625         * NEWS: Mention the change.
52626         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52627         GETADDRINFO_LIB.
52628
52629 2008-12-22  Bruno Haible  <bruno@clisp.org>
52630
52631         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52632         * doc/posix-functions/iswalpha_l.texi: Likewise.
52633         * doc/posix-functions/iswblank_l.texi: Likewise.
52634         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52635         * doc/posix-functions/iswctype_l.texi: Likewise.
52636         * doc/posix-functions/iswdigit_l.texi: Likewise.
52637         * doc/posix-functions/iswgraph_l.texi: Likewise.
52638         * doc/posix-functions/iswlower_l.texi: Likewise.
52639         * doc/posix-functions/iswprint_l.texi: Likewise.
52640         * doc/posix-functions/iswpunct_l.texi: Likewise.
52641         * doc/posix-functions/iswspace_l.texi: Likewise.
52642         * doc/posix-functions/iswupper_l.texi: Likewise.
52643         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52644         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52645         * doc/posix-functions/open_wmemstream.texi: Likewise.
52646         * doc/posix-functions/swscanf.texi: Likewise.
52647         * doc/posix-functions/towctrans_l.texi: Likewise.
52648         * doc/posix-functions/towlower.texi: Likewise.
52649         * doc/posix-functions/towlower_l.texi: Likewise.
52650         * doc/posix-functions/towupper.texi: Likewise.
52651         * doc/posix-functions/towupper_l.texi: Likewise.
52652         * doc/posix-functions/vfwprintf.texi: Likewise.
52653         * doc/posix-functions/vfwscanf.texi: Likewise.
52654         * doc/posix-functions/vswscanf.texi: Likewise.
52655         * doc/posix-functions/vwprintf.texi: Likewise.
52656         * doc/posix-functions/vwscanf.texi: Likewise.
52657         * doc/posix-functions/wcpcpy.texi: Likewise.
52658         * doc/posix-functions/wcpncpy.texi: Likewise.
52659         * doc/posix-functions/wcscasecmp.texi: Likewise.
52660         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52661         * doc/posix-functions/wcscoll_l.texi: Likewise.
52662         * doc/posix-functions/wcsdup.texi: Likewise.
52663         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52664         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52665         * doc/posix-functions/wcsnlen.texi: Likewise.
52666         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52667         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52668         * doc/posix-functions/wctrans_l.texi: Likewise.
52669         * doc/posix-functions/wctype_l.texi: Likewise.
52670         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52671         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52672         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52673         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52674         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52675         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52676         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52677         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52678         * doc/glibc-functions/wcschrnul.texi: Likewise.
52679         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52680         * doc/glibc-functions/wcstod_l.texi: Likewise.
52681         * doc/glibc-functions/wcstof_l.texi: Likewise.
52682         * doc/glibc-functions/wcstol_l.texi: Likewise.
52683         * doc/glibc-functions/wcstold_l.texi: Likewise.
52684         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52685         * doc/glibc-functions/wcstoq.texi: Likewise.
52686         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52687         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52688         * doc/glibc-functions/wcstouq.texi: Likewise.
52689         * doc/glibc-functions/wmempcpy.texi: Likewise.
52690
52691 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52692             Eric Blake  <ebb9@byu.net>
52693             Paolo Bonzini  <bonzini@gnu.org>
52694             Bruno Haible  <bruno@clisp.org>
52695
52696         Make c-stack work on Haiku.
52697         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52698         (c_stack_action): Use SA_ONSTACK flag.
52699
52700 2008-12-22  Bruno Haible  <bruno@clisp.org>
52701
52702         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52703
52704 2008-12-22  Bruno Haible  <bruno@clisp.org>
52705
52706         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52707         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52708         being overridden.
52709         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52710         New macros.
52711         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52713         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52714         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52715
52716 2008-12-22  Bruno Haible  <bruno@clisp.org>
52717
52718         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52719         from test code.
52720
52721 2008-12-22  Eric Blake  <ebb9@byu.net>
52722
52723         Avoid gcc warnings on cygwin.
52724         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52725         Avoid unused variable.
52726         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52727         Likewise.
52728
52729 2008-12-22  Bruno Haible  <bruno@clisp.org>
52730
52731         Remove HAVE_MBRTOWC conditionals.
52732         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52733         (mbscasecmp): Assume mbrtowc function.
52734         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52735         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52736         * lib/mbschr.c: Include mbuiter.h unconditionally.
52737         (mbschr): Assume mbrtowc function.
52738         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52739         (mbscspn): Assume mbrtowc function.
52740         * lib/mbslen.c: Include mbuiter.h unconditionally.
52741         (mbslen): Assume mbrtowc function.
52742         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52743         (mbsncasecmp): Assume mbrtowc function.
52744         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52745         (mbsnlen): Assume mbrtowc function.
52746         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52747         (mbspbrk): Assume mbrtowc function.
52748         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52749         (mbspcasecmp): Assume mbrtowc function.
52750         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52751         (mbsrchr): Assume mbrtowc function.
52752         * lib/mbssep.c: Include mbuiter.h unconditionally.
52753         (mbssep): Assume mbrtowc function.
52754         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52755         (mbsspn): Assume mbrtowc function.
52756         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52757         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52758         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52759         (mbstok_r): Assume mbrtowc function.
52760         * lib/propername.c: Include mbuiter.h unconditionally.
52761         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52762         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52763         (trim2): Assume mbrtowc function.
52764         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52765         (mbsnwidth): Assume mbrtowc function.
52766         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52767         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52768         fallback definitions.
52769         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52770
52771 2008-12-22  Bruno Haible  <bruno@clisp.org>
52772
52773         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52774
52775 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52776
52777         * modules/regex: Request emulations for the mb*/wc* functions we need.
52778         * m4/regex.m4: Don't look for those functions here.
52779         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52780
52781 2008-12-22  Bruno Haible  <bruno@clisp.org>
52782
52783         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52784
52785 2008-12-21  Bruno Haible  <bruno@clisp.org>
52786
52787         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52788         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52789         (Include): Remove conditionalization.
52790         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52791         (Include): Remove conditionalization.
52792         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52793         (Include): Remove conditionalization.
52794         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52795         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52796         * NEWS: Mention the change.
52797         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52798         via Sergey Poznyakoff <gray@gnu.org.ua>.
52799
52800 2008-12-21  Bruno Haible  <bruno@clisp.org>
52801
52802         * MODULES.html.sh (Extended multibyte and wide character utilities
52803         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52804         wcrtomb, wcsrtombs.
52805         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52806         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52807         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52808         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52809
52810 2008-12-21  Bruno Haible  <bruno@clisp.org>
52811
52812         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52813
52814 2008-12-21  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/wcsnrtombs-tests: New file.
52817         * tests/test-wcsnrtombs1.sh: New file.
52818         * tests/test-wcsnrtombs2.sh: New file.
52819         * tests/test-wcsnrtombs3.sh: New file.
52820         * tests/test-wcsnrtombs4.sh: New file.
52821         * tests/test-wcsnrtombs.c: New file.
52822
52823         New module 'wcsnrtombs'.
52824         * lib/wchar.in.h (wcsnrtombs): New declaration.
52825         * lib/wcsnrtombs.c: New file.
52826         * lib/wcsrtombs-state.c: New file.
52827         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52828         (internal_state): Remove variable.
52829         * m4/wcsnrtombs.m4: New file.
52830         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52831         compilation units.
52832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52833         HAVE_WCSNRTOMBS.
52834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52835         HAVE_WCSNRTOMBS.
52836         * modules/wcsnrtombs: New file.
52837         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52838         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52839
52840 2008-12-21  Bruno Haible  <bruno@clisp.org>
52841
52842         * modules/wcsrtombs-tests: New file.
52843         * tests/test-wcsrtombs1.sh: New file.
52844         * tests/test-wcsrtombs2.sh: New file.
52845         * tests/test-wcsrtombs3.sh: New file.
52846         * tests/test-wcsrtombs4.sh: New file.
52847         * tests/test-wcsrtombs.c: New file.
52848
52849         New module 'wcsrtombs'.
52850         * lib/wchar.in.h (wcsrtombs): New declaration.
52851         * lib/wcsrtombs.c: New file.
52852         * m4/wcsrtombs.m4: New file.
52853         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52854         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52856         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52857         * modules/wcsrtombs: New file.
52858         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52859         bugs.
52860
52861 2008-12-21  Bruno Haible  <bruno@clisp.org>
52862
52863         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52864         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52865         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52866         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52867         if not correct.
52868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52869         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52870         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52871         m4/locale-zh.m4, m4/codeset.m4.
52872         * doc/posix-functions/wcrtomb.texi: Document the bug.
52873
52874 2008-12-21  Bruno Haible  <bruno@clisp.org>
52875
52876         Work around a btowc() bug on IRIX 6.5.
52877         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52878         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52879         REPLACE_WTOBC if not.
52880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52881         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52882         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52883
52884 2008-12-21  Bruno Haible  <bruno@clisp.org>
52885
52886         * modules/wcrtomb-tests: New file.
52887         * tests/test-wcrtomb.sh: New file.
52888         * tests/test-wcrtomb.c: New file.
52889
52890         New module 'wcrtomb'.
52891         * lib/wchar.in.h (wcrtomb): New declaration.
52892         * lib/wcrtomb.c: New file.
52893         * m4/wcrtomb.m4: New file.
52894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52895         HAVE_WCRTOMB.
52896         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52897         HAVE_WCRTOMB.
52898         * modules/wcrtomb: New file.
52899         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52900
52901 2008-12-21  Bruno Haible  <bruno@clisp.org>
52902
52903         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52904         * modules/mbsrtowcs (Files): Likewise.
52905         * modules/wctob (Files): Likewise.
52906         * modules/c-strcase-tests (Files): Likewise.
52907         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52908         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52909         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52910         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52911         * modules/vasnprintf-posix-tests (Files): Likewise.
52912
52913 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52914
52915         gitlog-to-changelog: pass all command-line arguments to git-log
52916         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52917         it is sometimes convenient to filter the commits in various ways.
52918         gitlog-to-changelog only allows --since to specify a start date,
52919         but git-log itself supports many other filtering mechanisms.
52920         At the moment, I want to filter by branch name.  Rather than
52921         adding a --branch option to gitlog-to-changelog, it seems more
52922         flexible to simply pass all options directly to git-log and let
52923         git do the work.  Notice that this effectively makes --since a
52924         redundant option for gitlog-to-changelog, but removing it would
52925         require current usage to change since calls would then require
52926         an additional '--'.
52927
52928 2008-12-21  Bruno Haible  <bruno@clisp.org>
52929
52930         * modules/mbsnrtowcs-tests: New file.
52931         * tests/test-mbsnrtowcs1.sh: New file.
52932         * tests/test-mbsnrtowcs2.sh: New file.
52933         * tests/test-mbsnrtowcs3.sh: New file.
52934         * tests/test-mbsnrtowcs4.sh: New file.
52935         * tests/test-mbsnrtowcs.c: New file.
52936
52937         New module 'mbsnrtowcs'.
52938         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52939         * lib/mbsnrtowcs.c: New file.
52940         * lib/mbsrtowcs-state.c: New file.
52941         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52942         (internal_state): Remove variable.
52943         * m4/mbsnrtowcs.m4: New file.
52944         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52945         compilation units.
52946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52947         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52948         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52949         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52950         * modules/mbsnrtowcs: New file.
52951         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52952         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52953         portability problem.
52954
52955 2008-12-21  Bruno Haible  <bruno@clisp.org>
52956
52957         Work around mbsrtowcs bug.
52958         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52959         (gl_FUNC_MBSRTOWCS): Invoke it.
52960         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52961         m4/locale-zh.m4.
52962         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52963
52964 2008-12-21  Bruno Haible  <bruno@clisp.org>
52965
52966         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52967
52968 2008-12-21  Bruno Haible  <bruno@clisp.org>
52969
52970         Update doc for AIX.
52971         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52972         16-bit wchar_t type.
52973         * doc/posix-functions/btowc.texi: Likewise.
52974         * doc/posix-functions/fgetwc.texi: Likewise.
52975         * doc/posix-functions/fgetws.texi: Likewise.
52976         * doc/posix-functions/fputwc.texi: Likewise.
52977         * doc/posix-functions/fputws.texi: Likewise.
52978         * doc/posix-functions/fwide.texi: Likewise.
52979         * doc/posix-functions/fwprintf.texi: Likewise.
52980         * doc/posix-functions/fwscanf.texi: Likewise.
52981         * doc/posix-functions/getwchar.texi: Likewise.
52982         * doc/posix-functions/getwc.texi: Likewise.
52983         * doc/posix-functions/iswalnum.texi: Likewise.
52984         * doc/posix-functions/iswalpha.texi: Likewise.
52985         * doc/posix-functions/iswblank.texi: Likewise.
52986         * doc/posix-functions/iswcntrl.texi: Likewise.
52987         * doc/posix-functions/iswctype.texi: Likewise.
52988         * doc/posix-functions/iswdigit.texi: Likewise.
52989         * doc/posix-functions/iswgraph.texi: Likewise.
52990         * doc/posix-functions/iswlower.texi: Likewise.
52991         * doc/posix-functions/iswprint.texi: Likewise.
52992         * doc/posix-functions/iswpunct.texi: Likewise.
52993         * doc/posix-functions/iswspace.texi: Likewise.
52994         * doc/posix-functions/iswupper.texi: Likewise.
52995         * doc/posix-functions/iswxdigit.texi: Likewise.
52996         * doc/posix-functions/mbrtowc.texi: Likewise.
52997         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52998         * doc/posix-functions/mbstowcs.texi: Likewise.
52999         * doc/posix-functions/mbtowc.texi: Likewise.
53000         * doc/posix-functions/putwchar.texi: Likewise.
53001         * doc/posix-functions/putwc.texi: Likewise.
53002         * doc/posix-functions/swprintf.texi: Likewise.
53003         * doc/posix-functions/tolower.texi: Likewise.
53004         * doc/posix-functions/toupper.texi: Likewise.
53005         * doc/posix-functions/towctrans.texi: Likewise.
53006         * doc/posix-functions/ungetwc.texi: Likewise.
53007         * doc/posix-functions/vswprintf.texi: Likewise.
53008         * doc/posix-functions/wcrtomb.texi: Likewise.
53009         * doc/posix-functions/wcscat.texi: Likewise.
53010         * doc/posix-functions/wcschr.texi: Likewise.
53011         * doc/posix-functions/wcscmp.texi: Likewise.
53012         * doc/posix-functions/wcscoll.texi: Likewise.
53013         * doc/posix-functions/wcscpy.texi: Likewise.
53014         * doc/posix-functions/wcscspn.texi: Likewise.
53015         * doc/posix-functions/wcsftime.texi: Likewise.
53016         * doc/posix-functions/wcslen.texi: Likewise.
53017         * doc/posix-functions/wcsncat.texi: Likewise.
53018         * doc/posix-functions/wcsncmp.texi: Likewise.
53019         * doc/posix-functions/wcsncpy.texi: Likewise.
53020         * doc/posix-functions/wcspbrk.texi: Likewise.
53021         * doc/posix-functions/wcsrchr.texi: Likewise.
53022         * doc/posix-functions/wcsrtombs.texi: Likewise.
53023         * doc/posix-functions/wcsspn.texi: Likewise.
53024         * doc/posix-functions/wcsstr.texi: Likewise.
53025         * doc/posix-functions/wcstod.texi: Likewise.
53026         * doc/posix-functions/wcstof.texi: Likewise.
53027         * doc/posix-functions/wcstoimax.texi: Likewise.
53028         * doc/posix-functions/wcstok.texi: Likewise.
53029         * doc/posix-functions/wcstold.texi: Likewise.
53030         * doc/posix-functions/wcstoll.texi: Likewise.
53031         * doc/posix-functions/wcstol.texi: Likewise.
53032         * doc/posix-functions/wcstombs.texi: Likewise.
53033         * doc/posix-functions/wcstoull.texi: Likewise.
53034         * doc/posix-functions/wcstoul.texi: Likewise.
53035         * doc/posix-functions/wcstoumax.texi: Likewise.
53036         * doc/posix-functions/wcswidth.texi: Likewise.
53037         * doc/posix-functions/wcsxfrm.texi: Likewise.
53038         * doc/posix-functions/wctob.texi: Likewise.
53039         * doc/posix-functions/wctomb.texi: Likewise.
53040         * doc/posix-functions/wctrans.texi: Likewise.
53041         * doc/posix-functions/wctype.texi: Likewise.
53042         * doc/posix-functions/wcwidth.texi: Likewise.
53043         * doc/posix-functions/wmemchr.texi: Likewise.
53044         * doc/posix-functions/wmemcmp.texi: Likewise.
53045         * doc/posix-functions/wmemcpy.texi: Likewise.
53046         * doc/posix-functions/wmemmove.texi: Likewise.
53047         * doc/posix-functions/wmemset.texi: Likewise.
53048         * doc/posix-functions/wprintf.texi: Likewise.
53049         * doc/posix-functions/wscanf.texi: Likewise.
53050
53051 2008-12-21  Bruno Haible  <bruno@clisp.org>
53052
53053         Update doc for HP-UX 11.11.
53054         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53055         in HP-UX version 11.00, not in all versions of HP-UX 11.
53056         * doc/posix-functions/fwide.texi: Likewise.
53057         * doc/posix-functions/fwprintf.texi: Likewise.
53058         * doc/posix-functions/fwscanf.texi: Likewise.
53059         * doc/posix-functions/inet_ntop.texi: Likewise.
53060         * doc/posix-functions/inet_pton.texi: Likewise.
53061         * doc/posix-functions/mbrlen.texi: Likewise.
53062         * doc/posix-functions/mbrtowc.texi: Likewise.
53063         * doc/posix-functions/mbsinit.texi: Likewise.
53064         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53065         * doc/posix-functions/swprintf.texi: Likewise.
53066         * doc/posix-functions/swscanf.texi: Likewise.
53067         * doc/posix-functions/towctrans.texi: Likewise.
53068         * doc/posix-functions/vfwprintf.texi: Likewise.
53069         * doc/posix-functions/vswprintf.texi: Likewise.
53070         * doc/posix-functions/vwprintf.texi: Likewise.
53071         * doc/posix-functions/wcrtomb.texi: Likewise.
53072         * doc/posix-functions/wcsrtombs.texi: Likewise.
53073         * doc/posix-functions/wcsstr.texi: Likewise.
53074         * doc/posix-functions/wctob.texi: Likewise.
53075         * doc/posix-functions/wctrans.texi: Likewise.
53076         * doc/posix-functions/wmemchr.texi: Likewise.
53077         * doc/posix-functions/wmemcmp.texi: Likewise.
53078         * doc/posix-functions/wmemcpy.texi: Likewise.
53079         * doc/posix-functions/wmemmove.texi: Likewise.
53080         * doc/posix-functions/wmemset.texi: Likewise.
53081         * doc/posix-functions/wprintf.texi: Likewise.
53082         * doc/posix-functions/wscanf.texi: Likewise.
53083
53084 2008-12-21  Bruno Haible  <bruno@clisp.org>
53085
53086         Work around a portability problem.
53087         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53088         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53089
53090 2008-12-20  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53093         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53094         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53096         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53097
53098         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53099         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53100         set.
53101         (GNULIB_defined_mbstate_t): New macro.
53102         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53103         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53104         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53105         reuses the system's mbrtowc function but works around the bugs.
53106         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53107         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53108         macros.
53109         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53110         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53111         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53113         REPLACE_MBSINIT if mbsinit needs to be overridden.
53114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53115         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53116         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53117         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53118         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53119         m4/locale-zh.m4.
53120         (Depends): Add mbsinit.
53121         * modules/mbsinit (Depends): Add mbrtowc.
53122         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53123
53124 2008-12-20  Bruno Haible  <bruno@clisp.org>
53125
53126         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53127         so that there are no conversion errors on AIX.
53128         * tests/test-mbsrtowcs.c (main): LIkewise.
53129
53130 2008-12-20  Bruno Haible  <bruno@clisp.org>
53131
53132         Work around wctob bug on Solaris <= 9.
53133         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53134         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53136         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53137         * modules/wctob (Files): Add m4/locale-fr.m4.
53138         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53139
53140 2008-12-20  Bruno Haible  <bruno@clisp.org>
53141
53142         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53143         /dev/null.
53144         * tests/test-select-in.sh: Likewise.
53145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53146
53147 2008-12-20  Bruno Haible  <bruno@clisp.org>
53148
53149         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53150         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53151         Cygwin 1.5.x.
53152
53153 2008-12-20  Bruno Haible  <bruno@clisp.org>
53154
53155         Ensure mbstate_t is defined on HP-UX 11.11.
53156         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53157         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53158         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53159         AC_USE_SYSTEM_EXTENSIONS.
53160         * modules/fnmatch (Depends-on): Add extensions.
53161         * modules/mbrlen (Depends-on): Likewise.
53162         * modules/mbrtowc (Depends-on): Likewise.
53163         * modules/mbsinit (Depends-on): Likewise.
53164         * modules/mbsrtowcs (Depends-on): Likewise.
53165         * modules/mbswidth (Depends-on): Likewise.
53166         * modules/quotearg (Depends-on): Likewise.
53167         * modules/strftime (Depends-on): Likewise.
53168
53169 2008-12-20  Bruno Haible  <bruno@clisp.org>
53170
53171         Ensure wctob is declared on IRIX 6.5.
53172         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53173         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53174         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53176         of HAVE_WCTOB.
53177         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53178         HAVE_WCTOB.
53179         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53180
53181 2008-12-19  Bruno Haible  <bruno@clisp.org>
53182
53183         * modules/mbsrtowcs-tests: New file.
53184         * tests/test-mbsrtowcs1.sh: New file.
53185         * tests/test-mbsrtowcs2.sh: New file.
53186         * tests/test-mbsrtowcs3.sh: New file.
53187         * tests/test-mbsrtowcs4.sh: New file.
53188         * tests/test-mbsrtowcs.c: New file.
53189
53190         New module 'mbsrtowcs'.
53191         * lib/wchar.in.h (mbsrtowcs): New declaration.
53192         * lib/mbsrtowcs.c: New file.
53193         * m4/mbsrtowcs.m4: New file.
53194         * modules/mbsrtowcs: New file.
53195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53196         HAVE_MBSRTOWCS.
53197         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53198         HAVE_MBSRTOWCS.
53199         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53200
53201 2008-12-19  Bruno Haible  <bruno@clisp.org>
53202
53203         New module 'mbrlen'.
53204         * lib/wchar.in.h (mbrlen): New declaration.
53205         * lib/mbrlen.c: New file.
53206         * m4/mbrlen.m4: New file.
53207         * modules/mbrlen: New file.
53208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53209         HAVE_MBRLEN.
53210         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53211         HAVE_MBRLEN.
53212         * doc/posix-functions/mbrlen.texi: Document the new module.
53213
53214 2008-12-19  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53217         * modules/mbrtowc (Depends-on): Add verify.
53218         Suggested by Paul Eggert.
53219
53220 2008-12-18  Bruno Haible  <bruno@clisp.org>
53221
53222         * modules/mbsinit-tests: New file.
53223         * tests/test-mbsinit.sh: New file.
53224         * tests/test-mbsinit.c: New file.
53225
53226 2008-12-18  Bruno Haible  <bruno@clisp.org>
53227
53228         * modules/mbrtowc-tests: New file.
53229         * tests/test-mbrtowc1.sh: New file.
53230         * tests/test-mbrtowc2.sh: New file.
53231         * tests/test-mbrtowc3.sh: New file.
53232         * tests/test-mbrtowc4.sh: New file.
53233         * tests/test-mbrtowc.c: New file.
53234
53235         New module 'mbrtowc'.
53236         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53237         mbsinit and mbrtowc.
53238         (mbrtowc): New declaration.
53239         * lib/mbrtowc.c: New file.
53240         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53241         * modules/mbrtowc: New file.
53242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53243         HAVE_MBRTOWC.
53244         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53245         HAVE_MBRTOWC.
53246         * doc/posix-functions/mbrtowc.texi: Document the new module.
53247
53248 2008-12-18  Bruno Haible  <bruno@clisp.org>
53249
53250         New module 'wctob'.
53251         * lib/wchar.in.h (wctob): New declaration.
53252         * lib/wctob.c: New file.
53253         * m4/wctob.m4: New file.
53254         * modules/wctob: New file.
53255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53256         HAVE_WCTOB.
53257         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53258         * doc/posix-functions/wctob.texi: Document the new module.
53259
53260 2008-12-18  Bruno Haible  <bruno@clisp.org>
53261
53262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53263         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53264
53265 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53266
53267         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53268         G. Christensen" <tgc@jupiterrise.com>.
53269
53270         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53271         G. Christensen" <tgc@jupiterrise.com>.
53272
53273         * lib/flock.c: Need to include string.h.  Reported by "Tom
53274         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53275         <ebb9@byu.net>.
53276
53277 2008-12-18  Bruno Haible  <bruno@clisp.org>
53278
53279         * m4/locale-ja.m4: New file, from GNU gettext.
53280
53281 2008-12-17  Bruno Haible  <bruno@clisp.org>
53282
53283         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53284         Suggested by Eric Blake.
53285
53286 2008-12-17  Bruno Haible  <bruno@clisp.org>
53287
53288         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53289
53290 2008-12-17  Bruno Haible  <bruno@clisp.org>
53291
53292         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53293         * modules/mbsinit (Depends-on): Add verify.
53294         Suggested by Paul Eggert.
53295
53296 2008-12-17  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53299         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53300         gl_FUNC_MBRTOWC.
53301         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53302         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53303         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53304         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53305         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53306         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53307         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53308         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53309         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53310         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53311         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53312         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53313         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53314         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53315         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53316         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53317         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53318         * modules/trim (configure.ac): Likewise.
53319
53320 2008-12-17  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/btowc-tests: New file.
53323         * tests/test-btowc1.sh: New file.
53324         * tests/test-btowc2.sh: New file.
53325         * tests/test-btowc.c: New file.
53326
53327         New module 'btowc'.
53328         * lib/wchar.in.h (btowc): New declaration.
53329         * lib/btowc.c: New file.
53330         * m4/btowc.m4: New file.
53331         * modules/btowc: New file.
53332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53333         HAVE_BTOWC.
53334         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53335         * doc/posix-functions/btowc.texi: Document the new module.
53336
53337 2008-12-17  Bruno Haible  <bruno@clisp.org>
53338
53339         New module 'mbsinit'.
53340         * lib/wchar.in.h (mbsinit): New declaration.
53341         * lib/mbsinit.c: New file.
53342         * m4/mbsinit.m4: New file.
53343         * modules/mbsinit: New file.
53344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53345         HAVE_MBSINIT.
53346         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53347         HAVE_MBSINIT.
53348         * doc/posix-functions/mbsinit.texi: Document the new module.
53349
53350 2008-12-16  Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/unistd.in.h: Add comment.
53353         * tests/test-environ.c: Don't include <stdlib.h>.
53354
53355 2008-12-16  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/parse-duration.h (parse_duration): Document return value
53358         convention.
53359         * lib/parse-duration.c: Include specification header first. Add
53360         comments.
53361         (_): Remove macro.
53362         (parse_year_month_day, parse_hour_minute_second): Move side effects
53363         outside of strchr call.
53364         (parse_non_iso8601): Move side effects outside of isspace call.
53365         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53366         call.
53367
53368 2008-12-16  Bruno Haible  <bruno@clisp.org>
53369
53370         * tests/test-parse-duration.sh: Produce no output when the test
53371         succeeds.
53372
53373 2008-12-16  Bruno Haible  <bruno@clisp.org>
53374
53375         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53376         expressions.
53377
53378 2008-12-15  Bruno Haible  <bruno@clisp.org>
53379
53380         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53381         * doc/glibc-functions/flistxattr.texi: Likewise.
53382         * doc/glibc-functions/fopencookie.texi: Likewise.
53383         * doc/glibc-functions/fremovexattr.texi: Likewise.
53384         * doc/glibc-functions/fsetxattr.texi: Likewise.
53385         * doc/glibc-functions/getxattr.texi: Likewise.
53386         * doc/glibc-functions/lgetxattr.texi: Likewise.
53387         * doc/glibc-functions/listxattr.texi: Likewise.
53388         * doc/glibc-functions/llistxattr.texi: Likewise.
53389         * doc/glibc-functions/lremovexattr.texi: Likewise.
53390         * doc/glibc-functions/lsetxattr.texi: Likewise.
53391         * doc/glibc-functions/removexattr.texi: Likewise.
53392         * doc/glibc-functions/setxattr.texi: Likewise.
53393         * doc/posix-functions/open_memstream.texi: Likewise.
53394
53395 2008-12-15  Eric Blake  <ebb9@byu.net>
53396
53397         Update doc for cygwin 1.7.
53398         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53399         functions.
53400         * doc/posix-functions/fchmodat.texi: Likewise.
53401         * doc/posix-functions/fchownat.texi: Likewise.
53402         * doc/posix-functions/fdopendir.texi: Likewise.
53403         * doc/posix-functions/fmemopen.texi: Likewise.
53404         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53405         * doc/posix-functions/fstatat.texi: Likewise.
53406         * doc/posix-functions/futimens.texi: Likewise.
53407         * doc/posix-functions/gai_strerror.texi: Likewise.
53408         * doc/posix-functions/getaddrinfo.texi: Likewise.
53409         * doc/posix-functions/getnameinfo.texi: Likewise.
53410         * doc/posix-functions/if_freenameindex.texi: Likewise.
53411         * doc/posix-functions/if_indextoname.texi: Likewise.
53412         * doc/posix-functions/if_nameindex.texi: Likewise.
53413         * doc/posix-functions/if_nametoindex.texi: Likewise.
53414         * doc/posix-functions/insque.texi: Likewise.
53415         * doc/posix-functions/linkat.texi: Likewise.
53416         * doc/posix-functions/llrint.texi: Likewise.
53417         * doc/posix-functions/llrintf.texi: Likewise.
53418         * doc/posix-functions/llrintl.texi: Likewise.
53419         * doc/posix-functions/lockf.texi: Likewise.
53420         * doc/posix-functions/lrintl.texi: Likewise.
53421         * doc/posix-functions/mkdirat.texi: Likewise.
53422         * doc/posix-functions/mkfifoat.texi: Likewise.
53423         * doc/posix-functions/mknodat.texi: Likewise.
53424         * doc/posix-functions/mq_close.texi: Likewise.
53425         * doc/posix-functions/mq_getattr.texi: Likewise.
53426         * doc/posix-functions/mq_notify.texi: Likewise.
53427         * doc/posix-functions/mq_open.texi: Likewise.
53428         * doc/posix-functions/mq_receive.texi: Likewise.
53429         * doc/posix-functions/mq_send.texi: Likewise.
53430         * doc/posix-functions/mq_setattr.texi: Likewise.
53431         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53432         * doc/posix-functions/mq_timedsend.texi: Likewise.
53433         * doc/posix-functions/mq_unlink.texi: Likewise.
53434         * doc/posix-functions/open_memstream.texi: Likewise.
53435         * doc/posix-functions/openat.texi: Likewise.
53436         * doc/posix-functions/posix_fadvise.texi: Likewise.
53437         * doc/posix-functions/posix_fallocate.texi: Likewise.
53438         * doc/posix-functions/posix_madvise.texi: Likewise.
53439         * doc/posix-functions/posix_memalign.texi: Likewise.
53440         * doc/posix-functions/posix_openpt.texi: Likewise.
53441         * doc/posix-functions/readlinkat.texi: Likewise.
53442         * doc/posix-functions/remque.texi: Likewise.
53443         * doc/posix-functions/renameat.texi: Likewise.
53444         * doc/posix-functions/rintl.texi: Likewise.
53445         * doc/posix-functions/sem_unlink.texi: Likewise.
53446         * doc/posix-functions/shm_open.texi: Likewise.
53447         * doc/posix-functions/shm_unlink.texi: Likewise.
53448         * doc/posix-functions/signgam.texi: Likewise.
53449         * doc/posix-functions/sigset.texi: Likewise.
53450         * doc/posix-functions/stpcpy.texi: Likewise.
53451         * doc/posix-functions/stpncpy.texi: Likewise.
53452         * doc/posix-functions/strerror.texi: Likewise.
53453         * doc/posix-functions/strtod.texi: Likewise.
53454         * doc/posix-functions/symlinkat.texi: Likewise.
53455         * doc/posix-functions/unlinkat.texi: Likewise.
53456         * doc/posix-functions/utimensat.texi: Likewise.
53457         * doc/glibc-functions/bindresvport.texi: Likewise.
53458         * doc/glibc-functions/dn_expand.texi: Likewise.
53459         * doc/glibc-functions/exp10.texi: Likewise.
53460         * doc/glibc-functions/exp10f.texi: Likewise.
53461         * doc/glibc-functions/fgetxattr.texi: Likewise.
53462         * doc/glibc-functions/flistxattr.texi: Likewise.
53463         * doc/glibc-functions/fopencookie.texi: Likewise.
53464         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53465         * doc/glibc-functions/fremovexattr.texi: Likewise.
53466         * doc/glibc-functions/fsetxattr.texi: Likewise.
53467         * doc/glibc-functions/getifaddrs.texi: Likewise.
53468         * doc/glibc-functions/getxattr.texi: Likewise.
53469         * doc/glibc-functions/lgetxattr.texi: Likewise.
53470         * doc/glibc-functions/listxattr.texi: Likewise.
53471         * doc/glibc-functions/llistxattr.texi: Likewise.
53472         * doc/glibc-functions/lremovexattr.texi: Likewise.
53473         * doc/glibc-functions/lsetxattr.texi: Likewise.
53474         * doc/glibc-functions/pow10.texi: Likewise.
53475         * doc/glibc-functions/pow10f.texi: Likewise.
53476         * doc/glibc-functions/rcmd_af.texi: Likewise.
53477         * doc/glibc-functions/removexattr.texi: Likewise.
53478         * doc/glibc-functions/res_init.texi: Likewise.
53479         * doc/glibc-functions/res_mkquery.texi: Likewise.
53480         * doc/glibc-functions/res_query.texi: Likewise.
53481         * doc/glibc-functions/res_querydomain.texi: Likewise.
53482         * doc/glibc-functions/res_send.texi: Likewise.
53483         * doc/glibc-functions/rresvport_af.texi: Likewise.
53484         * doc/glibc-functions/setxattr.texi: Likewise.
53485         * doc/glibc-functions/strcasestr.texi: Likewise.
53486
53487 2008-12-15  Bruno Haible  <bruno@clisp.org>
53488
53489         Fix compilation error on OSF/1 4.0.
53490         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53491         <sys/time.h>, simply delegate to the system header.
53492         Reported by Daniel Richard G. <oss@teragram.com>.
53493
53494 2008-12-15  Bruno Haible  <bruno@clisp.org>
53495
53496         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53497         * doc/posix-functions/fchmodat.texi: Likewise.
53498         * doc/posix-functions/fchownat.texi: Likewise.
53499         * doc/posix-functions/fdopendir.texi: Likewise.
53500         * doc/posix-functions/fstatat.texi: Likewise.
53501         * doc/posix-functions/mkdirat.texi: Likewise.
53502         * doc/posix-functions/unlinkat.texi: Likewise.
53503
53504 2008-12-14  Bruno Haible  <bruno@clisp.org>
53505
53506         Update doc for POSIX:2008.
53507         * doc/posix-functions/faccessat.texi: New file.
53508         * doc/posix-functions/fchmodat.texi: New file.
53509         * doc/posix-functions/fchownat.texi: New file.
53510         * doc/posix-functions/fdopendir.texi: New file.
53511         * doc/posix-functions/fstatat.texi: New file.
53512         * doc/posix-functions/futimens.texi: New file.
53513         * doc/posix-functions/linkat.texi: New file.
53514         * doc/posix-functions/mkdirat.texi: New file.
53515         * doc/posix-functions/mkfifoat.texi: New file.
53516         * doc/posix-functions/mknodat.texi: New file.
53517         * doc/posix-functions/open_wmemstream.texi: New file.
53518         * doc/posix-functions/openat.texi: New file.
53519         * doc/posix-functions/psiginfo.texi: New file.
53520         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53521         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53522         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53523         * doc/posix-functions/readlinkat.texi: New file.
53524         * doc/posix-functions/renameat.texi: New file.
53525         * doc/posix-functions/strerror_l.texi: New file.
53526         * doc/posix-functions/symlinkat.texi: New file.
53527         * doc/posix-functions/unlinkat.texi: New file.
53528         * doc/posix-functions/utimensat.texi: New file.
53529         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53530
53531 2008-12-14  Bruno Haible  <bruno@clisp.org>
53532
53533         Update doc for POSIX:2008.
53534         * doc/posix-functions/alphasort.texi: Renamed from
53535         doc/glibc-functions/alphasort.texi.
53536         * doc/posix-functions/dirfd.texi: Renamed from
53537         doc/glibc-functions/dirfd.texi.
53538         * doc/posix-functions/dprintf.texi: Renamed from
53539         doc/glibc-functions/dprintf.texi.
53540         * doc/posix-functions/duplocale.texi: Renamed from
53541         doc/glibc-functions/duplocale.texi.
53542         * doc/posix-functions/fexecve.texi: Renamed from
53543         doc/glibc-functions/fexecve.texi.
53544         * doc/posix-functions/fmemopen.texi: Renamed from
53545         doc/glibc-functions/fmemopen.texi.
53546         * doc/posix-functions/freelocale.texi: Renamed from
53547         doc/glibc-functions/freelocale.texi.
53548         * doc/posix-functions/getdate_err.texi: Renamed from
53549         doc/glibc-functions/getdate_err.texi.
53550         * doc/posix-functions/isalnum_l.texi: Renamed from
53551         doc/glibc-functions/isalnum_l.texi.
53552         * doc/posix-functions/isalpha_l.texi: Renamed from
53553         doc/glibc-functions/isalpha_l.texi.
53554         * doc/posix-functions/isblank_l.texi: Renamed from
53555         doc/glibc-functions/isblank_l.texi.
53556         * doc/posix-functions/iscntrl_l.texi: Renamed from
53557         doc/glibc-functions/iscntrl_l.texi.
53558         * doc/posix-functions/isdigit_l.texi: Renamed from
53559         doc/glibc-functions/isdigit_l.texi.
53560         * doc/posix-functions/isgraph_l.texi: Renamed from
53561         doc/glibc-functions/isgraph_l.texi.
53562         * doc/posix-functions/islower_l.texi: Renamed from
53563         doc/glibc-functions/islower_l.texi.
53564         * doc/posix-functions/isprint_l.texi: Renamed from
53565         doc/glibc-functions/isprint_l.texi.
53566         * doc/posix-functions/ispunct_l.texi: Renamed from
53567         doc/glibc-functions/ispunct_l.texi.
53568         * doc/posix-functions/isspace_l.texi: Renamed from
53569         doc/glibc-functions/isspace_l.texi.
53570         * doc/posix-functions/isupper_l.texi: Renamed from
53571         doc/glibc-functions/isupper_l.texi.
53572         * doc/posix-functions/iswalnum_l.texi: Renamed from
53573         doc/glibc-functions/iswalnum_l.texi.
53574         * doc/posix-functions/iswalpha_l.texi: Renamed from
53575         doc/glibc-functions/iswalpha_l.texi.
53576         * doc/posix-functions/iswblank_l.texi: Renamed from
53577         doc/glibc-functions/iswblank_l.texi.
53578         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53579         doc/glibc-functions/iswcntrl_l.texi.
53580         * doc/posix-functions/iswctype_l.texi: Renamed from
53581         doc/glibc-functions/iswctype_l.texi.
53582         * doc/posix-functions/iswdigit_l.texi: Renamed from
53583         doc/glibc-functions/iswdigit_l.texi.
53584         * doc/posix-functions/iswgraph_l.texi: Renamed from
53585         doc/glibc-functions/iswgraph_l.texi.
53586         * doc/posix-functions/iswlower_l.texi: Renamed from
53587         doc/glibc-functions/iswlower_l.texi.
53588         * doc/posix-functions/iswprint_l.texi: Renamed from
53589         doc/glibc-functions/iswprint_l.texi.
53590         * doc/posix-functions/iswpunct_l.texi: Renamed from
53591         doc/glibc-functions/iswpunct_l.texi.
53592         * doc/posix-functions/iswspace_l.texi: Renamed from
53593         doc/glibc-functions/iswspace_l.texi.
53594         * doc/posix-functions/iswupper_l.texi: Renamed from
53595         doc/glibc-functions/iswupper_l.texi.
53596         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53597         doc/glibc-functions/iswxdigit_l.texi.
53598         * doc/posix-functions/isxdigit_l.texi: Renamed from
53599         doc/glibc-functions/isxdigit_l.texi.
53600         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53601         doc/glibc-functions/mbsnrtowcs.texi.
53602         * doc/posix-functions/mkdtemp.texi: Renamed from
53603         doc/glibc-functions/mkdtemp.texi.
53604         * doc/posix-functions/newlocale.texi: Renamed from
53605         doc/glibc-functions/newlocale.texi.
53606         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53607         doc/glibc-functions/nl_langinfo_l.texi.
53608         * doc/posix-functions/open_memstream.texi: Renamed from
53609         doc/glibc-functions/open_memstream.texi.
53610         * doc/posix-functions/opterr.texi: Renamed from
53611         doc/glibc-functions/opterr.texi.
53612         * doc/posix-functions/optind.texi: Renamed from
53613         doc/glibc-functions/optind.texi.
53614         * doc/posix-functions/optopt.texi: Renamed from
53615         doc/glibc-functions/optopt.texi.
53616         * doc/posix-functions/psignal.texi: Renamed from
53617         doc/glibc-functions/psignal.texi.
53618         * doc/posix-functions/scandir.texi: Renamed from
53619         doc/glibc-functions/scandir.texi.
53620         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53621         doc/glibc-functions/sched_get_priority_min.texi.
53622         * doc/posix-functions/signgam.texi: Renamed from
53623         doc/glibc-functions/signgam.texi.
53624         * doc/posix-functions/stpcpy.texi: Renamed from
53625         doc/glibc-functions/stpcpy.texi.
53626         * doc/posix-functions/stpncpy.texi: Renamed from
53627         doc/glibc-functions/stpncpy.texi.
53628         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53629         doc/glibc-functions/strcasecmp_l.texi.
53630         * doc/posix-functions/strcoll_l.texi: Renamed from
53631         doc/glibc-functions/strcoll_l.texi.
53632         * doc/posix-functions/strfmon_l.texi: Renamed from
53633         doc/glibc-functions/strfmon_l.texi.
53634         * doc/posix-functions/strftime_l.texi: Renamed from
53635         doc/glibc-functions/strftime_l.texi.
53636         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53637         doc/glibc-functions/strncasecmp_l.texi.
53638         * doc/posix-functions/strndup.texi: Renamed from
53639         doc/glibc-functions/strndup.texi.
53640         * doc/posix-functions/strnlen.texi: Renamed from
53641         doc/glibc-functions/strnlen.texi.
53642         * doc/posix-functions/strsignal.texi: Renamed from
53643         doc/glibc-functions/strsignal.texi.
53644         * doc/posix-functions/strxfrm_l.texi: Renamed from
53645         doc/glibc-functions/strxfrm_l.texi.
53646         * doc/posix-functions/timer_gettime.texi: Renamed from
53647         doc/glibc-functions/timer_gettime.texi.
53648         * doc/posix-functions/tolower_l.texi: Renamed from
53649         doc/glibc-functions/tolower_l.texi.
53650         * doc/posix-functions/toupper_l.texi: Renamed from
53651         doc/glibc-functions/toupper_l.texi.
53652         * doc/posix-functions/towctrans_l.texi: Renamed from
53653         doc/glibc-functions/towctrans_l.texi.
53654         * doc/posix-functions/towlower_l.texi: Renamed from
53655         doc/glibc-functions/towlower_l.texi.
53656         * doc/posix-functions/towupper_l.texi: Renamed from
53657         doc/glibc-functions/towupper_l.texi.
53658         * doc/posix-functions/uselocale.texi: Renamed from
53659         doc/glibc-functions/uselocale.texi.
53660         * doc/posix-functions/vdprintf.texi: Renamed from
53661         doc/glibc-functions/vdprintf.texi.
53662         * doc/posix-functions/wcpcpy.texi:
53663         Renamed from doc/glibc-functions/wcpcpy.texi.
53664         * doc/posix-functions/wcpncpy.texi: Renamed from
53665         doc/glibc-functions/wcpncpy.texi.
53666         * doc/posix-functions/wcscasecmp.texi: Renamed from
53667         doc/glibc-functions/wcscasecmp.texi.
53668         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53669         doc/glibc-functions/wcscasecmp_l.texi.
53670         * doc/posix-functions/wcscoll_l.texi: Renamed from
53671         doc/glibc-functions/wcscoll_l.texi.
53672         * doc/posix-functions/wcsdup.texi: Renamed from
53673         doc/glibc-functions/wcsdup.texi.
53674         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53675         doc/glibc-functions/wcsncasecmp.texi.
53676         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53677         doc/glibc-functions/wcsncasecmp_l.texi.
53678         * doc/posix-functions/wcsnlen.texi: Renamed from
53679         doc/glibc-functions/wcsnlen.texi.
53680         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53681         doc/glibc-functions/wcsnrtombs.texi.
53682         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53683         doc/glibc-functions/wcsxfrm_l.texi.
53684         * doc/posix-functions/wctrans_l.texi: Renamed from
53685         doc/glibc-functions/wctrans_l.texi.
53686         * doc/posix-functions/wctype_l.texi: Renamed from
53687         doc/glibc-functions/wctype_l.texi.
53688         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53689         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53690         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53691         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53692         these subsections.
53693         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53694         Remove sections.
53695
53696 2008-12-14  Bruno Haible  <bruno@clisp.org>
53697
53698         Update doc for POSIX:2008.
53699         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53700
53701 2008-12-14  Bruno Haible  <bruno@clisp.org>
53702
53703         Update doc for POSIX:2008.
53704         * doc/pastposix-functions/bcmp.texi: Renamed from
53705         doc/posix-functions/bcmp.texi.
53706         * doc/pastposix-functions/bcopy.texi: Renamed from
53707         doc/posix-functions/bcopy.texi.
53708         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53709         doc/posix-functions/bsd_signal.texi.
53710         * doc/pastposix-functions/bzero.texi: Renamed from
53711         doc/posix-functions/bzero.texi.
53712         * doc/pastposix-functions/ecvt.texi: Renamed from
53713         doc/posix-functions/ecvt.texi.
53714         * doc/pastposix-functions/fcvt.texi: Renamed from
53715         doc/posix-functions/fcvt.texi.
53716         * doc/pastposix-functions/ftime.texi: Renamed from
53717         doc/posix-functions/ftime.texi.
53718         * doc/pastposix-functions/gcvt.texi: Renamed from
53719         doc/posix-functions/gcvt.texi.
53720         * doc/pastposix-functions/getcontext.texi: Renamed from
53721         doc/posix-functions/getcontext.texi.
53722         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53723         doc/posix-functions/gethostbyaddr.texi.
53724         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53725         doc/posix-functions/gethostbyname.texi.
53726         * doc/pastposix-functions/getwd.texi: Renamed from
53727         doc/posix-functions/getwd.texi.
53728         * doc/pastposix-functions/h_errno.texi: Renamed from
53729         doc/posix-functions/h_errno.texi.
53730         * doc/pastposix-functions/index.texi: Renamed from
53731         doc/posix-functions/index.texi.
53732         * doc/pastposix-functions/makecontext.texi: Renamed from
53733         doc/posix-functions/makecontext.texi.
53734         * doc/pastposix-functions/mktemp.texi: Renamed from
53735         doc/posix-functions/mktemp.texi.
53736         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53737         doc/posix-functions/pthread_attr_getstackaddr.texi.
53738         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53739         doc/posix-functions/pthread_attr_setstackaddr.texi.
53740         * doc/pastposix-functions/rindex.texi: Renamed from
53741         doc/posix-functions/rindex.texi.
53742         * doc/pastposix-functions/scalb.texi: Renamed from
53743         doc/posix-functions/scalb.texi.
53744         * doc/pastposix-functions/setcontext.texi: Renamed from
53745         doc/posix-functions/setcontext.texi.
53746         * doc/pastposix-functions/swapcontext.texi: Renamed from
53747         doc/posix-functions/swapcontext.texi.
53748         * doc/pastposix-functions/ualarm.texi: Renamed from
53749         doc/posix-functions/ualarm.texi.
53750         * doc/pastposix-functions/usleep.texi: Renamed from
53751         doc/posix-functions/usleep.texi.
53752         * doc/pastposix-functions/vfork.texi: Renamed from
53753         doc/posix-functions/vfork.texi.
53754         * doc/pastposix-functions/wcswcs.texi: Renamed from
53755         doc/posix-functions/wcswcs.texi.
53756         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53757         (Function Substitutes): Update.
53758
53759 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53760
53761         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53762         m4/strerror.m4.
53763
53764 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53765             Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53768
53769 2008-12-13  Bruno Haible  <bruno@clisp.org>
53770
53771         * modules/strtoull (Depends-on): Remove unistd.
53772
53773 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53774
53775         * modules/strtoull (Depends-on): Add stdlib.
53776
53777 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53778
53779         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53780
53781 2008-12-10  Jim Meyering  <meyering@redhat.com>
53782
53783         gl_ASSERT: don't say assertions are disabled when they're not
53784         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53785         "checking whether to enable assertions... no", when they are in
53786         fact enabled.  This is solely a bug in the output of configure.
53787         In spite of saying "no", NDEBUG was not defined in that case.
53788         Also, as noted by Eric Blake, leave assertions enabled upon
53789         --enable-assert=INVALID.
53790
53791 2008-12-10  Bruno Haible  <bruno@clisp.org>
53792
53793         Change MODULES.html to refer to POSIX:2008 where possible.
53794         * MODULES.html.sh (POSIX2008_URL): New variable.
53795         (posix_headers): Remove sys/timeb, ucontext.
53796         (posix2001_headers): New variable.
53797         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53798         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53799         index, makecontext, mktemp, pthread_attr_getstackaddr,
53800         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53801         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53802         (posix2001_functions): New variable.
53803         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53804         otherwise.
53805
53806 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53807
53808         add missing include to parse-duration.c
53809         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53810         * modules/parse-duration (Depends-on): Add xalloc.
53811
53812         fix sed script reading maint.mk
53813         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53814         (syntax-check-rules): Use it.
53815
53816 2008-12-09  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53819         MacOS X 10.4/PowerPC.
53820         Reported by Simon Josefsson.
53821
53822 2008-12-08  Jim Meyering  <meyering@redhat.com>
53823
53824         work around mingw's lack of some S_IF definitions
53825         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53826         Reported by Simon Josefsson.
53827
53828 2008-12-08  Bruno Haible  <bruno@clisp.org>
53829
53830         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53831         applied to variables. Needed on MacOS X 10.4/PowerPC.
53832         Reported by Simon Josefsson.
53833
53834 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53835         and Eric Blake  <ebb9@byu.net>
53836
53837         assert: honor --enable-assert
53838         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53839         order to honor --enable-assert, rather than treating it as a
53840         synonym for --disable-assert.
53841
53842 2008-12-08  Jim Meyering  <meyering@redhat.com>
53843
53844         * lib/posixtm.c: Remove now-useless declaration of mktime.
53845
53846         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53847
53848 2008-12-07  Bruno Haible  <bruno@clisp.org>
53849
53850         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53851         test_once): Mark functions as static.
53852         * tests/test-tls.c (test_tls): Likewise.
53853
53854 2008-12-07  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53857         iconv_register_autodetect.
53858
53859 2008-12-07  Jim Meyering  <meyering@redhat.com>
53860
53861         posixtm.c: avoid a warning
53862         * lib/posixtm.c (posixtime): Don't initialize tm0.
53863         It's no longer needed to placate gcc4's -Wuninitialized,
53864         and the attempt to placate would elicit a new warning.
53865
53866         unicodeio.c: mark unused parameters
53867         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53868         (fallback_failure_callback): Likewise.
53869
53870 2008-12-07  Bruno Haible  <bruno@clisp.org>
53871
53872         * gnulib-tool (func_create_testdir): When building the tests
53873         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53874         Reported by Simon Josefsson.
53875
53876 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53877
53878         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53879
53880 2008-12-06  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53883         Suggested by Eric Blake.
53884
53885 2008-12-06  Bruno Haible  <bruno@clisp.org>
53886
53887         Fix a c-stack test failure on MacOS X.
53888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53889         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53890         handler for SIGBUS as well.
53891         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53892         install a signal handler for SIGBUS as well.
53893         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53894
53895 2008-12-06  Bruno Haible  <bruno@clisp.org>
53896
53897         Advocacy documentation.
53898         * doc/gnulib-intro.texi (Benefits): New section.
53899         * doc/gnulib.texi: Update.
53900
53901 2008-12-06  Bruno Haible  <bruno@clisp.org>
53902
53903         Document the 'manywarnings' module.
53904         * doc/manywarnings.texi: New file.
53905         * doc/gnulib.texi: Include it.
53906
53907 2008-12-05  Eric Blake  <ebb9@byu.net>
53908
53909         tests: silence some gcc warnings
53910         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53911         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53912         type mismatches.
53913
53914 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53915             Bruno Haible  <bruno@clisp.org>
53916
53917         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53918
53919 2008-11-29  Jim Meyering  <meyering@redhat.com>
53920
53921         unicodeio.c: mark unused parameters
53922         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53923         (fallback_failure_callback): Likewise.
53924
53925         fts: fix a thinko
53926         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53927         (set_stat_type): Return S_IF*-valued "type" directly.
53928         Prompted by James Youngman's spotting a related bug.
53929         Confirmed by further testing through find.
53930
53931         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53932         * lib/fts.c (D_TYPE): Define.
53933         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53934         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53935         (s_ifmt_shift_bits): New function.
53936         (set_stat_type): New function.
53937         (fts_build): When not calling fts_stat, call set_stat_type
53938         to propagate dirent.d_type info to fts_read caller.
53939         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53940         fts_statp->st_mode type information may be valid.
53941
53942 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53943
53944         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53945         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53946         <sds@gnu.org>.
53947
53948 2008-11-20  Bruno Haible  <bruno@clisp.org>
53949
53950         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53951         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53952         INCLUDE_NEXT.
53953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53954         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53955         * modules/math (Makefile.am): Substitute
53956         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53957         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53958
53959 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53960             Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/stdint.in.h: Define all type macros so that their expansion is
53963         a single typedef'ed token. Fixes a compilation failure in Boost which
53964         does "using ::int8_t;".
53965
53966 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53967
53968         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53969         gl_MANYWARN_ALL_GCC.
53970         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53971         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53972         * modules/manywarnings: New file.
53973         * MODULES.html.sh: Mention manywarnings module.
53974
53975 2008-11-18  Bruno Haible  <bruno@clisp.org>
53976
53977         * doc/gnulib-tool.texi (Unit tests): New section.
53978
53979 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53980
53981         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53982         paths like 'lib/po/foo.po'.
53983
53984 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53985
53986         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53987         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53988
53989 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53990
53991         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53992         parameter works.
53993
53994 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53995
53996         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53997
53998 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53999
54000         * modules/parse-duration-tests: New file.
54001         * tests/test-parse-duration.sh: New file.
54002         * tests/test-parse-duration.c: New file.
54003
54004         New module 'parse-duration'.
54005         * lib/parse-duration.h: New file.
54006         * lib/parse-duration.c: New file.
54007         * modules/parse-duration: New file.
54008
54009 2008-11-17  Bruno Haible  <bruno@clisp.org>
54010
54011         * tests/test-select-out.sh: Comment out the first pipe test.
54012         Reported by Simon Josefsson.
54013
54014 2008-11-17  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54018         gl_HOSTENT.
54019
54020 2008-11-17  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54023         -lnetwork and -lnet. Needed for Haiku and BeOS.
54024
54025 2008-11-16  Bruno Haible  <bruno@clisp.org>
54026
54027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54028
54029 2008-11-16  Bruno Haible  <bruno@clisp.org>
54030
54031         Avoid test failure on Haiku.
54032         * tests/test-fsync.c: Include <errno.h>.
54033         (main): Don't require that fsync (0) fails.
54034
54035 2008-11-15  Bruno Haible  <bruno@clisp.org>
54036
54037         New module 'hostent'.
54038         * modules/hostent: New file.
54039         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54040
54041 2008-11-15  Bruno Haible  <bruno@clisp.org>
54042
54043         New module 'servent'.
54044         * modules/servent: New file.
54045         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54046
54047 2008-11-15  Bruno Haible  <bruno@clisp.org>
54048
54049         Avoid generating same test program with two different rules.
54050         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54051         test-frexp to test-frexp-nolibm.
54052         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54053         test-frexpl to test-frexpl-nolibm.
54054
54055 2008-11-15  Bruno Haible  <bruno@clisp.org>
54056
54057         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54058         $(FREXPL_LIBM).
54059
54060 2008-11-15  Bruno Haible  <bruno@clisp.org>
54061
54062         * lib/netdb.in.h: Activate the definitions also when the system's
54063         <netdb.h> has 'struct addrinfo'.
54064         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54065         EAI_OVERFLOW or AI_NUMERICSERV.
54066         * doc/posix-headers/netdb.texi: Document the problem.
54067
54068 2008-11-15  Bruno Haible  <bruno@clisp.org>
54069
54070         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54071
54072         Make the 'sched' module work on platforms where <sched.h> exists but
54073         is incomplete (such as Haiku).
54074         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54075         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54076         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54077         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54078         HAVE_STRUCT_SCHED_PARAM.
54079         * modules/sched (Depends-on): Add include_next.
54080         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54081         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54082         * doc/posix-headers/sched.texi: Document the issue.
54083
54084 2008-11-13  Jim Meyering  <meyering@redhat.com>
54085
54086         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54087         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54088         test would fail due to the difference in the Report bugs to ...
54089         line.  The expected address is empty, "<>", while the actual
54090         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54091
54092 2008-11-12  Bruno Haible  <bruno@clisp.org>
54093
54094         lstat: don't compile lstat.c on systems lacking lstat
54095         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54096         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54097         Reported by Daniel P. Berrange via Jim Meyering.
54098
54099 2008-11-12  Jim Meyering  <meyering@redhat.com>
54100
54101         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54102
54103 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54104
54105         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54106         instead.
54107
54108 2008-11-12  Bruno Haible  <bruno@clisp.org>
54109
54110         * lib/unicodeio.c: Include unistr.h.
54111         (utf8_wctomb): Remove function.
54112         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54113
54114 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54115
54116         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54117         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54118         <bruno@clisp.org>.
54119         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54120
54121 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54122
54123         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54124         * doc/gnulib.texi: Add section for warnings.
54125
54126 2008-11-11  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/sockets.h: Add a comment.
54129
54130 2008-11-11  Karl Berry  <karl@gnu.org>
54131
54132         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54133
54134 2008-11-11  Eric Blake  <ebb9@byu.net>
54135
54136         fdl.texi: avoid git symlinks
54137         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54138
54139 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54140
54141         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54142
54143 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54144
54145         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54146         (gl_WARN_ADD): Substitute $2 if literal.
54147
54148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54149
54150         * m4/warning.m4: Remove.
54151
54152 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54153
54154         * m4/warnings.m4: Almost complete rewrite. :-)
54155
54156 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54157
54158         * modules/warnings: New module.
54159         * m4/warnings.m4: New file.
54160         * MODULES.html.sh: Mention warnings module.
54161         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54162         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54163
54164 2008-11-10  Eric Blake  <ebb9@byu.net>
54165
54166         fdl.texi: make a symlink to the latest version
54167         * doc/standards.texi: Revert today's earlier change.
54168         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54169         * doc/fdl.texi: ...and replace this with a symlink to the newer
54170         fdl-1.3.texi.
54171
54172 2008-11-10  Bruno Haible  <bruno@clisp.org>
54173
54174         * tests/test-select-fd.c (main): Accept the result file name as fourth
54175         argument.
54176         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54177         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54178
54179 2008-11-10  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54182         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54183         as autoconf-substituted macros.
54184         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54186         gl_NETDB_H_DEFAULTS. Set these variables.
54187         * modules/netdb (Makefile.am): Substitute these variables.
54188
54189 2008-11-10  Eric Blake  <ebb9@byu.net>
54190
54191         standards.texi: include correct file for FDL 1.3
54192         * doc/standards.texi (GNU Free Documentation License): Change
54193         include file to pull in FDL 1.3, not 1.2.
54194
54195         fdl.texi: revert accidental change to license
54196         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54197
54198 2008-11-10  Bruno Haible  <bruno@clisp.org>
54199
54200         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54201         cross-compiling guesses also when the native compile gives no result.
54202
54203 2008-11-10  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/spawni.c (__spawni): Force variable into the stack.
54206
54207 2008-11-10  Bruno Haible  <bruno@clisp.org>
54208
54209         Add support for Haiku.
54210         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54211         glibc and BeOS, but also on Haiku.
54212         * lib/fpurge.c (fpurge): Likewise.
54213         * lib/freadable.c (freadable): Likewise.
54214         * lib/freadahead.c (freadahead): Likewise.
54215         * lib/freading.c (freading): Likewise.
54216         * lib/freadptr.c (freadptr): Likewise.
54217         * lib/freadseek.c (freadptrinc): Likewise.
54218         * lib/fseeko.c (rpl_fseeko): Likewise.
54219         * lib/fseterr.c (fseterr): Likewise.
54220         * lib/fwritable.c (fwritable): Likewise.
54221         * lib/fwriting.c (fwriting): Likewise.
54222         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54223
54224 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54225
54226         * lib/config.charset: Treat Haiku like BeOS.
54227
54228 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54229
54230         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54231         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54232
54233 2008-11-08  Bruno Haible  <bruno@clisp.org>
54234
54235         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54236         AC_CACHE_CHECK.
54237
54238 2008-11-08  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54241
54242 2008-11-08  Bruno Haible  <bruno@clisp.org>
54243
54244         * tests/test-select-fd.c: New file.
54245         * tests/test-select-in.sh: New file.
54246         * tests/test-select-out.sh: New file.
54247         * tests/test-select-stdin.c: New file.
54248         * modules/select-tests (Files): Add the new files.
54249         (Depends-on): Add gettimeofday.
54250         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54251         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54252         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54253
54254 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54255             Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54258
54259 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54260
54261         * build-aux/pmccabe2html: Added support for C++ source files.
54262
54263 2008-11-05  Ben Pfaff  <blp@gnu.org>
54264
54265         Fix lib/close.c build on Windows.
54266         * modules/close (Files): Add lib/w32sock.h.
54267
54268 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54269
54270         Accept Bison's NEWS format.
54271         * build-aux/announce-gen (print_news_deltas): Tweak
54272         $re_prefix.
54273
54274 2008-11-04  Bruno Haible  <bruno@clisp.org>
54275
54276         * modules/random_r (Maintainer): Add glibc.
54277
54278 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54279
54280         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54281         by karl@freefriends.org (Karl Berry).
54282         * doc/alloca.texi: Likewise.
54283         * doc/c-ctype.texi: Likewise.
54284         * doc/c-strcase.texi: Likewise.
54285         * doc/c-strcaseeq.texi: Likewise.
54286         * doc/c-strcasestr.texi: Likewise.
54287         * doc/c-strstr.texi: Likewise.
54288         * doc/c-strtod.texi: Likewise.
54289         * doc/c-strtold.texi: Likewise.
54290         * doc/ctime.texi: Likewise.
54291         * doc/error.texi: Likewise.
54292         * doc/fdl.texi: Likewise.
54293         * doc/gcd.texi: Likewise.
54294         * doc/getdate.texi: Likewise.
54295         * doc/gnulib-intro.texi: Likewise.
54296         * doc/gnulib-tool.texi: Likewise.
54297         * doc/gnulib.texi: Likewise.
54298         * doc/inet_ntoa.texi: Likewise.
54299         * doc/maintain.texi: Likewise.
54300         * doc/make-stds.texi: Likewise.
54301         * doc/quote.texi: Likewise.
54302         * doc/regexprops-generic.texi: Likewise.
54303         * doc/standards.texi: Likewise.
54304         * doc/verify.texi: Likewise.
54305         * doc/visibility.texi: Likewise.
54306         * doc/gnulib.texi (GNU Free Documentation License): Include
54307         fdl-1.3.texi instead of fdl.texi.
54308
54309 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54310
54311         * doc/fdl-1.3.texi: New file, from
54312         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54313         * modules/fdl-1.3: Add.
54314         * MODULES.html.sh: Add fdl-1.3.
54315
54316 2008-11-03  Bruno Haible  <bruno@clisp.org>
54317
54318         Make determination of absolute name of header file work with AIX xlc.
54319         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54320         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54321         preprocessing.
54322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54323         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54324
54325 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54326
54327         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54328         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54329         <ludo@gnu.org>.
54330
54331 2008-11-02  Bruno Haible  <bruno@clisp.org>
54332
54333         Mark 'strpbrk' obsolete.
54334         * modules/strpbrk (Status, Notice): New sections.
54335         * modules/strtok_r (Depends-on): Add strpbrk.
54336
54337 2008-11-02  Bruno Haible  <bruno@clisp.org>
54338
54339         Mark 'strdup' obsolete.
54340         * modules/strdup (Status, Notice): New sections.
54341         * modules/findprog (Depends-on): Add strdup.
54342         * modules/getaddrinfo (Depends-on): Likewise.
54343         * modules/localename (Depends-on): Likewise.
54344         * modules/relocatable-lib (Depends-on): Likewise.
54345         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54346         * modules/relocatable-prog (Depends-on): Likewise.
54347         * modules/trim (Depends-on): Likewise.
54348         * modules/unictype/gen-ctype (Depends-on): Likewise.
54349         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54350
54351 2008-11-02  Bruno Haible  <bruno@clisp.org>
54352
54353         Mark 'strcspn' obsolete.
54354         * modules/strcspn (Status, Notice): New sections.
54355
54356 2008-11-02  Bruno Haible  <bruno@clisp.org>
54357
54358         Mark 'rmdir' obsolete.
54359         * modules/rmdir (Status, Notice): New sections.
54360         * modules/clean-temp (Depends-on): Add rmdir.
54361         * modules/openat (Depends-on): Likewise.
54362
54363 2008-11-02  Bruno Haible  <bruno@clisp.org>
54364
54365         Mark 'raise' obsolete.
54366         * modules/raise (Status, Notice): New sections.
54367         (Include): Specify <signal.h>.
54368         * modules/stdio (Depends-on): Add raise.
54369         * modules/write (Depends-on): Likewise.
54370
54371 2008-11-02  Bruno Haible  <bruno@clisp.org>
54372
54373         Mark 'memset' obsolete.
54374         * modules/memset (Status, Notice): New sections.
54375
54376 2008-11-02  Bruno Haible  <bruno@clisp.org>
54377
54378         Mark 'memmove' obsolete.
54379         * modules/memmove (Status, Notice): New sections.
54380         * modules/argp (Depends-on): Add memmove.
54381         * modules/argz (Depends-on): Likewise.
54382         * modules/canonicalize (Depends-on): Likewise.
54383         * modules/canonicalize-lgpl (Depends-on): Likewise.
54384         * modules/fts (Depends-on): Likewise.
54385         * modules/getcwd (Depends-on): Likewise.
54386         * modules/human (Depends-on): Likewise.
54387         * modules/regex (Depends-on): Likewise.
54388         * modules/striconveh (Depends-on): Likewise.
54389         * modules/trim (Depends-on): Likewise.
54390         * modules/unistr/u8-move (Depends-on): Likewise.
54391         * modules/unistr/u16-move (Depends-on): Likewise.
54392         * modules/unistr/u32-move (Depends-on): Likewise.
54393
54394 2008-11-02  Bruno Haible  <bruno@clisp.org>
54395
54396         Mark 'memcpy' obsolete.
54397         * modules/memcpy (Status, Notice): New sections.
54398
54399 2008-11-02  Bruno Haible  <bruno@clisp.org>
54400
54401         Mark 'memcmp' obsolete.
54402         * modules/memcmp (Status, Notice): New sections.
54403         * modules/argmatch (Depends-on): Add memchr.
54404         * modules/backupfile (Depends-on): Likewise.
54405         * modules/c-strcasestr (Depends-on): Likewise.
54406         * modules/crypto/des (Depends-on): Likewise.
54407         * modules/csharpcomp (Depends-on): Likewise.
54408         * modules/fnmatch (Depends-on): Likewise.
54409         * modules/git-merge-changelog (Depends-on): Likewise.
54410         * modules/isnand (Depends-on): Likewise.
54411         * modules/isnand-nolibm (Depends-on): Likewise.
54412         * modules/isnanf (Depends-on): Likewise.
54413         * modules/isnanf-nolibm (Depends-on): Likewise.
54414         * modules/isnanl (Depends-on): Likewise.
54415         * modules/isnanl-nolibm (Depends-on): Likewise.
54416         * modules/mbchar (Depends-on): Likewise.
54417         * modules/memcoll (Depends-on): Likewise.
54418         * modules/quotearg (Depends-on): Likewise.
54419         * modules/regex (Depends-on): Likewise.
54420         * modules/relocatable-prog (Depends-on): Likewise.
54421         * modules/same (Depends-on): Likewise.
54422         * modules/signbit (Depends-on): Likewise.
54423         * modules/strcasestr-simple (Depends-on): Likewise.
54424         * modules/unictype/gen-ctype (Depends-on): Likewise.
54425         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54426         * modules/uniname/uniname (Depends-on): Likewise.
54427         * modules/unistr/u8-cmp (Depends-on): Likewise.
54428
54429 2008-11-02  Bruno Haible  <bruno@clisp.org>
54430
54431         Mark 'memchr' obsolete.
54432         * modules/memchr (Status, Notice): New sections.
54433         * modules/argp (Depends-on): Add memchr.
54434         * modules/base64 (Depends-on): Likewise.
54435         * modules/c-strcasestr (Depends-on): Likewise.
54436         * modules/chdir-long (Depends-on): Likewise.
54437         * modules/fnmatch (Depends-on): Likewise.
54438         * modules/getsubopt (Depends-on): Likewise.
54439         * modules/git-merge-changelog (Depends-on): Likewise.
54440         * modules/glob (Depends-on): Likewise.
54441         * modules/strcasestr-simple (Depends-on): Likewise.
54442         * modules/strnlen (Depends-on): Likewise.
54443
54444 2008-11-02  Bruno Haible  <bruno@clisp.org>
54445
54446         Mark 'atexit' obsolete.
54447         * modules/atexit (Status, Notice): New sections.
54448         * modules/chdir-long (Depends-on): Add atexit.
54449         * modules/wait-process (Depends-on): Likewise.
54450
54451 2008-11-02  Bruno Haible  <bruno@clisp.org>
54452
54453         * gnulib-tool: New option --with-obsolete.
54454         (func_usage): Document it.
54455         (func_modules_transitive_closure): Drop obsolete dependencies if
54456         incobsolete is not true.
54457         (func_import): Read and save the incobsolete variable to the cache.
54458
54459 2008-11-02  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54462         * gnulib-tool: New option --extract-status.
54463         (func_usage): Document it.
54464         (sed_extract_prog): Recognize it.
54465         (func_get_status): New function.
54466
54467 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54468
54469         * modules/sockets (License): Change from LGPL to LGPLv2+.
54470
54471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54472
54473         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54474
54475 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54476
54477         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54478         Mention times and sys_times.
54479         * modules/sys_times, modules/sys_times-tests: New modules.
54480         * modules/times, modules/times-tests: Likewise
54481         * m4/sys_times_h.m4: New file.
54482         * lib/sys_times.in.h: Likewise
54483         * lib/times.c: Likewise.
54484         * tests/test-sys_times.c: Likewise.
54485         * tests/test-times.c: Likewise.
54486         * doc/posix-headers/sys_times.texi: Update.
54487         * doc/posix-functions/times.texi: Update.
54488
54489 2008-10-28  Jim Meyering  <meyering@redhat.com>
54490
54491         * modules/tempname (Depends-on): Add lstat.
54492
54493         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54494
54495 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54496
54497         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54498         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54499         using idiom used elsewhere in gnulib.
54500
54501 2008-10-27  Jim Meyering  <meyering@redhat.com>
54502
54503         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54504
54505 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54506
54507         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54508         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54509         programs.
54510         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54511
54512 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54513
54514         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54515
54516 2008-10-27  Bruno Haible  <bruno@clisp.org>
54517
54518         * tests/test-lstat.c: Include <stdio.h>.
54519
54520 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54521
54522         * modules/lstat-tests: New module.
54523         * tests/test-lstat.c: New file.
54524
54525 2008-10-26  Jim Meyering  <meyering@redhat.com>
54526
54527         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54528
54529 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54530             Bruno Haible  <bruno@clisp.org>
54531
54532         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54533         * modules/configmake (Include): Add a note that the include must come
54534         after all system headers.
54535         * lib/javaversion.c: Include configmake.h after all other includes.
54536
54537 2008-10-26  Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54540         HAVE_STRUCT_RANDOM_DATA to 1.
54541         (gl_STDLIB_H): Simplify.
54542
54543 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54544
54545         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54546         substitute HAVE_STRUCT_RANDOM_DATA.
54547         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54548         random_data.
54549         * modules/stdlib (Makefile.am): Substitute
54550         HAVE_STRUCT_RANDOM_DATA.
54551
54552 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54553
54554         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54555         * doc/gnulib-intro.texi (Copyright): Likewise.
54556
54557 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54558
54559         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54560         findings.
54561
54562 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54563             Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/unistd.in.h: Include <winsock2.h>.
54566         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54567         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54568         Provide dummy declarations.
54569         (gethostname): Override.
54570         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54572         gl_PREREQ_SYS_H_WINSOCK2.
54573         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54574         * doc/posix-functions/gethostname.texi: More details.
54575
54576 2008-10-25  Bruno Haible  <bruno@clisp.org>
54577
54578         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54579         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54580         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54581
54582         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54583         here ...
54584         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54585         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54586         gl_UNISTD_H_DEFAULTS.
54587
54588 2008-10-25  Eric Blake  <ebb9@byu.net>
54589
54590         signbit: avoid spurious compiler failure
54591         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54592         declarations inside function.
54593
54594 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54595             Bruno Haible  <bruno@clisp.org>
54596
54597         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54598         * modules/random_r (Depends-on): Add stdint.
54599
54600 2008-10-24  Bruno Haible  <bruno@clisp.org>
54601
54602         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54603         Eggert.
54604         * modules/strerror (License): Likewise.
54605
54606 2008-10-24  Jim Meyering  <meyering@redhat.com>
54607
54608         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54609         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54610
54611 2008-10-24  Eric Blake  <ebb9@byu.net>
54612
54613         getgroups: fix compilation when getgroups is available
54614         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54615         but with <config.h> override of getgroups disabled.
54616
54617 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54618
54619         * doc/gnulib.texi (Header files): Add note about C++ problems.
54620         Explained by Bruno Haible <bruno@clisp.org>.
54621
54622 2008-10-23  Bruno Haible  <bruno@clisp.org>
54623
54624         Define a dummy SA_NODEFER macro on Interix.
54625         * lib/signal.in.h (SA_NODEFER): Define fallback.
54626         Reported by Aleksey Cheusov <cheusov@tut.by> via
54627         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54628
54629 2008-10-23  Bruno Haible  <bruno@clisp.org>
54630
54631         * modules/freadahead (License): Change to LGPLv2+.
54632         Suggested by Simon Josefsson.
54633
54634 2008-10-23  Jim Meyering  <meyering@redhat.com>
54635
54636         random_r: new module
54637         * modules/random_r: New file.
54638         * m4/random_r.m4: New file.
54639         * lib/random_r.c: New file, from glibc.
54640         * modules/random_r-tests: New file.
54641         * tests/test-random_r.c: New file.
54642         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54643          Declare.
54644         (RAND_MAX): Define.
54645         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54646         * modules/stdlib: Substitute them, too.
54647         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54648         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54649         * doc/glibc-functions/random_r.texi: Likewise.
54650         * doc/glibc-functions/setstate_r.texi: Likewise.
54651         * doc/glibc-functions/srandom_r.texi: Likewise.
54652         * config/srclist.txt: Mention it.
54653
54654 2008-10-23  David Lutterkort  <lutter@redhat.com>
54655
54656         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54657         link requirement
54658
54659 2008-10-23  Jim Meyering  <meyering@redhat.com>
54660
54661         selinux-h: mark parameters of stub functions as intentionally unused
54662         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54663         * lib/se-context.in.h: Likewise.
54664
54665 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54666
54667         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54668
54669 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54670
54671         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54672
54673 2008-10-22  Eric Blake  <ebb9@byu.net>
54674
54675         glthread/thread: avoid compiler warning
54676         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54677         Add unreachable abort to silence compiler.
54678
54679 2008-10-22  Eric Blake  <ebb9@byu.net>
54680
54681         netdb: also supply struct addrinfo for cygwin 1.5.x
54682         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54683         older cygwin.
54684         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54685         cygwin.
54686         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54687
54688 2008-10-22  Bruno Haible  <bruno@clisp.org>
54689
54690         * users.txt: Update entry about pspp.
54691
54692 2008-10-21  Bruno Haible  <bruno@clisp.org>
54693
54694         Simplification.
54695         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54696         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54697
54698         Simplification.
54699         * lib/ioctl.c (ioctl): Don't undefine.
54700         * lib/socket.c (socket): Don't undefine.
54701
54702         Remove unused module indicator macros.
54703         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54704         GNULIB_$1 as a C macro.
54705
54706         * doc/posix-functions/close.texi: Undo last change.
54707         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54708         Windows platforms.
54709
54710 2008-10-21  Bruno Haible  <bruno@clisp.org>
54711
54712         Add gethostname() declaration to <unistd.h>.
54713         * lib/unistd.in.h (gethostname): New declaration.
54714         * lib/gethostname.c: Include <unistd.h>.
54715         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54716         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54718         and HAVE_GETHOSTNAME.
54719         * modules/gethostname (Depends-on): Add unistd.
54720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54721         (Include): Specify <unistd.h>.
54722         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54723         HAVE_GETHOSTNAME.
54724         * tests/test-gethostname.c: Include <unistd.h> first.
54725
54726 2008-10-21  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54729         * modules/select-tests (Depends-on): Likewise.
54730         Reported by Simon Josefsson.
54731
54732 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54733
54734         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54735         * lib/accept.c: New file, based on winsock.c.
54736         * lib/bind.c: New file, based on winsock.c.
54737         * lib/connect.c: New file, based on winsock.c.
54738         * lib/getpeername.c: New file, based on winsock.c.
54739         * lib/getsockname.c: New file, based on winsock.c.
54740         * lib/getsockopt.c: New file, based on winsock.c.
54741         * lib/ioctl.c: New file, based on winsock.c.
54742         * lib/listen.c: New file, based on winsock.c.
54743         * lib/recv.c: New file, based on winsock.c.
54744         * lib/recvfrom.c: New file, based on winsock.c.
54745         * lib/send.c: New file, based on winsock.c.
54746         * lib/sendto.c: New file, based on winsock.c.
54747         * lib/setsockopt.c: New file, based on winsock.c.
54748         * lib/shutdown.c: New file, based on winsock.c.
54749         * lib/socket.c: New file, based on winsock.c.
54750         * lib/w32sock.h: New file, based on winsock.c.
54751         * lib/winsock.c: Remove file.
54752         * modules/accept: Likewise.
54753         * modules/bind: Likewise.
54754         * modules/connect: Likewise.
54755         * modules/getpeername: Likewise.
54756         * modules/getsockname: Likewise.
54757         * modules/getsockopt: Likewise.
54758         * modules/ioctl: Likewise.
54759         * modules/listen: Likewise.
54760         * modules/recv: Likewise.
54761         * modules/recvfrom: Likewise.
54762         * modules/send: Likewise.
54763         * modules/sendto: Likewise.
54764         * modules/setsockopt: Likewise.
54765         * modules/shutdown: Likewise.
54766         * modules/socket: Use socket.c instead of winsock.c.
54767         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54768         * doc/posix-functions/accept.texi: Doc fix.
54769         * doc/posix-functions/bind.texi: Doc fix.
54770         * doc/posix-functions/close.texi: Doc fix.
54771         * doc/posix-functions/connect.texi: Doc fix.
54772         * doc/posix-functions/getpeername.texi: Doc fix.
54773         * doc/posix-functions/getsockname.texi: Doc fix.
54774         * doc/posix-functions/getsockopt.texi: Doc fix.
54775         * doc/posix-functions/ioctl.texi: Doc fix.
54776         * doc/posix-functions/listen.texi: Doc fix.
54777         * doc/posix-functions/recv.texi: Doc fix.
54778         * doc/posix-functions/recvfrom.texi: Doc fix.
54779         * doc/posix-functions/send.texi: Doc fix.
54780         * doc/posix-functions/sendto.texi: Doc fix.
54781         * doc/posix-functions/setsockopt.texi: Doc fix.
54782         * doc/posix-functions/shutdown.texi: Doc fix.
54783         * doc/posix-functions/socket.texi: Doc fix.
54784
54785 2008-10-20  Bruno Haible  <bruno@clisp.org>
54786
54787         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54788         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54789         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54790         as an alias for SIGABRT.
54791         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54792         (sigaction): Map it to SIGABRT.
54793         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54794
54795 2008-10-20  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/fts.c: Don't include lstat.h.
54798         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54799
54800         Move the lstat() declaration to <sys/stat.h>.
54801         * lib/lstat.h: Remove file.
54802         * lib/sys_stat.in.h: Add special invocation convention.
54803         (lstat): New declaration.
54804         * lib/lstat.c (orig_lstat): New function.
54805         (rpl_lstat): Use orig_lstat instead of lstat.
54806         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54807         AC_C_INLINE. Set REPLACE_LSTAT.
54808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54809         and REPLACE_LSTAT.
54810         * modules/lstat (Files): Remove lib/lstat.h.
54811         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54812         (Include): Specify <sys/stat.h> instead of lstat.h.
54813         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54814         REPLACE_LSTAT.
54815         * NEWS: Mention the change.
54816
54817 2008-10-20  Bruno Haible  <bruno@clisp.org>
54818
54819         * modules/posix_spawn-tests: New file.
54820         * tests/test-posix_spawn3.c: New file.
54821
54822 2008-10-20  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54825         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54826         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54827         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54828         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54829
54830 2008-10-20  Bruno Haible  <bruno@clisp.org>
54831
54832         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54833         of posix_spawn on AIX 5.3.
54834
54835 2008-10-20  Bruno Haible  <bruno@clisp.org>
54836
54837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54838
54839 2008-10-20  Bruno Haible  <bruno@clisp.org>
54840
54841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54842         of AC_LANG_PROGRAM.
54843
54844 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54845
54846         * lib/netdb.in.h: Don't define GNU specific constants until they
54847         are supported or needed.  Reported by Bruno Haible
54848         <bruno@clisp.org>.
54849
54850 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54851
54852         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54853
54854 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54855
54856         * lib/getaddrinfo.h: Remove file.
54857         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54858         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54859         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54860         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54861         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54862         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54863         * tests/test-getaddrinfo.c: Likewise.
54864         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54865         * NEWS: Mention change.
54866
54867 2008-10-19  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54870
54871 2008-10-19  Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/wait-process.c: Include simply <sys/wait.h>.
54874         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54875         WIFSTOPPED): Remove fallback definitions.
54876         * modules/wait-process (Depends-on): Add sys_wait.
54877
54878         New module 'sys_wait'.
54879         * modules/sys_wait: New file.
54880         * lib/sys_wait.in.h: New file, partially copied from
54881         lib/wait-process.c.
54882         * m4/sys_wait_h.m4: New file.
54883         * doc/posix-headers/sys_wait.texi: Mention the new module.
54884
54885 2008-10-19  Bruno Haible  <bruno@clisp.org>
54886
54887         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54888
54889 2008-10-19  Bruno Haible  <bruno@clisp.org>
54890
54891         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54892         * lib/wait-process.c (WAIT_T): Remove type.
54893         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54894         (wait_subprocess): Update.
54895
54896 2008-10-19  Bruno Haible  <bruno@clisp.org>
54897
54898         New module 'atoll'.
54899         * modules/atoll: New file.
54900         * lib/stdlib.in.h (atoll): New declaration.
54901         * lib/atoll.c: New file, from glibc with modifications.
54902         * m4/atoll.m4: New file.
54903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54904         HAVE_ATOLL.
54905         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54906         * doc/posix-functions/atoll.texi: Mention the new module.
54907
54908 2008-10-19  Bruno Haible  <bruno@clisp.org>
54909
54910         Add strtoull() declaration to <stdlib.h>.
54911         * lib/stdlib.in.h (strtoull): New declaration.
54912         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54913         Set HAVE_STRTOULL.
54914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54915         HAVE_STRTOULL.
54916         * modules/strtoull (Depends-on): Add stdlib.
54917         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54918         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54919         HAVE_STRTOULL.
54920
54921 2008-10-19  Bruno Haible  <bruno@clisp.org>
54922
54923         Add strtoll() declaration to <stdlib.h>.
54924         * lib/stdlib.in.h (strtoll): New declaration.
54925         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54926         Set HAVE_STRTOLL.
54927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54928         HAVE_STRTOLL.
54929         * modules/strtoll (Depends-on): Add stdlib.
54930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54931         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54932
54933 2008-10-19  Bruno Haible  <bruno@clisp.org>
54934
54935         * modules/bcopy (Depends-on): Add strings.
54936         (Include): Specify <strings.h>.
54937
54938 2008-10-19  Bruno Haible  <bruno@clisp.org>
54939
54940         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54941
54942 2008-10-19  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54945         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54946         mingw.
54947
54948 2008-10-19  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/atanl.c: Don't include isnanl.h.
54951         * lib/cosl.c: Likewise.
54952         * lib/ldexpl.c: Likewise.
54953         * lib/logl.c: Likewise.
54954         * lib/sinl.c: Likewise.
54955         * lib/sqrtl.c: Likewise.
54956         * lib/tanl.c: Likewise.
54957
54958         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54959         * lib/isnanf.h: Remove file.
54960         * lib/isnand.h: Remove file.
54961         * lib/isnanl.h: Remove file.
54962         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54963         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54964         macros.
54965         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54966         HAVE_ISNANF, don't define it as a C macro.
54967         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54968         HAVE_ISNAND, don't define it as a C macro.
54969         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54970         HAVE_ISNANL, don't define it as a C macro.
54971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54972         HAVE_ISNAN[FDL].
54973         * modules/isnanf (Files): Remove lib/isnanf.h.
54974         (Depends-on): Add math.
54975         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54976         (Include): Specify <math.h> instead of isnanf.h.
54977         * modules/isnand (Files): Remove lib/isnand.h.
54978         (Depends-on): Add math.
54979         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54980         (Include): Specify <math.h> instead of isnand.h.
54981         * modules/isnanl (Files): Remove lib/isnanl.h.
54982         (Depends-on): Add math.
54983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54984         (Include): Specify <math.h> instead of isnanl.h.
54985         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54986         HAVE_ISNAN[FDL].
54987         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54988         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54989         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54990         * NEWS: Mention the change.
54991
54992 2008-10-18  Bruno Haible  <bruno@clisp.org>
54993
54994         Add getusershell(), setusershell(), endusershell() declarations to
54995         <unistd.h>.
54996         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54997         declarations.
54998         * lib/getusershell.c: Include unistd.h.
54999         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55000         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55001         HAVE_GETUSERSHELL.
55002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55003         and HAVE_GETUSERSHELL.
55004         * modules/getusershell (Depends-on): Add unistd, extensions.
55005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55006         (Include): Specify <unistd.h>.
55007         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55008         HAVE_GETUSERSHELL.
55009
55010 2008-10-18  Bruno Haible  <bruno@clisp.org>
55011
55012         Add a getloadavg() declaration to <stdlib.h>.
55013         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55014         getloadavg declaration.
55015         (getloadavg): New declaration.
55016         * lib/getloadavg.c: Include <stdlib.h> first.
55017         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55018         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55019         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55021         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55022         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55023         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55024         (Include): Specify <stdlib.h>.
55025         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55026         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55027
55028 2008-10-18  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/dirchownmod.c: Don't include lchmod.h.
55031
55032         Move the lchmod() declaration to <sys/stat.h>.
55033         * lib/lchmod.h: Remove file.
55034         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55035         (lchmod): New declaration, moved here from lib/lchown.h.
55036         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55037         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55039         and HAVE_LCHMOD.
55040         * modules/lchmod (Files): Remove lib/lchmod.h.
55041         (Depends-on): Add sys_stat, extensions.
55042         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55043         (Include): Specify <sys/stat.h> instead of lchmod.h.
55044         * modules/sys_stat (Depends-on): Add link-warning.
55045         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55046         definition of GL_LINK_WARNING.
55047         * NEWS: Mention the change.
55048
55049 2008-10-18  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/fchdir.c: Don't include dirfd.h.
55052         * lib/fts.c: Likewise.
55053         * lib/getcwd.c: Likewise.
55054         * lib/glob.c: Likewise.
55055
55056         Move the dirfd() declaration to <dirent.h>.
55057         * lib/dirfd.h: Remove file.
55058         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55059         (dirfd): New declaration.
55060         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55061         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55062         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55063         HAVE_DECL_DIRFD.
55064         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55065         HAVE_DECL_DIRFD.
55066         * modules/dirfd (Files): Remove lib/dirfd.h.
55067         (Depends-on): Add dirent, extensions.
55068         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55069         (Include): Specify <dirent.h> instead of dirfd.h.
55070         * modules/dirent (Depends-on): Add link-warning.
55071         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55072         definition of GL_LINK_WARNING.
55073         * NEWS: Mention the change.
55074
55075 2008-10-18  Bruno Haible  <bruno@clisp.org>
55076
55077         Move the euidaccess() declaration to <unistd.h>.
55078         * lib/euidaccess.h: Remove file.
55079         * lib/unistd.in.h (euidaccess): New declaration.
55080         * lib/euidaccess.c: Don't include euidaccess.h.
55081         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55082         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55084         and HAVE_EUIDACCESS.
55085         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55086         (Depends-on): Add unistd.
55087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55088         (Include): Specify <unistd.h> instead of euidaccess.h.
55089         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55090         HAVE_EUIDACCESS.
55091         * NEWS: Mention the change.
55092
55093 2008-10-18  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55096
55097         Move the getdomainname() declaration to <unistd.h>.
55098         * lib/getdomainname.h: Remove file.
55099         * lib/unistd.in.h (getdomainname): New declaration.
55100         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55101         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55102         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55103         HAVE_GETDOMAINNAME.
55104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55105         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55106         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55107         (Depends-on): Add unistd, extensions.
55108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55109         (Includes): Specify <unistd.h> instead of getdomainname.h.
55110         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55111         HAVE_GETDOMAINNAME.
55112         * NEWS: Mention the change.
55113
55114 2008-10-18  Bruno Haible  <bruno@clisp.org>
55115
55116         * modules/dirent: New file.
55117         * m4/dirent_h.m4: New file.
55118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55119         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55120         * modules/fchdir (Files): Remove lib/dirent.in.h.
55121         (Depends-on): Add dirent.
55122         (Makefile.am): Move rules to modules/dirent.
55123         * doc/posix-headers/dirent.texi: Mention the new module.
55124
55125 2008-10-18  Bruno Haible  <bruno@clisp.org>
55126
55127         Avoid -Wunused-parameter warnings in public gnulib header files.
55128         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55129         macro.
55130         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55131
55132 2008-10-18  Bruno Haible  <bruno@clisp.org>
55133
55134         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55135         * doc/glibc-functions/error.texi: Mention the module 'error'.
55136         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55137         * doc/glibc-functions/getdomainname.texi: Mention the module
55138         'getdomainname'.
55139         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55140         * doc/glibc-functions/getpagesize.texi: Mention the module
55141         'getpagesize'.
55142         * doc/glibc-functions/getusershell.texi: Mention the module
55143         'getusershell'.
55144         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55145         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55146         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55147         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55148         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55149         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55150         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55151         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55152         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55153         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55154         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55155         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55156         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55157         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55158
55159 2008-10-17  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55162         HP-UX and IRIX, use -0.0L.
55163         * tests/test-ceill.c (minus_zero): Likewise.
55164         * tests/test-floorl.c (minus_zero): Likewise.
55165         * tests/test-frexpl.c (minus_zero): Likewise.
55166         * tests/test-isnan.c (minus_zerol): Likewise.
55167         * tests/test-isnanl.h (minus_zero): Likewise.
55168         * tests/test-ldexpl.c (minus_zero): Likewise.
55169         * tests/test-roundl.c (minus_zero): Likewise.
55170         * tests/test-signbit.c (minus_zerol): Likewise.
55171         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55172         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55173         * tests/test-truncl.c (minus_zero): Likewise.
55174         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55175         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55176         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55177         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55178
55179 2008-10-17  Bruno Haible  <bruno@clisp.org>
55180
55181         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55182         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55183         that it gets activated only for gcc >= 3.0.
55184         * lib/dirent.in.h: Likewise.
55185         * lib/errno.in.h: Likewise.
55186         * lib/fcntl.in.h: Likewise.
55187         * lib/float.in.h: Likewise.
55188         * lib/iconv.in.h: Likewise.
55189         * lib/inttypes.in.h: Likewise.
55190         * lib/locale.in.h: Likewise.
55191         * lib/math.in.h: Likewise.
55192         * lib/netdb.in.h: Likewise.
55193         * lib/netinet_in.in.h: Likewise.
55194         * lib/search.in.h: Likewise.
55195         * lib/signal.in.h: Likewise.
55196         * lib/spawn.in.h: Likewise.
55197         * lib/stdarg.in.h: Likewise.
55198         * lib/stdint.in.h: Likewise.
55199         * lib/stdio.in.h: Likewise.
55200         * lib/stdlib.in.h: Likewise.
55201         * lib/string.in.h: Likewise.
55202         * lib/strings.in.h: Likewise.
55203         * lib/sys_file.in.h: Likewise.
55204         * lib/sys_ioctl.in.h: Likewise.
55205         * lib/sys_select.in.h: Likewise.
55206         * lib/sys_socket.in.h: Likewise.
55207         * lib/sys_stat.in.h: Likewise.
55208         * lib/sys_time.in.h: Likewise.
55209         * lib/sysexits.in.h: Likewise.
55210         * lib/time.in.h: Likewise.
55211         * lib/unistd.in.h: Likewise.
55212         * lib/wchar.in.h: Likewise.
55213         * lib/wctype.in.h: Likewise.
55214         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55215
55216 2008-10-17  Jim Meyering  <meyering@redhat.com>
55217
55218         ignore-value: don't depend on inline module
55219         * modules/ignore-value (Depends-on): Remove 'inline'.
55220         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55221         Suggestion from Bruno Haible.
55222
55223 2008-10-17  Bruno Haible  <bruno@clisp.org>
55224
55225         New implementation of condition variables for Win32.
55226         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55227         (gl_linked_waitqueue_t): New type.
55228         (gl_cond_t): Use it.
55229         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55230         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55231         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55232         (glthread_cond_init_func, glthread_cond_wait_func,
55233         glthread_cond_timedwait_func, glthread_cond_signal_func,
55234         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55235         Reimplemented on the basis of gl_linked_waitqueue_t.
55236         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55237         gl_waitqueue_t.
55238         (gl_rwlock_t): Update.
55239         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55240
55241 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55242
55243         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55244         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55245
55246 2008-10-17  Jim Meyering  <meyering@redhat.com>
55247
55248         ignore-value: new module
55249         * modules/ignore-value: New file.
55250         * lib/ignore-value.h: New file.
55251         * MODULES.html.sh (Compiler warning management): New section,
55252         just for this module.  More to come.
55253
55254 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55255
55256         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55257         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55258         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55259
55260 2008-10-16  Jim Meyering  <meyering@redhat.com>
55261
55262         openat-die.c: avoid 'no previous prototype' warning
55263         * lib/openat-die.c: Include "openat.h".
55264         Reported by Reuben Thomas <rrt@sc3d.org>.
55265
55266 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55267
55268         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55269         * lib/netdb.in.h: Fix typo.
55270         Reported by Bruno Haible  <bruno@clisp.org>
55271
55272         * lib/netdb.in.h: Include sys/socket.h for platforms without
55273         netdb.h, to get structures like hostent on MinGW.
55274         * modules/netdb (Depends-on): Add sys_socket.
55275
55276 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55277
55278         * modules/netdb, modules/netdb-tests: New file.
55279         * m4/netdb_h.m4: New file.
55280         * lib/netdb.in.h: Add, currently just an empty file pending
55281         definitions.
55282         * tests/test-netdb.c: New file.
55283         * doc/posix-headers/netdb.texi: Mention that we replace it if
55284         needed.
55285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55286         netdb.
55287
55288 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55289
55290         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55291         with code.
55292
55293 2008-10-13  Bruno Haible  <bruno@clisp.org>
55294
55295         * lib/glthread/cond.c (glthread_cond_wait_func,
55296         glthread_cond_timedwait_func): Add a comment.
55297
55298 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55299
55300         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55301         * tests/test-select.c: Likewise,
55302
55303 2008-10-13  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/glthread/cond.c (glthread_cond_wait_func,
55306         glthread_cond_timedwait_func): Fix variable name.
55307         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55308
55309 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55310
55311         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55312         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55313         struct sockaddr.sa_len.
55314         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55315
55316 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55317
55318         * build-aux/pmccabe2html: Add css and css_url parameters.
55319
55320 2008-10-12  Bruno Haible  <bruno@clisp.org>
55321
55322         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55323         calling aclx_get.
55324         Reported by Rainer Tammer <tammer@tammer.net>.
55325
55326 2008-10-12  Bruno Haible  <bruno@clisp.org>
55327
55328         Use msvcrt aware primitives for creation/termination of Win32 threads.
55329         * lib/glthread/thread.c: Include <process.h>.
55330         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55331         (wrapper_func): Update signature.
55332         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55333
55334 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55335             Bruno Haible  <bruno@clisp.org>
55336
55337         Provide a Win32 implementation of the 'cond' module.
55338         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55339         * lib/glthread/cond.c (glthread_cond_init_func,
55340         glthread_cond_wait_func, glthread_cond_timedwait_func,
55341         glthread_cond_signal_func, glthread_cond_broadcast_func,
55342         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55343         * modules/cond (Dependencies): Add gettimeofday.
55344
55345 2008-10-11  Bruno Haible  <bruno@clisp.org>
55346
55347         Make sleep work on older versions of mingw.
55348         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55349         only whether it exists.
55350         * doc/posix-functions/sleep.texi: Mention the problem with older
55351         versions of mingw.
55352
55353 2008-10-11  Bruno Haible  <bruno@clisp.org>
55354
55355         New module 'shutdown'.
55356         * modules/shutdown: New file.
55357         * lib/sys_socket.in.h (shutdown): New declaration.
55358         * lib/winsock.c (shutdown): New function.
55359         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55360         GNULIB_SHUTDOWN.
55361         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55362         * doc/posix-functions/shutdown.texi: Document the new module.
55363
55364 2008-10-11  Jim Meyering  <meyering@redhat.com>
55365
55366         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55367
55368 2008-10-11  Bruno Haible  <bruno@clisp.org>
55369
55370         New module 'fclose'.
55371         * modules/fclose: New file.
55372         * lib/stdio.in.h (fclose): New declaration.
55373         * lib/fclose.c: New file.
55374         * m4/fclose.m4: New file.
55375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55376         REPLACE_FCLOSE.
55377         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55378         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55379         REPLACE_FCLOSE.
55380         * modules/close (Depends-on): fclose.
55381         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55382
55383 2008-10-11  Bruno Haible  <bruno@clisp.org>
55384
55385         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55386         set errno and don't call _close.
55387
55388 2008-10-10  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55391         ACL, not afterwards. Fixes test failure on Cygwin.
55392
55393 2008-10-09  Ben Pfaff  <blp@gnu.org>
55394
55395         * build-aux/announce-gen: Fix gnulib version related part of usage
55396         message.  Die with a useful error message if no tarballs are
55397         found.
55398
55399 2008-10-10  Jim Meyering  <meyering@redhat.com>
55400
55401         bootstrap: use git's --depth=N option only if it's supported
55402         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55403         recognize the --depth option.  Reported by Pádraig Brady.
55404
55405 2008-10-09  Bruno Haible  <bruno@clisp.org>
55406
55407         New module 'ioctl'.
55408         * modules/ioctl: New file.
55409         * lib/sys_socket.in.h (ioctl): Remove declaration.
55410         * lib/winsock.c: Include <sys/ioctl.h>.
55411         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55412         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55413         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55414         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55415         * doc/posix-functions/ioctl.texi: Mention the new module.
55416
55417 2008-10-09  Bruno Haible  <bruno@clisp.org>
55418
55419         New module 'sys_ioctl'.
55420         * lib/sys_ioctl.in.h: New file.
55421         * m4/sys_ioctl_h.m4: New file.
55422         * modules/sys_ioctl: New file.
55423         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55424
55425 2008-10-09  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55428         * lib/winsock.c: Include <stdarg.h>.
55429         (rpl_ioctl): Change to second argument 'int' and then varargs.
55430
55431 2008-10-09  Bruno Haible  <bruno@clisp.org>
55432
55433         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55434         when the sys_socket module is present and the system has <winsock2.h>.
55435
55436 2008-10-09  Bruno Haible  <bruno@clisp.org>
55437
55438         * doc/posix-functions/close.texi: Mention module 'close' instead of
55439         module 'sys_socket'.
55440
55441 2008-10-09  Bruno Haible  <bruno@clisp.org>
55442
55443         * doc/glibc-headers/sys_ioctl.texi: New file.
55444         * doc/gnulib.texi: Include it.
55445
55446 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55447             Bruno Haible  <bruno@clisp.org>
55448
55449         Combine the two replacements of 'close'.
55450         * lib/sys_socket.in.h (close): Define to a reminder to include
55451         <unistd.h>.
55452         (_gl_close_fd_maybe_socket): New declaration.
55453         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55454         * lib/winsock.c (close): Remove undefinition.
55455         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55456         needed for the gnulib module 'close'.
55457         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55458         define to an error symbol or to a warning, if suitable.
55459         * lib/close.c: Include <sys/socket.h>.
55460         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55461         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55462         UNISTD_H_HAVE_WINSOCK2_H.
55463         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55465         UNISTD_H_HAVE_WINSOCK2_H.
55466         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55467         (configure.ac): Set a module indicator.
55468         (Makefile.am): Substitute GNULIB_CLOSE.
55469         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55470         * modules/poll-tests (Depends-on): Add close.
55471         * modules/select-tests (Depends-on): Likewise.
55472
55473 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55474             Bruno Haible  <bruno@clisp.org>
55475
55476         New module 'close'.
55477         * modules/close: New file.
55478         * lib/unistd.in.h (close): Move declaration out of the
55479         FCHDIR_REPLACEMENT scope.
55480         (_gl_unregister_fd): New declaration.
55481         * lib/close.c: New file.
55482         * lib/fchdir.c (rpl_close): Remove function.
55483         * m4/close.m4: New file.
55484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55485         close.
55486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55487         REPLACE_CLOSE.
55488         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55489         REPLACE_CLOSE.
55490         * modules/fchdir (Depends-on): Add close.
55491
55492 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55493             Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/fcntl.in.h (open): Simplify conditionals.
55496         (_gl_register_fd): New declaration.
55497         * lib/fchdir.c (rpl_open): Remove function.
55498         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55499         also.
55500         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55502         open.
55503
55504 2008-10-09  Jim Meyering  <meyering@redhat.com>
55505
55506         GNUmakefile: use the more name-space-friendly "_version"
55507         * top/GNUmakefile (_dummy): Update.
55508         (_version): Rename from "version".
55509
55510 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55511             Bruno Haible  <bruno@clisp.org>
55512
55513         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55514         rpl_close.
55515         (_gl_register_fd): New function, extracted from rpl_open.
55516         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55517         (rpl_open, rpl_opendir): Use _gl_register_fd.
55518
55519 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55520
55521         Fix organization of 'open' replacement.
55522         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55523         (gl_FUNC_OPEN): Use it.
55524         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55525
55526 2008-10-08  Bruno Haible  <bruno@clisp.org>
55527
55528         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55529
55530 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55531
55532         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55533         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55534         listen).
55535
55536 2008-10-08  Eric Blake  <ebb9@byu.net>
55537
55538         GNUmakefile: add 'make version' target
55539         * top/GNUmakefile (_curr-ver): Split version update rules...
55540         (version): ...into a target.
55541
55542 2008-10-07  Bruno Haible  <bruno@clisp.org>
55543
55544         Use a more portable replacement expression for -0.0L.
55545         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55546         instead of -0.0L. Fix m4 quotation.
55547
55548         * tests/test-signbit.c: Include <float.h>.
55549         (minus_zero): New variable.
55550         (test_signbitl): Use minus_zero instead of -zero.
55551         * modules/signbit-tests (Depends-on): Add float.
55552
55553         * tests/test-ceill.c: Include <float.h>.
55554         (zero): Remove variable.
55555         (minus_zero): New variable.
55556         (main): Use minus_zero instead of -zero.
55557         * modules/ceill-tests (Depends-on): Add float.
55558
55559         * tests/test-floorl.c: Include <float.h>.
55560         (zero): Remove variable.
55561         (minus_zero): New variable.
55562         (main): Use minus_zero instead of -zero.
55563         * modules/floorl-tests (Depends-on): Add float.
55564
55565         * tests/test-roundl.c: Include <float.h>.
55566         (zero): Remove variable.
55567         (minus_zero): New variable.
55568         (main): Use minus_zero instead of -zero.
55569         * modules/roundl-tests (Depends-on): Add float.
55570
55571         * tests/test-truncl.c: Include <float.h>.
55572         (zero): Remove variable.
55573         (minus_zero): New variable.
55574         (main): Use minus_zero instead of -zero.
55575         * modules/truncl-tests (Depends-on): Add float.
55576
55577         * tests/test-frexpl.c (zero): Remove variable.
55578         (minus_zero): New variable.
55579         (main): Use minus_zero instead of -zero.
55580         * modules/frexpl-tests (Depends-on): Add float.
55581
55582         * tests/test-isnan.c (zerol): Remove variable.
55583         (minus_zerol): New variable.
55584         (test_long_double): Use minus_zerol instead of -zerol.
55585         * modules/isnan-tests (Depends-on): Add float.
55586
55587         * tests/test-isnanl.h (zero): Remove variable.
55588         (minus_zero): New variable.
55589         (main): Use minus_zero instead of -zero.
55590         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55591         * modules/isnanl-tests (Depends-on): Add float.
55592
55593         * tests/test-ldexpl.c (zero): Remove variable.
55594         (minus_zero): New variable.
55595         (main): Use minus_zero instead of -zero.
55596         * modules/ldexpl-tests (Depends-on): Add float.
55597
55598         * tests/test-snprintf-posix.h (zerol): Remove variable.
55599         (minus_zerol): New variable.
55600         (test_function): Use minus_zerol instead of -zerol.
55601         * modules/snprintf-posix-tests (Depends-on): Add float.
55602         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55603
55604         * tests/test-sprintf-posix.h (zerol): Remove variable.
55605         (minus_zerol): New variable.
55606         (test_function): Use minus_zerol instead of -zerol.
55607         * modules/sprintf-posix-tests (Depends-on): Add float.
55608         * modules/vsprintf-posix-tests (Depends-on): Add float.
55609
55610         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55611         (minus_zerol): New variable.
55612         (test_function): Use minus_zerol instead of -zerol.
55613         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55614
55615         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55616         (minus_zerol): New variable.
55617         (test_function): Use minus_zerol instead of -zerol.
55618         * modules/vasprintf-posix-tests (Depends-on): Add float.
55619
55620 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55621
55622         * MODULES.html.sh (Support for building documentation): Mention
55623         pmccabe2html.  Sort entries.
55624
55625         Add pmccabe2html module, from gnupdf.
55626         * build-aux/pmccabe.css: New file.
55627         * build-aux/pmccabe2html: New file.
55628         * m4/pmccabe2html.m4: New file.
55629         * modules/pmccabe2html: New file.
55630
55631 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55632
55633         flock: new module
55634         * MODULES.html.sh: Add to list of modules.
55635         * lib/flock.c: flock implementation for Windows and Unix systems
55636         which have fcntl.
55637         * doc/glibc-functions/flock.texi: Update documentation.
55638         * lib/sys_file.in.h: <sys/file.h> header file.
55639         * m4/flock.m4: M4 macros.
55640         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55641         * modules/flock: flock module.
55642         * modules/flock-tests: flock tests module.
55643         * modules/sys_file: sys/file.h module.
55644         * tests/test-flock.c: test suite for flock.
55645
55646 2008-10-06  Jim Meyering  <meyering@redhat.com>
55647
55648         bootstrap: check for LT_INIT more portably still ;-)
55649         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55650         Spotted by Bruno Haible.
55651
55652 2008-10-06  Eric Blake  <ebb9@byu.net>
55653
55654         test-signbit: avoid tripping Irix cc bug on -0.0L
55655         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55656         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55657         entire testsuite consistent and avoids an Irix 6.2 bug.
55658
55659 2008-10-05  Bruno Haible  <bruno@clisp.org>
55660             Jim Meyering  <jim@meyering.net>
55661
55662         Add an option for ignoring EPIPE during close_stdout.
55663         * lib/closeout.h: Include <stdbool.h>.
55664         (close_stdout_set_ignore_EPIPE): New declaration.
55665         * lib/closeout.c: Include <stdbool.h>.
55666         (ignore_EPIPE): New variable.
55667         (close_stdout_set_ignore_EPIPE): New function.
55668         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55669         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55670         failure.
55671         * modules/closeout (Depends-on): Add stdbool.
55672
55673 2008-10-05  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/accept: New file.
55676         * modules/bind: New file.
55677         * modules/connect: New file.
55678         * modules/getpeername: New file.
55679         * modules/getsockname: New file.
55680         * modules/getsockopt: New file.
55681         * modules/listen: New file.
55682         * modules/recv: New file.
55683         * modules/recvfrom: New file.
55684         * modules/send: New file.
55685         * modules/sendto: New file.
55686         * modules/setsockopt: New file.
55687         * modules/socket: New file.
55688         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55689         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55690         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55691         the particular module is requested. Add a link warning when the
55692         particular module is not requested.
55693         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55694         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55695         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55696         the particular module is requested.
55697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55698         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55699         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55700         * modules/sys_socket (Depends-on): Add link-warning.
55701         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55702         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55703         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55704         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55705         GL_LINK_WARNING.
55706         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55707         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55708         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55709         * doc/posix-functions/getpeername.texi: Mention the new module
55710         'getpeername'.
55711         * doc/posix-functions/getsockname.texi: Mention the new module
55712         'getsockname'.
55713         * doc/posix-functions/getsockopt.texi: Mention the new module
55714         'getsockopt'.
55715         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55716         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55717         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55718         * doc/posix-functions/send.texi: Mention the new module 'send'.
55719         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55720         * doc/posix-functions/setsockopt.texi: Mention the new module
55721         'setsockopt'.
55722         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55723         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55724         listen, connect, accept.
55725         * modules/select-tests (Depends-on): Likewise.
55726
55727 2008-10-05  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/winsock.c (strerror): Remove unused #undef.
55730         (rpl_close): Remove unused local variable.
55731
55732         * modules/sys_socket (Depends-on); Add errno.
55733
55734 2008-10-05  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55737         (select): Add a link warning when the 'select' module is not used.
55738         * modules/sys_select (Depends-on): Add link-warning.
55739         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55740         Suggested by Paolo Bonzini.
55741
55742 2008-10-05  Jim Meyering  <meyering@redhat.com>
55743
55744         bootstrap: check for LT_INIT more portably
55745         * build-aux/bootstrap: Avoid using grep -E, since it's not
55746         portable enough.  Suggestion from Bruno Haible.
55747
55748 2008-10-05  Bruno Haible  <bruno@clisp.org>
55749
55750         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55751         as being fixed by gnulib.
55752
55753 2008-10-05  Bruno Haible  <bruno@clisp.org>
55754
55755         * modules/select-tests: New file, mostly copied from
55756         modules/sys_select-tests.
55757         * tests/test-select.c: New file, mostly copied from
55758         tests/test-sys_select.c.
55759         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55760         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55761         (Makefile.am): Remove test_sys_select_LDADD.
55762
55763         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55764         to an undefined symbol, for an error message.
55765         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55766         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55767         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55768         winsock-select.c here.
55769         * modules/sys_select (Files): Remove lib/winsock-select.c.
55770         (Depends-on): Remove alloca.
55771         (Makefile.am): Substitute GNULIB_SELECT.
55772         * modules/select: New file.
55773         * doc/posix-functions/select.texi: Update.
55774
55775 2008-10-05  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55778         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55779         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55780         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55781         getdtablesize.
55782         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55783         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55784
55785 2008-10-05  Bruno Haible  <bruno@clisp.org>
55786
55787         * modules/getdtablesize-tests: New file.
55788         * tests/test-getdtablesize.c: New file.
55789
55790         New module 'getdtablesize'.
55791         * lib/unistd.in.h (getdtablesize): New declaration.
55792         * lib/getdtablesize.c: New file.
55793         * m4/getdtablesize.m4: New file.
55794         * modules/getdtablesize: New file.
55795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55796         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55797         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55798         HAVE_GETDTABLESIZE.
55799         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55800
55801 2008-10-05  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/sched (Makefile.am): Fix typo.
55804         Reported by Simon Josefsson.
55805
55806 2008-10-05  Jim Meyering  <meyering@redhat.com>
55807
55808         bootstrap: check for LT_INIT, too
55809         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55810         are deprecated.  Suggestion from Ralf Wildenhues.
55811
55812 2008-10-05  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55815         overriding them by ours.
55816         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55817
55818 2008-10-05  Jim Meyering  <meyering@redhat.com>
55819
55820         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55821         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55822         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55823
55824 2008-10-04  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/dup2 (License): Change to LGPLv2+.
55827         * modules/sleep (License): Likewise.
55828         * modules/perror (License): Likewise.
55829         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55830         Blake.
55831         * modules/signal (License): Likewise.
55832         * modules/sigprocmask (License): Likewise.
55833         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55834         Meyering.
55835
55836 2008-10-04  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55839         Reported by Rainer Tammer <tammer@tammer.net>.
55840
55841 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55842             Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55845         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55846         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55847
55848 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55849
55850         filevercmp: new module
55851         * lib/filevercmp.h: New function filevercmp comparing version strings.
55852         * lib/filevercmp.c: Implementation of filevercmp function.
55853         * modules/filevercmp: Module metadata.
55854         * tests/test-filevercmp.c: Unit test for new module.
55855         * modules/filevercmp-tests: Unit test metadata.
55856         * MODULES.html.sh: Add filevercmp module.
55857
55858 2008-10-03  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/c-ctype.h: Add comment.
55861         Reported by Jim Meyering.
55862
55863 2008-10-02  Bruno Haible  <bruno@clisp.org>
55864
55865         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55866
55867 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55868
55869         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55870         name of bootstrap.conf accordingly.
55871
55872 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55873
55874         * build-aux/bootstrap: Install git-merge-changelog configuration
55875         items into .gitconfig if needed.
55876
55877 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55878
55879         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55880         git repository, and initialize/update it accordingly.
55881
55882 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55883
55884         * modules/fsync-tests: New file.
55885         * tests/test-fsync.c: New file.
55886
55887         New module 'fsync'.
55888         * lib/fsync.c: New file.
55889         * m4/fsync.m4: New file.
55890         * modules/fsync: New file.
55891         * lib/unistd.in.h (fsync): New declaration.
55892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55893         GNULIB_FSYNC and HAVE_FSYNC.
55894         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55895         * MODULES.html.sh (posix_functions): Add fsync.
55896         * doc/posix-functions/fsync.texi: Mention the new module.
55897
55898 2008-10-02  Jim Meyering  <meyering@redhat.com>
55899
55900         fts.c: sync with similar code from coreutils' remove.c
55901         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55902         Guard also with "#if defined __linux__", since for now at least,
55903         this code is Linux-kernel-specific.
55904
55905 2008-10-02  Jim Meyering  <meyering@redhat.com>
55906
55907         fts: bug fixes
55908         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55909         Include <sys/vfs.h>, not <sys/statfs.h>.
55910
55911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55912         Include <sys/vfs.h>, not <sys/statfs.h>.
55913
55914 2008-10-01  Bruno Haible  <bruno@clisp.org>
55915
55916         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55918         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55919         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55920         * doc/posix-functions/posix_spawnp.texi: Likewise.
55921         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55922         whether posix_spawn actually works.
55923         * m4/pipe.m4 (gl_PIPE): Likewise.
55924         * modules/execute (Files): Add m4/posix_spawn.m4.
55925         * modules/pipe (Files): Add m4/posix_spawn.m4.
55926         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55927
55928 2008-10-01  Jim Meyering  <meyering@redhat.com>
55929
55930         remove trailing spaces
55931         * NEWS: Likewise.
55932         * lib/poll.c (poll): Likewise.
55933         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55934         * lib/winsock.c (rpl_close): Likewise.
55935         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55936         * modules/yield: Likewise.
55937         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55938         * tests/test-sys_select.c (connect_to_socket): Likewise.
55939
55940         fts.c: adjust a new interface to be more generally useful
55941         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55942         (fts_build): Adjust caller.
55943
55944 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55945
55946         * modules/cond-tests: New file.
55947         * tests/test-cond.c: New file.
55948
55949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55950             Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/cond (Dependencies): Add errno, time.
55953         * lib/glthread/cond.h: Include <time.h>.
55954         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55955         across platforms.
55956
55957 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55958             Bruno Haible  <bruno@clisp.org>
55959
55960         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55961
55962 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55963             Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/tls-tests (Depends-on): Add thread, yield.
55966         (configure.ac): Remove all checks.
55967         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55968         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55969         gl_thread_self): Remove definitions. Include glthread/thread.h and
55970         glthread/yield.h instead.
55971         (test_tls): Pass an additional NULL argument to gl_thread_join.
55972
55973 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55974             Bruno Haible  <bruno@clisp.org>
55975
55976         * modules/lock-tests (Depends-on): Add thread, yield.
55977         (configure.ac): Remove all checks.
55978         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55979         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55980         gl_thread_self): Remove definitions. Include glthread/thread.h and
55981         glthread/yield.h instead.
55982         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55983         additional NULL argument to gl_thread_join.
55984
55985 2008-09-30  Bruno Haible  <bruno@clisp.org>
55986
55987         Fix the Win32 implementation of the 'thread' module.
55988         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55989         pointer type.
55990         (gl_thread_self): Invoke gl_thread_self_func.
55991         (gl_thread_self_func): New declaration.
55992         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55993         (do_init_self_key, init_self_key): New functions.
55994         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55995         Remove some fields.
55996         (running_threads, running_lock): Remove variables.
55997         (get_current_thread_handle): New function.
55998         (gl_thread_self_func, wrapper_func, glthread_create_func,
55999         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56000         simplified.
56001
56002 2008-09-30  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56005         files.
56006
56007 2008-09-30  Jim Meyering  <meyering@redhat.com>
56008
56009         fts.m4: correct the test for statfs.f_type
56010         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56011         when checking for statfs.f_type.
56012
56013 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56014
56015         tests: avoid some compiler warnings
56016         * tests/test-memchr.c (main): Pass NULL indirectly.
56017         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56018
56019 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
56020
56021         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56022         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56023         exactly specified dayshifts.
56024         (dayshift): New rule.
56025         (rel): Add dayshift.
56026         (relative_time_table) [tomorrow, yesterday, today, now]:
56027         Use tDAY_SHIFT in place of tDAY_UNIT.
56028         * tests/test-getdate.c: Add tests for now-disallowed countable
56029         dayshifts, e.g., "4 yesterday ago".
56030
56031 2008-09-29  Bruno Haible  <bruno@clisp.org>
56032
56033         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56034         * tests/test-posix_spawn1.in.sh: Renamed from
56035         tests/test-posix_spawn.in.sh.
56036         * tests/test-posix_spawn2.c: New file.
56037         * tests/test-posix_spawn2.in.sh: New file.
56038         * modules/posix_spawnp-tests (Files): Update.
56039         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56040
56041 2008-09-29  Bruno Haible  <bruno@clisp.org>
56042
56043         Propagate effects of putenv/setenv/unsetenv to child processes.
56044         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56045         * lib/pipe.c (create_pipe): Likewise.
56046
56047 2008-09-29  Bruno Haible  <bruno@clisp.org>
56048
56049         Enable use of shell scripts as executables in mingw.
56050         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56051         run the program as a shell script.
56052         * lib/pipe.c (create_pipe): Likewise.
56053         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56054         resulting array.
56055
56056 2008-09-29  Eric Blake  <ebb9@byu.net>
56057
56058         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56059
56060 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56061
56062         * doc/posix-functions/accept.texi: Update mingw problems.
56063         * doc/posix-functions/bind.texi: Update mingw problems.
56064         * doc/posix-functions/close.texi: Update mingw problems.
56065         * doc/posix-functions/connect.texi: Update mingw problems.
56066         * doc/posix-functions/getpeername.texi: Update mingw problems.
56067         * doc/posix-functions/getsockname.texi: Update mingw problems.
56068         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56069         * doc/posix-functions/ioctl.texi: Update mingw problems.
56070         * doc/posix-functions/listen.texi: Update mingw problems.
56071         * doc/posix-functions/recv.texi: Update mingw problems.
56072         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56073         * doc/posix-functions/select.texi: Update mingw problems.
56074         * doc/posix-functions/send.texi: Update mingw problems.
56075         * doc/posix-functions/sendto.texi: Update mingw problems.
56076         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56077         * doc/posix-functions/socket.texi: Update mingw problems.
56078
56079 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56080             Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/sys_select.in.h: Include sys/time.h.
56083         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56084         * modules/sys_select: Depend on sys_time.
56085         * tests/test-sys_select.c: Test that sys/select.h defines struct
56086         timeval fully.
56087
56088 2008-09-29  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56091         * lib/sys_select.in.h: Likewise.
56092
56093 2008-09-29  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56096
56097 2008-09-29  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56100         Set LIBSOCKET instead of augmenting LIBS.
56101         * modules/sockets (Link): New section.
56102         * modules/sockets-tests (test_sockets_LDADD): New variable.
56103         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56104         * modules/poll-tests (test_poll_LDADD): New variable.
56105         * NEWS: Document the change.
56106
56107 2008-09-29  Bruno Haible  <bruno@clisp.org>
56108
56109         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56110         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56111         ARPA_INET_H directly.
56112         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56113
56114 2008-09-28  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56117         from gl_HEADER_SYS_SOCKET.
56118         (gl_HEADER_SYS_SOCKET): Invoke it.
56119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56120
56121 2008-09-28  Bruno Haible  <bruno@clisp.org>
56122
56123         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56124         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56125         Needed on OSF/1 4.0.
56126
56127 2008-09-28  Bruno Haible  <bruno@clisp.org>
56128
56129         Override open more carefully.
56130         * lib/open.c (orig_open): New function.
56131         (rpl_open): Use orig_open instead of open.
56132         * lib/fcntl.in.h: Add special invocation convention.
56133         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56134         (gl_FUNC_OPEN): Invoke it.
56135
56136         Override freopen more carefully.
56137         * lib/freopen.c (orig_freopen): New function.
56138         (rpl_freopen): Use orig_freopen instead of freopen.
56139         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56140         (gl_FUNC_FREOPEN): Invoke it.
56141
56142         Override fopen more carefully.
56143         * lib/fopen.c (orig_fopen): New function.
56144         (rpl_fopen): Use orig_fopen instead of fopen.
56145         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56146         (gl_FUNC_FOPEN): Invoke it.
56147         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56148
56149 2008-09-28  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56152         SIGPIPE.
56153
56154 2008-09-28  Bruno Haible  <bruno@clisp.org>
56155
56156         * tests/test-sigaction.c (handler, main): Disable the check whether
56157         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56158         glibc systems with LinuxThreads.
56159
56160 2008-09-28  Bruno Haible  <bruno@clisp.org>
56161
56162         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56163
56164         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56165         with AIX xlc.
56166         * lib/fcntl.in.h (open): Likewise.
56167         Reported by Rainer Tammer <tammer@tammer.net>.
56168
56169 2008-09-28  Bruno Haible  <bruno@clisp.org>
56170
56171         * modules/posix_spawnp-tests: New file.
56172         * tests/test-posix_spawn.c: New file.
56173         * tests/test-posix_spawn.in.sh: New file.
56174
56175         New module 'posix_spawnp'.
56176         * modules/posix_spawnp: New file.
56177         * lib/spawnp.c: New file, from GNU libc with modifications.
56178         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56179
56180         New module 'posix_spawn'.
56181         * modules/posix_spawn: New file.
56182         * lib/spawn.c: New file, from GNU libc with modifications.
56183         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56184
56185         New module 'posix_spawnattr_destroy'.
56186         * modules/posix_spawnattr_destroy: New file.
56187         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56188         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56189         module.
56190
56191         New module 'posix_spawnattr_setsigmask'.
56192         * modules/posix_spawnattr_setsigmask: New file.
56193         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56194         modifications.
56195         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56196         new module.
56197
56198         New module 'posix_spawnattr_getsigmask'.
56199         * modules/posix_spawnattr_getsigmask: New file.
56200         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56201         modifications.
56202         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56203         new module.
56204
56205         New module 'posix_spawnattr_setsigdefault'.
56206         * modules/posix_spawnattr_setsigdefault: New file.
56207         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56208         modifications.
56209         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56210         new module.
56211
56212         New module 'posix_spawnattr_getsigdefault'.
56213         * modules/posix_spawnattr_getsigdefault: New file.
56214         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56215         modifications.
56216         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56217         new module.
56218
56219         New module 'posix_spawnattr_setschedpolicy'.
56220         * modules/posix_spawnattr_setschedpolicy: New file.
56221         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56222         modifications.
56223         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56224         new module.
56225
56226         New module 'posix_spawnattr_getschedpolicy'.
56227         * modules/posix_spawnattr_getschedpolicy: New file.
56228         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56229         modifications.
56230         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56231         new module.
56232
56233         New module 'posix_spawnattr_setschedparam'.
56234         * modules/posix_spawnattr_setschedparam: New file.
56235         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56236         modifications.
56237         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56238         new module.
56239
56240         New module 'posix_spawnattr_getschedparam'.
56241         * modules/posix_spawnattr_getschedparam: New file.
56242         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56243         modifications.
56244         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56245         new module.
56246
56247         New module 'posix_spawnattr_setpgroup'.
56248         * modules/posix_spawnattr_setpgroup: New file.
56249         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56250         modifications.
56251         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56252         module.
56253
56254         New module 'posix_spawnattr_getpgroup'.
56255         * modules/posix_spawnattr_getpgroup: New file.
56256         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56257         modifications.
56258         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56259         module.
56260
56261         New module 'posix_spawnattr_setflags'.
56262         * modules/posix_spawnattr_setflags: New file.
56263         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56264         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56265         module.
56266
56267         New module 'posix_spawnattr_getflags'.
56268         * modules/posix_spawnattr_getflags: New file.
56269         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56270         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56271         module.
56272
56273         New module 'posix_spawnattr_init'.
56274         * modules/posix_spawnattr_init: New file.
56275         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56276         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56277         module.
56278
56279         New module 'posix_spawn_file_actions_destroy'.
56280         * modules/posix_spawn_file_actions_destroy: New file.
56281         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56282         modifications.
56283         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56284         the new module.
56285
56286         New module 'posix_spawn_file_actions_addopen'.
56287         * modules/posix_spawn_file_actions_addopen: New file.
56288         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56289         modifications.
56290         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56291         the new module.
56292
56293         New module 'posix_spawn_file_actions_adddup2'.
56294         * modules/posix_spawn_file_actions_adddup2: New file.
56295         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56296         modifications.
56297         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56298         the new module.
56299
56300         New module 'posix_spawn_file_actions_addclose'.
56301         * modules/posix_spawn_file_actions_addclose: New file.
56302         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56303         modifications.
56304         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56305         the new module.
56306
56307         New module 'posix_spawn_file_actions_init'.
56308         * modules/posix_spawn_file_actions_init: New file.
56309         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56310         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56311         new module.
56312
56313         New module 'posix_spawn-internal'.
56314         * modules/posix_spawn-internal: New file.
56315         * lib/spawn_int.h: New file, from GNU libc with modifications.
56316         * lib/spawni.c: New file, from GNU libc with modifications.
56317         * m4/posix_spawn.m4: New file.
56318
56319         New module 'spawn'.
56320         * modules/spawn: New file.
56321         * lib/spawn.in.h: New file, from GNU libc with modifications.
56322         * m4/spawn_h.m4: New file.
56323         * doc/posix-headers/spawn.texi: Mention the new module.
56324
56325 2008-09-28  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/sched-tests: New file.
56328         * tests/test-sched.c: New file.
56329
56330         New module 'sched'.
56331         * modules/sched: New file.
56332         * lib/sched.in.h: New file.
56333         * m4/sched_h.m4: New file.
56334         * doc/posix-headers/sched.texi: Mention the new module.
56335
56336 2008-09-27  Eric Blake  <ebb9@byu.net>
56337
56338         Fix previous patch, and tweak references to $0.
56339         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56340         (func_version, func_gnulib_dir): Don't call this program
56341         gnulib-tool.
56342         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56343         with using $0 in function.
56344         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56345         (func_fatal_error): Reuse the name the user invoked us with.
56346
56347 2008-09-27  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56350         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56351         (gl_ICONV_H): Not here.
56352         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56353         instead of assigning ICONV_H directly.
56354
56355         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56357         WCHAR_H directly.
56358
56359 2008-09-27  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56362         * modules/arpa_inet (Depends-on): Add link-warning.
56363         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56364         * modules/unistd (Makefile.am): Likewise.
56365
56366 2008-09-26  Bruno Haible  <bruno@clisp.org>
56367
56368         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56369         variables.
56370         (func_version): Essentially copied from gnulib-tool.
56371         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56372         func_readlink): Copied from gnulib-tool.
56373
56374 2008-09-26  Bruno Haible  <bruno@clisp.org>
56375
56376         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56377         invoking git-version-gen.
56378
56379 2008-09-26  Bruno Haible  <bruno@clisp.org>
56380
56381         * posix-modules: Update to directory names changed on 2008-01-19.
56382         Remove commas in output before splitting into words. No more need to
56383         avoid 'ftruncate' since 2007-02-19.
56384
56385 2008-09-26  Bruno Haible  <bruno@clisp.org>
56386
56387         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56388
56389 2008-09-26  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56392         * modules/fwriteerror (Depends-on): Add errno.
56393
56394 2008-09-26  Bruno Haible  <bruno@clisp.org>
56395
56396         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56397         * tests/test-vc-list-files-cvs.sh: Likewise.
56398
56399 2008-09-26  Bruno Haible  <bruno@clisp.org>
56400
56401         * doc/posix-headers/sys_resource.texi: Reorder items.
56402
56403 2008-09-26  Jim Meyering  <meyering@redhat.com>
56404
56405         fts: tweak inode comparison function
56406         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56407         inode numbers, as documented.
56408
56409         fts: sort dirent entries on inode number before traversing
56410         This avoids a quadratic, seek-related performance penalty when
56411         operating on a directory containing many entries (measurable at 10k;
56412         3.5 hours at 2 million entries with a cold cache) on certain types
56413         of file systems, including ext3 and ext4, but not tmpfs.
56414         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56415         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56416         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56417         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56418         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56419         (fts_build): Set the stat.st_ino member from D_INO.
56420         If it is likely to be useful, sort dirent entries on inode number.
56421
56422         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56423         and the struct statfs.f_type member.
56424         * modules/fts (Depends-on): Add d-ino.
56425
56426 2008-09-26  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/sigpipe-die (Depends-on): Add sigpipe.
56429
56430         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56431         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56432         and GNULIB_STDIO_H_SIGPIPE are set.
56433         * lib/stdio-write.c: New file.
56434         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56435         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56436         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56437         REPLACE_STDIO_WRITE_FUNCS.
56438         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56439         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56440         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56441         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56442         * modules/stdio (Files): Add lib/stdio-write.c.
56443         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56444         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56445         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56446         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56447         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56448         REPLACE_FPRINTF_POSIX.
56449         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56450         REPLACE_PRINTF_POSIX.
56451         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56452         REPLACE_VFPRINTF_POSIX.
56453         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56454         REPLACE_VPRINTF_POSIX.
56455         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56456         SIGPIPE issue.
56457         * doc/posix-functions/fputc.texi: Likewise.
56458         * doc/posix-functions/fputs.texi: Likewise.
56459         * doc/posix-functions/fwrite.texi: Likewise.
56460         * doc/posix-functions/printf.texi: Likewise.
56461         * doc/posix-functions/putc.texi: Likewise.
56462         * doc/posix-functions/putchar.texi: Likewise.
56463         * doc/posix-functions/puts.texi: Likewise.
56464         * doc/posix-functions/vfprintf.texi: Likewise.
56465         * doc/posix-functions/vprintf.texi: Likewise.
56466
56467         * modules/safe-write (Depends-on): Add write.
56468
56469         * modules/sigpipe-tests: New file.
56470         * tests/test-sigpipe.c: New file.
56471         * tests/test-sigpipe.sh: New file.
56472
56473         * modules/write: New file.
56474         * lib/unistd.in.h: Include <sys/types.h>.
56475         (write): New declaration.
56476         * lib/write.c: New file.
56477         * m4/write.m4: New file.
56478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56479         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56480         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56481         GNULIB_WRITE, REPLACE_WRITE.
56482         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56483         and the SIGPIPE issue.
56484
56485         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56486         (raise): New declaration.
56487         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56488         (ext_signal): New function.
56489         (rpl_raise): New function.
56490         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56491         GNULIB_SIGNAL_H_SIGPIPE.
56492         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56493         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56494
56495         * modules/sigpipe: New file.
56496         * m4/sigpipe.m4: New file.
56497
56498 2008-09-25  Derek Price  <derek@ximbiot.com>
56499             Bruno Haible  <bruno@clisp.org>
56500
56501         * gnulib-tool (func_import): Report all license incompatibilities, not
56502         just the first one.
56503
56504 2008-09-25  Bruno Haible  <bruno@clisp.org>
56505
56506         * gnulib-tool (func_import): When computing the edits, consider not
56507         only the Makefile.ams that exist but also those that will be generated.
56508
56509 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56510
56511         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56512         fixes gnulib-tool --test warning about duplicate dependency.
56513
56514 2008-09-25  Bruno Haible  <bruno@clisp.org>
56515
56516         * gnulib-tool: Don't ask the user to perform edits in the generated
56517         Makefile.ams.
56518         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56519         apply to the Makefile.am being generated.
56520         (func_emit_tests_Makefile_am): Execute edits that apply to the
56521         Makefile.am being generated.
56522         (func_import): Setup list of Makefile.am edits before emitting the
56523         Makefile.ams, not at the end.
56524         (func_create_testdir): Update.
56525         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56526
56527 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56528
56529         * gnulib-tool (func_import): Store the --tests-base option in the
56530         comment in gnulib-cache.m4.
56531
56532 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56533
56534         * NEWS: Document increased portability that sys_select now provides.
56535
56536         * lib/sys_select.in.h: Install select wrapper.
56537         * lib/sys_socket.in.h: Use more descriptive name when there is no
56538         select wrapper.
56539         * lib/winsock-select.c: New.
56540         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56541         Require gl_HEADER_SYS_SOCKET.
56542         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56543         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56544         * tests/test-sys_select.c: Add functional tests.
56545
56546 2008-09-24  Eric Blake  <ebb9@byu.net>
56547
56548         open, fopen: close fd leak in last patch
56549         * lib/open.c (rpl_open): Close fd before returning error.
56550         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56551         * doc/posix-functions/open.texi (open): Document that Irix also
56552         has the bug.
56553         * doc/posix-functions/fopen.texi (fopen): Likewise.
56554         Reported by Paolo Bonzini.
56555
56556 2008-09-24  Bruno Haible  <bruno@clisp.org>
56557
56558         Ensure that a filename ending in a slash cannot be used to access a
56559         non-directory.
56560         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56561         to check whether it's really a directory.
56562         * lib/fopen.c: Include fcntl.h, unistd.h.
56563         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56564         and fdopen().
56565         * modules/fopen (Depends-on): Add unistd.
56566         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56567         * tests/test-fopen.c (main): Likewise.
56568         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56569         * doc/posix-functions/fopen.texi: Likewise.
56570         Reported by Eric Blake.
56571
56572 2008-09-23  Eric Blake  <ebb9@byu.net>
56573
56574         c-stack: avoid compiler optimizations when provoking overflow
56575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56576         recursion harder to optimize, to ensure a stack overflow occurs.
56577         * tests/test-c-stack.c (recurse): Likewise.
56578         Borrowed from libsigsegv.
56579
56580         c-stack: work around Irix sigaltstack bug
56581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56582         whether sigaltstack uses wrong end of stack_t (copied in part from
56583         libsigsegv).
56584         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56585         Irix bug, without requiring an over-allocation.
56586         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56587         bug.
56588
56589         fopen: document mingw bug on directories
56590         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56591         not allowing a stream visiting a directory, even though reading
56592         from such a stream is not portable.
56593
56594 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56595
56596         * lib/poll.c: Rewrite.
56597         * modules/poll: Depend on alloca.
56598
56599 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56600
56601         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56602         instead define prototypes for a full set of wrappers.  Ensure
56603         that Cygwin does not use the compatibility code, which is only
56604         for MinGW.
56605         * lib/winsock.c: New.
56606         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56607         * modules/sys_socket: Add lib/winsock.c.
56608
56609         * modules/poll-tests: Add errno and perror.
56610         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56611
56612 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56613
56614         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56615
56616 2008-09-23  Bruno Haible  <bruno@clisp.org>
56617
56618         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56619         * doc/glibc-functions/*: Likewise.
56620
56621 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56622
56623         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56624         success.
56625
56626 2008-09-22  Eric Blake  <ebb9@byu.net>
56627             Bruno Haible  <bruno@clisp.org>
56628
56629         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56630         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56631         supply %A but mishandle pseudo-NaN.
56632         Reported by Simon Josefsson.
56633
56634 2008-09-21  Bruno Haible  <bruno@clisp.org>
56635
56636         * tests/test-lock.c (main): Tweak skip message.
56637         * tests/test-tls.c (main): Likewise.
56638
56639 2008-09-21  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56642         whether 'struct sigaction' has sa_sigaction here...
56643         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56644         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56645
56646 2008-09-21  Bruno Haible  <bruno@clisp.org>
56647
56648         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56649         section.
56650         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56651         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56652         the new section.
56653         (Support for obsolete systems lacking POSIX:2001): New section.
56654         (String handling <string.h>): Move strdup to the new section.
56655         Suggested by Simon Josefsson and Paolo Bonzini.
56656
56657 2008-09-21  Bruno Haible  <bruno@clisp.org>
56658
56659         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56660         exponents in %e and %g results on 'long double'. Needed for mingw's
56661         improved *printf functions.
56662         * tests/test-vasprintf-posix.c (test_function): Likewise.
56663         * tests/test-snprintf-posix.h (test_function): Likewise.
56664         * tests/test-sprintf-posix.h (test_function): Likewise.
56665         Reported by Eric Blake.
56666
56667 2008-09-21  Bruno Haible  <bruno@clisp.org>
56668
56669         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56670         * tests/test-sprintf-posix.h (test_function): Likewise.
56671
56672 2008-09-21  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/getpass (Depends-on): Add strdup-posix.
56675
56676         New module 'strdup-posix'.
56677         * modules/strdup-posix: New file.
56678         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56679         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56681         REPLACE_STRDUP.
56682         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56683         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56685         strdup-posix.
56686
56687         * modules/strdup (Depends-on): Remove malloc-posix.
56688
56689 2008-09-20  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56692         Wildenhues.
56693
56694 2008-09-20  Bruno Haible  <bruno@clisp.org>
56695
56696         Ensure that wint_t gets defined on IRIX 5.3.
56697         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56698         * lib/wctype.in.h (wint_t): Likewise.
56699         (__wctype_wint_t): Remove type.
56700         (isw*): Use wint_t instead of __wctype_wint_t.
56701         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56702         * modules/wchar (Files): Add m4/wint_t.m4.
56703         (Makefile.am): Substitute HAVE_WINT_T.
56704         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56705         * tests/test-wctype.c: Check that wint_t is defined.
56706         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56707         * doc/posix-headers/wctype.texi: Likewise.
56708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56709
56710 2008-09-18  Bruno Haible  <bruno@clisp.org>
56711
56712         * gnulib-tool (func_exit): Update comment.
56713
56714 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56715
56716         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56717         assumes strdup exists and does not depend on strdup to return
56718         ENOMEM on out of memory conditions.
56719
56720 2008-09-18  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56723         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56724         digits for the exponent.
56725
56726 2008-09-18  Jim Meyering  <meyering@redhat.com>
56727             Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/vasnprintf.c (decimal_point_char): Define also if
56730         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56731
56732 2008-09-16  Bruno Haible  <bruno@clisp.org>
56733         and Eric Blake  <ebb9@byu.net>
56734
56735         vasnprintf: support Irix 5.3
56736         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56737         that mishandle long double infinity.
56738         Reported by Tom G. Christensen.
56739
56740 2008-09-16  Bruno Haible  <bruno@clisp.org>
56741
56742         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56743         Solaris 9.
56744         * doc/glibc-functions/alphasort.texi: Likewise.
56745         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56746
56747 2008-09-16  Jim Meyering  <meyering@redhat.com>
56748
56749         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56750         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56751         a umask modification leak out of a subshell.  Otherwise, the
56752         opensolaris /bin/sh would be accepted and thus cause unwarranted
56753         failures in the coreutils test suite.
56754
56755 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56756
56757         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56758         to succeed.
56759
56760 2008-09-16  Jim Meyering  <meyering@redhat.com>
56761
56762         avoid spurious test failure when library is built without ACL support
56763         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56764         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56765         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56766         * tests/test-copy-acl.sh: Likewise.
56767
56768 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56769
56770         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56771         based on character occurrence counts.
56772
56773 2008-09-15  Eric Blake  <ebb9@byu.net>
56774
56775         tests: avoid some compiler warnings
56776         * tests/test-memchr.c (main): Pass NULL indirectly.
56777         * tests/test-closein.c (main): Avoid unused variable.
56778
56779 2008-09-15  Bruno Haible  <bruno@clisp.org>
56780
56781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56782         are missing on OpenBSD 4.0 individually.
56783         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56784
56785 2008-09-15  Bruno Haible  <bruno@clisp.org>
56786
56787         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56788         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56789         * doc/posix-functions/perror.texi: Likewise.
56790         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56791         is missing.
56792         Reported by Eric Blake.
56793
56794         * lib/errno.in.h: Use replacement values >= 2000.
56795         Reported by Eric Blake.
56796
56797 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56798
56799         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56800         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56801         limit.
56802         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56803         compareseq was aborted.
56804
56805 2008-09-14  Bruno Haible  <bruno@clisp.org>
56806
56807         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56808         yvec_edit_count.
56809         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56810         (fstrcmp_bounded): Simplify result computation accordingly.
56811
56812 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56813
56814         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56815         (fstrcmp): Define in terms of fstrcmp_bounded.
56816         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56817         lower_bound argument.
56818         Return quickly if the result is certainly < lower_bound.
56819         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56820
56821 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56822
56823         * lib/diffseq.h (EARLY_ABORT): New macro.
56824         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56825         evaluates to true.
56826
56827 2008-09-14  Bruno Haible  <bruno@clisp.org>
56828
56829         * modules/perror-tests: New file.
56830         * tests/test-perror.sh: New file.
56831         * tests/test-perror.c: New file.
56832
56833         New module 'perror'.
56834         * lib/stdio.in.h (perror): New declaration.
56835         * lib/perror.c: New file.
56836         * m4/perror.m4: New file.
56837         * modules/perror: New file.
56838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56839         * doc/posix-functions/perror.texi: Mention the perror module.
56840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56841         REPLACE_PERROR.
56842         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56843         REPLACE_PERROR.
56844
56845 2008-09-14  Bruno Haible  <bruno@clisp.org>
56846
56847         * modules/stdio (Makefile.am): Reorder to match the order in
56848         lib/stdio.in.h.
56849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56850
56851 2008-09-13  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56854
56855 2008-09-13  Bruno Haible  <bruno@clisp.org>
56856
56857         Extend strerror to cover the added errno values.
56858         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56859         (rpl_strerror): Provide error messages for the added errno values and
56860         for the WSA* values.
56861         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56862         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56863         strerror.
56864         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56865         * modules/strerror (Depends-on): Add errno.
56866         * doc/posix-functions/strerror.texi: Document the change.
56867         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56868         and EOVERFLOW.
56869
56870 2008-09-13  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/EOVERFLOW: Remove file.
56873         * m4/eoverflow.m4: Remove file.
56874         * modules/EOVERFLOW-tests: Remove file.
56875         * tests/test-EOVERFLOW.c: Remove file.
56876         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56877         * modules/ftell (Depends-on): Likewise.
56878         * modules/getdelim (Depends-on): Likewise.
56879         * modules/getugroups (Depends-on): Likewise.
56880         * modules/poll (Depends-on): Likewise.
56881         * modules/snprintf (Depends-on): Likewise.
56882         * modules/sprintf-posix (Depends-on): Likewise.
56883         * modules/vasnprintf (Depends-on): Likewise.
56884         * modules/vasprintf (Depends-on): Likewise.
56885         * modules/vfprintf-posix (Depends-on): Likewise.
56886         * modules/vsnprintf (Depends-on): Likewise.
56887         * modules/vsprintf-posix (Depends-on): Likewise.
56888         * modules/xvasprintf (Depends-on): Likewise.
56889         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56890         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56891         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56892         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56893         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56894         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56895         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56896         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56897         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56898         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56899         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56900         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56901         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56902         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56903         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56904         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56905         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56906         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56907         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56908         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56909         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56910         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56911         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56912         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56913         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56914         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56915         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56916         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56917         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56918         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56919         * MODULES.html.sh: Remove EOVERFLOW.
56920         * NEWS: Mention the change.
56921
56922 2008-09-13  Bruno Haible  <bruno@clisp.org>
56923
56924         * modules/errno-tests: New file.
56925         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56926
56927         * lib/errno.in.h: New file.
56928         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56929         * modules/errno: New file.
56930         * doc/posix-headers/errno.texi: Update documentation.
56931         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56932
56933 2008-09-13  Bruno Haible  <bruno@clisp.org>
56934
56935         * tests/test-poll.c: Use #if for native Windows, rather than testing
56936         __MSVCRT__.
56937
56938 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56939             Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/glob.c: Don't include <pwd.h> on native Windows.
56942         (WINDOWS32): New macro.
56943         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56944
56945 2008-09-13  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56948         (ETIMEDOUT): Remove macro.
56949         (glthread_cond_timedwait_multithreaded): New declaration.
56950         (glthread_cond_timedwait): Use it.
56951         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56952         (glthread_cond_timedwait_multithreaded): New function.
56953
56954 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56955
56956         * modules/poll-tests: Do not check for io.h.
56957         * tests/test-poll.c: Check for __MSVCRT__ instead.
56958
56959 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56960
56961         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56962         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56963         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56964
56965 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56966
56967         * modules/poll-tests: New.
56968         * tests/test-poll.c: New.
56969
56970 2008-09-12  Eric Blake  <ebb9@byu.net>
56971
56972         frexp: test for NetBSD failure on -0.0
56973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56974         not all, bugs from NetBSD 3.0 have been fixed.
56975         * doc/posix-functions/frexp.texi (frexp): Document bug.
56976         Reported by Thomas Klausner.
56977
56978         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56979         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56980         literal -0.0.
56981         Reported by Jonathan C. Patschke <jp@centtech.com>.
56982
56983 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56984
56985         * lib/glthread/cond.h: Use dummy implementation also if
56986         USE_WIN32_THREADS.
56987
56988 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56989
56990         * modules/fnmatch-posix (License): Change to LGPLv2+.
56991         * modules/fnmatch-gnu (License): Likewise.
56992
56993 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56994
56995         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56996
56997 2008-09-11  Jim Meyering  <meyering@redhat.com>
56998
56999         * users.txt: Add gtk-vnc.
57000
57001 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57002
57003         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57004         rotate amounts.
57005
57006         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57007         required for 16-bit and 8-bit rotates.
57008         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57009         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57010         UINT8_MAX instead of hard-coded constants.
57011         Suggested by Paul Eggert.
57012
57013 2008-09-07  Bruno Haible  <bruno@clisp.org>
57014
57015         * tests/test-striconveh.c (main): Check behaviour when converting from
57016         UTF-7.
57017
57018         Make striconveh work better with stateful encodings.
57019         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57020         that iconv does not increment the inptr when returning -1/EINVAL.
57021
57022 2008-09-07  Bruno Haible  <bruno@clisp.org>
57023
57024         * build-aux/config.rpath: Update according to libtool-2.2.6.
57025         * build-aux/config.libpath: Likewise.
57026
57027 2008-09-06  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57030         * lib/freadptr.c (freadptr): Likewise.
57031         * lib/freadseek.c (freadptrinc): Likewise.
57032         Reported by Simon Josefsson.
57033
57034 2008-09-06  Bruno Haible  <bruno@clisp.org>
57035
57036         * modules/freadptr (License): Change to LGPLv2+.
57037         * modules/freadseek (License): Likewise.
57038         Suggested by Eric Blake.
57039
57040         * modules/memchr2 (License): Change to LGPLv2+.
57041         Approved by Eric Blake.
57042
57043 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57044             Bruno Haible  <bruno@clisp.org>
57045
57046         Make gnulib-tool work with native 'sed' on AIX.
57047         * gnulib-tool (sed_noop): New variable.
57048         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57049         func_add_or_update, func_create_testdir): Use it to initialize sed
57050         script variables.
57051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57052
57053 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57054             Bruno Haible  <bruno@clisp.org>
57055
57056         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57057         also works after #include directives.
57058
57059 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
57060
57061         getdate.y: reject an out-of-range timezone value
57062         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57063         the range [-24...+24].  When specified with only one or two digits,
57064         * tests/test-getdate.c: Tests for the fix.
57065         * doc/getdate.texi: Document this change.
57066
57067 2008-09-03  Bruno Haible  <bruno@clisp.org>
57068
57069         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57070
57071 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57072
57073         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57074         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57075         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57076         Blake <ebb9@byu.net>.
57077
57078         * tests/test-bitrotate.c: Add more test vectors.
57079
57080 2008-09-02  Eric Blake  <ebb9@byu.net>
57081
57082         vasnprintf-posix: handle large precision via %.*d
57083         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57084         when handling it ourselves.
57085         * tests/test-vasnprintf-posix.c (test_function): Add test.
57086         * tests/test-snprintf-posix.h (test_function): Likewise.
57087         * tests/test-sprintf-posix.h (test_function): Likewise.
57088         * tests/test-vasprintf-posix.c (test_function): Likewise.
57089         Reported by Alain Guibert.
57090
57091 2008-09-01  Eric Blake  <ebb9@byu.net>
57092
57093         c-stack: make configure-time check more robust
57094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57095         successful sigaction call.
57096         Reported by Tom G. Christensen.
57097
57098 2008-09-01  Bruno Haible  <bruno@clisp.org>
57099
57100         New module 'findprog-lgpl'.
57101         * modules/findprog-lgpl: New file.
57102         * lib/findprog-lgpl.c: New file.
57103         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57104         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57105         to decide whether to use strdup or xstrdup, concatenated_filename or
57106         xconcatenated_filename.
57107
57108 2008-09-01  Bruno Haible  <bruno@clisp.org>
57109
57110         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57111         'xconcat-filename' (GPL).
57112         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57113         (License): Change to LGPLv2+.
57114         * modules/xconcat-filename: New file.
57115         * lib/concat-filename.h (concatenated_filename): Change specification.
57116         (xconcatenated_filename): New declaration.
57117         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57118         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57119         memory situations.
57120         * lib/xconcat-filename.c: New file.
57121         * NEWS: Mention the change.
57122         * lib/findprog.c: Include concat-filename.h, not filename.h.
57123         (find_in_path): Use xconcatenated_filename instead of
57124         concatenated_filename.
57125         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57126         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57127         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57128         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57129         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57130         instead of concatenated_filename.
57131         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57132         (execute_java_class): Use xconcatenated_filename instead of
57133         concatenated_filename.
57134         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57135         * modules/javacomp (Depends-on): Likewise.
57136         * modules/javaexec (Depends-on): Likewise.
57137
57138 2008-09-01  Bruno Haible  <bruno@clisp.org>
57139
57140         Split module 'filename' into 'filename' and 'concat-filename'.
57141         * modules/filename: Keep only lib/filename.h.
57142         (License): Change to LGPLv2+.
57143         * modules/concat-filename: New file, extracted from modules/filename.
57144         * lib/filename.h (concatenated_filename): Remove declaration.
57145         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57146         * lib/concat-filename.c: Include concat-filename.h.
57147         * NEWS: Mention the change.
57148
57149 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57150
57151         * lib/bitrotate.h (rotl8, rotr8): Add.
57152
57153         * modules/bitrotate (configure.ac): Need
57154         AC_REQUIRE([AC_C_INLINE]).
57155         (Description): Mention stdint.h.  Reported by Bruno Haible
57156         <bruno@clisp.org>.
57157
57158         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57159         Paolo Bonzini <bonzini@gnu.org>.
57160
57161 2008-08-31  Bruno Haible  <bruno@clisp.org>
57162
57163         Assume Solaris specific bi-arch conventions on Solaris systems.
57164         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57165         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57166         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57167         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57168         like acl_libdirstem.
57169         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57170         acl_libdirstem.
57171         * NEWS: Mention the change.
57172         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57173
57174 2008-08-31  Jim Meyering  <meyering@redhat.com>
57175
57176         * lib/strftime.h: Add comments describing the two added arguments.
57177
57178         remove duplicate #include directives
57179         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57180         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57181
57182 2008-08-31  Bruno Haible  <bruno@clisp.org>
57183
57184         New module 'sigpipe-die'.
57185         * modules/sigpipe-die: New file.
57186         * lib/sigpipe-die.h: New file.
57187         * lib/sigpipe-die.c: New file.
57188         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57189
57190 2008-08-31  Bruno Haible  <bruno@clisp.org>
57191
57192         Don't override previously installed signal handlers.
57193         * lib/fatal-signal.c (saved_sigactions): New variable.
57194         (uninstall_handlers): Reset the signal to the saved handler, not
57195         to SIG_DFL (except when ignored).
57196         (install_handlers): Save the previous handlers.
57197
57198 2008-08-30  Bruno Haible  <bruno@clisp.org>
57199
57200         * gnulib-tool (func_reset_sigpipe): New function.
57201         (func_get_automake_snippet, func_modules_transitive_closure,
57202         func_import): Invoke it before a join command that reads from stdin,
57203         to avoid "echo: write error: Broken pipe" error messages on stderr.
57204         Reported by Sam Steingold <sds@gnu.org>.
57205
57206 2008-08-30  Bruno Haible  <bruno@clisp.org>
57207
57208         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57209         Code copied from m4/open.m4.
57210         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57211         access and the filename ends in a slash. Code copied from lib/open.c.
57212         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57213         * tests/test-fopen.c (main): Check against bug with trailing slash.
57214
57215 2008-08-29  Bruno Haible  <bruno@clisp.org>
57216
57217         Avoid some "gcc -pedantic" warnings.
57218         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57219         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57220         * lib/dirent.in.h: Likewise.
57221         * lib/fcntl.in.h: Likewise.
57222         * lib/float.in.h: Likewise.
57223         * lib/iconv.in.h: Likewise.
57224         * lib/inttypes.in.h: Likewise.
57225         * lib/locale.in.h: Likewise.
57226         * lib/math.in.h: Likewise.
57227         * lib/netinet_in.in.h: Likewise.
57228         * lib/search.in.h: Likewise.
57229         * lib/signal.in.h: Likewise.
57230         * lib/stdarg.in.h: Likewise.
57231         * lib/stdint.in.h: Likewise.
57232         * lib/stdio.in.h: Likewise.
57233         * lib/stdlib.in.h: Likewise.
57234         * lib/string.in.h: Likewise.
57235         * lib/strings.in.h: Likewise.
57236         * lib/sys_select.in.h: Likewise.
57237         * lib/sys_socket.in.h: Likewise.
57238         * lib/sys_stat.in.h: Likewise.
57239         * lib/sys_time.in.h: Likewise.
57240         * lib/sysexits.in.h: Likewise.
57241         * lib/time.in.h: Likewise.
57242         * lib/unistd.in.h: Likewise.
57243         * lib/wchar.in.h: Likewise.
57244         * lib/wctype.in.h: Likewise.
57245         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57246         * modules/fchdir (Makefile.am): Likewise.
57247         * modules/fcntl (Makefile.am): Likewise.
57248         * modules/float (Makefile.am): Likewise.
57249         * modules/iconv_open (Makefile.am): Likewise.
57250         * modules/inttypes (Makefile.am): Likewise.
57251         * modules/locale (Makefile.am): Likewise.
57252         * modules/math (Makefile.am): Likewise.
57253         * modules/netinet_in (Makefile.am): Likewise.
57254         * modules/search (Makefile.am): Likewise.
57255         * modules/signal (Makefile.am): Likewise.
57256         * modules/stdarg (Makefile.am): Likewise.
57257         * modules/stdint (Makefile.am): Likewise.
57258         * modules/stdio (Makefile.am): Likewise.
57259         * modules/stdlib (Makefile.am): Likewise.
57260         * modules/string (Makefile.am): Likewise.
57261         * modules/strings (Makefile.am): Likewise.
57262         * modules/sys_select (Makefile.am): Likewise.
57263         * modules/sys_socket (Makefile.am): Likewise.
57264         * modules/sys_stat (Makefile.am): Likewise.
57265         * modules/sys_time (Makefile.am): Likewise.
57266         * modules/sysexits (Makefile.am): Likewise.
57267         * modules/time (Makefile.am): Likewise.
57268         * modules/unistd (Makefile.am): Likewise.
57269         * modules/wchar (Makefile.am): Likewise.
57270         * modules/wctype (Makefile.am): Likewise.
57271         Reported by Reuben Thomas <rrt@sc3d.org>.
57272
57273 2008-08-29  Bruno Haible  <bruno@clisp.org>
57274
57275         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57276         any more.
57277
57278 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57279
57280         * MODULES.html.sh (Misc): Add bitrotate.
57281
57282         * modules/bitrotate: New file.
57283
57284         * lib/bitrotate.h: New file.
57285
57286         * modules/bitrotate-tests: New file.
57287
57288         * tests/test-bitrotate.c: New file.
57289
57290         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57291         on the bitrotate module.
57292
57293         * lib/arctwo.c: Use new bitrotate module.
57294
57295 2008-08-29  Jim Meyering  <meyering@redhat.com>
57296
57297         bootstrap: merge changes from coreutils
57298         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57299         of copied files.  Remove a kludge, now that this is fixed.
57300         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57301         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57302         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57303
57304 2008-08-29  Bruno Haible  <bruno@clisp.org>
57305
57306         * MODULES.html.sh: Remove --cvs-urls option.
57307
57308 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57309
57310         maint.mk: adjust to file name change
57311         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57312
57313 2008-08-28  Jim Meyering  <meyering@redhat.com>
57314
57315         * modules/getndelim2 (License): Relicense to LGPLv2+.
57316         Approved by Richard Stallman for the version of 1995, and by
57317         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57318
57319 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57320
57321         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57322         dummy if one is not available.  Do not touch them if
57323         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57324         (getc_maybe_unlocked): New.
57325         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57326
57327 2008-08-26  Eric Blake  <ebb9@byu.net>
57328
57329         doc/INSTALL: resync from autoconf
57330         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57331         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57332         moving...
57333         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57334         * INSTALL: Regenerate.
57335         * INSTALL.ISO: New file.
57336         * INSTALL.UTF-8: Likewise.
57337
57338 2008-08-26  Jim Meyering  <meyering@redhat.com>
57339
57340         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57341         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57342         these definitions conditional, so that they may be overridden, too.
57343
57344 2008-08-26  Bruno Haible  <bruno@clisp.org>
57345
57346         Generate INSTALL file variants with prettier quotes.
57347         * doc/Makefile (INSTALL_PRELUDE): New macro.
57348         (INSTALL): Use it.
57349         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57350
57351 2008-08-26  Bruno Haible  <bruno@clisp.org>
57352
57353         Run makeinfo in an English locale.
57354         * doc/Makefile (MAKEINFO): New variable.
57355
57356 2008-08-26  Bruno Haible  <bruno@clisp.org>
57357
57358         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57359         Suggested by Eric Blake.
57360
57361 2008-08-25  Bruno Haible  <bruno@clisp.org>
57362
57363         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57364
57365 2008-08-25  Eric Blake  <ebb9@byu.net>
57366
57367         c-stack: test that stack overflow can be caught
57368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57369         that platform allows handling stack overflow; at least OS/2 EMX
57370         has sigaltstack, but crashes before transferring control to
57371         handler on stack overflow.
57372         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57373         check for HAVE_STACK_OVERFLOW_HANDLING.
57374         Reported by Elbert Pol.
57375
57376 2008-08-25  Bruno Haible  <bruno@clisp.org>
57377
57378         * doc/posix-functions/strftime.texi: Fix description of strftime
57379         module.
57380
57381 2008-08-24  Bruno Haible  <bruno@clisp.org>
57382
57383         * tests/uniwidth/test-uc_width2.c: New file.
57384         * tests/uniwidth/test-uc_width2.sh: New file.
57385         * modules/uniwidth/width-tests (Files): Add the new files.
57386         (TESTS): Add uniwidth/test-uc_width2.sh.
57387         (TESTS_ENVIRONMENT): New variable.
57388         (check_PROGRAMS): Add test-uc_width2.
57389         (test_uc_width2_SOURCES): New variable.
57390
57391         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57392         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57393         not 0x00AB.
57394         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57395
57396 2008-08-22  Eric Blake  <ebb9@byu.net>
57397
57398         test-lock, test-tls: mention why a test is skipped
57399         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57400         skipped.
57401         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57402
57403         count-one-bits: relax license
57404         * modules/count-one-bits (License): Relicense to LGPLv2+.
57405         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57406
57407 2008-08-22  Andreas Schwab  <schwab@suse.de>
57408
57409         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57410         Remove spurious space in assignment.
57411
57412 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57413
57414         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57415         Paul Eggert <eggert@CS.UCLA.EDU>.
57416
57417 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57418
57419         * modules/gettext: Add m4/threadlib.m4.
57420
57421 2008-08-19  Eric Blake  <ebb9@byu.net>
57422
57423         test-c-stack: fix compilation failure on FreeBSD 5.0
57424         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57425         headers before <sys/resource.h>.
57426         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57427         the bug.
57428         Reported by Nelson H. F. Beebe.
57429
57430         strverscmp: migrate from "strverscmp.h" to <string.h>
57431         * modules/string (Makefile.am): Add new hooks.
57432         * modules/strverscmp (Files): Remove strverscmp.h.
57433         (Depends-on): Add string.
57434         (configure.ac): Add indicator.
57435         (Include): Mention new header.
57436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57437         defaults.
57438         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57439         results.
57440         * lib/strverscmp.h: Delete.
57441         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57442         * tests/test-strverscmp.c (includes): Adjust client.
57443         * lib/check-version.c (includes): Likewise.
57444         * NEWS: Document the change.
57445
57446         strverscmp: add unit test
57447         * modules/strverscmp-tests: New file.
57448         * tests/test-strverscmp.c: Likewise.
57449
57450 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57451
57452         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57453         regarding Windows crypto stuff, from Mono.
57454
57455 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57456
57457         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57458         if present, for intel RND.  Return error on failures.
57459
57460 2008-08-18  Ben Pfaff  <blp@gnu.org>
57461
57462         gitlog-to-changelog: give better diagnostic for failed pipe-open
57463         * build-aux/gitlog-to-changelog: Improve error message: suggest
57464         that the version of Git may be too old.
57465
57466 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57467
57468         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57469         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57470
57471 2008-08-18  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57474         pthread_in_use().
57475
57476 2008-08-18  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/glthread/threadlib.c: Include <pthread.h>.
57479
57480 2008-08-18  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57483         glthread_recursive_lock_* macros.
57484         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57485         Fix syntax error.
57486
57487 2008-08-18  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/glthread/thread.c: Avoid forcing a context switch right after
57490         thread creation.
57491
57492 2008-08-17  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57495         * lib/glthread/thread.h: Provide Win32 specific implementation.
57496         * modules/thread (Files): Add lib/glthread/thread.c.
57497         (Depends-on): Add lock.
57498         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57499
57500 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57501
57502         New module 'yield'.
57503         * modules/yield: New file.
57504         * lib/glthread/yield.h: New file.
57505         * m4/yield.m4: New file.
57506         * MODULES.html.sh (Multithreading): Add yield.
57507
57508 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57509
57510         New module 'thread'.
57511         * modules/thread: New file.
57512         * lib/glthread/thread.h: New file.
57513         * m4/thread.m4: New file.
57514         * MODULES.html.sh (Multithreading): Add thread.
57515
57516 2008-08-17  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/glthread/lock.h: Include <stdlib.h> always.
57519         * lib/glthread/tls.h: Likewise.
57520         * lib/glthread/cond.h: Likewise.
57521
57522 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57523
57524         New module 'cond'.
57525         * modules/cond: New file.
57526         * lib/glthread/cond.h: New file.
57527         * lib/glthread/cond.c: New file.
57528         * m4/cond.m4: New file.
57529         * MODULES.html.sh (Multithreading): Add cond.
57530
57531 2008-08-16  Eric Blake  <ebb9@byu.net>
57532
57533         c-stack: fix regression on Irix 5.3 from 2008-06-21
57534         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57535         sa_sigaction...
57536         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57537         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57538         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57539         * modules/signal (Makefile.am): Use the value.
57540         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57541         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57542         * doc/posix-headers/signal.texi (signal.h): Document this
57543         portability issue.
57544         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57545         Reported by Tom G. Christensen.
57546
57547 2008-08-17  Bruno Haible  <bruno@clisp.org>
57548
57549         New module 'threadlib'.
57550         * modules/threadlib: New file.
57551         * lib/glthread/threadlib.c: New file, extracted from
57552         lib/glthread/lock.c.
57553         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57554         functions.
57555         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57556         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57557         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57558         macros.
57559         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57560         (gl_DISABLE_THREADS): Remove macro.
57561         * modules/lock (Files): Remove build-aux/config.rpath.
57562         (Depends-on): Remove havelib. Add threadlib.
57563         (configure.ac-early): Remove section.
57564         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57565         * modules/tls (Depends-on): Remove lock. Add threadlib.
57566         (Link): New section, copied from threadlib.
57567         * MODULES.html.sh (Multithreading): Add threadlib.
57568
57569 2008-08-14  Bruno Haible  <bruno@clisp.org>
57570
57571         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57572         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57573         glthread_rwlock_unlock, glthread_rwlock_destroy,
57574         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57575         glthread_recursive_lock_destroy): Define as macros always.
57576         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57577         glthread_lock_lock.
57578         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57579         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57580         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57581         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57582         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57583         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57584         (glthread_recursive_lock_lock_func): Renamed from
57585         glthread_recursive_lock_lock.
57586         (glthread_recursive_lock_unlock_func): Renamed from
57587         glthread_recursive_lock_unlock.
57588         (glthread_recursive_lock_destroy_func): Renamed from
57589         glthread_recursive_lock_destroy.
57590
57591 2008-08-14  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/glthread/lock.h: Renamed from lib/lock.h.
57594         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57595         * lib/glthread/tls.h: Renamed from lib/tls.h.
57596         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57597         * lib/fstrcmp.c: Update includes.
57598         * lib/strsignal.c: Update includes.
57599         * modules/lock (Files, Makefile.am): Update.
57600         (Include): Change to "glthread/lock.h".
57601         * modules/tls (Files, Makefile.am): Update.
57602         (Include): Change to "glthread/tls.h".
57603         * tests/test-lock.c: Update includes.
57604         * tests/test-tls.c: Update includes.
57605         * NEWS: Mention the renamed header files.
57606
57607 2008-08-11  Jim Meyering  <meyering@redhat.com>
57608
57609         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57610
57611 2008-08-11  Eric Blake  <ebb9@byu.net>
57612
57613         test-c-stack: avoid C99-ism
57614         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57615         before statement.
57616         Reported by Alain Guibert.
57617
57618 2008-08-10  Jim Meyering  <meyering@redhat.com>
57619
57620         ensure that return value of uinttostr et al are not ignored
57621         * lib/inttostr.h (__GNUC_PREREQ): Define.
57622         (__attribute_warn_unused_result__): Define.
57623         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57624
57625 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57626
57627         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57628         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57629
57630 2008-08-07  Jim Meyering  <meyering@redhat.com>
57631
57632         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57633
57634         * modules/mkstemp (License): Relicense under LGPLv2+.
57635         * modules/tempname (License): Likewise.
57636
57637 2008-08-06  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/poll.c (poll): Further micro-optimization.
57640
57641 2008-08-06  Jim Meyering  <meyering@redhat.com>
57642
57643         inet_pton.c: use locale-independent tolower
57644         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57645         (inet_pton6): Use c_tolower rather than tolower.
57646         * modules/inet_pton (Depends-on): Add c-ctype.
57647
57648 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57649
57650         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57651         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57652
57653 2008-08-06  Jim Meyering  <meyering@redhat.com>
57654
57655         * modules/inet_pton (License): Relicense under LGPLv2+.
57656
57657 2008-08-03  Bruno Haible  <bruno@clisp.org>
57658
57659         Additional non-aborting API for lock and tls.
57660         * lib/lock.h: Include <errno.h>.
57661         (glthread_lock_init): New macro/function.
57662         (gl_lock_init): Define as wrapper around glthread_lock_init.
57663         (glthread_lock_lock): New macro/function.
57664         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57665         (glthread_lock_unlock): New macro/function.
57666         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57667         (glthread_lock_destroy): New macro/function.
57668         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57669         (glthread_rwlock_init): New macro/function.
57670         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57671         (glthread_rwlock_rdlock): New macro/function.
57672         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57673         (glthread_rwlock_wrlock): New macro/function.
57674         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57675         (glthread_rwlock_unlock): New macro/function.
57676         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57677         (glthread_rwlock_destroy): New macro/function.
57678         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57679         (glthread_recursive_lock_init): New macro/function.
57680         (gl_recursive_lock_init): Define as wrapper around
57681         glthread_recursive_lock_init.
57682         (glthread_recursive_lock_lock): New macro/function.
57683         (gl_recursive_lock_lock): Define as wrapper around
57684         glthread_recursive_lock_lock.
57685         (glthread_recursive_lock_unlock): New macro/function.
57686         (gl_recursive_lock_unlock): Define as wrapper around
57687         glthread_recursive_lock_unlock.
57688         (glthread_recursive_lock_destroy): New macro/function.
57689         (gl_recursive_lock_destroy): Define as wrapper around
57690         glthread_recursive_lock_destroy.
57691         (glthread_once): New macro/function.
57692         (gl_once): Define as wrapper around glthread_once.
57693         Update function declarations.
57694         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57695         glthread_rwlock_init. Return error code.
57696         (glthread_rwlock_rdlock_multithreaded): Renamed from
57697         glthread_rwlock_rdlock. Return error code.
57698         (glthread_rwlock_wrlock_multithreaded): Renamed from
57699         glthread_rwlock_wrlock. Return error code.
57700         (glthread_rwlock_unlock_multithreaded): Renamed from
57701         glthread_rwlock_unlock. Return error code.
57702         (glthread_rwlock_destroy_multithreaded): Renamed from
57703         glthread_rwlock_destroy. Return error code.
57704         (glthread_recursive_lock_init_multithreaded): Renamed from
57705         glthread_recursive_lock_init. Return error code.
57706         (glthread_recursive_lock_lock_multithreaded): Renamed from
57707         glthread_recursive_lock_lock. Return error code.
57708         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57709         glthread_recursive_lock_unlock. Return error code.
57710         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57711         glthread_recursive_lock_destroy. Return error code.
57712         (glthread_once_call): Make static.
57713         (glthread_once_multithreaded): Renamed from glthread_once.
57714         * lib/tls.h: Include <errno.h>.
57715         (glthread_tls_key_init): New macro/function.
57716         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57717         (glthread_tls_set): New macro/function.
57718         (gl_tls_set): Define as wrapper around glthread_tls_set.
57719         (glthread_tls_key_destroy): New macro/function.
57720         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57721         Update function declarations.
57722         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57723         glthread_tls_get.
57724         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57725
57726 2008-08-04  Eric Blake  <ebb9@byu.net>
57727
57728         gnumakefile: use space, not TAB, outside of targets
57729         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57730
57731 2008-08-02  Jim Meyering  <meyering@redhat.com>
57732
57733         getdate.y: avoid locale-dependent date parsing failure
57734         In Turkish locales, getdate would fail to recognize keywords
57735         containing a lowercase "i".  The solution is not to rely on
57736         locale-sensitive case-conversion.
57737         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57738         (lookup_word): Use c_toupper in place of toupper.
57739         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57740         Reported by Vefa Bicakci <bicave@superonline.com> in
57741         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57742         * modules/getdate (Depends-on): Add c-ctype.
57743
57744 2008-08-02  Bruno Haible  <bruno@clisp.org>
57745
57746         * gnulib-tool (func_import): When updating or creating a .gitignore
57747         file, prepend each added line with a slash, and ignore leading slashes
57748         from the existing lines.
57749         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57750
57751 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57752
57753         Portability fix for GNU make 3.79.1.
57754         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57755         versions do not understand.
57756
57757 2008-08-01  Bruno Haible  <bruno@clisp.org>
57758
57759         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57760         * tests/test-isnanf.h (zero): New variable.
57761         (main): Avoid literal -0.0f.
57762         * tests/test-isnand.h (zero): New variable.
57763         (main): Avoid literal -0.0.
57764         * tests/test-isnanl.h (zero): New variable.
57765         (main): Avoid literal -0.0L.
57766         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57767         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57768         -0.0, -0.0L.
57769         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57770         (test_signbitd): Avoid literal -0.0.
57771         (test_signbitl): Avoid literal -0.0L.
57772         * tests/test-ceilf1.c (zero): New variable.
57773         (main): Avoid literal -0.0f.
57774         * tests/test-ceill.c (zero): New variable.
57775         (main): Avoid literal -0.0L.
57776         * tests/test-floorf1.c (zero): New variable.
57777         (main): Avoid literal -0.0f.
57778         * tests/test-floorl.c (zero): New variable.
57779         (main): Avoid literal -0.0L.
57780         * tests/test-roundf1.c (zero): New variable.
57781         (main): Avoid literal -0.0f.
57782         * tests/test-round1.c (zero): New variable.
57783         (main): Avoid literal -0.0.
57784         * tests/test-roundl.c (zero): New variable.
57785         (main): Avoid literal -0.0L.
57786         * tests/test-truncf1.c (zero): New variable.
57787         (main): Avoid literal -0.0f.
57788         * tests/test-trunc1.c (zero): New variable.
57789         (main): Avoid literal -0.0.
57790         * tests/test-truncl.c (zero): New variable.
57791         (main): Avoid literal -0.0L.
57792         * tests/test-frexp.c (zero): New variable.
57793         (main): Avoid literal -0.0.
57794         * tests/test-frexpl.c (zero): New variable.
57795         (main): Avoid literal -0.0L.
57796         * tests/test-ldexpl.c (zero): New variable.
57797         (main): Avoid literal -0.0L.
57798         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57799         (zerod, zerol): New variables.
57800         (test_function): Avoid literals -0.0, -0.0L.
57801         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57802         (zerod, zerol): New variables.
57803         (test_function): Avoid literals -0.0, -0.0L.
57804         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57805         (zerod, zerol): New variables.
57806         (test_function): Avoid literals -0.0, -0.0L.
57807         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57808         (zerod, zerol): New variables.
57809         (test_function): Avoid literals -0.0, -0.0L.
57810         * tests/test-strtod.c (zero): New variable.
57811         (main): Avoid literal -0.0.
57812         Reported by Jonathan C. Patschke <jp@centtech.com>.
57813
57814 2008-07-31  Jim Meyering  <meyering@redhat.com>
57815
57816         sha256.h: correct definition of SHA224_DIGEST_SIZE
57817         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57818         Reported by Paulie Pena IV <paulie4@gmail.com>.
57819         Define as 224 / 8, rather than as a literal.
57820         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57821         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57822         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57823
57824 2008-07-31  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57827         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57828         Reported by Jonathan Patschke <jp@centtech.com>.
57829
57830 2008-07-31  Bruno Haible  <bruno@clisp.org>
57831
57832         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57833         Reported by Paolo Bonzini <bonzini@gnu.org>.
57834
57835 2008-07-30  Eric Blake  <ebb9@byu.net>
57836
57837         test-strtod: allow compilation without -lm
57838         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57839         Reported by Dennis Clarke <blastwave@gmail.com>.
57840
57841 2008-07-28  Jim Meyering  <meyering@redhat.com>
57842
57843         bootstrap: work also when there are no .po files in po/
57844         * build-aux/bootstrap (update_po_files): Complete the change
57845         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57846
57847 2008-07-27  Jim Meyering  <meyering@redhat.com>
57848
57849         * users.txt: Add zile.
57850
57851 2008-07-26  Ben Pfaff  <blp@gnu.org>
57852
57853         Add missing dependencies on new m4/exponent[fdl].m4 files.
57854         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57855         * modules/isnand-nolibm: Add m4/exponentd.m4.
57856         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57857         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57858         m4/isnan[fdl].m4, because the macros actually used moved.
57859         Reported by Jim Meyering.
57860
57861 2008-07-14  Ben Pfaff  <blp@gnu.org>
57862
57863         Add isinf module.
57864         * lib/isinf.c: New file.
57865         * lib/math.in.h: Define isinf macro if we have decided to replace
57866         it.
57867         * m4/isinf.m4: New file.
57868         * m4/math_h.m4: Initialize and substitute variables for isinf
57869         module.
57870         * modules/isinf: New file.
57871         * modules/isinf-tests: New file.
57872         * modules/math: Add substitutions for new module.
57873         * tests/test-isinf.c: New file.
57874         * doc/posix-functions/isinf.texi: Mention new module.
57875         * MODULES.html.sh: Mention new module.
57876
57877 2008-07-14  Ben Pfaff  <blp@gnu.org>
57878
57879         Factor out some macros for use by additional modules.
57880         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57881         exponentf.m4.
57882         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57883         exponentd.m4.
57884         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57885         file exponentl.m4.
57886         * m4/exponentf.m4: New file.
57887         * m4/exponentd.m4: New file.
57888         * m4/exponentl.m4: New file.
57889         * modules/isnanf: Use new file m4/exponentf.m4.
57890         * modules/isnand: Use new file m4/exponentd.m4.
57891         * modules/isnanl: Use new file m4/exponentl.m4.
57892
57893 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57894
57895         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57896         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57897         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57898         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57899
57900         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57901         readlink on platforms without PATH_MAX.
57902
57903 2008-07-21  Eric Blake  <ebb9@byu.net>
57904
57905         Warn, not fail, on stale version.
57906         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57907
57908         Don't allow installation with stale devel version number.
57909         * top/GNUmakefile (_is-install-target): New macro.
57910         (_curr-ver): Forbid installation with stale version number.
57911
57912 2008-07-20  Bruno Haible  <bruno@clisp.org>
57913
57914         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57915         TESTS_ENVIRONMENT.
57916         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57917
57918 2008-07-20  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/c-stack.h (c_stack_action): Add documentation.
57921         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57922
57923 2008-07-20  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57926         * modules/readlink (License): Likewise.
57927
57928 2008-07-17  Eric Blake  <ebb9@byu.net>
57929
57930         * modules/c-stack (Link): Fix typo.
57931
57932         Make c-stack use libsigsegv, when available.
57933         * modules/c-stack (Depends-on): Add libsigsegv.
57934         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57935         needed.
57936         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57937         (segv_handler, overflow_handler, c_stack_action)
57938         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57939         implementation when libsigsegv is available, but only when using
57940         the library is necessary.
57941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57942         comment, explaining why XSI check fails on Linux.
57943         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57944         * tests/test-c-stack2.sh: Tweak skip message.
57945         * NEWS: Document new link-time requirements.
57946
57947 2008-07-16  Eric Blake  <ebb9@byu.net>
57948
57949         c-stack: Expose false positives when not using libsigsegv.
57950         * modules/c-stack-tests (Files): Expand test.
57951         * tests/test-c-stack.c (main): Add means to conditionally trigger
57952         non-overflow SIGSEGV.
57953         * tests/test-c-stack2.sh: New file.
57954
57955 2008-07-14  Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57958         Reported by Eric Blake.
57959
57960 2008-07-14  Sam Steingold  <sds@gnu.org>
57961             Bruno Haible  <bruno@clisp.org>
57962
57963         New module libsigsegv.
57964         * modules/libsigsegv: New file.
57965         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57966         modifications.
57967         * MODULES.html.sh (Signal handling): New section.
57968
57969 2008-07-14  Bruno Haible  <bruno@clisp.org>
57970
57971         * modules/unictype/ctype-* (Description): Add the word "function".
57972         Improves the resulting doc in MODULES.html.
57973
57974 2008-07-12  Ben Pfaff  <blp@gnu.org>
57975
57976         Add longlong module.
57977         * modules/longlong: New file.
57978
57979 2008-07-12  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57982         to empty.
57983
57984 2008-07-10  Ben Pfaff  <blp@gnu.org>
57985
57986         Add isnan module.
57987         * doc/posix-functions/isnan.texi: Mention new module.
57988         * lib/math.in.h: Define isnan macro if we have decided to replace
57989         it.
57990         * m4/isnan.m4: New file.
57991         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57992         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57993         also.
57994         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57995         redundancy.
57996         * m4/math_h.m4: Initialize and substitute variables for isnan
57997         module.
57998         * modules/isnan: New file.
57999         * modules/isnan-tests: New file.
58000         * modules/math: Add substitutions for new module.
58001         * tests/test-isnan.c: New file.
58002         * MODULES.html.sh: Mention new module.
58003
58004 2008-07-10  Ben Pfaff  <blp@gnu.org>
58005
58006         Add isnanf module.
58007         * lib/isnanf.m4: New file.
58008         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58009         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58010         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58011         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58012         * modules/isnanf: New file.
58013         * modules/isnanf-tests: New file.
58014         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58015         files.
58016         * tests/test-isnanf-nolibm.c: factored most of its contents into
58017         new file tests/test-isnanf.h.
58018         * tests/test-isnanf.h: New file.
58019         * tests/test-isnanf.c: New file.
58020         * MODULES.html.sh: Mention new module.
58021         * doc/glibc-functions/isnanf.texi: Mention new module.
58022
58023 2008-07-10  Ben Pfaff  <blp@gnu.org>
58024
58025         Add isnand module.
58026         * lib/isnand.h: New file.
58027         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58028         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58029         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58030         functionality also.
58031         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58032         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58033         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58034         * modules/isnand: New file.
58035         * modules/isnand-tests: New file.
58036         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58037         files.
58038         * tests/test-isnand-nolibm.c: factored most of its contents into
58039         new file tests/test-isnand.h.
58040         * tests/test-isnand.h: New file.
58041         * tests/test-isnand.c: New file.
58042         * MODULES.html.sh: Mention new module.
58043
58044 2008-07-10  Ben Pfaff  <blp@gnu.org>
58045
58046         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58047         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58048         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58049         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58050         * modules/isnanf-nolibm: Update references to renamed files.
58051         * modules/isnand-nolibm: Likewise.
58052         * modules/isnanf-nolibm-tests: Likewise.
58053         * modules/isnand-nolibm-tests: Likewise.
58054         * lib/frexp.c: Likewise.
58055         * lib/isfinite.c: Likewise.
58056         * lib/signbitd.c: Likewise.
58057         * lib/signbitf.c: Likewise.
58058         * lib/vasnprintf.c: Likewise.
58059         * tests/test-ceilf1.c: Likewise.
58060         * tests/test-ceilf2.c: Likewise.
58061         * tests/test-floorf1.c: Likewise.
58062         * tests/test-floorf2.c: Likewise.
58063         * tests/test-frexp.c: Likewise.
58064         * tests/test-round1.c: Likewise.
58065         * tests/test-round2.c: Likewise.
58066         * tests/test-roundf1.c: Likewise.
58067         * tests/test-strtod.c: Likewise.
58068         * tests/test-trunc1.c: Likewise.
58069         * tests/test-trunc2.c: Likewise.
58070         * tests/test-truncf1.c: Likewise.
58071         * tests/test-truncf2.c: Likewise.
58072         * NEWS: Mention the renamed header files.
58073
58074 2008-07-11  Jim Meyering  <meyering@redhat.com>
58075
58076         vc-list-files: make the last-resort awk code more portable
58077         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58078         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58079         does not support it.
58080
58081 2008-07-10  Eric Blake  <ebb9@byu.net>
58082
58083         Work with tar's bootstrap.
58084         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58085         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58086         an m4 comment.
58087
58088 2008-07-09  Jim Meyering  <meyering@redhat.com>
58089
58090         posix-shell.m4: fix typo that made this test malfunction
58091         * m4/posix-shell.m4: Remove capitalization in variable name.
58092
58093 2008-07-08  Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/onceonly.m4: Update comments.
58096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58097
58098 2008-07-04  Jim Meyering  <meyering@redhat.com>
58099
58100         * users.txt: Add vc-dwim.
58101         (bison, coreutils): Use the gitweb URL.
58102
58103 2008-07-03  Jim Meyering  <meyering@redhat.com>
58104
58105         * users.txt: Add libffcall.  From Sam Steingold.
58106
58107 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
58108
58109         getdate.y: do not ignore TZ with relative day, month or year offset
58110         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58111         relative-date-handling, since otherwise, the latter would clobber the
58112         sole output (an updated Start value) of the tz-handling block.
58113         * tests/test-getdate.c: Tests for the fix
58114
58115 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58116
58117         Recognize 'foo_LIBRARIES += libgnu.a'.
58118         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58119         makefile snippet has already specified an installation location,
58120         also using '+='.
58121
58122 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
58123
58124         getdate.y: factor out common actions
58125         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58126         Use them in place of open-coded actions.
58127
58128 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58129
58130         Add self-test for getdate module.
58131         * modules/getdate-tests: New file.
58132         * tests/test-getdate.c: New file.
58133
58134 2008-06-29  Bruno Haible  <bruno@clisp.org>
58135
58136         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58137         .gitignore.
58138         Reported by Sylvain Beucler <beuc@beuc.net>.
58139
58140 2008-06-29  Bruno Haible  <bruno@clisp.org>
58141
58142         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58143         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58144
58145 2008-06-29  Bruno Haible  <bruno@clisp.org>
58146
58147         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58148         EXTRA_DIST.
58149         Reported by Sylvain Beucler <beuc@beuc.net>.
58150
58151 2008-06-26  Jim Meyering  <meyering@redhat.com>
58152
58153         make several modules depend on the "open" module
58154         This provides slightly increased consistency when opening-for-write
58155         the name of a non-directory spelled with a trailing slash.
58156         * modules/chdir-safer: Likewise.
58157         * modules/chown: Likewise.
58158         * modules/clean-temp: Likewise.
58159         * modules/copy-file: Likewise.
58160         * modules/fchdir: Likewise.
58161         * modules/fcntl-safer: Likewise.
58162         * modules/pipe: Likewise.
58163         * modules/utime: Likewise.
58164         Prompted by Eric Blake and Bruno Haible.
58165
58166 2008-06-24  Andreas Schwab  <schwab@suse.de>
58167
58168         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58169         literals can be used as initializers for global variables.
58170
58171 2008-06-23  Eric Blake  <ebb9@byu.net>
58172
58173         Make gnulib-cache.m4 easier to diff.
58174         * gnulib-tool (func_import): Allow newlines when reading cached
58175         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58176
58177 2008-06-23  Bruno Haible  <bruno@clisp.org>
58178
58179         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58180         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58181         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58182         m4/signalblocking.m4.
58183         (gl_PREREQ_SIGACTION): Don't invoke it.
58184         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58185         gl_PREREQ_SIG_HANDLER_H.
58186         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58187         Don't check for sigaction here.
58188
58189 2008-06-23  Bruno Haible  <bruno@clisp.org>
58190
58191         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58192         (install_handlers): Don't set the SA_RESETHAND flag.
58193
58194 2008-06-23  Bruno Haible  <bruno@clisp.org>
58195
58196         * m4/sigaction.m4: Comment fixes.
58197         * lib/signal.in.h: Likewise.
58198
58199 2008-06-23  Eric Blake  <ebb9@byu.net>
58200
58201         Fix typo.
58202         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58203
58204         Avoid SA_ namespace.
58205         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58206         Reported by Ralf Wildenhues.
58207
58208         Avoid test failure due to SA_RESTORER.
58209         * tests/test-sigaction.c (SA_MASK): New macro.
58210         (main): Avoid failing due to extension flags being set.
58211         Reported by Jim Meyering.
58212
58213         Revert use of sig-handler.h in sigprocmask.c.
58214         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58215         it requires the existence of struct sigaction.
58216         * lib/sigprocmask.c (handler_t): Restore typedef.
58217         (rpl_signal, old_handlers): Use local type.
58218
58219 2008-06-22  Bruno Haible  <bruno@clisp.org>
58220
58221         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58222         conditionally.
58223         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58224
58225 2008-06-22  Bruno Haible  <bruno@clisp.org>
58226
58227         * doc/posix-functions/siginterrupt.texi: Move note.
58228
58229         * lib/signal.in.h (SA_RESTART): New macro.
58230         * lib/sigaction.c: Update comment.
58231
58232         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58233
58234         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58235         (gl_PREREQ_SIGPROCMASK): Invoke it.
58236         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58237
58238         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58239
58240         * lib/sigprocmask.c: Update a comment.
58241
58242 2008-06-21  Eric Blake  <ebb9@byu.net>
58243
58244         Use sigaction module rather than signal().
58245         * modules/c-stack (Depends-on): Add sigaction.
58246         * modules/fatal-signal (Depends-on): Likewise.
58247         * modules/nanosleep (Depends-on): Likewise.
58248         * modules/sigprocmask (Files): Add sig-handler.h.
58249         * modules/sigaction (Files): Likewise.
58250         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58251         Eggert.
58252         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58253         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58254         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58255         (init_fatal_signals): Likewise.
58256         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58257         (siginterrupt): Delete fallback.
58258         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58259         instead.
58260         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58261         siginterrupt.
58262
58263         New module sigaction, for mingw.
58264         * modules/sigaction: New module...
58265         * modules/sigaction-tests: ...and its test.
58266         * m4/sigaction.m4: New file.
58267         * lib/sigaction.c: Likewise.
58268         * tests/test-sigaction.c: Likewise.
58269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58270         * modules/signal (Makefile.am): Likewise.
58271         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58272         needed.
58273         * doc/posix-headers/signal.texi (signal.h): Mention provided
58274         types.
58275         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58276         that sigaction is preferable.
58277         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58278         module.
58279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58280         sigaction.
58281
58282         Improve robustness of sigprocmask by overriding signal.
58283         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58284         is in use.
58285         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58286         (SIGKILL, SIGSTOP): Provide fallbacks.
58287         (rpl_signal): Implement.
58288         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58289         signal can be called inside handlers.
58290
58291         Fix nanosleep module on mingw.
58292         * modules/nanosleep (Depends-on): Add sys_select.
58293         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58294
58295         Fix licensing of sigprocmask.
58296         * modules/raise (License): Relicense as LGPL.
58297
58298 2008-06-21  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58301         result if it contains question marks.
58302         Reported by Michael Geng <linux@michaelgeng.de>.
58303
58304 2008-06-19  Bruno Haible  <bruno@clisp.org>
58305
58306         Fix CVS-ism.
58307         * doc/gnulib.texi: Include updated-stamp.texi.
58308         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58309         (updated-stamp.texi): New rule.
58310         (gnulib.info): Depend on it.
58311         * doc/.gitignore: Add updated-stamp.texi.
58312         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58313
58314 2008-06-19  Bruno Haible  <bruno@clisp.org>
58315
58316         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58317         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58318
58319 2008-06-19  Eric Blake  <ebb9@byu.net>
58320
58321         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58322         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58323         Reported by Stepan Kasal.
58324
58325 2008-06-18  Bruno Haible  <bruno@clisp.org>
58326
58327         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58328         Reported by Eric Blake.
58329
58330 2008-06-18  Eric Blake  <ebb9@byu.net>
58331
58332         Work around cygwin 1.5.25 strsignal bug.
58333         * tests/test-strsignal.c: Allow for const char *.
58334         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58335
58336 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58337
58338         * users.txt: Update URL to article and add author/date
58339         information.
58340
58341 2008-06-17  Bruno Haible  <bruno@clisp.org>
58342
58343         New macro gl_DISABLE_THREADS.
58344         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58345         if the user did not pass --enable-threads or --disable-threads option.
58346         (gl_DISABLE_THREADS): New macro.
58347         Reported by Eric Blake <ebb9@byu.net>.
58348
58349 2008-06-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58352         when the macro ignores it.
58353         Based on a patch by Eric Blake <ebb9@byu.net>.
58354
58355 2008-06-17  Bruno Haible  <bruno@clisp.org>
58356
58357         * modules/tls (License): Change to LGPLv2+.
58358         Reported by Eric Blake.
58359
58360 2008-06-17  Eric Blake  <ebb9@byu.net>
58361
58362         Simplify c-stack prerequisites.
58363         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58365         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58366         check.
58367         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58368         <sys/resource.h>.
58369
58370         Move c-stack test into testsuite.
58371         * modules/c-stack-tests: New file.
58372         * lib/c-stack.c [DEBUG]: Move test program...
58373         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58374         fail test if sigaltstack is lacking.
58375         * tests/test-c-stack.sh: New driver file.
58376
58377 2008-06-16  Eric Blake  <ebb9@byu.net>
58378
58379         Use raise module consistently.
58380         * modules/fatal-signal (Depends-on): Add raise.
58381         * modules/sigprocmask (Depends-on): Likewise.
58382         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58383         * lib/sigprocmask.c (sigprocmask): Likewise.
58384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58385         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58386
58387         Fix compliance bug in sigpending.
58388         * lib/sigprocmask.c (sigpending): Return pending array via
58389         parameter, not return value.
58390
58391 2008-06-14  Eric Blake  <ebb9@byu.net>
58392
58393         Improve obstack-printf test code.
58394         * tests/test-obstack-printf.c (test_function): Fix comment, and
58395         simplify usage of obstack_* in macros.  Add a test for coverage.
58396         Reported by Bruno Haible.
58397
58398 2008-06-14  Bruno Haible  <bruno@clisp.org>
58399
58400         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58401         array size as a constant, not as a const variable.
58402         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58403         AC_USE_SYSTEM_EXTENSIONS.
58404         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58405         Test whether the obstack_printf function actually exists.
58406         * modules/obstack-printf (Depends-on): Add extensions.
58407         (Include): Remove obstack.h.
58408         * modules/obstack-printf-posix (Depends-on): Add extensions.
58409         (Include): Remove obstack.h.
58410
58411 2008-06-13  Eric Blake  <ebb9@byu.net>
58412
58413         Add obstack-printf and obstack-printf-posix modules.
58414         * modules/obstack-printf: New file.
58415         * modules/obstack-printf-posix: Likewise.
58416         * MODULES.html.sh (Misc): Mention them.
58417         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58418         Likewise.
58419         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58420         Likewise.
58421         * modules/stdio (Makefile.am): Accomodate new modules.
58422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58423         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58424         Declare.
58425         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58426         functions.
58427         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58428         (gl_REPLACE_OBSTACK_PRINTF): New macros
58429         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58430         * tests/test-obstack-printf.c: New file.
58431         * modules/obstack-printf-tests: Likewise.
58432         * modules/obstack-printf-posix-tests: Likewise.
58433
58434 2008-06-11  Bruno Haible  <bruno@clisp.org>
58435
58436         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58437         * lib/open.c: Include errno.h.
58438         (open): Fail when attempting to write to a file that has a trailing
58439         slash.
58440         * tests/test-open.c (main): Test against trailing slash bug.
58441         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58442
58443 2008-06-10  Bruno Haible  <bruno@clisp.org>
58444
58445         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58446         for $? to work inside the trap command, with various /bin/sh-s.
58447         * tests/test-vc-list-files-cvs.sh: Likewise.
58448
58449 2008-06-10  Bruno Haible  <bruno@clisp.org>
58450
58451         * lib/acl-internal.h: Don't include gettext.h here.
58452         * lib/set-mode-acl.c: Include gettext.h here.
58453         * lib/copy-acl.c: Likewise.
58454
58455 2008-06-10  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58458         * lib/wait-process.c (wait_subprocess): Likewise.
58459         * lib/execute.h (execute): Add termsigp argument.
58460         * lib/execute.c (execute): Likewise.
58461         * lib/csharpcomp.c (compile_csharp_using_pnet,
58462         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58463         * lib/csharpexec.c (execute_csharp_using_pnet,
58464         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58465         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58466         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58467         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58468         is_jikes_present): Update.
58469         * lib/javaexec.c (execute_java_class): Update.
58470         * lib/javaversion.c (execute_and_read_line): Update.
58471         * NEWS: Document the changes.
58472         Reported by Eric Blake.
58473
58474 2008-06-10  Eric Blake  <ebb9@byu.net>
58475
58476         Add missing include.
58477         * tests/test-strstr.c (includes): Add <signal.h>.
58478         * tests/test-strcasestr.c (includes): Likewise.
58479         * tests/test-memmem.c (includes): Likewise.
58480
58481 2008-06-10  Bruno Haible  <bruno@clisp.org>
58482
58483         * lib/wait-process.c (wait_subprocess): Add an assertion.
58484
58485 2008-06-10  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58488
58489 2008-06-10  Bruno Haible  <bruno@clisp.org>
58490
58491         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58492         using alarm().
58493         * tests/test-strcasestr.c (main): Likewise.
58494         * tests/test-strstr.c (main): Likewise.
58495
58496 2008-06-09  Bruno Haible  <bruno@clisp.org>
58497
58498         Work around the Solaris 10 ACE ACLs ABI change.
58499         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58500         declare if ACL_NO_TRIVIAL is present.
58501         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58502         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58503         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58504         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58505         define if ACL_NO_TRIVIAL is present.
58506         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58507         and use the current ABI.
58508         (file_has_acl): Use same #if condition as elsewhere.
58509         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58510         in use, and use the current ABI.
58511         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58512         Reported by Jim Meyering.
58513
58514 2008-06-09  Eric Blake  <ebb9@byu.net>
58515
58516         Work around environments that (stupidly) ignore SIGALRM.
58517         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58518         before using alarm().
58519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58521         Reported by Ian Beckwith <ianb@erislabs.net>.
58522
58523         Produce autobuild blurb earlier in log.
58524         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58525
58526 2008-06-09  Jim Meyering  <meyering@redhat.com>
58527         and OndÅ™ej Vašík  <ovasik@redhat.com>
58528
58529         utimens.c: correct kernel bug work-around
58530         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58531         failure, not success, and the kernel bug we're trying to work
58532         around affects not just the utimensat call, but also the fallback
58533         futimens call.
58534         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58535         not success.
58536         [HAVE_FUTIMENS]: Use the same work-around, here.
58537
58538 2008-06-09  Jim Meyering  <meyering@redhat.com>
58539
58540         add more guards around definition of ACE_-related code
58541         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58542         ALLOW and ACE_OWNER are also defined.
58543
58544 2008-06-08  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/acl-internal.h: Add me as co-author.
58547         * lib/file-has-acl.c: Likewise.
58548         * lib/set-mode-acl.c: Likewise.
58549         * lib/copy-acl.c: Likewise.
58550
58551 2008-06-08  Bruno Haible  <bruno@clisp.org>
58552
58553         Add support for AIX ACLs.
58554         * lib/acl-internal.h (acl_nontrivial): New declaration.
58555         * lib/file-has-acl.c (acl_nontrivial): New function.
58556         (file_has_acl): Add implementation using AIX 4 ACL API.
58557         * lib/set-mode-acl.c (qset_acl): Likewise.
58558         * lib/copy-acl.c (qcopy_acl): Likewise.
58559
58560 2008-06-08  Bruno Haible  <bruno@clisp.org>
58561
58562         Add support for HP-UX ACLs.
58563         * lib/acl-internal.h (acl_nontrivial): New declaration.
58564         * lib/file-has-acl.c (acl_nontrivial): New function.
58565         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58566         * lib/set-mode-acl.c (qset_acl): Likewise.
58567         * lib/copy-acl.c (qcopy_acl): Likewise.
58568
58569 2008-06-08  Bruno Haible  <bruno@clisp.org>
58570
58571         Add support for Cygwin ACLs.
58572         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58573         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58574         the chmod_or_fchmod call.
58575         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58576
58577 2008-06-08  Bruno Haible  <bruno@clisp.org>
58578
58579         Fix bug with setuid modes in Solaris 10+ code.
58580         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58581         succeeded, when the mode contains some special bits.
58582
58583 2008-06-08  Bruno Haible  <bruno@clisp.org>
58584
58585         Add support for Solaris 7..10 ACLs.
58586         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58587         declarations.
58588         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58589         functions.
58590         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58591         * lib/set-mode-acl.c (qset_acl): Likewise.
58592         * lib/copy-acl.c (qcopy_acl): Likewise.
58593
58594 2008-06-08  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58597         declaration.
58598         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58599         (acl_access_nontrivial): Remove MacOS X case.
58600         (file_has_acl): Use acl_extended_nontrivial.
58601         * lib/copy-acl.c (qcopy_acl): Likewise.
58602
58603 2008-06-08  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58606
58607 2008-06-08  Jim Meyering  <meyering@redhat.com>
58608
58609         * modules/acl (Maintainer): Add Bruno Haible.
58610
58611 2008-06-07  Bruno Haible  <bruno@clisp.org>
58612
58613         Improve support for Tru64 ACLs.
58614         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58615         ACL on OSF/1.
58616
58617 2008-06-07  Bruno Haible  <bruno@clisp.org>
58618
58619         Add support for MacOS X ACLs.
58620         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58621         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58622         * lib/set-mode-acl.c (qset_acl): Likewise.
58623         * lib/copy-acl.c (qcopy_acl): Likewise.
58624
58625 2008-06-07  Bruno Haible  <bruno@clisp.org>
58626
58627         Fix memory leak introduced on 2008-05-22.
58628         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58629         use.
58630
58631 2008-06-07  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58634         to construct an empty ACL.
58635
58636 2008-06-07  Bruno Haible  <bruno@clisp.org>
58637
58638         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58639         precisely.
58640         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58641
58642 2008-06-07  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58645         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58646
58647 2008-06-07  Bruno Haible  <bruno@clisp.org>
58648
58649         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58650         regardless of POSIX.
58651         * doc/posix-functions/_longjmp.texi: Likewise.
58652         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58653         SystemV platform in this case.
58654
58655 2008-06-06  Eric Blake  <ebb9@byu.net>
58656
58657         Document abort() bugs.
58658         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58659
58660         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58661         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58662         sigsetjmp.
58663         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58664         siglongjmp, but only as a macro.
58665         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58666         is obsolete.
58667         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58668
58669         Tweak documentation to cover cygwin argz bugs.
58670         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58671         argz bug fix; no code change needed since no cygwin releases
58672         occurred between the last fix and the bug being tested.
58673         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58674         module and recently fixed cygwin bugs.
58675         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58676         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58677         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58678         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58679         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58680         Likewise.
58681         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58682         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58683         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58684         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58685         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58686         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58687         Likewise.
58688
58689         Avoid gcc warning on cygwin.
58690         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58691         !ACL_NO_TRIVIAL]: Avoid unused variable.
58692
58693 2008-06-05  Eric Blake  <ebb9@byu.net>
58694
58695         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58696         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58697         git-version-gen fails to come up with a version.
58698         Reported by Simon Josefsson.
58699
58700 2008-06-05  Jim Meyering  <meyering@redhat.com>
58701             Paul Eggert  <eggert@cs.ucla.edu>
58702
58703         utimens.c: work around a probable Linux kernel bug
58704         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58705         appears to be a kernel bug that causes utimensat to return 280
58706         instead of 0, indicating success.
58707
58708 2008-06-04  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58711         2008-06-01 commit.
58712
58713 2008-06-04  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58716         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58717         (file_has_acl): Use it. Save errno afterwards.
58718         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58719
58720 2008-06-03  Bruno Haible  <bruno@clisp.org>
58721
58722         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58723         draft code. Simplify #ifs.
58724         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58725         Put Solaris code after POSIX-draft code. Fix comments regarding
58726         Solaris 10, HP-UX. Mention Cygwin.
58727         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58728
58729 2008-06-03  Eric Blake  <ebb9@byu.net>
58730
58731         Provide fallback for older kernels.
58732         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58733         Provide runtime fallback if kernel lacks support.
58734         Reported by Mike Frysinger.
58735
58736 2008-06-02  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58739         it exists.
58740
58741 2008-06-02  Bruno Haible  <bruno@clisp.org>
58742
58743         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58744         * lib/copy-acl.c (qcopy_acl): Update comment.
58745
58746 2008-06-02  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58749         like ACL APIs.
58750
58751 2008-06-02  Bruno Haible  <bruno@clisp.org>
58752
58753         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58754         * tests/test-set-mode-acl.sh: Likewise.
58755         * tests/test-copy-acl.sh: Likewise.
58756         * tests/test-copy-file.sh: Likewise.
58757
58758 2008-06-02  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-file-has-acl.sh: Remove unused code.
58761
58762 2008-06-01  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58765         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58766         messages.
58767         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58768
58769 2008-06-01  Bruno Haible  <bruno@clisp.org>
58770
58771         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58772         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58773         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58774         APIs.
58775         * modules/acl-tests (configure.ac): Remove tests now contained in
58776         m4/acl.m4.
58777
58778 2008-06-02  Jim Meyering  <meyering@redhat.com>
58779
58780         announce-gen: use a better key-server host name
58781         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58782         it may be more consistently reliable.  Suggested by Werner Koch
58783         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58784
58785 2008-06-01  Bruno Haible  <bruno@clisp.org>
58786
58787         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58788         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58789
58790 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58791
58792         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58793
58794 2008-06-01  Bruno Haible  <bruno@clisp.org>
58795
58796         New ACL tests.
58797         * tests/test-file-has-acl.sh: New file.
58798         * tests/test-file-has-acl.c: New file.
58799         * tests/test-set-mode-acl.sh: New file.
58800         * tests/test-set-mode-acl.c: New file.
58801         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58802         * tests/test-copy-acl.c: New file.
58803         * modules/acl-tests: New file, based on modules/copy-file-tests.
58804         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58805         (Depends-on): Add acl-tests.
58806         (configure.ac): Remove checks.
58807         (Makefile.am): Don't create test-sameacls program here any more.
58808
58809 2008-06-01  Bruno Haible  <bruno@clisp.org>
58810
58811         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58812         * tests/test-sameacls.c: Include progname.h.
58813         (main): Invoke set_program_name. Portability fixes for MacOS X,
58814         Solaris, HP-UX.
58815
58816 2008-06-01  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58819         function.
58820         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58821
58822 2008-06-01  Bruno Haible  <bruno@clisp.org>
58823
58824         * modules/rpmatch (Depends-on): Add strdup.
58825
58826 2008-06-01  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/pipe.c: Include unistd-safer.h.
58829         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58830         * modules/pipe (Depends-on): Add unistd-safer.
58831
58832 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58833
58834         * modules/autobuild (configure.ac): Call AB_INIT.
58835
58836 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58837
58838         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58839         Suggested by Bruno Haible <bruno@clisp.org>.
58840
58841 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58842
58843         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58844         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58845         <bruno@clisp.org>.
58846
58847 2008-05-29  Eric Blake  <ebb9@byu.net>
58848
58849         Prefer new POSIX 200x interfaces over futimesat.
58850         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58851         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58852         when available.
58853         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58854
58855 2008-05-28  Bruno Haible  <bruno@clisp.org>
58856
58857         * modules/stpcpy (License): Change to LGPLv2+.
58858         Requested by David Lutterkort <dlutter@redhat.com>.
58859
58860 2008-05-27  Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58863         current mingw.
58864         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58865
58866 2008-05-27  Bruno Haible  <bruno@clisp.org>
58867
58868         * modules/iconv_open (Link): New section, from module 'iconv'.
58869         * modules/striconv (Link): Likewise.
58870         * modules/striconveh (Link): Likewise.
58871         * modules/xstriconv (Link): Likewise.
58872         * modules/unicodeio (Link): Likewise.
58873         * modules/propername (Link): Likewise.
58874         Reported by Jim Meyering.
58875
58876 2008-05-26  Jim Meyering  <meyering@redhat.com>
58877
58878         sha256: do not artificially restrict buffer length to be < 2^32
58879         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58880         uint32_t to size_t.
58881         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58882         to match.
58883
58884         avoid unaligned access errors, e.g., on sparc
58885         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58886         direct access through a possibly-unaligned uint64* pointer.
58887         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58888         direct access through a possibly-unaligned uint32* pointer.
58889         Prompted by this patch from Tom "spot" Callaway:
58890         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58891
58892         sha512.c: fix typo in comment
58893         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58894
58895 2008-05-25  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58898         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58899         (Makefile.am): Update lib_SOURCES.
58900
58901 2008-05-25  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58904
58905 2008-05-25  Jim Meyering  <meyering@redhat.com>
58906
58907         useless-if-before-free: freed expr may have white-space differences
58908         * build-aux/useless-if-before-free: Recognize cases in which the
58909         freed expression differs from the tested one in embedded white
58910         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58911         $1 was used, so we can't make any regexp shy.  Improved tests now
58912         detect this.
58913
58914         useless-if-before-free: accept white space in the expression.
58915         * build-aux/useless-if-before-free: For now, any white space
58916         in the expression must be identical in the free argument.
58917
58918         useless-if-before-free: efficiency tweak
58919         * build-aux/useless-if-before-free: Make the expression-matching
58920         regexp "shy".
58921         Make the *outer* regexp shy, not the expr-matching one.
58922
58923         update code-in-comment to accept cast of free arg
58924         * build-aux/useless-if-before-free: Update regexp.
58925
58926 2008-05-25  Bruno Haible  <bruno@clisp.org>
58927
58928         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58929         * modules/copy-file-tests (Files, Makefile.am): Update.
58930         * tests/test-copy-file.c (func_test_copy): Update.
58931
58932 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58933
58934         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58935
58936 2008-05-23  Bruno Haible  <bruno@clisp.org>
58937
58938         Improve support for ACLs on OSF/1.
58939         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58940         Remove fallback for unknown flavors of ACLs.
58941
58942 2008-05-22  Bruno Haible  <bruno@clisp.org>
58943
58944         Add support for ACLs on OSF/1.
58945         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58946         replacements.
58947         (acl_free_text): New macro fallback.
58948         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58949         acl_free.
58950         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58951         acl_free_text function. Require AC_C_INLINE.
58952
58953 2008-05-22  Bruno Haible  <bruno@clisp.org>
58954
58955         Make copy_acl work on MacOS X 10.5.
58956         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58957         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58958         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58959         If MODE_INSIDE_ACL, don't assume that every system has the same text
58960         representation for ACLs as FreeBSD.
58961         * lib/copy-acl.c (copy_acl): Add support for platforms with
58962         !MODE_INSIDE_ACL.
58963         * lib/file-has-acl.c (file_has_acl): Likewise.
58964         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58965         FreeBSD, MacOS X, or IRIX, respectively.
58966
58967 2008-05-22  Bruno Haible  <bruno@clisp.org>
58968
58969         * lib/acl.h: Don't include <sys/acl.h>.
58970         (GETACLCNT): Move fallback to lib/acl-internal.h.
58971         * lib/acl-internal.h: Include <sys/acl.h> here.
58972         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58973
58974 2008-05-22  Bruno Haible  <bruno@clisp.org>
58975
58976         Split off copy_acl function to separate file.
58977         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58978         * lib/acl.c (copy_acl): Moved function to separate file.
58979         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58980         * modules/acl (Files): Add lib/copy-acl.c.
58981         (Makefiles.am): Augment lib_SOURCES.
58982
58983 2008-05-22  Bruno Haible  <bruno@clisp.org>
58984
58985         * modules/copy-file-tests: New file.
58986         * tests/test-copy-file.sh: New file.
58987         * tests/test-copy-file.c: New file.
58988         * tests/test-copy-file-sameacls.c: New file.
58989
58990 2008-05-22  Eric Blake  <ebb9@byu.net>
58991
58992         Avoid gcc warning.
58993         * tests/test-memcmp.c (main): Pass NULL indirectly.
58994
58995 2008-05-21  Bruno Haible  <bruno@clisp.org>
58996
58997         Add reference doc about ACLs.
58998         * doc/acl-resources.txt: New file.
58999         * doc/acl-cygwin.txt: New file.
59000
59001 2008-05-21  Bruno Haible  <bruno@clisp.org>
59002
59003         Avoid one more warning from gcc.
59004         * lib/vasnprintf.c (IF_LINT): Update comments.
59005         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59006
59007 2008-05-21  Jim Meyering  <meyering@redhat.com>
59008
59009         avoid a warning from gcc
59010         * lib/vasnprintf.c (IF_LINT): Define.
59011         (scale10_round_decimal_long_double):
59012         Use it to avoid a "may be used uninitialized" warning.
59013         (scale10_round_decimal_double): Likewise.
59014
59015 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59016
59017         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59018         declared.
59019
59020 2008-05-20  Bruno Haible  <bruno@clisp.org>
59021
59022         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59023         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59024
59025 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59026
59027         * modules/memcmp-tests: New file.
59028         * tests/test-memcmp.c: New file.
59029
59030 2008-05-19  Bruno Haible  <bruno@clisp.org>
59031
59032         * modules/propername (Notice, configure.ac): Put quoted "..." into
59033         --keyword option.
59034         * lib/propername.h: Update comments accordingly.
59035         Reported by Eric Blake.
59036
59037 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59038
59039         * modules/getpass-gnu (Depends-on): Add fseeko.
59040
59041 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59042
59043         * modules/base64-tests: New file.
59044
59045 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59046
59047         * lib/base64.c (base64_decode_ctx): If a decode context structure
59048         was passed in use it to ignore newlines.  If a context structure
59049         was _not_ passed in, continue to treat newlines as garbage (this
59050         is the historical behavior).  Formerly base64_decode.
59051         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59052         takes a decode context structure.
59053         * lib/base64.h (base64_decode): Macro for four-argument calls.
59054         (base64_decode_alloc): Likewise.
59055         * lib/base64.c (base64_decode_ctx): If a decode context structure
59056         was passed in use it to ignore newlines.  If a context structure
59057         was _not_ passed in, continue to treat newlines as garbage (this
59058         is the historical behavior).  Formerly base64_decode.
59059         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59060         takes a decode context structure.
59061         * lib/base64.h (base64_decode): Macro for four-argument calls.
59062         (base64_decode_alloc): Likewise.
59063
59064 2008-05-19  Jim Meyering  <meyering@redhat.com>
59065
59066         avoid a warning from gcc
59067         * lib/trim.c (IF_LINT): Define.
59068         (trim2): Use it to avoid a "may be used uninitialized" warning.
59069
59070         Fix doc typo.
59071         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59072
59073 2008-05-19  Bruno Haible  <bruno@clisp.org>
59074
59075         * doc/glibc-functions/getpass.texi: Document limits of other
59076         implementations.
59077
59078 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59079             Bruno Haible <bruno@clisp.org>
59080
59081         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59082
59083 2008-05-18  Bruno Haible  <bruno@clisp.org>
59084
59085         * modules/propername: New file, from GNU gettext.
59086         * lib/propername.h: New file, from GNU gettext.
59087         * lib/propername.c: New file, from GNU gettext.
59088         * MODULES.html.sh (Internationalization functions): Add propername.
59089
59090 2008-05-16  Jim Meyering  <meyering@redhat.com>
59091             Bruno Haible  <bruno@clisp.org>
59092
59093         Avoid some warnings from "gcc -Wshadow".
59094         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59095
59096 2008-05-15  Eric Blake  <ebb9@byu.net>
59097
59098         Extend previous patch to cygwin 1.7.0.
59099         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59100         fast implementation in cygwin >= 1.7.0.
59101         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59103
59104 2008-05-15  Bruno Haible  <bruno@clisp.org>
59105
59106         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59107         implementation in glibc >= 2.9.
59108         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59110
59111 2008-05-15  Bruno Haible  <bruno@clisp.org>
59112
59113         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59114         (Unicode string functions): Add unilbrk/*.
59115         Reported by Karl Berry.
59116
59117 2008-05-15  Eric Blake  <ebb9@byu.net>
59118
59119         Fix violation of <stdbool.h> replacement in regex.
59120         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59121         * lib/regexec.c (re_search_internal): Likewise.
59122         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59123
59124 2008-05-15  Jim Meyering  <meyering@redhat.com>
59125
59126         avoid distracting test output when git or cvs is not found
59127         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59128         * tests/test-vc-list-files-git.sh: Likewise.
59129
59130 2008-05-15  Eric Blake  <ebb9@byu.net>
59131
59132         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59133         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59134         glibc version.
59135         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59136         * doc/posix-functions/strstr.texi (strstr): Likewise.
59137         * lib/str-two-way.h (MAX): Sychronize with glibc.
59138
59139 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59140
59141         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59142         opr.ctx_type.
59143         (calc_first): Initialize constraint field.
59144         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59145         Fix grammar.
59146         (duplicate_node): Merge constraint field for all node types.
59147         (calc_eclosure_iter): Look at constraint field for all node types.
59148         * lib/regex_internal.c (create_cd_newstate): Don't look at
59149         opr.ctx_type.
59150
59151 2008-05-14  Bruno Haible  <bruno@clisp.org>
59152
59153         Help GCC to do better code generation.
59154         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59155         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59156         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59157         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59158         Declare with attribute 'malloc' if supported.
59159
59160 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59161
59162         use "echo STR|wc -c" rather than unportable "expr length STR"
59163         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59164         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59165
59166 2008-05-14  Jim Meyering  <meyering@redhat.com>
59167
59168         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59169         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59170         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59171         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59172         via Collin Lasse.
59173
59174 2008-05-14  Eric Blake  <ebb9@byu.net>
59175
59176         Avoid quadratic growth in gl_LIBSOURCES.
59177         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59178         Suggested by Bruno Haible.
59179
59180         Test xmemdup0.
59181         * modules/xmemdup0-tests: New file.
59182         * tests/test-xmemdup0.c: Likewise.
59183
59184 2008-05-13  Eric Blake  <ebb9@byu.net>
59185
59186         Split xmemdup0 into its own module.
59187         * modules/xmemdup0: New file.
59188         * lib/xmemdup0.h: Likewise.
59189         * lib/xmemdup0.c: Likewise.
59190         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59191         * lib/xalloc.h (xmemdup0): Remove.
59192         * lib/xmalloc.c (xmemdup0): Likewise.
59193
59194 2008-05-13  Eric Blake  <ebb9@byu.net>
59195             Bruno Haible  <bruno@clisp.org>
59196
59197         Reduce number of forks required during autoconf.
59198         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59199         and gl_LIBSOURCES_DIR.
59200         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59201         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59202         m4_syscmd per file.
59203         <m4_foreach_w>: Move...
59204         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59205
59206 2008-05-13  Eric Blake  <ebb9@byu.net>
59207
59208         * gnulib-tool: Fix various comment typos.
59209
59210 2008-05-12  Bruno Haible  <bruno@clisp.org>
59211
59212         Tailor the linebreaking algorithm.
59213         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59214
59215 2008-05-12  Bruno Haible  <bruno@clisp.org>
59216
59217         Update to Unicode 5.0.0.
59218         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59219         LBP_JV, LBP_JT. Redistribute values.
59220         (unilbrk_table): Change size.
59221         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59222         Unicode TR#14 rev. 22.
59223         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59224         LBP_JV, LBP_JT. Redistribute values.
59225         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59226         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59227         Update.
59228         * lib/unilbrk/lbrkprop1.h: Regenerated.
59229         * lib/unilbrk/lbrkprop2.h: Regenerated.
59230         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59231         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59232         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59233         Likewise.
59234         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59235         Likewise.
59236         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59237         result.
59238         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59239         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59240         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59241         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59242         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59243         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59244
59245 2008-05-11  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59248
59249 2008-05-11  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59252         * modules/unilbrk/gen-lbrk: New file.
59253
59254 2008-05-11  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59257         * m4/sha512.m4 (gl_SHA512): Likewise.
59258
59259 2008-05-11  Jim Meyering  <meyering@redhat.com>
59260
59261         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59262         * modules/crypto/sha256: New file.
59263         * modules/crypto/sha512: Likewise.
59264         * lib/sha256.c: Likewise.
59265         * lib/sha256.h: Likewise.
59266         * lib/sha512.c: Likewise.
59267         * lib/sha512.h: Likewise.
59268         * lib/u64.h: Likewise.
59269         * m4/sha256.m4: Likewise.
59270         * m4/sha512.m4: Likewise.
59271         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59272
59273 2008-05-10  Bruno Haible  <bruno@clisp.org>
59274
59275         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59276         (Input/Output <stdio.h>): Add xprintf.
59277         (Signal handling <signal.h>): Add strsignal.
59278         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59279         (Core language properties): Add func.
59280         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59281         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59282         strings.
59283         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59284         (Input/output): New section.
59285         (File system functions): Add openat-die, stat-macros.
59286         (Networking functions): Add sockets.
59287         (Unicode string functions): Add unictype/*.
59288         (Support for building libraries and executables): Add gperf.
59289         (Support for building documentation): Add agpl-3.0.
59290         (Misc): Add nocrash.
59291
59292 2008-05-10  Bruno Haible  <bruno@clisp.org>
59293
59294         * modules/unictype/gen-ctype: New file.
59295
59296 2008-05-10  Jim Meyering  <meyering@redhat.com>
59297
59298         Make chdir-safer.c more efficient on a system with no symlinks.
59299         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59300         also if ELOOP is zero.  Suggested by Bruno Haible.
59301
59302         Make chdir-safer.c slightly safer.
59303         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59304         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59305
59306         Avoid compile failure on systems without ELOOP (like mingw).
59307         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59308         Reported by Bruno Haible.
59309
59310 2008-05-10  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59313         (is_utf8_encoding): Use a case-insensitive comparison.
59314         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59315         streq.
59316
59317 2008-05-10  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59320         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59321         * lib/unilbrk/ulc-common.h (iconv_string_length,
59322         iconv_string_keeping_offsets): Remove declarations.
59323         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59324         Don't include <iconv.h>, streq.h, xsize.h.
59325         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59326         conversion.
59327         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59328         <iconv.h>, streq.h, xsize.h.
59329         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59330         conversion.
59331         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59332         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59333         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59334         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59335
59336 2008-05-10  Bruno Haible  <bruno@clisp.org>
59337
59338         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59339         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59340
59341         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59342         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59343
59344         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59345         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59346
59347         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59348         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59349
59350         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59351         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59352
59353         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59354         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59355
59356         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59357         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59358
59359         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59360         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59361
59362 2008-05-10  Bruno Haible  <bruno@clisp.org>
59363
59364         Split up 'linebreak' module.
59365         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59366         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59367         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59368         modifications.
59369         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59370         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59371         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59372         lib/linebreak.c.
59373         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59374         lib/linebreak.c.
59375         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59376         lib/linebreak.c.
59377         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59378         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59379         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59380         lib/linebreak.c.
59381         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59382         lib/linebreak.c.
59383         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59384         lib/linebreak.c.
59385         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59386         lib/linebreak.c.
59387         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59388         lib/linebreak.c.
59389         * modules/unilbrk/base: New file.
59390         * modules/unilbrk/tables: New file.
59391         * modules/unilbrk/u8-possible-linebreaks: New file.
59392         * modules/unilbrk/u16-possible-linebreaks: New file.
59393         * modules/unilbrk/u32-possible-linebreaks: New file.
59394         * modules/unilbrk/ulc-common: New file.
59395         * modules/unilbrk/ulc-possible-linebreaks: New file.
59396         * modules/unilbrk/u8-width-linebreaks: New file.
59397         * modules/unilbrk/u16-width-linebreaks: New file.
59398         * modules/unilbrk/u32-width-linebreaks: New file.
59399         * modules/unilbrk/ulc-width-linebreaks: New file.
59400         * lib/linebreak.h: Remove file.
59401         * lib/linebreak.c: Remove file.
59402         * m4/linebreak.m4: Remove file.
59403         * modules/linebreak: Remove file.
59404         * NEWS: Mention the changes.
59405
59406 2008-05-09  Eric Blake  <ebb9@byu.net>
59407
59408         Add xmemdup0.
59409         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59410         implementation.
59411         * lib/xmalloc.c (xmemdup0): New C implementation.
59412
59413 2008-05-08  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59416
59417 2008-05-07  Eric Blake  <ebb9@byu.net>
59418
59419         Support cross-compilation of <wctype.h>.
59420         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59421         AC_CACHE_CHECK.
59422
59423 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59424
59425         * build-aux/vc-list-files: Add support for bzr.
59426
59427 2008-05-03  Jim Meyering  <meyering@redhat.com>
59428
59429         avoid failed assertion with tight malloc
59430         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59431
59432 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59433
59434         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59435         are needed from arpa/inet.h.
59436         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59437         Reported by Bruno Haible.
59438
59439 2008-05-02  Jim Meyering  <meyering@redhat.com>
59440
59441         avoid compilation error on FreeBSD 6
59442         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59443
59444 2008-05-01  Jim Meyering  <meyering@redhat.com>
59445
59446         useless-if-before-free: correct --help's exit status description
59447         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59448         for one or more matches, etc.  Reported by Bruno Haible.
59449
59450         vc-list-files: make the stand-alone gnulib test work
59451         * modules/vc-list-files-tests (configure.ac):
59452         Define and AC_SUBST abs_aux_dir.
59453         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59454         $(abs_top_srcdir) to each script and having each of them
59455         duplicate the work of setting PATH, set PATH here, using
59456         the new variable, abs_aux_dir instead.
59457         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59458         * tests/test-vc-list-files-git.sh: Likewise.
59459         Reported by Bruno Haible.
59460
59461 2008-05-01  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59464         reallocation. Rename 'done' to 'found_delimiter'.
59465
59466 2008-05-01  Jim Meyering  <meyering@redhat.com>
59467
59468         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59469         * build-aux/vc-list-files: Use `...`, not $(...).
59470
59471 2008-04-30  Jim Meyering  <meyering@redhat.com>
59472
59473         add tests for vc-list-files
59474         * modules/vc-list-files-tests: New module.
59475         * tests/test-vc-list-files-cvs.sh: New file.
59476         * tests/test-vc-list-files-git.sh: New file.
59477
59478         avoid a warning from gcc
59479         * lib/getndelim2.c (IF_LINT): Define.
59480         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59481
59482         vc-list-files: work properly with build-aux/cvsu, too
59483         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59484         to all cvs-based clauses.
59485
59486         vc-list-files: work properly in the CVS+awk case, too
59487         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59488
59489         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59490         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59491         take more than one file argument, so .  Add quotes, just in case $dir
59492         ever contains a shell meta-character.  Prompted by Soren Hansen in
59493         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59494
59495 2008-04-29  Eric Blake  <ebb9@byu.net>
59496
59497         Optimize getndelim2 to use block operations when possible.
59498         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59499         freadseek, and memchr2.
59500         * lib/getndelim2.c (getndelim2): Use them for block reads.
59501
59502 2008-04-29  Bruno Haible  <bruno@clisp.org>
59503
59504         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59505         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59506         * modules/inet_ntop (Depends-on): Add extensions.
59507         * modules/inet_pton (Depends-on): Likewise.
59508         Reported by Simon Josefsson.
59509
59510 2008-04-29  Jim Meyering  <meyering@redhat.com>
59511
59512         When the is more than one match in a block, match all of them.
59513         * build-aux/useless-if-before-free: Iterate through each block
59514         until there are no more matches.
59515
59516         Fix broken useless-if-before-free script.
59517         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59518         the expression to match cast of argument to free-like function.
59519
59520 2008-04-29  Eric Blake  <ebb9@byu.net>
59521
59522         Use new header.
59523         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59524
59525 2008-04-29  Jim Meyering  <meyering@redhat.com>
59526
59527         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59528         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59529         by gnulib to exist and to declare e.g., inet_ntop.
59530         Don't include "inet_ntop.h", now removed.
59531
59532         * m4/arpa_inet_h.m4: Remove trailing blanks.
59533
59534 2008-04-29  Eric Blake  <ebb9@byu.net>
59535
59536         Silence valgrind on safe reads beyond potential array bounds.
59537         * lib/rawmemchr.valgrind: New file.
59538         * lib/strchrnul.valgrind: Likewise.
59539         * modules/rawmemchr (Files): Distribute new file.
59540         * modules/strchrnul (Files): Likewise.
59541         Suggested by Bruno Haible.
59542
59543 2008-04-29  Bruno Haible  <bruno@clisp.org>
59544
59545         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59546         (inet_ntop, inet_pton): Change portability warning's wording.
59547         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59548         Invoke gl_CHECK_NEXT_HEADERS.
59549         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59550         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59551         set ARPA_INET_H.
59552         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59553         * modules/arpa_inet (Description): No longer only for systems that
59554         lack it.
59555         (Depends-on): Add include_next.
59556         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59557         HAVE_ARPA_INET_H.
59558
59559 2008-04-29  Jim Meyering  <meyering@redhat.com>
59560
59561         * modules/mkdir (License): Re-license as LGPLv2+.
59562
59563 2008-04-29  Bruno Haible  <bruno@clisp.org>
59564
59565         * modules/rawmemchr (Maintainer): Set to Eric.
59566         * modules/strchrnul (Maintainer): Likewise.
59567
59568 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59569
59570         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59571         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59572
59573         * modules/arpa_inet (arpa/inet.h): Use them.
59574
59575 2008-04-28  Eric Blake  <ebb9@byu.net>
59576
59577         Test getndelim2.
59578         * modules/getndelim2-tests: New file.
59579         * tests/test-getndelim2.c: Likewise.
59580         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59581         stream.
59582         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59583
59584         * MODULES.html.sh: Document new module.
59585
59586 2008-04-20  Bruno Haible  <bruno@clisp.org>
59587
59588         * lib/c-stack.c (die): Use raise.
59589         * modules/c-stack (Depends-on): Add raise.
59590
59591 2008-04-28  Bruno Haible  <bruno@clisp.org>
59592
59593         Expect rpmatch to be declared.
59594         * lib/yesno.c (rpmatch): Remove declaration.
59595
59596         Declare rpmatch.
59597         * lib/stdlib.in.h (rpmatch): New declaration.
59598         * lib/rpmatch.c: Include <stdlib.h> first.
59599         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59600         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59602         HAVE_RPMATCH.
59603         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59604         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59605         (Include): Set to <stdlib.h>.
59606         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59607         HAVE_RPMATCH.
59608         * NEWS: Document the change.
59609
59610 2008-04-28  Bruno Haible  <bruno@clisp.org>
59611
59612         Change rpmatch to use nl_langinfo when appropriate.
59613         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59614         (N_): New macro.
59615         (localized_pattern): New function/macro.
59616         (try): Remove match, nomatch arguments. Copy the pattern into safe
59617         memory before caching it.
59618         (rpmatch): Use localized_pattern. Add translator comments.
59619         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59620         Suggested by Eric Blake.
59621         * modules/rpmatch (Depends-on): Add stdbool.
59622
59623 2008-04-28  Eric Blake  <ebb9@byu.net>
59624
59625         Add rawmemchr module, matching glibc.
59626         * modules/string (Makefile.am): New indicator.
59627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59628         * lib/string.in.h (rawmemchr): Declare when appropriate.
59629         * modules/rawmemchr: New file.
59630         * m4/rawmemchr.m4: Likewise.
59631         * lib/rawmemchr.c: Likewise.
59632         * modules/rawmemchr-tests: Likewise.
59633         * tests/test-rawmemchr.c: Likewise.
59634         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59635         module.
59636         * modules/strchrnul (Depends-on): Add rawmemchr.
59637         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59638
59639         Whitespace cleanup.
59640         * tests/test-strchrnul.c: Reindent.
59641         * lib/strchrnul.c: Likewise.
59642
59643         Optimize and test strchrnul.
59644         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59645         * modules/strchrnul-tests: New file.
59646         * tests/test-strchrnul.c: Likewise.
59647
59648         Remove intprops dependency.
59649         * modules/memchr (Depends-on): Remove intprops.
59650         * modules/memrchr (Depends-on): Likewise.
59651         * modules/memchr2 (Depends-on): Likewise.
59652         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59653         * lib/memrchr.c (__memrchr): Likewise.
59654         * lib/memrchr2.c (memchr2): Likewise.
59655         Reported by Simon Josefsson.
59656
59657 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59658
59659         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59660         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59661
59662 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59663
59664         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59665
59666         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59667
59668         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59669
59670         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59671         declarations.
59672         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59673
59674         * m4/inet_pton.m4: Don't check for header files.
59675
59676         * m4/inet_ntop.m4: Don't check for header files.
59677
59678 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59679
59680         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59681         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59682         trigger for cygwin).
59683         Reported by Bruno Haible  <bruno@clisp.org>.
59684
59685 2008-04-28  Bruno Haible  <bruno@clisp.org>
59686
59687         * doc/posix-functions/strdup.texi: Mention mingw problem.
59688
59689 2008-04-27  Bruno Haible  <bruno@clisp.org>
59690
59691         * modules/stat-time-tests (Depends-on): Add sleep.
59692         * tests/test-stat-time.c (force_unlink): New function.
59693         (cleanup): Use it.
59694         (test_mtime): Remove the ctime related tests.
59695         (test_ctime): New function, containing the ctime related tests.
59696         (main): Call test_ctime, except on native Windows platforms.
59697
59698 2008-04-27  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/rpmatch.c (rpmatch): Add some comments.
59701         Reported by James Youngman <jay@gnu.org>.
59702
59703 2008-04-27  Bruno Haible  <bruno@clisp.org>
59704
59705         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59706         quiet NaNs.
59707
59708 2008-04-27  Bruno Haible  <bruno@clisp.org>
59709
59710         Make test-yesno.sh work on mingw.
59711         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59712         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59713         (main): Set stdin to binary mode.
59714         * modules/yesno-tests (Depends-on): Add binary-io.
59715
59716 2008-04-27  Bruno Haible  <bruno@clisp.org>
59717
59718         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59719         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59720         argument that lie outside the IEEE 854 domain.
59721         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59722         (gl_ISFINITE): Use it.
59723         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59724
59725 2008-04-27  Bruno Haible  <bruno@clisp.org>
59726
59727         Allow local renaming in config.h.
59728         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59729
59730 2008-04-27  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/memchr.c (__memchr): Change type of 'i'.
59733         * lib/memchr2.c (memchr2): Likewise.
59734
59735 2008-04-26  Eric Blake  <ebb9@byu.net>
59736         and Bruno Haible  <bruno@clisp.org>
59737
59738         Optimize and test memrchr.
59739         * modules/memrchr (Depends-on): Add intprops.
59740         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59741         * modules/memrchr-tests: New file.
59742         * tests/test-memrchr.c: New file.
59743
59744 2008-04-26  Bruno Haible  <bruno@clisp.org>
59745
59746         Add tentative support for DragonFly BSD.
59747         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59748         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59749         fp.
59750         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59751         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59752         * lib/fpurge.c (fpurge): Likewise.
59753         * lib/freadable.c (freaadable): Likewise.
59754         * lib/freadahead.c (freadahead): Likewise.
59755         * lib/freading.c (freading): Likewise.
59756         * lib/freadptr.c (freadptr): Likewise.
59757         * lib/freadseek.c (freadptrinc): Likewise.
59758         * lib/fseeko.c (fseeko): Likewise.
59759         * lib/fseterr.c (fseterr): Likewise.
59760         * lib/fwritable.c (fwritable): Likewise.
59761         * lib/fwriting.c (fwriting): Likewise.
59762
59763 2008-04-26  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/stdio-impl.h: New file.
59766         * lib/fbufmode.c: Include stdio-impl.h.
59767         (fbufmode): Use fp_, remove redundant #defines.
59768         * lib/fflush.c: Include stdio-impl.h.
59769         (clear_ungetc_buffer): Remove redundant #defines.
59770         * lib/fpurge.c: Include stdio-impl.h.
59771         (fpurge): Remove redundant #defines.
59772         * lib/freadable.c: Include stdio-impl.h.
59773         (freadable): Remove redundant #defines.
59774         * lib/freadahead.c: Include stdio-impl.h.
59775         (freadahead): Remove redundant #defines.
59776         * lib/freading.c: Include stdio-impl.h.
59777         (freading): Remove redundant #defines.
59778         * lib/freadptr.c: Include stdio-impl.h.
59779         (freadptr): Remove redundant #defines.
59780         * lib/freadseek.c: Include stdio-impl.h.
59781         (freadptrinc): Remove redundant #defines.
59782         * lib/fseeko.c: Include stdio-impl.h.
59783         (rpl_fseeko): Remove redundant #defines.
59784         * lib/fseterr.c: Include stdio-impl.h.
59785         (fseterr): Remove redundant #defines.
59786         * lib/fwritable.c: Include stdio-impl.h.
59787         (fwritable: Remove redundant #defines.
59788         * lib/fwriting.c: Include stdio-impl.h.
59789         (fwriting): Remove redundant #defines.
59790         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59791         * modules/fflush (Files): Likewise.
59792         * modules/fpurge (Files): Likewise.
59793         * modules/freadable (Files): Likewise.
59794         * modules/freadahead (Files): Likewise.
59795         * modules/freading (Files): Likewise.
59796         * modules/freadptr (Files): Likewise.
59797         * modules/freadseek (Files): Likewise.
59798         * modules/fseeko (Files): Likewise.
59799         * modules/fseterr (Files): Likewise.
59800         * modules/fwritable (Files): Likewise.
59801         * modules/fwriting (Files): Likewise.
59802
59803 2008-04-26  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59806         restore_seek_optimization, update_fpos_cache): New functions, extracted
59807         from rpl_fflush.
59808         (rpl_fflush): Use them.
59809         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59810         (gl_REPLACE_FFLUSH): Use it.
59811
59812 2008-04-26  Bruno Haible  <bruno@clisp.org>
59813
59814         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59815         on Solaris.
59816         * tests/test-xstrtoimax.sh: Likewise.
59817         * tests/test-xstrtoumax.sh: Likewise.
59818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59819
59820 2008-04-26  Bruno Haible  <bruno@clisp.org>
59821
59822         * modules/memchr-tests: New file.
59823         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59824
59825 2008-04-26  Eric Blake  <ebb9@byu.net>
59826             Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/memchr.c: Include intprops.h.
59829         (__memchr): Optimize parallel detection of matching bytes. Rename local
59830         variables. Add explanatory comments.
59831
59832 2008-04-26  Bruno Haible  <bruno@clisp.org>
59833
59834         Fix module 'memchr', broken since 2000-10-28.
59835         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59836
59837 2008-04-26  Bruno Haible  <bruno@clisp.org>
59838
59839         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59840         comments.
59841
59842 2008-04-25  Eric Blake  <ebb9@byu.net>
59843
59844         Use native fstatat on cygwin 1.7.0.
59845         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59846         first.
59847
59848 2008-04-23  Eric Blake  <ebb9@byu.net>
59849
59850         Improve memchr2 performance.
59851         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59852         NUL bytes.
59853         * modules/memchr2 (Depends-on): Use intprops.h.
59854
59855 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59856
59857         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59858         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59859         <blp@cs.stanford.edu>.
59860
59861 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59862
59863         * lib/arpa_inet.in.h: New file.
59864
59865         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59866         (Makefile.am): Sed in substitute header file.
59867
59868         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59869         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59870
59871         * modules/inet_ntop (configure.ac): Use
59872         gl_ARPA_INET_MODULE_INDICATOR.
59873
59874         * modules/inet_pton (configure.ac): Use
59875         gl_ARPA_INET_MODULE_INDICATOR.
59876
59877 2008-04-22  Jim Meyering  <meyering@redhat.com>
59878
59879         * modules/verify (License): Re-license as LGPLv2+.
59880
59881 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59882
59883         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59884         parameter to void* as per POSIX standard (MinGW uses char*).
59885
59886 2008-04-21  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59889         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59890         Define to replacements if REPLACE_ISWCNTRL is 1.
59891         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59892         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59893         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59894         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59895         what it fixes.
59896         * doc/posix-functions/iswalpha.texi: Likewise.
59897         * doc/posix-functions/iswblank.texi: Likewise.
59898         * doc/posix-functions/iswcntrl.texi: Likewise.
59899         * doc/posix-functions/iswdigit.texi: Likewise.
59900         * doc/posix-functions/iswgraph.texi: Likewise.
59901         * doc/posix-functions/iswlower.texi: Likewise.
59902         * doc/posix-functions/iswprint.texi: Likewise.
59903         * doc/posix-functions/iswpunct.texi: Likewise.
59904         * doc/posix-functions/iswspace.texi: Likewise.
59905         * doc/posix-functions/iswupper.texi: Likewise.
59906         * doc/posix-functions/iswxdigit.texi: Likewise.
59907         Reported by Alain Guibert.
59908
59909 2008-04-21  Bruno Haible  <bruno@clisp.org>
59910
59911         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59912         Patch by Alain Guibert.
59913
59914 2008-04-21  Bruno Haible  <bruno@clisp.org>
59915
59916         Fix test failures on mingw.
59917         * tests/test-xstrtol.c (print_no_progname): New function.
59918         (main): Install it in error_print_progname hook.
59919         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59920         * tests/test-xstrtoimax.sh: Likewise.
59921         * tests/test-xstrtoumax.sh: Likewise.
59922
59923 2008-04-21  Bruno Haible  <bruno@clisp.org>
59924
59925         Fix test failure on mingw.
59926         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59927
59928 2008-04-21  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59931         Actually assign a value.
59932
59933 2008-04-20  Bruno Haible  <bruno@clisp.org>
59934
59935         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59936         take 2.
59937         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59938         'canonicalize-lgpl' module is also used.
59939         * lib/canonicalize-lgpl.c: Undo last change.
59940         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59941
59942 2008-04-20  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59945         config.h. Provide _mkdir based fallback for mingw.
59946         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59947         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59948         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59949         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59950         rather than defining mkdir in config.h.
59951         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59952         (gl_SYS_STAT_H_DEFAULTS): New macro.
59953         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59954         HAVE_IO_H any more.
59955         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59956         HAVE_DECL_MKDIR and HAVE_IO_H.
59957
59958 2008-04-20  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/isapipe.c: Port to native Windows platforms.
59961
59962 2008-04-20  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59965
59966 2008-04-21  Eric Blake  <ebb9@byu.net>
59967
59968         Work around preprocessors that don't handle UINTMAX_MAX.
59969         * lib/memchr2.c (memchr2): Avoid embedded #if.
59970         Reported by Alain Guibert, fix suggested by Bruno Haible.
59971
59972 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59973
59974         * doc/posix-functions/strftime.texi (strftime): Explain better
59975         Windows incompatibility.  Suggested by Micah Cowan
59976         <micah@cowan.name>.
59977
59978 2008-04-20  Bruno Haible  <bruno@clisp.org>
59979
59980         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59981         unistr/u8-mblen.
59982
59983 2008-04-20  Bruno Haible  <bruno@clisp.org>
59984
59985         Fix test failure on platforms with non-GNU iconv.
59986         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59987         (U_TO_U8): Use it, rather than u16_to_u8.
59988         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59989         units at the end of the input string.
59990         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59991
59992 2008-04-20  Bruno Haible  <bruno@clisp.org>
59993
59994         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59995         when the resulting length is 0.
59996         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59997
59998 2008-04-20  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60001         works.
60002         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60003
60004 2008-04-20  Bruno Haible  <bruno@clisp.org>
60005
60006         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60007         * modules/tsearch-tests (configure.ac): Test for initstate function.
60008
60009 2008-04-20  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60012         for nlink_t if missing.
60013         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60014
60015 2008-04-19  Bruno Haible  <bruno@clisp.org>
60016
60017         Work around snprintf bug on Linux libc5.
60018         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60020         gl_SNPRINTF_SIZE1.
60021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60022         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60023         that test failed.
60024         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60025         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60026         * modules/snprintf (Files): Add m4/printf.m4.
60027         * modules/vsnprintf (Files): Likewise.
60028         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60029         * doc/posix-functions/vsnprintf.texi: Likewise.
60030
60031 2008-04-19  Bruno Haible  <bruno@clisp.org>
60032
60033         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60034         from 0.0058 to less than 10^-7.
60035
60036 2008-04-19  Bruno Haible  <bruno@clisp.org>
60037
60038         Fix rounding when a precision is given.
60039         * lib/vasnprintf.c (is_borderline): New function.
60040         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60041         9...9x.
60042         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60043         %e, %g.
60044         * tests/test-vasprintf-posix.c (test_function): Likewise.
60045         * tests/test-snprintf-posix.h (test_function): Likewise.
60046         * tests/test-sprintf-posix.h (test_function): Likewise.
60047         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60048         * tests/test-printf-posix.h (test_function): Likewise.
60049         * tests/test-printf-posix.output: Update.
60050         Reported by John Darrington <john@darrington.wattle.id.au> via
60051         Ben Pfaff <blp@cs.stanford.edu>.
60052
60053 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60054
60055         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60056         Suggested by Bruno Haible <bruno@clisp.org>.
60057
60058 2008-04-17  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60061         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60062         implementation.
60063         Patch by Bruce Merry <bmerry@gmail.com>.
60064
60065 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60066
60067         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60068         doesn't work under Windows.
60069
60070 2008-04-16  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60073         New macros.
60074         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60075         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60076         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60077         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60078         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60079         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60080         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60081         macros.
60082         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60083         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60084         Northern Sotho, Uighur.
60085
60086 2008-04-16  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60089         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60090         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60091         Reported by Daniel Bergström <daniel@octocode.com>.
60092
60093 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60094             Bruno Haible  <bruno@clisp.org>
60095
60096         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60097         function.
60098         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60099         New functions, mostly extracted from gl_locale_name_default.
60100         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60101
60102 2008-04-16  Eric Blake  <ebb9@byu.net>
60103
60104         Adjust strtod detection to catch glibc 2.7 bug.
60105         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60106         Reported by John Gatewood Ham.
60107
60108 2008-04-16  Bruno Haible  <bruno@clisp.org>
60109
60110         Add tentative support for Linux libc5.
60111         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60112         * lib/fpurge.c (fpurge): Likewise.
60113         * lib/freadable.c (freadable): Likewise.
60114         * lib/freadahead.c (freadahead): Likewise.
60115         * lib/freading.c (freading): Likewise.
60116         * lib/freadptr.c (freadptr): Likewise.
60117         * lib/freadseek.c (freadptrinc): Likewise.
60118         * lib/fseeko.c (rpl_fseeko): Likewise.
60119         * lib/fseterr.c (fseterr): Likewise.
60120         * lib/fwritable.c (fwritable): Likewise.
60121         * lib/fwriting.c (fwriting): Likewise.
60122         Reported by Alain Guibert <alguibert+bts@free.fr>.
60123
60124 2008-04-15  Bruno Haible  <bruno@clisp.org>
60125
60126         * modules/mathl (configure.ac): Define module indicator.
60127
60128 2008-04-15  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/logl.c (logl): Remove unused variables.
60131
60132 2008-04-15  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60135         fails.
60136
60137 2008-04-15  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/trim.c (trim2): Fix argument of isspace() macro.
60140
60141 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60142
60143         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60144         to 0.
60145         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60146
60147 2008-04-14  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60150         AC_LANG_PROGRAM argument.
60151         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60152         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60154         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60155         * m4/math_h.m4 (gl_MATH_H): Likewise.
60156         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60158         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60159         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60160         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60161         * m4/regex.m4 (gl_REGEX): Likewise.
60162         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60163         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60165         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60166         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60167         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60170
60171 2008-04-14  Jim Meyering  <meyering@redhat.com>
60172
60173         test-strtod: fix typos: s/abs/fabs/
60174         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60175
60176 2008-04-13  Bruno Haible  <bruno@clisp.org>
60177
60178         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60179         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60180         module is also used and while not building the reloc-wrapper.
60181
60182 2008-04-13  Bruno Haible  <bruno@clisp.org>
60183
60184         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60185
60186 2008-04-13  Bruno Haible  <bruno@clisp.org>
60187
60188         Fix AIX compilation failure introduced on 2008-04-02.
60189         * tests/test-frexp.c (exp): Undefine before redefining.
60190         * tests/test-frexpl.c (exp): Likewise.
60191
60192 2008-04-13  Bruno Haible  <bruno@clisp.org>
60193
60194         Work around a HP-UX stdio bug.
60195         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60196         * tests/test-ftello.c (main): Likewise.
60197         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60198         * doc/posix-functions/ftello.texi: Likewise.
60199
60200 2008-04-13  Bruno Haible  <bruno@clisp.org>
60201
60202         Make test-signbit pass on HP-UX/hppa.
60203         * tests/test-signbit.c (minus_zerol): New variable.
60204         (test_signbitl): Use it.
60205
60206 2008-04-13  Bruno Haible  <bruno@clisp.org>
60207
60208         Make truncl work on OSF/1 4.0.
60209         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60210         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60211         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60213         HAVE_DECL_TRUNCL.
60214         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60215         HAVE_DECL_TRUNCL.
60216         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60217
60218 2008-04-13  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60221
60222 2008-04-13  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60225         expression, so as to avoid HP-UX 11 cc compiler bug.
60226
60227 2008-04-13  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60230
60231 2008-04-13  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/git-merge-changelog.c: Remove empty declaration outside of
60234         functions.
60235
60236 2008-04-13  Bruno Haible  <bruno@clisp.org>
60237
60238         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60239
60240 2008-04-13  Bruno Haible  <bruno@clisp.org>
60241
60242         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60243         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60244         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60245         also if it exists but lacks definitions of the SHUT_* macros.
60246         * modules/sys_socket (Description): Update.
60247         Reported by Elbert Pol <e.pol@chello.nl>.
60248
60249 2008-04-13  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/localcharset.c (OS2): Don't redefine if already defined.
60252         Reported by Elbert Pol <e.pol@chello.nl>.
60253
60254 2008-04-13  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/binary-io.h [__EMX__]: Include <io.h>.
60257         Reported by Elbert Pol <e.pol@chello.nl>.
60258
60259 2008-04-12  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/fpucw.h: Enable the definitions also for x86_64.
60262         Needed for NetBSD/x86_64.
60263         Reported by Thomas Klausner <tk@giga.or.at>.
60264
60265 2008-04-12  Bruno Haible  <bruno@clisp.org>
60266
60267         * tests/test-strtod.c: Include isnand.h.
60268         (main): Use isnand instead of isnan.
60269         Reported by Jim Meyering.
60270
60271 2008-04-12  Bruno Haible  <bruno@clisp.org>
60272
60273         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60274         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60275
60276 2008-04-12  Jim Meyering  <meyering@redhat.com>
60277
60278         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60279
60280 2008-04-12  Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60283         Reported by Elbert Pol <e.pol@chello.nl>.
60284
60285 2008-04-12  Eric Blake  <ebb9@byu.net>
60286
60287         Work around Solaris 10 math.h bug.
60288         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60289         (gl_MATH_H_DEFAULTS): Set up default.
60290         * modules/math (Makefile.am): Replace new indicators.
60291         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60292         * tests/test-math.c (main): Test this.
60293         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60294         * doc/posix-headers/math.texi (math.h): Mention bug.
60295         Reported by Nelson H. F. Beebe and Jim Meyering.
60296
60297 2008-04-11  Bruno Haible  <bruno@clisp.org>
60298
60299         Adapt to future versions of Apple GCC.
60300         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60301         Reported by Peter O'Gorman <peter@pogma.com>.
60302
60303 2008-04-11  Bruno Haible  <bruno@clisp.org>
60304
60305         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60306
60307 2008-04-11  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60310
60311         * modules/getaddrinfo-tests (Makefile.am): Define
60312         test_getaddrinfo_LDADD.
60313
60314 2008-04-11  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60317         (init): Fix syntax error.
60318         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60319         is declared.
60320
60321 2008-04-11  Bruno Haible  <bruno@clisp.org>
60322
60323         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60324         * modules/glob (Depends-on): Add stdbool.
60325
60326 2008-04-11  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/trim.c: Include <string.h>.
60329
60330 2008-04-11  Eric Blake  <ebb9@byu.net>
60331
60332         Avoid compile failure on OS/2.
60333         * lib/regex_internal.h (internal_function): Disable optimization
60334         on OS/2 (__EMX__), where it caused compiler error.
60335         Reported by Elbert Pol.
60336
60337 2008-04-11  Bruno Haible  <bruno@clisp.org>
60338
60339         Flush the standard error stream before aborting. Needed on mingw.
60340         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60341         * tests/test-array_list.c (ASSERT): Likewise.
60342         * tests/test-array_oset.c (ASSERT): Likewise.
60343         * tests/test-avltree_list.c (ASSERT): Likewise.
60344         * tests/test-avltree_oset.c (ASSERT): Likewise.
60345         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60346         * tests/test-binary-io.c (ASSERT): Likewise.
60347         * tests/test-byteswap.c (ASSERT): Likewise.
60348         * tests/test-c-ctype.c (ASSERT): Likewise.
60349         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60350         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60351         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60352         * tests/test-c-strstr.c (ASSERT): Likewise.
60353         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60354         * tests/test-canonicalize.c (ASSERT): Likewise.
60355         * tests/test-carray_list.c (ASSERT): Likewise.
60356         * tests/test-ceilf1.c (ASSERT): Likewise.
60357         * tests/test-ceilf2.c (ASSERT): Likewise.
60358         * tests/test-ceill.c (ASSERT): Likewise.
60359         * tests/test-count-one-bits.c (ASSERT): Likewise.
60360         * tests/test-fbufmode.c (ASSERT): Likewise.
60361         * tests/test-fflush2.c (ASSERT): Likewise.
60362         * tests/test-floorf1.c (ASSERT): Likewise.
60363         * tests/test-floorf2.c (ASSERT): Likewise.
60364         * tests/test-floorl.c (ASSERT): Likewise.
60365         * tests/test-fopen.c (ASSERT): Likewise.
60366         * tests/test-fpending.c (ASSERT): Likewise.
60367         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60368         * tests/test-fpurge.c (ASSERT): Likewise.
60369         * tests/test-freadable.c (ASSERT): Likewise.
60370         * tests/test-freadahead.c (ASSERT): Likewise.
60371         * tests/test-freading.c (ASSERT): Likewise.
60372         * tests/test-freadptr.c (ASSERT): Likewise.
60373         * tests/test-freadptr2.c (ASSERT): Likewise.
60374         * tests/test-freadseek.c (ASSERT): Likewise.
60375         * tests/test-freopen.c (ASSERT): Likewise.
60376         * tests/test-frexp.c (ASSERT): Likewise.
60377         * tests/test-frexpl.c (ASSERT): Likewise.
60378         * tests/test-fseek.c (ASSERT): Likewise.
60379         * tests/test-fseeko.c (ASSERT): Likewise.
60380         * tests/test-fstrcmp.c (ASSERT): Likewise.
60381         * tests/test-ftell.c (ASSERT): Likewise.
60382         * tests/test-ftello.c (ASSERT): Likewise.
60383         * tests/test-func.c (ASSERT): Likewise.
60384         * tests/test-fwritable.c (ASSERT): Likewise.
60385         * tests/test-fwriting.c (ASSERT): Likewise.
60386         * tests/test-getdelim.c (ASSERT): Likewise.
60387         * tests/test-getline.c (ASSERT): Likewise.
60388         * tests/test-i-ring.c (ASSERT): Likewise.
60389         * tests/test-iconv-utf.c (ASSERT): Likewise.
60390         * tests/test-iconv.c (ASSERT): Likewise.
60391         * tests/test-isfinite.c (ASSERT): Likewise.
60392         * tests/test-isnand.c (ASSERT): Likewise.
60393         * tests/test-isnanf.c (ASSERT): Likewise.
60394         * tests/test-isnanl.h (ASSERT): Likewise.
60395         * tests/test-ldexpl.c (ASSERT): Likewise.
60396         * tests/test-linked_list.c (ASSERT): Likewise.
60397         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60398         * tests/test-localename.c (ASSERT): Likewise.
60399         * tests/test-lseek.c (ASSERT): Likewise.
60400         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60401         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60402         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60403         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60404         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60405         * tests/test-mbschr.c (ASSERT): Likewise.
60406         * tests/test-mbscspn.c (ASSERT): Likewise.
60407         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60408         * tests/test-mbspbrk.c (ASSERT): Likewise.
60409         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60410         * tests/test-mbsrchr.c (ASSERT): Likewise.
60411         * tests/test-mbsspn.c (ASSERT): Likewise.
60412         * tests/test-mbsstr1.c (ASSERT): Likewise.
60413         * tests/test-mbsstr2.c (ASSERT): Likewise.
60414         * tests/test-mbsstr3.c (ASSERT): Likewise.
60415         * tests/test-memchr2.c (ASSERT): Likewise.
60416         * tests/test-memmem.c (ASSERT): Likewise.
60417         * tests/test-open.c (ASSERT): Likewise.
60418         * tests/test-printf-frexp.c (ASSERT): Likewise.
60419         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60420         * tests/test-printf-posix.c (ASSERT): Likewise.
60421         * tests/test-quotearg.c (ASSERT): Likewise.
60422         * tests/test-rbtree_list.c (ASSERT): Likewise.
60423         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60424         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60425         * tests/test-round1.c (ASSERT): Likewise.
60426         * tests/test-roundf1.c (ASSERT): Likewise.
60427         * tests/test-roundl.c (ASSERT): Likewise.
60428         * tests/test-signbit.c (ASSERT): Likewise.
60429         * tests/test-sleep.c (ASSERT): Likewise.
60430         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60431         * tests/test-snprintf.c (ASSERT): Likewise.
60432         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60433         * tests/test-stat-time.c (ASSERT): Likewise.
60434         * tests/test-strcasestr.c (ASSERT): Likewise.
60435         * tests/test-strerror.c (ASSERT): Likewise.
60436         * tests/test-striconv.c (ASSERT): Likewise.
60437         * tests/test-striconveh.c (ASSERT): Likewise.
60438         * tests/test-striconveha.c (ASSERT): Likewise.
60439         * tests/test-strsignal.c (ASSERT): Likewise.
60440         * tests/test-strstr.c (ASSERT): Likewise.
60441         * tests/test-strtod.c (ASSERT): Likewise.
60442         * tests/test-trunc1.c (ASSERT): Likewise.
60443         * tests/test-trunc2.c (ASSERT): Likewise.
60444         * tests/test-truncf1.c (ASSERT): Likewise.
60445         * tests/test-truncf2.c (ASSERT): Likewise.
60446         * tests/test-truncl.c (ASSERT): Likewise.
60447         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60448         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60449         * tests/test-vasnprintf.c (ASSERT): Likewise.
60450         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60451         * tests/test-vasprintf.c (ASSERT): Likewise.
60452         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60453         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60454         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60455         * tests/test-vsnprintf.c (ASSERT): Likewise.
60456         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60457         * tests/test-wcwidth.c (ASSERT): Likewise.
60458         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60459         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60460         * tests/test-xvasprintf.c (ASSERT): Likewise.
60461         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60462         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60463         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60464         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60465         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60466         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60467         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60468         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60469         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60470         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60471         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60472         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60473         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60474         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60475         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60476         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60477         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60478         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60479         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60480         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60481         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60482         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60483         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60484         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60485         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60486         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60487         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60488         * tests/unictype/test-combining.c (ASSERT): Likewise.
60489         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60490         * tests/unictype/test-digit.c (ASSERT): Likewise.
60491         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60492         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60493         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60494         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60495         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60496         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60497         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60498         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60499         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60500         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60501         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60502         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60503         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60504         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60505         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60506         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60507         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60508         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60509         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60510         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60511         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60512         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60513         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60514         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60515         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60516         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60517         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60518         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60519         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60520         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60521         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60522         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60523         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60524         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60525         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60526         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60527         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60528         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60529         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60530         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60531         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60532         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60533         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60534         Reported by Eric Blake.
60535
60536 2008-04-11  Bruno Haible  <bruno@clisp.org>
60537
60538         * lib/wchar.in.h: Tweak comment.
60539
60540 2008-04-11  Bruno Haible  <bruno@clisp.org>
60541
60542         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60543         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60544         gl_COMMON.
60545         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60546
60547 2008-04-11  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60550
60551 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60552
60553         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60554         of attempting to use non-existing /dev/*random.  Based on patch
60555         from Adam Strzelecki <ono@java.pl> in
60556         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60557
60558 2008-04-08  Bruno Haible  <bruno@clisp.org>
60559
60560         Add tentative support for emx+gcc.
60561         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60562         * lib/fpurge.c (fpurge): Likewise.
60563         * lib/freadable.c (freadable): Likewise.
60564         * lib/freadahead.c (freadahead): Likewise.
60565         * lib/freading.c (freading): Likewise.
60566         * lib/freadptr.c (freadptr): Likewise.
60567         * lib/freadseek.c (freadptrinc): Likewise.
60568         * lib/fseeko.c (rpl_fseeko): Likewise.
60569         * lib/fseterr.c (fseterr): Likewise.
60570         * lib/fwritable.c (fwritable): Likewise.
60571         * lib/fwriting.c (fwriting): Likewise.
60572         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60573
60574 2008-04-09  Eric Blake  <ebb9@byu.net>
60575
60576         Avoid some autoconf warnings.
60577         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60578         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60579         * m4/afs.m4 (gl_AFS): Likewise.
60580         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60581         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60583         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60584         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60585         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60586         (AC_CHECK_DECLS_ONCE): Likewise.
60587         Rename file...
60588         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60589         gnulib-tool requires autoconf 2.59 or better.
60590         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60591
60592 2008-04-08  Eric Blake  <ebb9@byu.net>
60593
60594         Use 'git describe --match' if present (added in git 1.5.5).
60595         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60596         if possible.
60597
60598 2008-04-08  Bruno Haible  <bruno@clisp.org>
60599
60600         Add tentative support for OpenServer.
60601         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60602         _ptr, _cnt.
60603         * lib/fpurge.c (fpurge): Likewise.
60604         * lib/freadable.c (freadable): Likewise.
60605         * lib/freadahead.c (freadahead): Likewise.
60606         * lib/freading.c (freading): Likewise.
60607         * lib/freadptr.c (freadptr): Likewise.
60608         * lib/freadseek.c (freadptrinc): Likewise.
60609         * lib/fseeko.c (rpl_fseeko): Likewise.
60610         * lib/fseterr.c (fseterr): Likewise.
60611         * lib/fwritable.c (fwritable): Likewise.
60612         * lib/fwriting.c (fwriting): Likewise.
60613         Reported by Roger Cornelius <rac@tenzing.org> and
60614         Brian K. White <brian@aljex.com>.
60615
60616 2008-04-06  Jim Meyering  <meyering@redhat.com>
60617
60618         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60619
60620 2008-04-06  Bruno Haible  <bruno@clisp.org>
60621
60622         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60623         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60624         * tests/test-printf-posix.sh: Likewise.
60625         * tests/test-vfprintf-posix.sh: Likewise.
60626         * tests/test-vprintf-posix.sh: Likewise.
60627         * tests/test-xprintf-posix.sh: Likewise.
60628
60629 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60630
60631         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60632         hide error from 'ls', needed on OS/2.
60633         Report by Elbert Pol <elbert.pol@gmail.com>.
60634
60635 2008-04-04  Eric Blake  <ebb9@byu.net>
60636
60637         Make test-fseeko.c failures meaningful.
60638         * tests/test-fseeko.c: Print line number on failure.
60639         * tests/test-fseek.c: Likewise.
60640         Reported by Nelson H. F. Beebe.
60641
60642         Improve strtod bug detection check.
60643         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60644         required for Solaris 10.
60645         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60646
60647 2008-04-04  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60650         by m4/setenv.m4.
60651
60652 2008-04-03  Eric Blake  <ebb9@byu.net>
60653
60654         Ensure sane .version contents.
60655         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60656         version string.
60657         * build-aux/git-version-gen: Improve documentation.
60658
60659         Make GNU make output nicer.
60660         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60661         MAKECMDGOALS to enforce message for all command line targets.  Set
60662         srcdir for use in maint.mk.
60663
60664         Another maintainer tweak.
60665         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60666         a target that regenerates version.
60667
60668 2008-04-03  Jim Meyering  <meyering@redhat.com>
60669
60670         vc-list-files: don't cause coreutils "make po-check" failure
60671         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60672
60673 2008-04-03  Eric Blake  <ebb9@byu.net>
60674
60675         Allow VPATH usage of vc-list-files.
60676         * build-aux/vc-list-files (scriptversion): Add timestamp.
60677         (options): Add --help, --version, -C.
60678         (CVS): Support installed cvsu.
60679
60680 2008-04-02  Bruno Haible  <bruno@clisp.org>
60681
60682         Avoid some "statement with no effect" warnings from gcc.
60683         * tests/test-wctype.c (main): Explicitly ignore unused values.
60684         Reported by Jim Meyering.
60685
60686 2008-04-02  Jim Meyering  <meyering@redhat.com>
60687
60688         Avoid some warnings from "gcc -Wshadow".
60689         * tests/test-frexp.c (exp): Define to a different identifier.
60690         * tests/test-frexpl.c (exp): Likewise.
60691
60692 2008-04-03  Jim Meyering  <meyering@redhat.com>
60693
60694         bootstrap: remove dangling *.[ch] symlinks from lib
60695         * build-aux/bootstrap [dangling symlink removal]: Move find's
60696         -depth option to precede all others, to avoid a warning.
60697         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60698
60699 2008-04-02  Bruno Haible  <bruno@clisp.org>
60700
60701         Avoid some warnings from "gcc -Wshadow".
60702         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60703         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60704         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60705         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60706         Reported by Jim Meyering.
60707
60708 2008-04-01  Bruno Haible  <bruno@clisp.org>
60709
60710         Fix test to work on IRIX 6.5 with cc.
60711         * tests/test-math.c (numeric_equal): New function.
60712         (main): Use it.
60713
60714 2008-04-01  Bruno Haible  <bruno@clisp.org>
60715
60716         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60717
60718 2008-04-01  Bruno Haible  <bruno@clisp.org>
60719
60720         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60721         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60722         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60723         (Depends-on): Remove math.
60724
60725         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60726         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60727         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60728         (Depends-on): Remove math.
60729
60730         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60731         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60732         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60733         (Depends-on): Remove math.
60734         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60735         (Depends-on): Remove math.
60736
60737         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60738         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60739         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60740         (Depends-on): Remove math.
60741         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60742         (Depends-on): Remove math.
60743
60744         * tests/test-round1.c: Include nan.h.
60745         (main): Use NaNd instead of NAN.
60746         * modules/round-tests (Files): Add tests/nan.h.
60747
60748         * tests/test-trunc1.c: Include nan.h.
60749         (main): Use NaNd instead of NAN.
60750         * modules/trunc-tests (Files): Add tests/nan.h.
60751
60752         * tests/test-roundf1.c: Include nan.h.
60753         (main): Use NaNf instead of NAN.
60754         * modules/roundf-tests (Files): Add tests/nan.h.
60755
60756         * tests/test-truncf1.c: Include nan.h.
60757         (main): Use NaNf instead of NAN.
60758         * modules/truncf-tests (Files): Add tests/nan.h.
60759
60760         * tests/test-ceilf1.c: Include nan.h.
60761         (main): Use NaNf instead of NAN.
60762         * modules/ceilf-tests (Files): Add tests/nan.h.
60763
60764         * tests/test-floorf1.c: Include nan.h.
60765         (main): Use NaNf instead of NAN.
60766         * modules/floorf-tests (Files): Add tests/nan.h.
60767
60768         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60769         (main): Use NaNf instead of NAN.
60770         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60771
60772         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60773         (main): Use NaNd instead of NAN.
60774         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60775
60776         * tests/test-frexp.c: Include nan.h.
60777         (main): Use NaNd instead of NAN.
60778         * modules/frexp-tests (Files): Add tests/nan.h.
60779
60780         * lib/isnan.c: Don't include <math.h>.
60781         (FUNC): Don't use NAN macro.
60782         * modules/isnand-nolibm (Depends-on): Remove math.
60783         * modules/isnanf-nolibm (Depends-on): Remove math.
60784         * modules/isnanl (Depends-on): Remove math.
60785         * modules/isnanl-nolibm (Depends-on): Remove math.
60786
60787         * tests/nan.h: New file.
60788
60789 2008-04-01  Eric Blake  <ebb9@byu.net>
60790
60791         Fix typos.
60792         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60793         values to be the right type.
60794
60795         For now, cater to gnulib strtod inaccuracies.
60796         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60797         fractional results.  While not as nice from a QoI perspective, it
60798         is a quicker patch than correctly implementing decimal to binary
60799         rounding.
60800
60801 2008-03-31  Eric Blake  <ebb9@byu.net>
60802
60803         Guarantee a definition of NAN.
60804         * lib/math.in.h (NAN): Define if missing.
60805         * tests/test-math.c (main): Test it.
60806         * doc/posix-headers/math.texi (math.h): Document this.
60807         * lib/isnan.c (rpl_isnand): Use it.
60808         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60809         * tests/test-floorf1.c (NaN): Likewise.
60810         * tests/test-frexp.c (NaN): Likewise.
60811         * tests/test-isnand.c (NaN): Likewise.
60812         * tests/test-isnanf.c (NaN): Likewise.
60813         * tests/test-round1.c (NaN): Likewise.
60814         * tests/test-roundf1.c (NaN): Likewise.
60815         * tests/test-snprintf-posix.h (NaN): Likewise.
60816         * tests/test-sprintf-posix.h (NaN): Likewise.
60817         * tests/test-trunc1.c (NaN): Likewise.
60818         * tests/test-truncf1.c (NaN): Likewise.
60819         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60820         * tests/test-vasprintf-posix.c (NaN): Likewise.
60821         * modules/isnand-nolibm (Depends-on): Add math.
60822         * modules/isnanf-nolibm (Depends-on): Likewise.
60823         * modules/isnanl (Depends-on): Likewise.
60824         * modules/isnanl-nolibm (Depends-on): Likewise.
60825         * modules/snprintf-posix-tests (Depends-on): Likewise.
60826         * modules/sprintf-posix-tests (Depends-on): Likewise.
60827         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60828         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60829         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60830         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60831
60832 2008-03-31  Bruno Haible  <bruno@clisp.org>
60833
60834         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60835         * doc/posix-functions/strtod.texi: Likewise.
60836
60837 2008-03-31  Bruno Haible  <bruno@clisp.org>
60838
60839         * tests/test-strtod.c (main): Don't use C99 syntax.
60840
60841 2008-03-31  Bruno Haible  <bruno@clisp.org>
60842
60843         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60844         Reported by Eric Blake.
60845
60846 2008-03-31  Jim Meyering  <meyering@redhat.com>
60847
60848         Don't compare actual signbit return values.
60849         * tests/test-strtod.c (main): Rather, compare only their
60850         zero/non-zero nature.
60851
60852 2008-03-31  Eric Blake  <ebb9@byu.net>
60853
60854         More strtod documentation.
60855         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60856         failures as distinct bugs.
60857
60858 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60859
60860         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60861         Problem reported by Erik Benada in
60862         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60863
60864 2008-03-30  Bruno Haible  <bruno@clisp.org>
60865
60866         * tests/test-strtod.c: Add comments about which assertion fails on which
60867         platform.
60868         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60869
60870 2008-03-30  Eric Blake  <ebb9@byu.net>
60871
60872         Test signbit behavior on zeros.
60873         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60874         (test_signbitd, test_signbitl): Likewise.
60875
60876         More strtod touchups.
60877         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60878         sign of negative underflow, for now.  Use .5, not .1.
60879         * doc/posix-functions/strtod.texi (strtod): Mention these
60880         limitations.
60881         Reported by Jim Meyering.
60882
60883 2008-03-30  Bruno Haible  <bruno@clisp.org>
60884
60885         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60886         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60887
60888 2008-03-30  Bruno Haible  <bruno@clisp.org>
60889
60890         Avoid failure when attempting to return empty iconv results on some
60891         platforms.
60892         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60893         allocation, don't report ENOMEM when the resulting string is empty.
60894
60895 2008-03-30  Bruno Haible  <bruno@clisp.org>
60896
60897         Fix buffer overrun.
60898         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60899         Don't consider the width for tmp_length. Check count against tmp_length
60900         before doing the padding. Ensure enough allocation during padding.
60901
60902 2008-03-30  Eric Blake  <ebb9@byu.net>
60903
60904         strtod touchups.
60905         * lib/strtod.c (strtod): Avoid compiler warnings.
60906         Reported by Jim Meyering.
60907
60908 2008-03-30  Bruno Haible  <bruno@clisp.org>
60909
60910         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60911         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60912         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60913         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60914         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60915         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60916         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60917         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60918
60919         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60920         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60921         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60922         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60923         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60924         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60925         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60926         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60927
60928         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60929         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60930         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60931         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60932         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60933         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60934         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60935         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60936
60937         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60938         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60939
60940         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60941         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60942
60943         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60944         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60945
60946         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60948         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60949
60950         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60952         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60953
60954         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60956         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60957
60958         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60960         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60961
60962         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60963         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60965         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60966         (Depends-on): Add EOVERFLOW.
60967         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60968         (Depends-on): Add EOVERFLOW.
60969         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60970         (Depends-on): Add EOVERFLOW.
60971         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60972         (Depends-on): Add EOVERFLOW.
60973         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60974         (Depends-on): Add EOVERFLOW.
60975         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60976         (Depends-on): Add EOVERFLOW.
60977         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60978         (Depends-on): Add EOVERFLOW.
60979         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60980         (Depends-on): Add EOVERFLOW.
60981
60982         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60984         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60985
60986         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60988         * modules/snprintf (Depends-on): Add EOVERFLOW.
60989
60990         * lib/poll.c (EOVERFLOW): Remove fallback.
60991         * modules/poll (Depends-on): Add EOVERFLOW.
60992
60993         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60994         * modules/getugroups (Depends-on): Add EOVERFLOW.
60995
60996         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60997         * modules/getdelim (Depends-on): Add EOVERFLOW.
60998
60999         * lib/ftell.c (EOVERFLOW): Remove fallback.
61000         * modules/ftell (Depends-on): Add EOVERFLOW.
61001
61002         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61004         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61005
61006         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61007
61008         * modules/EOVERFLOW-tests: New file.
61009         * tests/test-EOVERFLOW.c: New file.
61010
61011         * modules/EOVERFLOW: New file.
61012         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61013
61014 2008-03-30  Bruno Haible  <bruno@clisp.org>
61015
61016         Fix bug introduced on 2007-06-10.
61017         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61018         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61019
61020 2008-03-30  Bruno Haible  <bruno@clisp.org>
61021
61022         Improve freadseek's efficiency after ungetc.
61023         * lib/freadseek.c: Include freadahead.h.
61024         (freadptrinc): New function, extracted from freadseek.
61025         (freadseek): Use it in a loop. Use freadahead to determine the number
61026         of loop iterations.
61027         * modules/freadseek (Depends-on): Add freadahead.
61028         (configure.ac): Require AC_C_INLINE.
61029
61030 2008-03-30  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/freadseek.c (freadseek): Don't ignore the return value of
61033         freadptr.
61034
61035 2008-03-29  Eric Blake  <ebb9@byu.net>
61036
61037         Add hex float support.
61038         * modules/strtod (Depends-on): Add c-ctype.
61039         (Link): Mention POW_LIB.
61040         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61041         whitespace between 'e' and exponent.
61042         * tests/test-strtod.c (main): Enable hex float tests.
61043         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61044         now provides.
61045
61046         Document various strtod bugs, with some fixes.
61047         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61048         "-0x", "inf", "nan", and hex constants.
61049         * doc/posix-functions/atof.texi (atof): Likewise.
61050         * modules/stdlib (Makefile.am): Support strtod.
61051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61052         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61053         detect additional strtod bugs.
61054         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61055         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61056         bool where appropriate.  Parse 'inf' and 'nan'.
61057         * tests/test-strtod.c: New file.
61058         * modules/strtod (Depends-on): Add stdbool, stdlib.
61059         (configure.ac): Turn on module indicator.
61060         * modules/strtod-tests: New module.
61061
61062 2008-03-29  Eric Blake  <ebb9@byu.net>
61063
61064         Fix ftell on mingw.
61065         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61066         * modules/ftell-tests (Depends-on): Add binary-io.
61067         * modules/ftello-tests (Depends-on): Likewise.
61068         * tests/test-ftell.c (main): Enhance test to cover behavior after
61069         ungetc.  Enforce binary mode.
61070         * tests/test-ftello.c (main): Likewise.
61071
61072         Pass test-freadseek on cygwin.
61073         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61074         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61075         ungetc buffer.
61076
61077         * tests/test-fflush2.c (main): Fix typo.
61078
61079 2008-03-29  Bruno Haible  <bruno@clisp.org>
61080
61081         * tests/test-fflush2.c (main): Temporarily disable the contents of
61082         this test.
61083         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61084         Reported by Eric Blake.
61085
61086 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61087
61088         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61089         (GC_SHA224_DIGEST_SIZE): Add.
61090
61091         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61092         (gc_hash_digest_length): Likewise.
61093         (gc_hash_buffer): Likewise.
61094
61095 2008-03-25  Bruno Haible  <bruno@clisp.org>
61096
61097         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61098         detail which gettext release to use.
61099         Reported by Simon Josefsson.
61100
61101 2008-03-26  Jim Meyering  <meyering@redhat.com>
61102
61103         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61104         * modules/gnumakefile (clean-GNUmakefile): Also, use
61105         test ... && ... || : syntax rather than if-then ... fi.
61106
61107         gnumakefile: Don't double-quote-expand $(VPATH) value.
61108         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61109
61110 2008-03-24  Eric Blake  <ebb9@byu.net>
61111
61112         Alter GNUmakefile to install into top directory.
61113         * modules/maintainer-makefile: Split, and add dependency...
61114         * modules/gnumakefile: to this new module.
61115         * build-aux/GNUmakefile: Move...
61116         * top/GNUmakefile: ...here.
61117         * build-aux/maint.mk: Move...
61118         * top/maint.mk: ...here.
61119         * MODULES.html.sh (Support for maintaining...): Document new
61120         module.
61121
61122 2008-03-23  Bruno Haible  <bruno@clisp.org>
61123
61124         * gnulib-tool: New options --vc-files, --no-vc-files.
61125         (func_usage): Document them.
61126         (vc_files): New variable.
61127         (func_import): Consider vc_files.
61128         (func_create_testdir): Set vc_files to empty.
61129         Suggested by Jim Meyering and Karl Berry.
61130
61131 2008-03-23  Bruno Haible  <bruno@clisp.org>
61132
61133         Fix regex compilation error on HP-UX 11.
61134         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61135         * modules/regex (Files): Add m4/mbstate_t.m4.
61136         Reported by Ton Voon <ton.voon@altinity.com>.
61137
61138 2008-03-23  Bruno Haible  <bruno@clisp.org>
61139
61140         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61141
61142 2008-03-23  Eric Blake  <ebb9@byu.net>
61143             Bruno Haible  <bruno@clisp.org>
61144
61145         Install files from top/ in the destination directory.
61146         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61147         augmentation also for the files from top/.
61148         (func_import, func_create_testdir): Rewrite file names:
61149         top/filename -> filename.
61150
61151 2008-03-23  Bruno Haible  <bruno@clisp.org>
61152
61153         Tweak "gnulib --version" output.
61154         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61155
61156 2008-03-23  Bruno Haible  <bruno@clisp.org>
61157
61158         Tweak "gnulib --version" output.
61159         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61160         rather than contents of ChangeLog, when possible.
61161
61162 2008-03-21  Eric Blake  <ebb9@byu.net>
61163
61164         More --version tweaks.
61165         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61166         date of last ChangeLog entry.
61167
61168 2008-03-21  Jim Meyering  <meyering@redhat.com>
61169
61170         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61171
61172 2008-03-20  Eric Blake  <ebb9@byu.net>
61173
61174         VPATH fix.
61175         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61176
61177 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61178
61179         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61180         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61181
61182 2008-03-20  Eric Blake  <ebb9@byu.net>
61183
61184         Sync GNUmakefile with coreutils.
61185         * build-aux/GNUmakefile (have-Makefile): Rename...
61186         (_have-Makefile): ...to this, for namespace consideration.
61187         (GNUmakefile.cfg): Include, if present.
61188         (_autoreconf): Define a default.
61189         (_is-dist-target): New rule for rebuilds to pick up intra-release
61190         version.
61191         (maint-cfg.mk): Rename...
61192         (cfg.mk): ...to this.
61193
61194 2008-03-18  Jim Meyering  <meyering@redhat.com>
61195
61196         New script and module: mktempd
61197         * MODULES.html.sh (maint+release support): Add mktempd.
61198         * build-aux/mktempd: New file.
61199         * modules/mktempd: New file.
61200
61201 2008-03-15  Jim Meyering  <meyering@redhat.com>
61202
61203         Undo last change.
61204         * lib/sha1.c, lib/md5.c: 63 != ~63.
61205         Reported by Andreas Schwab.
61206
61207         sha1.c, md5.c: Hoist a redundant expression.
61208         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61209         "ctx->buflen" only once, before calling *_process_block.
61210         * lib/md5.c (md5_process_bytes): Likewise.
61211
61212 2008-03-14  Eric Blake  <ebb9@byu.net>
61213
61214         Bump copyright year in files generated by gnulib-tool.
61215         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61216         gnulib-tool, rather than hard-coding it.
61217
61218         Fix 'gnulib-tool --version' output to work with git.
61219         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61220         (startup): ...here.
61221         (func_version): Use it to invoke git-version-gen, rather than
61222         relying on CVS keyword expansion.  Modernize wording.
61223         (cvsdatestamp, last_checkin_date, version): Kill unused
61224         variables.
61225
61226 2008-03-12  Jim Meyering  <meyering@redhat.com>
61227
61228         Recognize optional cast of the argument to free.
61229         * build-aux/useless-if-before-free: Update regexps.
61230
61231         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61232
61233 2008-03-11  Bruno Haible  <bruno@clisp.org>
61234
61235         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61236         by a single package.
61237         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61238         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61239         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61240         Reported by Sam Steingold <sds@gnu.org>.
61241
61242 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61243
61244         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61245         repositories.
61246
61247 2008-03-11  Bruno Haible  <bruno@clisp.org>
61248
61249         Avoid conflicts between local macro definitions.
61250         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61251         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61252
61253 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61254             Bruno Haible  <bruno@clisp.org>
61255
61256         Make va_copy work with some version of xlc on AIX 5.1.
61257         * lib/stdarg.in.h: New file.
61258         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61259         On AIX, use a <stdarg.h> file substitute.
61260         * modules/stdarg (Files): Add lib/stdarg.in.h.
61261         (Depends-on): Add include_next.
61262         (Makefile.am): Build a stdarg.h substitute if requested.
61263         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61264
61265 2008-03-10  Bruno Haible  <bruno@clisp.org>
61266
61267         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61269         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61270
61271 2008-03-10  Bruno Haible  <bruno@clisp.org>
61272
61273         * modules/stdlib (Depends-on): Add include_next, remove
61274         absolute-header.
61275
61276 2008-03-09  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/freadahead.h (freadahead): Document more precisely.
61279         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61280         the sum of both buffer sizes.
61281         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61282         * NEWS: Document the change.
61283
61284 2008-03-09  Bruno Haible  <bruno@clisp.org>
61285
61286         Extend freadptr to return also the buffer size.
61287         * lib/freadptr.h (freadptr): Add sizep argument.
61288         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61289         (freadptr): Add sizep argument. Determine buffer size like freadahead
61290         does.
61291         * tests/test-freadptr.c: Don't include freadahead.h.
61292         (main): Adapt for new calling convention of freadptr.
61293         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61294         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61295         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61296         tests/test-freadptr2.sh.
61297         (Depends): Remove freadahead.
61298         (TESTS): Add test-freadptr2.sh.
61299         (check_PROGRAMS): Add test-freadptr2.
61300
61301 2008-03-09  Bruno Haible  <bruno@clisp.org>
61302
61303         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61304         Report and solution by Simon Josefsson.
61305
61306 2008-03-06  Bruno Haible  <bruno@clisp.org>
61307
61308         Make fflush after ungetc work on BSD platforms.
61309         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61310         * tests/test-fflush2.c: New file.
61311         * tests/test-fflush2.sh: New file.
61312         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61313         tests/test-fflush2.c.
61314         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61315         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61316
61317 2008-03-06  Eric Blake  <ebb9@byu.net>
61318
61319         Likewise for ftello.
61320         * modules/ftello (Dependencies): Add extensions.
61321         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61322
61323 2008-03-06  Bruno Haible  <bruno@clisp.org>
61324
61325         * modules/fseeko (Dependencies): Add extensions.
61326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61327         Needed on glibc systems.
61328
61329 2008-03-06  Bruno Haible  <bruno@clisp.org>
61330
61331         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61332         email address.
61333         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61334
61335 2008-03-06  Bruno Haible  <bruno@clisp.org>
61336
61337         * users.txt: Add libgnupdf.
61338
61339 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61340
61341         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61342         (Header File Substitutes, Function Substitutes,
61343         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61344         (Build robot for gnulib): Fix typo.
61345
61346 2008-03-06  Bruno Haible  <bruno@clisp.org>
61347
61348         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61349         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61350
61351 2008-03-06  Bruno Haible  <bruno@clisp.org>
61352
61353         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61354         * doc/gnulib.texi: Include it.
61355
61356 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61357
61358         * modules/func (License): Change license to unlimited; there was
61359         no LGPL parts in the module anyway.
61360
61361 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61362
61363         * modules/__func__: Renamed to modules/func.
61364         * modules/__func__-tests: Renamed to modules/func-tests.
61365         * tests/test-__func__.c: Renamed to tests/test-func.c.
61366         * m4/__func__.m4: Renamed to m4/func.m4.
61367         * doc/gnulib.texi (__func__): Section renamed to func.
61368         Suggested by Eric Blake <ebb9@byu.net>.
61369
61370 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61371
61372         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61373         about __func__.  Make example self-contained.  Suggested by Eric
61374         Blake <ebb9@byu.net>.
61375
61376         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61377         Suggested by Eric Blake <ebb9@byu.net>.
61378
61379 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61380
61381         * modules/__func__: New file.
61382         * modules/__func__-tests: New file.
61383         * tests/test-__func__.c: New file.
61384         * m4/__func__.m4: New file.
61385         * doc/gnulib.texi (__func__): Document __func__ module.
61386
61387 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61388
61389         * modules/byteswap (License): Re-license as LGPLv2+.
61390
61391 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61392
61393         * doc/Makefile: Add pdf target.
61394
61395 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61396
61397         * modules/inline (License): Use 'unlimited', since there are only
61398         *.m4 files in this module.
61399
61400 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61401             Bruno Haible  <bruno@clisp.org>
61402
61403         Add support for HP C 7.1 on OpenVMS 8.3.
61404         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61405
61406 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61407
61408         Update VMS specifics.
61409         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61410
61411 2008-03-02  Jim Meyering  <meyering@redhat.com>
61412
61413         Remove the last dependency on the "free" module.
61414         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61415         Reported by Bob Proulx.
61416
61417         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61418
61419         Remove useless "if" tests before free.  Deprecate "free" module.
61420         * doc/posix-functions/free.texi: Mention that this
61421         module is no longer useful.
61422         * modules/free (Notice): Say this module is obsolete.
61423         * modules/readutmp (Depends-on): Remove free.
61424         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61425         * lib/putenv.c (putenv): Likewise.
61426         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61427         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61428         * tests/test-c-strcasestr.c (main): Likewise.
61429         * tests/test-c-strstr.c (main): Likewise.
61430         * tests/test-mbscasestr1.c (main): Likewise.
61431         * tests/test-mbscasestr2.c (main): Likewise.
61432         * tests/test-mbsstr1.c (main): Likewise.
61433         * tests/test-mbsstr2.c (main): Likewise.
61434         * tests/test-memmem.c (main): Likewise.
61435         * tests/test-strcasestr.c (main): Likewise.
61436         * tests/test-striconv.c (main): Likewise.
61437         * tests/test-striconveh.c (main): Likewise.
61438         * tests/test-striconveha.c (main): Likewise.
61439         * tests/test-strstr.c (main): Likewise.
61440
61441         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61442
61443         bootstrap: sync from coreutils again
61444         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61445
61446 2008-03-01  Jim Meyering  <meyering@redhat.com>
61447
61448         bootstrap: sync from coreutils
61449         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61450         also when the target doesn't exist.
61451
61452 2008-03-01  Eric Blake  <ebb9@byu.net>
61453
61454         Fix bugs in last patch.
61455         * lib/memchr2.c (memchr2): Fix typo.
61456         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61457         extension.
61458         Reported by Bruce Korb.
61459
61460         New module 'memchr2'.
61461         * modules/memchr2: New file.
61462         * modules/memchr2-tests: Likewise.
61463         * lib/memchr2.h: Likewise.
61464         * lib/memchr2.c: Likewise, based on memchr.c.
61465         * tests/test-memchr2.c: New test.
61466         * MODULES.html.sh (String handling): Add memchr2.
61467
61468 2008-02-29  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/freadseek-tests: New file.
61471         * tests/test-freadseek.sh: New file.
61472         * tests/test-freadseek.c: New file.
61473
61474         New module 'freadseek'.
61475         * modules/freadseek: New file.
61476         * lib/freadseek.h: New file.
61477         * lib/freadseek.c: New file.
61478         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61479
61480 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61481
61482         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61483         wydawca.
61484
61485         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61486         program_invocation_name and program_invocation_short_name are
61487         present.
61488
61489 2008-02-28  Bruno Haible  <bruno@clisp.org>
61490
61491         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61492         * tests/test-freadptr.sh: Also test non-seekable stdin.
61493
61494 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61495
61496         * build-aux/bootstrap (source_base, m4_base)
61497         (doc_base, tests_base): New variables.
61498         (gnulib_tool_options): Do not hardcode base directories, use
61499         the above variables instead.
61500
61501 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61502
61503         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61504
61505 2008-02-28  Bruno Haible  <bruno@clisp.org>
61506
61507         * modules/freadptr-tests: New file.
61508         * tests/test-freadptr.sh: New file.
61509         * tests/test-freadptr.c: New file.
61510
61511         New module 'freadptr'.
61512         * modules/freadptr: New file.
61513         * lib/freadptr.h: New file.
61514         * lib/freadptr.c: New file.
61515         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61516
61517 2008-02-26  Karl Berry  <karl@freefriends.org>
61518
61519         Sync from Libtool:
61520         * libltdl/argz.c (argz_add, argz_count): New functions.
61521         * libltdl/argz.in.h: Declare them.
61522         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61523
61524 2008-02-22  Bruno Haible  <bruno@clisp.org>
61525
61526         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61527         is a pointer type.  Needed for HP-UX 10.
61528         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61529         * doc/posix-functions/gmtime_r.texi: Likewise.
61530         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61531
61532 2008-02-24  Bruno Haible  <bruno@clisp.org>
61533
61534         * modules/environ-tests: New file.
61535         * tests/test-environ.c: New file.
61536
61537         New module 'environ'.
61538         * modules/environ: New file.
61539         * lib/unistd.in.h (environ): New declaration.
61540         * m4/environ.m4: New file.
61541         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61542         after use.
61543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61544         HAVE_DECL_ENVIRON.
61545         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61546         HAVE_DECL_ENVIRON.
61547         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61548         wrong claim that 'environ' is missing on some systems.
61549         * modules/execute (Depends-on): Add environ.
61550         * lib/execute.c (environ): Remove fallback declaration.
61551         * modules/pipe (Depends-on): Add environ.
61552         * lib/pipe.c (environ): Remove fallback declaration.
61553         * modules/setenv (Depends-on): Add environ.
61554         * lib/setenv.c (environ): Remove fallback declaration.
61555         * modules/unsetenv (Depends-on): Add environ.
61556         * lib/unsetenv.c (environ): Remove fallback declaration.
61557         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61558         m4/environ.m4.
61559         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61560         (gl_PREREQ_UNSETENV): Likewise.
61561
61562 2008-02-24  Bruno Haible  <bruno@clisp.org>
61563
61564         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61565
61566 2008-02-20  Bob Proulx  <bob@proulx.com>
61567
61568         Enable use of older two part flavor 'git describe'.
61569         * build-aux/git-version-gen: If using the older two part flavor of
61570         git version then recreate the third part now present in the
61571         newer three part flavor of git describe.
61572
61573 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61574
61575         * lib/fts.c (fts_build): Typo correction to comment.
61576
61577 2008-02-17  Bruno Haible  <bruno@clisp.org>
61578
61579         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61580         generating no-op conflicts.
61581
61582 2008-02-17  Bruno Haible  <bruno@clisp.org>
61583
61584         Speed up by 10%.
61585         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61586         result_entries, rather than an index-based loop.
61587
61588 2008-02-17  Bruno Haible  <bruno@clisp.org>
61589
61590         Speed up by 25%.
61591         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61592         'hashcode_cached'.
61593         (entry_create): New function.
61594         (entry_hashcode): Use the cached hashcode if possible.
61595         (read_changelog_file, try_split_merged_entry): Use entry_create.
61596
61597 2008-02-17  Bruno Haible  <bruno@clisp.org>
61598
61599         Speed up from O(n^2) to O(n) for long ChangeLog files.
61600         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61601         (read_changelog_file): Change implementation of entries_reversed list
61602         to rbtreehash.
61603         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61604
61605 2008-02-17  Bruno Haible  <bruno@clisp.org>
61606
61607         New option --split-merged-entry.
61608         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61609         (find_paragraph_end, try_split_merged_entry): New functions.
61610         (long_options): Add option --split-merged-entry.
61611         (usage): Document option --split-merged-entry.
61612         (main): Implement option --split-merged-entry.
61613         Reported by Eric Blake.
61614
61615 2008-02-17  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/git-merge-changelog.c: Include c-strstr.h.
61618         (main): Support the "git pull --rebase" situation.
61619         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61620         Reported by Eric Blake.
61621
61622 2008-02-16  Eric Blake  <ebb9@byu.net>
61623
61624         Avoid doubling \ in common case of "c-maybe" quoting style.
61625         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61626         eliding outer quotes.
61627         * lib/quotearg.h: Document this.
61628         * tests/test-quotearg.c (result_strings, inputs, results_g)
61629         (flag_results, locale_results): Test it by adding a new string to
61630         each test group.
61631         (compare_strings): Test new string.
61632
61633 2008-02-13  Eric Blake  <ebb9@byu.net>
61634
61635         Avoid trigraph quoting in default output.
61636         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61637         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61638         unless explicitly requested.
61639         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61640
61641 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61642
61643         Don't rely on signed integer overflowing to negative value.
61644         * lib/getugroups.c (getugroups): Include <limits.h>.
61645         Instead, compare against INT_MAX, and increment only if the test passes.
61646
61647 2008-02-13  Jim Meyering  <meyering@redhat.com>
61648         and Eric Blake  <ebb9@byu.net>
61649
61650         Avoid shadowing warning and compile errors on Linux.
61651         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61652         forwarding macros on Linux.
61653         (dcgettext): Define a stub, for Linux.
61654         (results_g, main): Avoid warnings.
61655
61656 2008-02-12  Eric Blake  <ebb9@byu.net>
61657
61658         Silence warning in last patch.
61659         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61660
61661         Quotearg part 4: add tests, fix c-maybe colon quoting.
61662         * lib/quotearg.h: Improve documentation.
61663         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61664         escapes when adding outer quotes.  When quoting trigraphs, use
61665         valid C notation.  When quoting NUL, omit extra characters if next
61666         character is not digit.  Alter prototype.
61667         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61668         callers.
61669         * modules/quotearg-tests: New module.
61670         * tests/test-quotearg.c: New test.
61671
61672 2008-02-07  Eric Blake  <ebb9@byu.net>
61673
61674         Quotearg part 3: add flag to control outer quote elision.
61675         * lib/quotearg.h (c_maybe_quoting_style): New style.
61676         (enum quoting_flags): Better documentation of flags.
61677         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61678         c-maybe style.
61679         (quotearg_buffer_restyled): Handle new flag to elide outer
61680         quotes.
61681
61682         Quotearg part 2: add flag that can control NUL elision.
61683         * lib/quotearg.h (set_quoting_flags): New prototype.
61684         * lib/quotearg.c (struct quoting_options): Add flag field.
61685         (set_quoting_flags): New function.
61686         (quotearg_buffer_restyled): Add flags parameter.
61687         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61688         (quotearg_n_options): Set the flag, since length cannot be
61689         returned.
61690         (quoting_options_from_style): Default flags correctly.
61691
61692         Quotearg part 1: more wrappers, restore quotearg_char state.
61693         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61694         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61695         (quotearg_colon_mem): New wrappers.
61696         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61697         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61698         functions.
61699         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61700         (quotearg_colon_mem): New functions.
61701
61702 2008-02-11  Bruno Haible  <bruno@clisp.org>
61703
61704         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61705         library in the current directory: it does not work with parallel make.
61706         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61707
61708 2008-02-11  Bruno Haible  <bruno@clisp.org>
61709
61710         * .gitattributes: New file.
61711
61712 2008-02-11  Jim Meyering  <meyering@redhat.com>
61713
61714         useless-if-before-free: Fix reversed exit values.
61715         * build-aux/useless-if-before-free: Use correct values
61716         for EXIT_MATCH and EXIT_NO_MATCH.
61717
61718         * build-aux/useless-if-before-free: Close stdout carefully.
61719
61720 2008-02-10  Bruno Haible  <bruno@clisp.org>
61721
61722         New module 'git-merge-changelog'.
61723         * modules/git-merge-changelog: New file.
61724         * lib/git-merge-changelog.c: New file.
61725
61726 2008-02-10  Jim Meyering  <meyering@redhat.com>
61727
61728         useless-if-before-free: New option: --list (-l).
61729
61730         useless-if-before-free: Don't exit immediately upon open failure.
61731         * build-aux/useless-if-before-free: Exit 2 for errors.
61732         Upon failure to open a file, don't exit immediately.
61733         Rather, just warn and continue with any remaining files.
61734
61735 2008-02-10  Bruno Haible  <bruno@clisp.org>
61736
61737         New abstract list operation 'node_set_value'.
61738         * lib/gl_list.h (gl_list_node_set_value): New function.
61739         (struct gl_list_implementation): New field node_set_value.
61740         * lib/gl_list.c (gl_list_node_set_value): New function.
61741         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61742         (gl_array_list_implementation): Update.
61743         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61744         (gl_carray_list_implementation): Update.
61745         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61746         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61747         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61748         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61749         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61750         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61751         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61752         Update.
61753         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61754         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61755         (gl_sublist_list_implementation): Update.
61756
61757 2008-02-10  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61760         Needed when ELEMENT is #defined to 'some_type *'.
61761
61762 2008-02-10  Jim Meyering  <meyering@redhat.com>
61763
61764         New script and module: useless-if-before-free
61765         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61766         * build-aux/useless-if-before-free: New file.
61767         * modules/useless-if-before-free: New file.
61768
61769         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61770
61771         xstrtol_error: Fix typo.
61772         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61773         s/exit_failure/exit_status/.
61774
61775 2008-02-09  Jim Meyering  <meyering@redhat.com>
61776
61777         New script and module: gitlog-to-changelog
61778         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61779         * modules/gitlog-to-changelog: New file.
61780         * build-aux/gitlog-to-changelog: New file.
61781
61782 2008-02-08  Jim Meyering  <meyering@redhat.com>
61783
61784         Avoid two "parameter unused" warnings.
61785         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61786         Mark "st" as used.
61787
61788         Use "git COMMAND", not "git-COMMAND".
61789         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61790         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61791         * build-aux/git-version-gen: Use "git status", not "git-status".
61792
61793 2008-02-07  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61796         Avoids a crash on Windows Vista.
61797         Reported by Adam Strzelecki <ono@java.pl> via
61798         Simon Josefsson <simon@josefsson.org>.
61799
61800 2008-02-06  Bruno Haible  <bruno@clisp.org>
61801
61802         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61803         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61804         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61806         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61808         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61809         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61817         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61818         left-adjust flag.
61819         * tests/test-snprintf-posix.h (test_function): Likewise.
61820         * tests/test-sprintf-posix.h (test_function): Likewise.
61821         * tests/test-vasprintf-posix.c (test_function): Likewise.
61822         * doc/posix-functions/fprintf.texi: Update.
61823         * doc/posix-functions/printf.texi: Update.
61824         * doc/posix-functions/snprintf.texi: Update.
61825         * doc/posix-functions/sprintf.texi: Update.
61826         * doc/posix-functions/vfprintf.texi: Update.
61827         * doc/posix-functions/vprintf.texi: Update.
61828         * doc/posix-functions/vsnprintf.texi: Update.
61829         * doc/posix-functions/vsprintf.texi: Update.
61830         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61831
61832 2008-02-06  Bruno Haible  <bruno@clisp.org>
61833
61834         Fix bug introduced on 2008-01-26.
61835         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61836
61837 2008-02-06  Bruno Haible  <bruno@clisp.org>
61838
61839         Fix bug introduced on 2007-06-10.
61840         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61841         !NEED_PRINTF_FLAG_ZERO.
61842
61843 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61844
61845         getloadavg: use libperfstat on AIX5
61846         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61847
61848 2008-02-03  Bruno Haible  <bruno@clisp.org>
61849
61850         * lib/diffseq.h: Add comments about required #includes.
61851         Reported by Michael Biggs <gnulib@doubleplum.net>.
61852
61853 2008-02-01  Bruno Haible  <bruno@clisp.org>
61854
61855         * users.txt: Add gnuit.
61856
61857 2008-01-31  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/md4.c (set_uint32): Mark as inline.
61860         * lib/md5.c (set_uint32): Likewise.
61861         * lib/sha1.c (set_uint32): Likewise.
61862         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61863         * m4/md5.m4 (gl_MD5): Likewise.
61864         * m4/sha1.m4 (gl_SHA1): Likewise.
61865
61866 2008-01-31  Jim Meyering  <meyering@redhat.com>
61867
61868         Use "sizeof VAR", rather than a literal "4".
61869         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61870         * lib/md4.c (md4_read_ctx): Likewise.
61871         * lib/sha1.c (sha1_read_ctx): Likewise.
61872
61873 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61874
61875         * tests/test-sha1.c: New file, based on test-md5.c.
61876
61877         * modules/crypto/sha1-tests: New file.
61878
61879 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61880
61881         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61882
61883 2008-01-31  Jim Meyering  <meyering@redhat.com>
61884
61885         Prefer "sizeof v" over the equivalent "4".
61886         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61887         * lib/md5.c (set_uint32): Likewise.
61888         * lib/sha1.c (set_uint32): Likewise.
61889
61890 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61891
61892         * lib/sha1.c (set_uint32): Mark function as static.
61893
61894 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61895
61896         md2: clarify comments to say that alignment is not required.
61897         * lib/md2.h: Remove warning about alignment in comment.
61898         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61899         never been required.
61900
61901 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61902
61903         md4: adapt alignment constraint fix from sha1.
61904         * lib/md4.c (set_uint32): New function, from sha1.c
61905         (md4_read_ctx): Use it.
61906         (md4_finish_ctx): Doc fix.
61907         * lib/md4.h: Doc fix.
61908
61909 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61910
61911         md5: adapt alignment constraint fix from sha1.
61912         * lib/md5.c (set_uint32): New function, from sha1.c
61913         (md5_read_ctx): Use it.
61914         (md5_finish_ctx): Doc fix.
61915         * lib/md5.h: Doc fix.
61916
61917 2008-01-30  Peter Palfrader  <weasel@debian.org>
61918
61919         sha1: remove the result buffer alignment constraint
61920         * lib/sha1.c (set_uint32): New function.
61921         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61922         constraint.
61923         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61924         * lib/sha1.h: Likewise.
61925
61926 2008-01-30  Andreas Schwab  <schwab@suse.de>
61927             Bruno Haible  <bruno@clisp.org>
61928
61929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61930         correct definition of LDBL_MIN_EXP.
61931
61932 2008-01-30  Karl Berry  <karl@gnu.org>
61933
61934         * config/srclist-update: try to preserve x bit on updates.
61935         * config/srclistvars.sh: update for karl.
61936
61937 2008-01-29  Jim Meyering  <meyering@redhat.com>
61938
61939         vasnprintf.c: Avoid warning about unused label
61940         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61941         "overflow" label definition and associated code with the
61942         same cpp condition that guards the sole use of that label.
61943
61944 2008-01-26  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61947         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61948         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61949         * lib/isnanl-nolibm.h (isnanl): Likewise.
61950         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61951
61952 2008-01-26  Bruno Haible  <bruno@clisp.org>
61953
61954         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61955         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61956
61957 2008-01-26  Bruno Haible  <bruno@clisp.org>
61958
61959         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61960         GCC >= 4.0 built-in.
61961         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61962
61963 2008-01-26  Bruno Haible  <bruno@clisp.org>
61964
61965         Rename isnan, applicable to 'double' only, to isnand.
61966         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61967         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61968         (configure.ac): Update.
61969         (Include): Replace "isnan.h" with "isnand.h".
61970         * m4/isnand.m4: Renamed from m4/isnan.m4.
61971         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61972         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61973         instead of isnan.c.
61974         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61975         instead of HAVE_ISNAN_IN_LIBC.
61976         (isnand): Renamed from isnan.
61977         * lib/isnand.c: New file.
61978         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61979         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61980         (Makefile.am): Update.
61981         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61982         Include isnand.h instead of isnan.h.
61983         (main): Test isnand instead of isnan.
61984         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61985         isnan-nolibm.
61986         * modules/frexp (Depends-on): Likewise.
61987         * modules/frexp-tests (Depends-on): Likewise.
61988         * modules/frexp-nolibm (Depends-on): Likewise.
61989         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61990         * modules/isfinite (Depends-on): Likewise.
61991         * modules/round-tests (Depends-on): Likewise.
61992         * modules/signbit (Depends-on): Likewise.
61993         * modules/signbit-tests (Depends-on): Likewise.
61994         * modules/snprintf-posix (Depends-on): Likewise.
61995         * modules/sprintf-posix (Depends-on): Likewise.
61996         * modules/trunc-tests (Depends-on): Likewise.
61997         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61998         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61999         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62000         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62002         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62004         * modules/vasnprintf-posix (Depends-on): Likewise.
62005         * modules/vasprintf-posix (Depends-on): Likewise.
62006         * modules/vfprintf-posix (Depends-on): Likewise.
62007         * modules/vsnprintf-posix (Depends-on): Likewise.
62008         * modules/vsprintf-posix (Depends-on): Likewise.
62009         * lib/frexp.c: Include isnand.h instead of isnan.h.
62010         (ISNAN): Set to isnand instead of isnan.
62011         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62012         (gl_isfinited): Use isnand instead of isnan.
62013         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62014         (gl_signbitd): Use isnand instead of isnan.
62015         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62016         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62017         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62018         (main): Use isnand instead of isnan.
62019         * tests/test-round1.c: Include isnand.h.
62020         (main): Use isnand instead of isnan.
62021         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62022         (ISNAN): Set to isnand instead of isnan.
62023         * tests/test-trunc1.c: Include isnand.h.
62024         (main): Use isnand instead of isnan.
62025         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62026         (equal): Use isnand instead of isnan.
62027         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62028         isnand-nolibm.
62029         * NEWS: Mention the change.
62030
62031 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62032             Bruno Haible  <bruno@clisp.org>
62033
62034         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62035         the GCC builtins for signbits are present and set
62036         REPLACE_SIGNBIT_USING_GCC if so.
62037         * lib/math.in.h (signbit): Define using GCC builtins if
62038         REPLACE_SIGNBIT_USING_GCC is set.
62039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62040         REPLACE_SIGNBIT_USING_GCC.
62041         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62042
62043 2008-01-25  Jim Meyering  <meyering@redhat.com>
62044
62045         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62046         * lib/poll.c: Include <config.h>, not "config.h".
62047         * tests/test-getaddrinfo.c: Likewise.
62048
62049 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62050
62051         * modules/sockets-tests: New file.
62052
62053 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62054
62055         * modules/sockets: New module, can be used to call WSA_Startup and
62056         WSA_Cleanup when needed.
62057
62058         * lib/sockets.h, lib/sockets.c: New files.
62059
62060         * m4/sockets.m4: New file.
62061
62062         * tests/test-sockets.c: New file.
62063
62064 2008-01-19  Bruno Haible  <bruno@clisp.org>
62065
62066         * doc/posix-headers: Renamed from doc/headers.
62067         * doc/posix-functions: Renamed from doc/functions.
62068         * doc/gnulib.texi: Update.
62069
62070 2008-01-19  Bruno Haible  <bruno@clisp.org>
62071
62072         * doc/glibc-functions/strcasestr.texi: Include contents of
62073         doc/functions/strcasestr.texi, fixing the list of platforms.
62074         * doc/functions/strcasestr.texi: Remove file.
62075
62076 2008-01-19  Bruno Haible  <bruno@clisp.org>
62077
62078         * doc/glibc-functions/memmem.texi: Include contents of
62079         doc/functions/memmem.texi.
62080         * doc/functions/memmem.texi: Remove file.
62081
62082 2008-01-18  Bruno Haible  <bruno@clisp.org>
62083
62084         * doc/glibc-functions/*.texi: New files.
62085         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62086         to use the new files.
62087
62088 2008-01-17  Bruno Haible  <bruno@clisp.org>
62089
62090         * tests/test-gethostname.c (main): Fix printf statement.
62091
62092 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62093
62094         * modules/gethostname-tests: New file.
62095
62096         * tests/test-gethostname.c: New file.
62097
62098 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62099
62100         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62101         used by the UNAME case.  Reported by Bruno Haible
62102         <bruno@clisp.org>.
62103
62104 2008-01-17  Eric Blake  <ebb9@byu.net>
62105
62106         Convert c-strcasestr to be more efficient.
62107         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62108         (Depends-on): Add c-strcase, remove malloca, strnlen.
62109         * tests/test-c-strcasestr.c (main): Enhance test.
62110         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62111
62112 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62113
62114         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62115         Use it in creating po/Makevars.
62116
62117 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62118
62119         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62120         Applications that requires it should initialize libgcrypt
62121         manually.
62122
62123 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62124
62125         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62126
62127 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         Fix problem with getdate on mingw32 reported by Simon Josefsson
62130         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62131         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62132         tzname", when deciding whether to declare tzname.
62133         * lib/strftime.c (tzname): Likewise.
62134
62135 2008-01-15  Bruno Haible  <bruno@clisp.org>
62136
62137         Work around a MacOS X 10.5 bug in frexpl().
62138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62139         * doc/functions/frexpl.texi: Document the bug.
62140         Reported by Elias Pipping <pipping@gentoo.org>.
62141
62142 2008-01-14  Eric Blake  <ebb9@byu.net>
62143
62144         Touch up previous patch.
62145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62146         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62147
62148         Convert strcasestr module to use Two-Way algorithm.
62149         * modules/strcasestr-simple: New module, based on the old
62150         strcasestr, but with Two-Way rather than KMP.
62151         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62152         * lib/string.in.h (rpl_strcasestr): Declare.
62153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62154         performance.
62155         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62156         * modules/string (Makefile.am): Support strcasestr.
62157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62158         * modules/strcasestr-tests (Depends-on): Check for alarm.
62159         * tests/test-strcasestr.c: Augment test.
62160         * lib/str-two-way.h: Clean up stray macro.
62161         * NEWS: Document new module.
62162         * MODULES.html.sh (string handling): Likewise.
62163         * doc/functions/strcasestr.texi: New file.
62164         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62165         here, since it is not a POSIX function.
62166
62167 2008-01-14  Colin Watson  <cjwatson@debian.org>
62168             Bruno Haible  <bruno@clisp.org>
62169
62170         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62171         works fine; if not, set REPLACE_STRSIGNAL.
62172         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62174         REPLACE_STRSIGNAL.
62175         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62176         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62177         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62178
62179 2008-01-14  Bruno Haible  <bruno@clisp.org>
62180
62181         * modules/strsignal (Include): Change to <string.h>.
62182
62183 2008-01-14  Colin Watson  <cjwatson@debian.org>
62184
62185         * modules/argp (Notice): Add a notice recommending to change
62186         XGETTEXT_OPTIONS.
62187         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62188
62189 2008-01-13  Colin Watson  <cjwatson@debian.org>
62190
62191         * modules/strsignal-tests: New file.
62192         * tests/test-strsignal.c: New file.
62193
62194         * lib/strsignal.c: New file, from glibc with modifications.
62195         * lib/siglist.h: New file, from glibc with modifications.
62196         * lib/string.in.h (strsignal): New declaration.
62197         * m4/strsignal.m4: New file.
62198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62199         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62200         * modules/strsignal: New file.
62201         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62202         HAVE_DECL_STRSIGNAL.
62203
62204 2008-01-13  Bruno Haible  <bruno@clisp.org>
62205
62206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62207         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62210
62211 2008-01-13  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62214         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62215         * lib/argp.h (__attribute__): Likewise.
62216         * lib/c-stack.c (__attribute__): Likewise.
62217         * lib/error.h (__attribute__): Likewise.
62218         * lib/fts.c (__attribute__): Likewise.
62219         * lib/openat.h (__attribute__): Likewise.
62220         * lib/stdio.in.h (__attribute__): Likewise.
62221         * lib/string.in.h (__attribute__): Likewise.
62222         * lib/utimens.c (__attribute__): Likewise.
62223         * lib/vasnprintf.h (__attribute__): Likewise.
62224         * lib/xalloc.h (__attribute__): Likewise.
62225         * lib/xprintf.h (__attribute__): Likewise.
62226         * lib/xstrtol.h (__attribute__): Likewise.
62227         * lib/xvasprintf.h (__attribute__): Likewise.
62228
62229 2008-01-12  Bruno Haible  <bruno@clisp.org>
62230
62231         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62232         * doc/glibc-headers/a.out.texi: New file.
62233         * doc/glibc-headers/aliases.texi: New file.
62234         * doc/glibc-headers/alloca.texi: New file.
62235         * doc/glibc-headers/ar.texi: New file.
62236         * doc/glibc-headers/argp.texi: New file.
62237         * doc/glibc-headers/argz.texi: New file.
62238         * doc/glibc-headers/byteswap.texi: New file.
62239         * doc/glibc-headers/crypt.texi: New file.
62240         * doc/glibc-headers/endian.texi: New file.
62241         * doc/glibc-headers/envz.texi: New file.
62242         * doc/glibc-headers/err.texi: New file.
62243         * doc/glibc-headers/error.texi: New file.
62244         * doc/glibc-headers/execinfo.texi: New file.
62245         * doc/glibc-headers/fpu_control.texi: New file.
62246         * doc/glibc-headers/fstab.texi: New file.
62247         * doc/glibc-headers/fts.texi: New file.
62248         * doc/glibc-headers/getopt.texi: New file.
62249         * doc/glibc-headers/ieee754.texi: New file.
62250         * doc/glibc-headers/ifaddrs.texi: New file.
62251         * doc/glibc-headers/libintl.texi: New file.
62252         * doc/glibc-headers/mcheck.texi: New file.
62253         * doc/glibc-headers/mntent.texi: New file.
62254         * doc/glibc-headers/obstack.texi: New file.
62255         * doc/glibc-headers/paths.texi: New file.
62256         * doc/glibc-headers/printf.texi: New file.
62257         * doc/glibc-headers/pty.texi: New file.
62258         * doc/glibc-headers/resolv.texi: New file.
62259         * doc/glibc-headers/shadow.texi: New file.
62260         * doc/glibc-headers/sysexits.texi: New file.
62261         * doc/glibc-headers/ttyent.texi: New file.
62262
62263 2008-01-12  Jim Meyering  <meyering@redhat.com>
62264
62265         announce-gen: emit Gnulib's git-based version string.
62266         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62267         New option --gnulib-version=V, where V is expected to be
62268         the output of running git describe in the gnulib directory.
62269         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62270         not useful, and plan to stop publishing an xdelta file with each
62271         coreutils release.
62272
62273         * build-aux/announce-gen: Also check for lzma-compressed files.
62274
62275 2008-01-11  Bruno Haible  <bruno@clisp.org>
62276
62277         * tests/test-memmem.c (main): Increase maximum allowed time.
62278         * tests/test-strstr.c (main): Likewise.
62279
62280 2008-01-11  Bruno Haible  <bruno@clisp.org>
62281
62282         * doc/functions/memmem.texi: Add more precisions about platforms.
62283         * doc/functions/strstr.texi: Likewise.
62284
62285 2008-01-10  Eric Blake  <ebb9@byu.net>
62286
62287         * m4/strstr.m4: Delete cruft from copy-n-paste.
62288         Reported by Bruno Haible.
62289
62290 2008-01-10  Bruno Haible  <bruno@clisp.org>
62291
62292         Make c-strstr rely on strstr.
62293         * lib/c-strstr.c: Don't include str-kmp.h.
62294         (c_strstr): Define in terms of strstr.
62295         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62296         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62297
62298 2008-01-10  Bruno Haible  <bruno@clisp.org>
62299
62300         * doc/gnulib.texi (String Functions in C Locale): New section.
62301         * doc/c-ctype.texi: New file.
62302         * doc/c-strcase.texi: New file.
62303         * doc/c-strcaseeq.texi: New file.
62304         * doc/c-strcasestr.texi: New file.
62305         * doc/c-strstr.texi: New file.
62306         * doc/c-strtod.texi: New file.
62307         * doc/c-strtold.texi: New file.
62308
62309 2008-01-10  Eric Blake  <ebb9@byu.net>
62310
62311         * lib/relocatable.h: Fix a comment.
62312
62313 2008-01-10  Eric Blake  <ebb9@byu.net>
62314
62315         Share two-way algorithm.
62316         * lib/str-two-way.h: New file, merged from...
62317         * lib/memmem.c: ...here...
62318         * lib/strstr.c: ...and here.
62319         * modules/memmem (Files): Use it.
62320         * modules/strstr (Files): Likewise.
62321
62322         Avoid quadratic strstr implementations.
62323         * lib/strstr.c: New file.
62324         * m4/strstr.m4: Likewise.
62325         * modules/strstr: Likewise.
62326         * modules/strstr-tests: Likewise.
62327         * tests/test-strstr.c: Likewise.
62328         * lib/string.in.h (rpl_strstr): Declare.
62329         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62331         * modules/string (Makefile.am): Likewise.
62332         * MODULES.html.sh (string handling): Mention new module.
62333         * doc/functions/strstr.texi (strstr): Document the bug.
62334
62335 2008-01-10  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/relocatable.h (relocate): State whether result is freshly
62338         allocated or not.
62339         * lib/relocatable.c (relocate): Return a freshly allocated string
62340         instead of a pointer to a privately held string.
62341         Reported by Sylvain Beucler <beuc@gnu.org>.
62342
62343 2008-01-10  Colin Watson  <cjwatson@debian.org>
62344
62345         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62346         s/S_ISNLK/S_ISLNK/.
62347
62348 2008-01-09  Bruno Haible  <bruno@clisp.org>
62349
62350         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62351         and other files.
62352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62353         if it's only a guess.
62354         * modules/memmem: Simplify by depending on memmem-simple.
62355
62356 2008-01-09  Bruno Haible  <bruno@clisp.org>
62357
62358         Work around OpenBSD 4.0 tdelete() bug.
62359         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62360         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62361         macros and don't redefine the enum values.
62362         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62363         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62364         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62365
62366 2008-01-09  Bruno Haible  <bruno@clisp.org>
62367
62368         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62369         (main): Don't perform the tests if setlocale did not install a UTF-8
62370         locale. Needed on OpenBSD 4.0.
62371         * modules/wcwidth-tests (Depends-on): Add localcharset.
62372
62373 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62376         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62377         * NEWS: announce this.
62378         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62379
62380 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62381         and Eric Blake  <ebb9@byu.net>
62382
62383         Add memmem-simple module.
62384         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62385         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62386         * modules/memmem-simple: New file.
62387         * modules/memmem (Description): Tweak.
62388         * MODULES.html.sh (string handling): Mention new module.
62389         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62390         addressed by memmem-simple.
62391         * NEWS: Document the difference.
62392
62393 2008-01-09  Eric Blake  <ebb9@byu.net>
62394
62395         Give gcc some memmem optimization hints.
62396         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62397         (strcasestr): Declare as pure.
62398         * modules/memmem (Maintainer): Claim my implementation.
62399
62400 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62401
62402         Support AIX 6.1 and higher.
62403         * build-aux/config.libpath: Likewise.
62404         * build-aux/config.rpath: Likewise.
62405
62406 2008-01-08  Jim Meyering  <meyering@redhat.com>
62407             Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62410         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62411         Reported by Peter Fales in
62412         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62413
62414 2008-01-08  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/unictype/category-of (Depends-on): Add
62417         unictype/category-none.
62418         * modules/unictype/category-and-tests (Depends-on): Add
62419         unictype/category-{L,N,Lu,Nd}.
62420         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62421         * modules/unictype/category-or-tests (Depends-on): Add
62422         unictype/category-{L,N}.
62423         * modules/unictype/category-name-tests (Depends-on): Add
62424         unictype/category-{Z,Nl}.
62425         Reported by Simon Josefsson.
62426
62427 2008-01-08  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62430         convention better.
62431         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62432         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62433         Reported by Peter Miller <millerp@canb.auug.org.au>.
62434
62435 2008-01-08  Eric Blake  <ebb9@byu.net>
62436
62437         Rewrite memmem to guarantee linear complexity without malloc.
62438         * lib/memmem.c (memmem): Use Two-Way rather than
62439         Knuth-Morris-Pratt, to allow O(1) space usage.
62440         (critical_factorization, two_way_short_needle)
62441         (two_way_long_needle): New functions.
62442         (knuth_morris_pratt): Delete.
62443         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62444         Add stdint.
62445         * tests/test-memmem.c (main): Add tests for periodic needle and
62446         sublinear performance.
62447         * doc/functions/memmem.texi (memmem): Document other deficiencies
62448         in cygwin and older glibc.
62449
62450 2008-01-08  Bruno Haible  <bruno@clisp.org>
62451
62452         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62453         augmentation.
62454
62455 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62456
62457         Add a configure time option: --disable-acl.
62458         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62459         AC_ARG_ENABLE(acl).
62460
62461 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62462
62463         * tests/test-localename.c: Don't include obsolete "setenv.h".
62464
62465         * modules/localename-tests (Depends-on): Need unsetenv.
62466
62467 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62468
62469         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62470
62471 2008-01-06  Colin Watson  <cjwatson@debian.org>
62472
62473         * users.txt: Add man-db.
62474
62475 2008-01-07  Bruno Haible  <bruno@clisp.org>
62476
62477         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62478         previous section name.
62479
62480 2008-01-07  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/progname.c (set_program_name): Don't strip off a leading
62483         "lt-" prefix outside a .libs directory.
62484         Suggested by Paul Eggert.
62485
62486 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62487             Bruno Haible  <bruno@clisp.org>
62488
62489         Improve memory cleanup in 'relocatable' module.
62490         * lib/relocatable.h (compute_curr_prefix): Change return type to
62491         'char *'.
62492         * lib/relocatable.c (compute_curr_prefix): Change return type to
62493         'char *'. Free curr_installdir after use.
62494         (relocate): Free curr_prefix_better after use.
62495         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62496
62497 2008-01-01  Bruno Haible  <bruno@clisp.org>
62498
62499         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62500         failure on older glibc systems.
62501         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62502
62503 2008-01-05  Eric Blake  <ebb9@byu.net>
62504
62505         Avoid quadratic system memmem.
62506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62507         Reported by Ralf Wildenhues.
62508
62509         Fix memmem test for mingw.
62510         * modules/memmem-tests (configure.ac): Check for alarm.
62511         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62512         it.
62513         * doc/functions/memmem.texi: New file.
62514         * doc/gnulib.texi (Function Substitutes): Add memmem.
62515         Reported by Bruno Haible.
62516
62517 2008-01-04  Bruno Haible  <bruno@clisp.org>
62518
62519         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62520         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62521         gl_HEADER_STRING_H_DEFAULTS.
62522
62523 2008-01-04  Eric Blake  <ebb9@byu.net>
62524
62525         Shorten duration of memmem test.
62526         * tests/test-memmem.c (main): Use alarm to declare failure if test
62527         is taking too long.
62528         Reported by Ralf Wildenhues.
62529
62530 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62531
62532         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62533         string, needed by strerror.
62534
62535 2008-01-03  Colin Watson  <cjwatson@debian.org>
62536             Bruno Haible  <bruno@clisp.org>
62537
62538         * doc/gnulib-tool.texi (Localization): New section.
62539
62540 2008-01-02  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62543         variables to 'unsigned char *' type.
62544         Reported by Paul Eggert.
62545
62546 2008-01-02  Jim Meyering  <jim@meyering.net>
62547
62548         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62549
62550 2007-12-31  Jim Meyering  <jim@meyering.net>
62551
62552         Avoid use of private FTS type name.
62553         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62554
62555 2007-12-30  Karl Berry  <karl@gnu.org>
62556
62557         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62558         work around defect in Texinfo and/or the standalone Info browser.
62559
62560 2007-12-30  Bruno Haible  <bruno@clisp.org>
62561
62562         Unify 5 copies of the KMP code.
62563         * lib/str-kmp.h: New file.
62564         * lib/c-strcasestr.c: Include str-kmp.h.
62565         (knuth_morris_pratt): Remove function.
62566         (c_strcasestr): Update.
62567         * lib/c-strstr.c: Include str-kmp.h.
62568         (knuth_morris_pratt): Remove function.
62569         (c_strcasestr): Update.
62570         * lib/mbscasestr.c: Include str-kmp.h.
62571         (knuth_morris_pratt_unibyte): Remove function.
62572         * lib/mbsstr.c: Include str-kmp.h.
62573         (knuth_morris_pratt_unibyte): Remove function.
62574         * lib/strcasestr.c: Include str-kmp.h.
62575         (knuth_morris_pratt): Remove function.
62576         (strcasestr): Update.
62577         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62578         * modules/c-strstr (Files): Likewise.
62579         * modules/mbscasestr (Files): Likewise.
62580         * modules/mbsstr (Files): Likewise.
62581         * modules/strcasestr (Files): Likewise.
62582         Suggested by Paul Eggert.
62583
62584 2007-12-30  Bruno Haible  <bruno@clisp.org>
62585
62586         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62587         defined.
62588
62589 2007-12-30  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/xmalloca.h: Include xalloc.h.
62592         (xnmalloca): New macro.
62593
62594 2007-12-30  Bruno Haible  <bruno@clisp.org>
62595
62596         * lib/malloca.h (nmalloca): New macro.
62597         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62598         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62599         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62600         knuth_morris_pratt_multibyte): Likewise.
62601         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62602         knuth_morris_pratt_multibyte): Likewise.
62603         * lib/memmem.c (knuth_morris_pratt): Likewise.
62604         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62605
62606 2007-12-25  Bruno Haible  <bruno@clisp.org>
62607
62608         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62609         * lib/glob.c: Don't include openat.h.
62610         (link_exists2_p): Add back the code that deals with the
62611         !GLOB_ALTDIRFUNC case.
62612         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62613         let it do the filename concatenation.
62614         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62615         * modules/glob (Depends-on): Remove openat.
62616
62617 2007-12-31  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/dirfd (License): Change to LGPLv2+.
62620         Approved by Jim Meyering.
62621
62622 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62625         when multiplying M by sizeof (size_t).
62626
62627 2007-12-10  Martin Lambers  <marlam@marlam.de>
62628
62629         Override getpagesize on mingw.
62630         * lib/getpagesize.c: New file.
62631         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62632         * modules/getpagesize (Files): Add lib/getpagesize.c.
62633         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62635         REPLACE_GETPAGESIZE.
62636         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62637
62638 2007-12-25  Bruno Haible  <bruno@clisp.org>
62639
62640         * modules/localcharset (Notice): New field.
62641         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62642         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62643
62644 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62645             Bruno Haible  <bruno@clisp.org>
62646
62647         Avoid using the syntax symbol() in formatted documentation.
62648         * MODULES.html.sh (func_module): When replacing symbol() with a
62649         hyperlink, remove the parentheses. Show an error if some remain.
62650         Recognize and render the '...' syntax.
62651         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62652         Rework. Add paragraph about GCC's inlining.
62653         * doc/alloca.texi: Likewise.
62654         * doc/error.texi: Remove parentheses from symbol reference.
62655         * doc/gnulib-intro.texi: Likewise.
62656         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62657         * modules/fnmatch (Description): Reword to say "the ... function".
62658         * modules/full-read (Description): Likewise.
62659         * modules/full-write (Description): Likewise.
62660         * modules/safe-read (Description): Likewise.
62661         * modules/safe-write (Description): Likewise.
62662         * modules/strchrnul (Description): Likewise.
62663         * modules/trim (Description): Likewise.
62664         * modules/error (Description): Remove parentheses from symbol
62665         references.
62666         * modules/verror (Description): Likewise.
62667         Reported by Karl Berry.
62668
62669 2007-12-25  Bruno Haible  <bruno@clisp.org>
62670
62671         Fixup after 2007-10-16 commit.
62672         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62673
62674 2007-12-24  Bruno Haible  <bruno@clisp.org>
62675
62676         Make --enable-relocatable work with DESTDIR.
62677         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62678         to compute installdir from destprog.
62679         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62680         also set the RELOC_DESTDIR variable.
62681         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62682
62683 2007-12-24  Bruno Haible  <bruno@clisp.org>
62684
62685         Fix link error due to xalloc_die().
62686         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62687         of xreadlink.
62688         * lib/relocwrapper.c: Update comments.
62689         * build-aux/install-reloc: Remove xreadlink.c from file list.
62690         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62691         xreadlink.c.
62692         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62693
62694 2007-12-24  Bruno Haible  <bruno@clisp.org>
62695
62696         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62697         * lib/setenv.h: Remove file.
62698         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62699         lib/setenv.h.
62700         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62701         (Depends-on): Add stdlib.
62702         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62703         gl_FUNC_UNSETENV.
62704         (Include): Replace setenv.h with <stdlib.h>.
62705         * modules/unsetenv: New file.
62706         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62707         * lib/unsetenv.c: Include <stdlib.h> first.
62708         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62709         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62710         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62711         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62712         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62713         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62715         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62716         * doc/functions/unsetenv.texi: Update.
62717         * modules/xsetenv (Depends-on): Add unsetenv.
62718         * modules/getdate (Depends-on): Likewise.
62719         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62720         * lib/xsetenv.c: Don't include setenv.h.
62721         * lib/getdate.y: Likewise.
62722         * lib/relocwrapper.c: Likewise.
62723         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62724         (Depends-on): Add stdlib.
62725         * NEWS: Mention the changes.
62726         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62727
62728 2007-12-23  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62731         indentation.
62732
62733 2007-12-23  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/c-strcasestr.c: Add more comments.
62736         * lib/c-strstr.c: Likewise.
62737         * lib/mbscasestr.c: Likewise.
62738         * lib/mbsstr.c: Likewise.
62739         * lib/strcasestr.c: Likewise.
62740         * lib/memmem.c: Likewise.
62741
62742 2007-12-23  Bruno Haible  <bruno@clisp.org>
62743
62744         * tests/test-memmem.c: Include <string.h> first.
62745
62746 2007-12-22  Bruno Haible  <bruno@clisp.org>
62747
62748         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62749         the contents of $testsbase.
62750         Reported by Ralf Wildenhues.
62751
62752 2007-12-22  Bruno Haible  <bruno@clisp.org>
62753
62754         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62755         two variables local_ldadd_before, local_ldadd_last.
62756
62757 2007-12-20  Eric Blake  <ebb9@byu.net>
62758
62759         Work around circular library issue when cross-compiling.
62760         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62761         that progname.o does not need to pull in rpl_memcmp.
62762
62763 2007-12-19  Eric Blake  <ebb9@byu.net>
62764
62765         Fix memmem to avoid O(n^2) worst-case complexity.
62766         * lib/memmem.c (knuth_morris_pratt): New function.
62767         (memmem): Use it if first few naive iterations fail.
62768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62769         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62770         * modules/memchr (License): Likewise.
62771         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62772         malloca.
62773         * tests/test-memmem.c: Rewrite, borrowing ideas from
62774         test-mbsstr1.c; the old version wouldn't even compile!
62775         * modules/memmem-tests: New file.
62776         * lib/string.in.h (rpl_memmem): Add declaration.
62777         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62779         REPLACE_MEMMEM.
62780
62781 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62784         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62785         before any system include files, and undef after them all.  This
62786         should fix a problem on VMS reported by John E. Malmberg in
62787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62788
62789 2007-12-17  Eric Blake  <ebb9@byu.net>
62790
62791         Revert addition of verify, for BSD/OS.
62792         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62793         can't handle large files, for the sake of obsolete platforms.
62794         * modules/fseeko (Depends-on): Remove verify.
62795         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62796         * doc/functions/ftello.texi (ftello): Likewise.
62797         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62798         Reported by Larry Jones.
62799
62800 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62801
62802         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62803         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62804
62805 2007-12-17  Jim Meyering  <meyering@redhat.com>
62806
62807         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62808         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62809         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62810         * modules/getcwd (Depends-on): Add openat.
62811         Reported by Petr Salinger.
62812
62813 2007-12-17  Bruno Haible  <bruno@clisp.org>
62814
62815         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62816         avoid a segmentation fault of the configure test on x86_64 systems.
62817
62818 2007-12-15  Jim Meyering  <meyering@redhat.com>
62819
62820         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62821
62822 2007-12-13  Eric Blake  <ebb9@byu.net>
62823
62824         Another fseek test.
62825         * tests/test-fseek.c (main): Also test ungetc handling.
62826         * tests/test-fseeko.c (main): Likewise.
62827         * modules/fseeko (Depends-on): Add verify.
62828         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62829         large.
62830         Reported by Larry Jones.
62831
62832         Fix fseeko on mingw.
62833         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62834         seek.
62835
62836         Beef up fseek tests.
62837         * tests/test-fseek.c (main): Also test eof handling.
62838         * tests/test-fseeko.c (main): Likewise.
62839         Reported by Larry Jones.
62840
62841 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62842
62843         Fix fseeko on BSD-based platforms.
62844         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62845         successful seek.
62846
62847 2007-12-12  Eric Blake  <ebb9@byu.net>
62848
62849         Allow circular dependency of separate libtests.a
62850         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62851         when use_libtests.
62852
62853 2007-12-11  Eric Blake  <ebb9@byu.net>
62854
62855         Fix bug with -0.0L in previous patch.
62856         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62857         * tests/test-isnan.c (main): Also test on zeroes.
62858         * tests/test-isnanf.c (main): Likewise.
62859         * tests/test-isnanl.h (main): Likewise.
62860
62861         Detect pseudo-denormals on x86 even when cross-compiling.
62862         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62863         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62864         invalid bit patterns that happen to satisfy ==.
62865
62866         Avoid link failures with separate libtests.a.
62867         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62868         last, to satisfy circular dependencies.
62869
62870 2007-12-11  Eric Blake  <ebb9@byu.net>
62871         and Bruno Haible  <bruno@clisp.org>
62872
62873         Fix OpenBSD 4.0 <float.h> handling of long double.
62874         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62875         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62876         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62877
62878 2007-12-11  Jim Meyering  <meyering@redhat.com>
62879
62880         * users.txt: Add libvirt.
62881
62882         Support versions of autoconf prior to 2.59c.
62883         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62884         if it is not already defined.
62885
62886 2007-12-09  Bruno Haible  <bruno@clisp.org>
62887
62888         Let 'gnulib-tool --import' collect sources needed for the tests in
62889         tests/ rather than in lib/.
62890         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62891         argument. If true, add rules to generate libtests.a, and put libtests.a
62892         into $(LDADD). Consider source files in subdirectories and set
62893         uses_subdirs.
62894         (func_emit_initmacro_start, func_emit_initmacro_end,
62895         func_emit_initmacro_done): Pass all arguments explicitly.
62896         (func_import): Determine two module lists main_modules,
62897         testsrelated_modules. Determine use_libtests. Determine two variables
62898         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62899         instead of just sed_transform_lib_file. Determine two variables
62900         main_files and testsrelated_files. Compute 'files' as the union of
62901         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62902         func_add_or_update. In the generated gnulib-comp.m4, collect the
62903         object files for tests/ in different variables than those for lib/.
62904         Substitute LIBTESTS_LIBDEPS.
62905         (func_create_testdir): Combine the uses_subdirs results from
62906         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62907
62908 2007-12-09  Bruno Haible  <bruno@clisp.org>
62909
62910         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62911         the build-aux directory.
62912
62913 2007-12-09  Bruno Haible  <bruno@clisp.org>
62914
62915         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62916         introduced on 2006-09-09.
62917
62918 2007-12-07  Jim Meyering  <meyering@redhat.com>
62919
62920         Let these macros work also with autoconf-2.59.
62921         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62922         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62924
62925 2007-12-06  Jim Meyering  <meyering@redhat.com>
62926
62927         Avoid a configure-time syntax error in gl_FUNC_ACL.
62928         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62929         function in each branch, before testing the cache variable.
62930
62931 2007-12-04  Eric Blake  <ebb9@byu.net>
62932
62933         Make scripts executable.
62934         * build-aux/config.guess: Add execute permissions.
62935         * build-aux/config.sub: Likewise.
62936         * build-aux/gendocs.sh: Likewise.
62937
62938         Fix frexp on mingw.
62939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62940         cross-compiling.
62941         * doc/functions/frexp.texi (frexp): Document the bug.
62942
62943         Make cygwin fseeko check more reliable.
62944         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62945         version numbers, rather than unrelated feature check.
62946         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62947         * doc/functions/ftello.texi (ftello): Likewise.
62948         Reported by Bruno Haible.
62949
62950         * m4/strerror.m4: Bump version number.
62951
62952 2007-12-03  Bruno Haible  <bruno@clisp.org>
62953
62954         * doc/functions/mprotect.texi: Mention the mingw problem.
62955
62956 2007-12-03  Eric Blake  <ebb9@byu.net>
62957
62958         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62959         REPLACE_STRERROR is initialized before this macro.
62960
62961 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62962
62963         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62964         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62965         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62966         put -lsec in even for programs other than 'ls'.  This fixes a problem
62967         for gettext reported by Bruno Haible in
62968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62969         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62970         Add support for Solaris 10.  This isn't efficient, but should get the
62971         job done for now.
62972
62973 2007-12-03  James Youngman  <jay@gnu.org>
62974
62975         * doc/regexprops-generic.texi: change "an close-group" to "a
62976         close-group" and "illegal" to "not allowed".
62977
62978 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62979
62980         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62981         pr_byname.h. Needed for the rare case when the maintainer has done
62982         "make maintainer-clean" in the source directory and then attempts a
62983         build outside the source directory.
62984         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62985         scripts_byname.h.
62986
62987 2007-12-02  Martin Lambers <marlam@marlam.de>
62988             Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/getpagesize.h: Remove file.
62991         * lib/unistd.in.h: Include declaration of getpagesize here.
62992         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62993         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62994         HAVE_SYS_PARAM_H.
62995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62996         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62997         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62998         (Depends-on): Add unistd.
62999         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63000         (Include): Use <unistd.h> instead of getpagesize.h.
63001         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63002         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63003         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63004         gl_GETPAGESIZE invocation, already handled by module dependency.
63005         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63006
63007 2007-12-02  Bruno Haible  <bruno@clisp.org>
63008
63009         * modules/strings-tests: New file.
63010         * tests/test-strings.c: New file.
63011
63012         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63013         * lib/strings.in.h: New file.
63014         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63015         * m4/strings_h.m4: New file.
63016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63017         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63018         * modules/strings: New file.
63019         * modules/string (Makefile.am): Update.
63020         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63021         Reported by Karl Berry.
63022
63023 2007-12-01  Eric Blake  <ebb9@byu.net>
63024
63025         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63026         accommodate fix in cygwin 1.5.25.
63027
63028 2007-12-01  Jim Meyering  <meyering@redhat.com>
63029
63030         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63031         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63032         that would inhibit utf8-optimization of a regexp containing line-
63033         or buffer-anchors, e.g., `^', `$'.
63034
63035 2007-11-30  Bruno Haible  <bruno@clisp.org>
63036
63037         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63038         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63039         glthread_recursive_lock_init.
63040         * lib/lock.c (glthread_recursive_lock_init)
63041         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63042         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63043
63044 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         New function qset_acl, like set_acl but with syscall semantics.
63047         * lib/acl.h (qset_acl): New decl.
63048         * lib/acl.c (qset_acl): New function.
63049         (set_acl): Use new function.  Use more-consistent diagnostics.
63050
63051 2007-11-28  Jim Meyering  <meyering@redhat.com>
63052
63053         * modules/physmem (License): Change from GPL to LGPLv2+.
63054
63055 2007-11-26  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63058         'long double' type has excess precision.
63059         Reported by Jim Meyering in
63060         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63061
63062 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63063
63064         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63065         Sync from <http://gnu.org/licenses>.
63066         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63067         with license text from same location.
63068         * doc/maintain.texi, doc/standards.texi:  Sync from
63069         <http://savannah.gnu.org/projects/gnustandards>.
63070
63071 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
63072         and Jim Meyering  <meyering@redhat.com>
63073
63074         Adjust getdate' grammar to accept a slightly more regular language.
63075         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63076         Before, the former was rejected.
63077         * lib/getdate.y (digits_to_date_time): New function, factored
63078         out of ...
63079         (number): ...here.  Just call digits_to_date_time.
63080         (hybrid): New non-terminal to handle an <unsigned number,
63081         signed relative offset> sequence consistently.
63082
63083 2007-11-18  Jim Meyering  <meyering@redhat.com>
63084
63085         Pull my changes from coreutils:
63086         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63087         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63088         use of $gnulib_tool_option_extras, so that it's separated from the
63089         preceding argument.
63090
63091         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63092         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63093         parent destination directories before copying a file into place.
63094
63095 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63096
63097         bootstrap: work also with 4-argument variant of AC_INIT
63098         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63099
63100 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         Port test-getaddrinfo to Solaris.
63103         Problem reported by Bruno Haible in
63104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63105         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63106         explanation of setting 'hints'.
63107         Don't reject an implementation merely because it returns EAI_SERVICE.
63108         (EAI_SERVICE): Define to 0 if not defined.
63109
63110 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         The license of gnu-make and posix-shell is now "GPLed build tool".
63113         * modules/gnu-make (License): Likewise.
63114         * modules/posix-shell (License): Likewise.
63115
63116         New module posix-shell, for determining a POSIX shell
63117         or perhaps something that is close enough to a POSIX shell.
63118         * m4/posix-shell.m4: New file.
63119         * modules/posix-shell: New file.
63120
63121         * MODULES.html.sh: Mention new module.
63122
63123         New module gnu-make, for determining whether we're using GNU Make.
63124         * m4/gnu-make.m4: New file.
63125         * modules/gnu-make: New file.
63126         * MODULES.html.sh: Mention new module.
63127
63128 2007-11-14  Jim Meyering  <meyering@redhat.com>
63129
63130         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63131         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63132         use this macro to create a function _definition_.
63133         Remove useless "#undef ARGMATCH_DIE".
63134
63135 2007-11-14  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/config.charset: Update for OpenBSD 4.1.
63138         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63139
63140 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         Document 64-bit #if problems in stdint.texi.
63143         * doc/headers/stdint.texi (stdint.h): Mention problems with
63144         64-bit-#if, and how to work around them.
63145
63146         Don't insist on 'long long int' support in the preprocessor.  It
63147         breaks too many things.  For example, PRIdMAX still uses a 'long
63148         long int' format with the latest Sun compiler, even though
63149         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63150         preprocessor problem.  This causes the latest coreutils to dump
63151         core on Solaris 10 sparc with the Sun C compiler.
63152         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63153         the troublesome expressions at configure-time, not at #if-time.
63154         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63155         preprocessor.
63156         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63157         compile-time C checks, done at 'configure'-time.
63158         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63159         * modules/inttypes (Makefile): Substitute the new symbols that
63160         gl_INTTYPES_H now generates.
63161         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63162
63163 2007-11-12  Bruno Haible  <bruno@clisp.org>
63164
63165         Tests for Unicode character classification functions.
63166
63167         * modules/unictype/bidicategory-byname-tests: New file.
63168         * modules/unictype/bidicategory-name-tests: New file.
63169         * modules/unictype/bidicategory-of-tests: New file.
63170         * modules/unictype/bidicategory-test-tests: New file.
63171         * modules/unictype/block-list-tests: New file.
63172         * modules/unictype/block-of-tests: New file.
63173         * modules/unictype/block-test-tests: New file.
63174         * modules/unictype/category-C-tests: New file.
63175         * modules/unictype/category-Cc-tests: New file.
63176         * modules/unictype/category-Cf-tests: New file.
63177         * modules/unictype/category-Cn-tests: New file.
63178         * modules/unictype/category-Co-tests: New file.
63179         * modules/unictype/category-Cs-tests: New file.
63180         * modules/unictype/category-L-tests: New file.
63181         * modules/unictype/category-Ll-tests: New file.
63182         * modules/unictype/category-Lm-tests: New file.
63183         * modules/unictype/category-Lo-tests: New file.
63184         * modules/unictype/category-Lt-tests: New file.
63185         * modules/unictype/category-Lu-tests: New file.
63186         * modules/unictype/category-M-tests: New file.
63187         * modules/unictype/category-Mc-tests: New file.
63188         * modules/unictype/category-Me-tests: New file.
63189         * modules/unictype/category-Mn-tests: New file.
63190         * modules/unictype/category-N-tests: New file.
63191         * modules/unictype/category-Nd-tests: New file.
63192         * modules/unictype/category-Nl-tests: New file.
63193         * modules/unictype/category-No-tests: New file.
63194         * modules/unictype/category-P-tests: New file.
63195         * modules/unictype/category-Pc-tests: New file.
63196         * modules/unictype/category-Pd-tests: New file.
63197         * modules/unictype/category-Pe-tests: New file.
63198         * modules/unictype/category-Pf-tests: New file.
63199         * modules/unictype/category-Pi-tests: New file.
63200         * modules/unictype/category-Po-tests: New file.
63201         * modules/unictype/category-Ps-tests: New file.
63202         * modules/unictype/category-S-tests: New file.
63203         * modules/unictype/category-Sc-tests: New file.
63204         * modules/unictype/category-Sk-tests: New file.
63205         * modules/unictype/category-Sm-tests: New file.
63206         * modules/unictype/category-So-tests: New file.
63207         * modules/unictype/category-Z-tests: New file.
63208         * modules/unictype/category-Zl-tests: New file.
63209         * modules/unictype/category-Zp-tests: New file.
63210         * modules/unictype/category-Zs-tests: New file.
63211         * modules/unictype/category-and-not-tests: New file.
63212         * modules/unictype/category-and-tests: New file.
63213         * modules/unictype/category-byname-tests: New file.
63214         * modules/unictype/category-name-tests: New file.
63215         * modules/unictype/category-none-tests: New file.
63216         * modules/unictype/category-of-tests: New file.
63217         * modules/unictype/category-or-tests: New file.
63218         * modules/unictype/category-test-withtable-tests: New file.
63219         * modules/unictype/combining-class-tests: New file.
63220         * modules/unictype/ctype-alnum-tests: New file.
63221         * modules/unictype/ctype-alpha-tests: New file.
63222         * modules/unictype/ctype-blank-tests: New file.
63223         * modules/unictype/ctype-cntrl-tests: New file.
63224         * modules/unictype/ctype-digit-tests: New file.
63225         * modules/unictype/ctype-graph-tests: New file.
63226         * modules/unictype/ctype-lower-tests: New file.
63227         * modules/unictype/ctype-print-tests: New file.
63228         * modules/unictype/ctype-punct-tests: New file.
63229         * modules/unictype/ctype-space-tests: New file.
63230         * modules/unictype/ctype-upper-tests: New file.
63231         * modules/unictype/ctype-xdigit-tests: New file.
63232         * modules/unictype/decimal-digit-tests: New file.
63233         * modules/unictype/digit-tests: New file.
63234         * modules/unictype/mirror-tests: New file.
63235         * modules/unictype/numeric-tests: New file.
63236         * modules/unictype/property-alphabetic-tests: New file.
63237         * modules/unictype/property-ascii-hex-digit-tests: New file.
63238         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63239         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63240         * modules/unictype/property-bidi-block-separator-tests: New file.
63241         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63242         * modules/unictype/property-bidi-common-separator-tests: New file.
63243         * modules/unictype/property-bidi-control-tests: New file.
63244         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63245         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63246         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63247         * modules/unictype/property-bidi-european-digit-tests: New file.
63248         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63249         * modules/unictype/property-bidi-left-to-right-tests: New file.
63250         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63251         * modules/unictype/property-bidi-other-neutral-tests: New file.
63252         * modules/unictype/property-bidi-pdf-tests: New file.
63253         * modules/unictype/property-bidi-segment-separator-tests: New file.
63254         * modules/unictype/property-bidi-whitespace-tests: New file.
63255         * modules/unictype/property-byname-tests: New file.
63256         * modules/unictype/property-combining-tests: New file.
63257         * modules/unictype/property-composite-tests: New file.
63258         * modules/unictype/property-currency-symbol-tests: New file.
63259         * modules/unictype/property-dash-tests: New file.
63260         * modules/unictype/property-decimal-digit-tests: New file.
63261         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63262         * modules/unictype/property-deprecated-tests: New file.
63263         * modules/unictype/property-diacritic-tests: New file.
63264         * modules/unictype/property-extender-tests: New file.
63265         * modules/unictype/property-format-control-tests: New file.
63266         * modules/unictype/property-grapheme-base-tests: New file.
63267         * modules/unictype/property-grapheme-extend-tests: New file.
63268         * modules/unictype/property-grapheme-link-tests: New file.
63269         * modules/unictype/property-hex-digit-tests: New file.
63270         * modules/unictype/property-hyphen-tests: New file.
63271         * modules/unictype/property-id-continue-tests: New file.
63272         * modules/unictype/property-id-start-tests: New file.
63273         * modules/unictype/property-ideographic-tests: New file.
63274         * modules/unictype/property-ids-binary-operator-tests: New file.
63275         * modules/unictype/property-ids-trinary-operator-tests: New file.
63276         * modules/unictype/property-ignorable-control-tests: New file.
63277         * modules/unictype/property-iso-control-tests: New file.
63278         * modules/unictype/property-join-control-tests: New file.
63279         * modules/unictype/property-left-of-pair-tests: New file.
63280         * modules/unictype/property-line-separator-tests: New file.
63281         * modules/unictype/property-logical-order-exception-tests: New file.
63282         * modules/unictype/property-lowercase-tests: New file.
63283         * modules/unictype/property-math-tests: New file.
63284         * modules/unictype/property-non-break-tests: New file.
63285         * modules/unictype/property-not-a-character-tests: New file.
63286         * modules/unictype/property-numeric-tests: New file.
63287         * modules/unictype/property-other-alphabetic-tests: New file.
63288         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63289         * modules/unictype/property-other-grapheme-extend-tests: New file.
63290         * modules/unictype/property-other-id-continue-tests: New file.
63291         * modules/unictype/property-other-id-start-tests: New file.
63292         * modules/unictype/property-other-lowercase-tests: New file.
63293         * modules/unictype/property-other-math-tests: New file.
63294         * modules/unictype/property-other-uppercase-tests: New file.
63295         * modules/unictype/property-paired-punctuation-tests: New file.
63296         * modules/unictype/property-paragraph-separator-tests: New file.
63297         * modules/unictype/property-pattern-syntax-tests: New file.
63298         * modules/unictype/property-pattern-white-space-tests: New file.
63299         * modules/unictype/property-private-use-tests: New file.
63300         * modules/unictype/property-punctuation-tests: New file.
63301         * modules/unictype/property-quotation-mark-tests: New file.
63302         * modules/unictype/property-radical-tests: New file.
63303         * modules/unictype/property-sentence-terminal-tests: New file.
63304         * modules/unictype/property-soft-dotted-tests: New file.
63305         * modules/unictype/property-space-tests: New file.
63306         * modules/unictype/property-terminal-punctuation-tests: New file.
63307         * modules/unictype/property-test-tests: New file.
63308         * modules/unictype/property-titlecase-tests: New file.
63309         * modules/unictype/property-unassigned-code-value-tests: New file.
63310         * modules/unictype/property-unified-ideograph-tests: New file.
63311         * modules/unictype/property-uppercase-tests: New file.
63312         * modules/unictype/property-variation-selector-tests: New file.
63313         * modules/unictype/property-white-space-tests: New file.
63314         * modules/unictype/property-xid-continue-tests: New file.
63315         * modules/unictype/property-xid-start-tests: New file.
63316         * modules/unictype/property-zero-width-tests: New file.
63317         * modules/unictype/scripts-tests: New file.
63318         * modules/unictype/syntax-c-ident-tests: New file.
63319         * modules/unictype/syntax-c-whitespace-tests: New file.
63320         * modules/unictype/syntax-java-ident-tests: New file.
63321         * modules/unictype/syntax-java-whitespace-tests: New file.
63322         * tests/unictype/test-bidi_byname.c: New file.
63323         * tests/unictype/test-bidi_name.c: New file.
63324         * tests/unictype/test-bidi_of.c: New file.
63325         * tests/unictype/test-bidi_test.c: New file.
63326         * tests/unictype/test-block_list.c: New file.
63327         * tests/unictype/test-block_of.c: New file.
63328         * tests/unictype/test-block_test.c: New file.
63329         * tests/unictype/test-categ_and.c: New file.
63330         * tests/unictype/test-categ_and_not.c: New file.
63331         * tests/unictype/test-categ_byname.c: New file.
63332         * tests/unictype/test-categ_name.c: New file.
63333         * tests/unictype/test-categ_none.c: New file.
63334         * tests/unictype/test-categ_of.c: New file.
63335         * tests/unictype/test-categ_or.c: New file.
63336         * tests/unictype/test-categ_test_withtable.c: New file.
63337         * tests/unictype/test-combining.c: New file.
63338         * tests/unictype/test-decdigit.c: New file.
63339         * tests/unictype/test-digit.c: New file.
63340         * tests/unictype/test-mirror.c: New file.
63341         * tests/unictype/test-numeric.c: New file.
63342         * tests/unictype/test-pr_byname.c: New file.
63343         * tests/unictype/test-pr_test.c: New file.
63344         * tests/unictype/test-predicate-part1.h: New file.
63345         * tests/unictype/test-predicate-part2.h: New file.
63346         * tests/unictype/test-scripts.c: New file.
63347         * tests/unictype/test-sy_c_ident.c: New file.
63348         * tests/unictype/test-sy_java_ident.c: New file.
63349
63350         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63351         for Unicode 5.0.0.
63352         * tests/unictype/test-categ_Cc.c: Likewise.
63353         * tests/unictype/test-categ_Cf.c: Likewise.
63354         * tests/unictype/test-categ_Cn.c: Likewise.
63355         * tests/unictype/test-categ_Co.c: Likewise.
63356         * tests/unictype/test-categ_Cs.c: Likewise.
63357         * tests/unictype/test-categ_L.c: Likewise.
63358         * tests/unictype/test-categ_Ll.c: Likewise.
63359         * tests/unictype/test-categ_Lm.c: Likewise.
63360         * tests/unictype/test-categ_Lo.c: Likewise.
63361         * tests/unictype/test-categ_Lt.c: Likewise.
63362         * tests/unictype/test-categ_Lu.c: Likewise.
63363         * tests/unictype/test-categ_M.c: Likewise.
63364         * tests/unictype/test-categ_Mc.c: Likewise.
63365         * tests/unictype/test-categ_Me.c: Likewise.
63366         * tests/unictype/test-categ_Mn.c: Likewise.
63367         * tests/unictype/test-categ_N.c: Likewise.
63368         * tests/unictype/test-categ_Nd.c: Likewise.
63369         * tests/unictype/test-categ_Nl.c: Likewise.
63370         * tests/unictype/test-categ_No.c: Likewise.
63371         * tests/unictype/test-categ_P.c: Likewise.
63372         * tests/unictype/test-categ_Pc.c: Likewise.
63373         * tests/unictype/test-categ_Pd.c: Likewise.
63374         * tests/unictype/test-categ_Pe.c: Likewise.
63375         * tests/unictype/test-categ_Pf.c: Likewise.
63376         * tests/unictype/test-categ_Pi.c: Likewise.
63377         * tests/unictype/test-categ_Po.c: Likewise.
63378         * tests/unictype/test-categ_Ps.c: Likewise.
63379         * tests/unictype/test-categ_S.c: Likewise.
63380         * tests/unictype/test-categ_Sc.c: Likewise.
63381         * tests/unictype/test-categ_Sk.c: Likewise.
63382         * tests/unictype/test-categ_Sm.c: Likewise.
63383         * tests/unictype/test-categ_So.c: Likewise.
63384         * tests/unictype/test-categ_Z.c: Likewise.
63385         * tests/unictype/test-categ_Zl.c: Likewise.
63386         * tests/unictype/test-categ_Zp.c: Likewise.
63387         * tests/unictype/test-categ_Zs.c: Likewise.
63388         * tests/unictype/test-ctype_alnum.c: Likewise.
63389         * tests/unictype/test-ctype_alpha.c: Likewise.
63390         * tests/unictype/test-ctype_blank.c: Likewise.
63391         * tests/unictype/test-ctype_cntrl.c: Likewise.
63392         * tests/unictype/test-ctype_digit.c: Likewise.
63393         * tests/unictype/test-ctype_graph.c: Likewise.
63394         * tests/unictype/test-ctype_lower.c: Likewise.
63395         * tests/unictype/test-ctype_print.c: Likewise.
63396         * tests/unictype/test-ctype_punct.c: Likewise.
63397         * tests/unictype/test-ctype_space.c: Likewise.
63398         * tests/unictype/test-ctype_upper.c: Likewise.
63399         * tests/unictype/test-ctype_xdigit.c: Likewise.
63400         * tests/unictype/test-decdigit.h: Likewise.
63401         * tests/unictype/test-digit.h: Likewise.
63402         * tests/unictype/test-numeric.h: Likewise.
63403         * tests/unictype/test-pr_alphabetic.c: Likewise.
63404         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63405         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63406         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63407         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63408         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63409         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63410         * tests/unictype/test-pr_bidi_control.c: Likewise.
63411         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63412         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63413         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63414         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63415         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63416         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63417         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63418         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63419         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63420         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63421         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63422         * tests/unictype/test-pr_combining.c: Likewise.
63423         * tests/unictype/test-pr_composite.c: Likewise.
63424         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63425         * tests/unictype/test-pr_dash.c: Likewise.
63426         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63427         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63428         * tests/unictype/test-pr_deprecated.c: Likewise.
63429         * tests/unictype/test-pr_diacritic.c: Likewise.
63430         * tests/unictype/test-pr_extender.c: Likewise.
63431         * tests/unictype/test-pr_format_control.c: Likewise.
63432         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63433         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63434         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63435         * tests/unictype/test-pr_hex_digit.c: Likewise.
63436         * tests/unictype/test-pr_hyphen.c: Likewise.
63437         * tests/unictype/test-pr_id_continue.c: Likewise.
63438         * tests/unictype/test-pr_id_start.c: Likewise.
63439         * tests/unictype/test-pr_ideographic.c: Likewise.
63440         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63441         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63442         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63443         * tests/unictype/test-pr_iso_control.c: Likewise.
63444         * tests/unictype/test-pr_join_control.c: Likewise.
63445         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63446         * tests/unictype/test-pr_line_separator.c: Likewise.
63447         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63448         * tests/unictype/test-pr_lowercase.c: Likewise.
63449         * tests/unictype/test-pr_math.c: Likewise.
63450         * tests/unictype/test-pr_non_break.c: Likewise.
63451         * tests/unictype/test-pr_not_a_character.c: Likewise.
63452         * tests/unictype/test-pr_numeric.c: Likewise.
63453         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63454         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63455         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63456         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63457         * tests/unictype/test-pr_other_id_start.c: Likewise.
63458         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63459         * tests/unictype/test-pr_other_math.c: Likewise.
63460         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63461         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63462         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63463         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63464         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63465         * tests/unictype/test-pr_private_use.c: Likewise.
63466         * tests/unictype/test-pr_punctuation.c: Likewise.
63467         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63468         * tests/unictype/test-pr_radical.c: Likewise.
63469         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63470         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63471         * tests/unictype/test-pr_space.c: Likewise.
63472         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63473         * tests/unictype/test-pr_titlecase.c: Likewise.
63474         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63475         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63476         * tests/unictype/test-pr_uppercase.c: Likewise.
63477         * tests/unictype/test-pr_variation_selector.c: Likewise.
63478         * tests/unictype/test-pr_white_space.c: Likewise.
63479         * tests/unictype/test-pr_xid_continue.c: Likewise.
63480         * tests/unictype/test-pr_xid_start.c: Likewise.
63481         * tests/unictype/test-pr_zero_width.c: Likewise.
63482         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63483         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63484
63485 2007-11-12  Bruno Haible  <bruno@clisp.org>
63486
63487         Unicode character classification functions.
63488         * lib/unictype.h: New file.
63489         * modules/unictype/base: New file.
63490         * modules/unictype/category-L: New file.
63491         * modules/unictype/category-Lu: New file.
63492         * modules/unictype/category-Ll: New file.
63493         * modules/unictype/category-Lt: New file.
63494         * modules/unictype/category-Lm: New file.
63495         * modules/unictype/category-Lo: New file.
63496         * modules/unictype/category-M: New file.
63497         * modules/unictype/category-Mn: New file.
63498         * modules/unictype/category-Mc: New file.
63499         * modules/unictype/category-Me: New file.
63500         * modules/unictype/category-N: New file.
63501         * modules/unictype/category-Nd: New file.
63502         * modules/unictype/category-Nl: New file.
63503         * modules/unictype/category-No: New file.
63504         * modules/unictype/category-P: New file.
63505         * modules/unictype/category-Pc: New file.
63506         * modules/unictype/category-Pd: New file.
63507         * modules/unictype/category-Ps: New file.
63508         * modules/unictype/category-Pe: New file.
63509         * modules/unictype/category-Pi: New file.
63510         * modules/unictype/category-Pf: New file.
63511         * modules/unictype/category-Po: New file.
63512         * modules/unictype/category-S: New file.
63513         * modules/unictype/category-Sm: New file.
63514         * modules/unictype/category-Sc: New file.
63515         * modules/unictype/category-Sk: New file.
63516         * modules/unictype/category-So: New file.
63517         * modules/unictype/category-Z: New file.
63518         * modules/unictype/category-Zs: New file.
63519         * modules/unictype/category-Zl: New file.
63520         * modules/unictype/category-Zp: New file.
63521         * modules/unictype/category-C: New file.
63522         * modules/unictype/category-Cc: New file.
63523         * modules/unictype/category-Cf: New file.
63524         * modules/unictype/category-Cs: New file.
63525         * modules/unictype/category-Co: New file.
63526         * modules/unictype/category-Cn: New file.
63527         * modules/unictype/category-or: New file.
63528         * modules/unictype/category-of: New file.
63529         * modules/unictype/category-test: New file.
63530         * modules/unictype/category-test-withtable: New file.
63531         * modules/unictype/category-byname: New file.
63532         * modules/unictype/category-none: New file.
63533         * modules/unictype/category-and: New file.
63534         * modules/unictype/category-and-not: New file.
63535         * modules/unictype/category-name: New file.
63536         * modules/unictype/combining-class: New file.
63537         * modules/unictype/category-all: New file.
63538         * modules/unictype/bidicategory-all: New file.
63539         * modules/unictype/bidicategory-byname: New file.
63540         * modules/unictype/bidicategory-name: New file.
63541         * modules/unictype/bidicategory-of: New file.
63542         * modules/unictype/bidicategory-test: New file.
63543         * modules/unictype/decimal-digit: New file.
63544         * modules/unictype/digit: New file.
63545         * modules/unictype/numeric: New file.
63546         * modules/unictype/mirror: New file.
63547         * modules/unictype/property-white-space: New file.
63548         * modules/unictype/property-alphabetic: New file.
63549         * modules/unictype/property-other-alphabetic: New file.
63550         * modules/unictype/property-not-a-character: New file.
63551         * modules/unictype/property-default-ignorable-code-point: New file.
63552         * modules/unictype/property-other-default-ignorable-code-point: New
63553         file.
63554         * modules/unictype/property-deprecated: New file.
63555         * modules/unictype/property-logical-order-exception: New file.
63556         * modules/unictype/property-variation-selector: New file.
63557         * modules/unictype/property-private-use: New file.
63558         * modules/unictype/property-unassigned-code-value: New file.
63559         * modules/unictype/property-uppercase: New file.
63560         * modules/unictype/property-other-uppercase: New file.
63561         * modules/unictype/property-lowercase: New file.
63562         * modules/unictype/property-other-lowercase: New file.
63563         * modules/unictype/property-titlecase: New file.
63564         * modules/unictype/property-soft-dotted: New file.
63565         * modules/unictype/property-id-start: New file.
63566         * modules/unictype/property-other-id-start: New file.
63567         * modules/unictype/property-id-continue: New file.
63568         * modules/unictype/property-other-id-continue: New file.
63569         * modules/unictype/property-xid-start: New file.
63570         * modules/unictype/property-xid-continue: New file.
63571         * modules/unictype/property-pattern-white-space: New file.
63572         * modules/unictype/property-pattern-syntax: New file.
63573         * modules/unictype/property-join-control: New file.
63574         * modules/unictype/property-grapheme-base: New file.
63575         * modules/unictype/property-grapheme-extend: New file.
63576         * modules/unictype/property-other-grapheme-extend: New file.
63577         * modules/unictype/property-grapheme-link: New file.
63578         * modules/unictype/property-bidi-control: New file.
63579         * modules/unictype/property-bidi-left-to-right: New file.
63580         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63581         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63582         * modules/unictype/property-bidi-european-digit: New file.
63583         * modules/unictype/property-bidi-eur-num-separator: New file.
63584         * modules/unictype/property-bidi-eur-num-terminator: New file.
63585         * modules/unictype/property-bidi-arabic-digit: New file.
63586         * modules/unictype/property-bidi-common-separator: New file.
63587         * modules/unictype/property-bidi-block-separator: New file.
63588         * modules/unictype/property-bidi-segment-separator: New file.
63589         * modules/unictype/property-bidi-whitespace: New file.
63590         * modules/unictype/property-bidi-non-spacing-mark: New file.
63591         * modules/unictype/property-bidi-boundary-neutral: New file.
63592         * modules/unictype/property-bidi-pdf: New file.
63593         * modules/unictype/property-bidi-embedding-or-override: New file.
63594         * modules/unictype/property-bidi-other-neutral: New file.
63595         * modules/unictype/property-hex-digit: New file.
63596         * modules/unictype/property-ascii-hex-digit: New file.
63597         * modules/unictype/property-ideographic: New file.
63598         * modules/unictype/property-unified-ideograph: New file.
63599         * modules/unictype/property-radical: New file.
63600         * modules/unictype/property-ids-binary-operator: New file.
63601         * modules/unictype/property-ids-trinary-operator: New file.
63602         * modules/unictype/property-zero-width: New file.
63603         * modules/unictype/property-space: New file.
63604         * modules/unictype/property-non-break: New file.
63605         * modules/unictype/property-iso-control: New file.
63606         * modules/unictype/property-format-control: New file.
63607         * modules/unictype/property-dash: New file.
63608         * modules/unictype/property-hyphen: New file.
63609         * modules/unictype/property-punctuation: New file.
63610         * modules/unictype/property-line-separator: New file.
63611         * modules/unictype/property-paragraph-separator: New file.
63612         * modules/unictype/property-quotation-mark: New file.
63613         * modules/unictype/property-sentence-terminal: New file.
63614         * modules/unictype/property-terminal-punctuation: New file.
63615         * modules/unictype/property-currency-symbol: New file.
63616         * modules/unictype/property-math: New file.
63617         * modules/unictype/property-other-math: New file.
63618         * modules/unictype/property-paired-punctuation: New file.
63619         * modules/unictype/property-left-of-pair: New file.
63620         * modules/unictype/property-combining: New file.
63621         * modules/unictype/property-composite: New file.
63622         * modules/unictype/property-decimal-digit: New file.
63623         * modules/unictype/property-numeric: New file.
63624         * modules/unictype/property-diacritic: New file.
63625         * modules/unictype/property-extender: New file.
63626         * modules/unictype/property-ignorable-control: New file.
63627         * modules/unictype/property-test: New file.
63628         * modules/unictype/property-byname: New file.
63629         * modules/unictype/property-all: New file.
63630         * modules/unictype/scripts: New file.
63631         * modules/unictype/scripts-all: New file.
63632         * modules/unictype/block-of: New file.
63633         * modules/unictype/block-test: New file.
63634         * modules/unictype/block-list: New file.
63635         * modules/unictype/block-all: New file.
63636         * modules/unictype/syntax-c-whitespace: New file.
63637         * modules/unictype/syntax-java-whitespace: New file.
63638         * modules/unictype/syntax-c-ident: New file.
63639         * modules/unictype/syntax-java-ident: New file.
63640         * modules/unictype/ctype-alnum: New file.
63641         * modules/unictype/ctype-alpha: New file.
63642         * modules/unictype/ctype-cntrl: New file.
63643         * modules/unictype/ctype-digit: New file.
63644         * modules/unictype/ctype-graph: New file.
63645         * modules/unictype/ctype-lower: New file.
63646         * modules/unictype/ctype-print: New file.
63647         * modules/unictype/ctype-punct: New file.
63648         * modules/unictype/ctype-space: New file.
63649         * modules/unictype/ctype-upper: New file.
63650         * modules/unictype/ctype-xdigit: New file.
63651         * modules/unictype/ctype-blank: New file.
63652         * lib/unictype/bidi_byname.c: New file.
63653         * lib/unictype/bidi_name.c: New file.
63654         * lib/unictype/bidi_of.c: New file.
63655         * lib/unictype/bidi_test.c: New file.
63656         * lib/unictype/bitmap.h: New file.
63657         * lib/unictype/block_test.c: New file.
63658         * lib/unictype/blocks.c: New file.
63659         * lib/unictype/categ_C.c: New file.
63660         * lib/unictype/categ_Cc.c: New file.
63661         * lib/unictype/categ_Cf.c: New file.
63662         * lib/unictype/categ_Cn.c: New file.
63663         * lib/unictype/categ_Co.c: New file.
63664         * lib/unictype/categ_Cs.c: New file.
63665         * lib/unictype/categ_L.c: New file.
63666         * lib/unictype/categ_Ll.c: New file.
63667         * lib/unictype/categ_Lm.c: New file.
63668         * lib/unictype/categ_Lo.c: New file.
63669         * lib/unictype/categ_Lt.c: New file.
63670         * lib/unictype/categ_Lu.c: New file.
63671         * lib/unictype/categ_M.c: New file.
63672         * lib/unictype/categ_Mc.c: New file.
63673         * lib/unictype/categ_Me.c: New file.
63674         * lib/unictype/categ_Mn.c: New file.
63675         * lib/unictype/categ_N.c: New file.
63676         * lib/unictype/categ_Nd.c: New file.
63677         * lib/unictype/categ_Nl.c: New file.
63678         * lib/unictype/categ_No.c: New file.
63679         * lib/unictype/categ_P.c: New file.
63680         * lib/unictype/categ_Pc.c: New file.
63681         * lib/unictype/categ_Pd.c: New file.
63682         * lib/unictype/categ_Pe.c: New file.
63683         * lib/unictype/categ_Pf.c: New file.
63684         * lib/unictype/categ_Pi.c: New file.
63685         * lib/unictype/categ_Po.c: New file.
63686         * lib/unictype/categ_Ps.c: New file.
63687         * lib/unictype/categ_S.c: New file.
63688         * lib/unictype/categ_Sc.c: New file.
63689         * lib/unictype/categ_Sk.c: New file.
63690         * lib/unictype/categ_Sm.c: New file.
63691         * lib/unictype/categ_So.c: New file.
63692         * lib/unictype/categ_Z.c: New file.
63693         * lib/unictype/categ_Zl.c: New file.
63694         * lib/unictype/categ_Zp.c: New file.
63695         * lib/unictype/categ_Zs.c: New file.
63696         * lib/unictype/categ_and.c: New file.
63697         * lib/unictype/categ_and_not.c: New file.
63698         * lib/unictype/categ_byname.c: New file.
63699         * lib/unictype/categ_name.c: New file.
63700         * lib/unictype/categ_none.c: New file.
63701         * lib/unictype/categ_of.c: New file.
63702         * lib/unictype/categ_or.c: New file.
63703         * lib/unictype/categ_test.c: New file.
63704         * lib/unictype/combining.c: New file.
63705         * lib/unictype/ctype_alnum.c: New file.
63706         * lib/unictype/ctype_alpha.c: New file.
63707         * lib/unictype/ctype_blank.c: New file.
63708         * lib/unictype/ctype_cntrl.c: New file.
63709         * lib/unictype/ctype_digit.c: New file.
63710         * lib/unictype/ctype_graph.c: New file.
63711         * lib/unictype/ctype_lower.c: New file.
63712         * lib/unictype/ctype_print.c: New file.
63713         * lib/unictype/ctype_punct.c: New file.
63714         * lib/unictype/ctype_space.c: New file.
63715         * lib/unictype/ctype_upper.c: New file.
63716         * lib/unictype/ctype_xdigit.c: New file.
63717         * lib/unictype/decdigit.c: New file.
63718         * lib/unictype/digit.c: New file.
63719         * lib/unictype/identsyntaxmap.h: New file.
63720         * lib/unictype/mirror.c: New file.
63721         * lib/unictype/numeric.c: New file.
63722         * lib/unictype/pr_alphabetic.c: New file.
63723         * lib/unictype/pr_ascii_hex_digit.c: New file.
63724         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63725         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63726         * lib/unictype/pr_bidi_block_separator.c: New file.
63727         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63728         * lib/unictype/pr_bidi_common_separator.c: New file.
63729         * lib/unictype/pr_bidi_control.c: New file.
63730         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63731         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63732         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63733         * lib/unictype/pr_bidi_european_digit.c: New file.
63734         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63735         * lib/unictype/pr_bidi_left_to_right.c: New file.
63736         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63737         * lib/unictype/pr_bidi_other_neutral.c: New file.
63738         * lib/unictype/pr_bidi_pdf.c: New file.
63739         * lib/unictype/pr_bidi_segment_separator.c: New file.
63740         * lib/unictype/pr_bidi_whitespace.c: New file.
63741         * lib/unictype/pr_byname.c: New file.
63742         * lib/unictype/pr_byname.gperf: New file.
63743         * lib/unictype/pr_combining.c: New file.
63744         * lib/unictype/pr_composite.c: New file.
63745         * lib/unictype/pr_currency_symbol.c: New file.
63746         * lib/unictype/pr_dash.c: New file.
63747         * lib/unictype/pr_decimal_digit.c: New file.
63748         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63749         * lib/unictype/pr_deprecated.c: New file.
63750         * lib/unictype/pr_diacritic.c: New file.
63751         * lib/unictype/pr_extender.c: New file.
63752         * lib/unictype/pr_format_control.c: New file.
63753         * lib/unictype/pr_grapheme_base.c: New file.
63754         * lib/unictype/pr_grapheme_extend.c: New file.
63755         * lib/unictype/pr_grapheme_link.c: New file.
63756         * lib/unictype/pr_hex_digit.c: New file.
63757         * lib/unictype/pr_hyphen.c: New file.
63758         * lib/unictype/pr_id_continue.c: New file.
63759         * lib/unictype/pr_id_start.c: New file.
63760         * lib/unictype/pr_ideographic.c: New file.
63761         * lib/unictype/pr_ids_binary_operator.c: New file.
63762         * lib/unictype/pr_ids_trinary_operator.c: New file.
63763         * lib/unictype/pr_ignorable_control.c: New file.
63764         * lib/unictype/pr_iso_control.c: New file.
63765         * lib/unictype/pr_join_control.c: New file.
63766         * lib/unictype/pr_left_of_pair.c: New file.
63767         * lib/unictype/pr_line_separator.c: New file.
63768         * lib/unictype/pr_logical_order_exception.c: New file.
63769         * lib/unictype/pr_lowercase.c: New file.
63770         * lib/unictype/pr_math.c: New file.
63771         * lib/unictype/pr_non_break.c: New file.
63772         * lib/unictype/pr_not_a_character.c: New file.
63773         * lib/unictype/pr_numeric.c: New file.
63774         * lib/unictype/pr_other_alphabetic.c: New file.
63775         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63776         * lib/unictype/pr_other_grapheme_extend.c: New file.
63777         * lib/unictype/pr_other_id_continue.c: New file.
63778         * lib/unictype/pr_other_id_start.c: New file.
63779         * lib/unictype/pr_other_lowercase.c: New file.
63780         * lib/unictype/pr_other_math.c: New file.
63781         * lib/unictype/pr_other_uppercase.c: New file.
63782         * lib/unictype/pr_paired_punctuation.c: New file.
63783         * lib/unictype/pr_paragraph_separator.c: New file.
63784         * lib/unictype/pr_pattern_syntax.c: New file.
63785         * lib/unictype/pr_pattern_white_space.c: New file.
63786         * lib/unictype/pr_private_use.c: New file.
63787         * lib/unictype/pr_punctuation.c: New file.
63788         * lib/unictype/pr_quotation_mark.c: New file.
63789         * lib/unictype/pr_radical.c: New file.
63790         * lib/unictype/pr_sentence_terminal.c: New file.
63791         * lib/unictype/pr_soft_dotted.c: New file.
63792         * lib/unictype/pr_space.c: New file.
63793         * lib/unictype/pr_terminal_punctuation.c: New file.
63794         * lib/unictype/pr_test.c: New file.
63795         * lib/unictype/pr_titlecase.c: New file.
63796         * lib/unictype/pr_unassigned_code_value.c: New file.
63797         * lib/unictype/pr_unified_ideograph.c: New file.
63798         * lib/unictype/pr_uppercase.c: New file.
63799         * lib/unictype/pr_variation_selector.c: New file.
63800         * lib/unictype/pr_white_space.c: New file.
63801         * lib/unictype/pr_xid_continue.c: New file.
63802         * lib/unictype/pr_xid_start.c: New file.
63803         * lib/unictype/pr_zero_width.c: New file.
63804         * lib/unictype/scripts.c: New file.
63805         * lib/unictype/sy_c_ident.c: New file.
63806         * lib/unictype/sy_c_whitespace.c: New file.
63807         * lib/unictype/sy_java_ident.c: New file.
63808         * lib/unictype/sy_java_whitespace.c: New file.
63809
63810         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63811         Unicode 5.0.0.
63812         * lib/unictype/blocks.h: Likewise.
63813         * lib/unictype/categ_C.h: Likewise.
63814         * lib/unictype/categ_Cc.h: Likewise.
63815         * lib/unictype/categ_Cf.h: Likewise.
63816         * lib/unictype/categ_Cn.h: Likewise.
63817         * lib/unictype/categ_Co.h: Likewise.
63818         * lib/unictype/categ_Cs.h: Likewise.
63819         * lib/unictype/categ_L.h: Likewise.
63820         * lib/unictype/categ_Ll.h: Likewise.
63821         * lib/unictype/categ_Lm.h: Likewise.
63822         * lib/unictype/categ_Lo.h: Likewise.
63823         * lib/unictype/categ_Lt.h: Likewise.
63824         * lib/unictype/categ_Lu.h: Likewise.
63825         * lib/unictype/categ_M.h: Likewise.
63826         * lib/unictype/categ_Mc.h: Likewise.
63827         * lib/unictype/categ_Me.h: Likewise.
63828         * lib/unictype/categ_Mn.h: Likewise.
63829         * lib/unictype/categ_N.h: Likewise.
63830         * lib/unictype/categ_Nd.h: Likewise.
63831         * lib/unictype/categ_Nl.h: Likewise.
63832         * lib/unictype/categ_No.h: Likewise.
63833         * lib/unictype/categ_P.h: Likewise.
63834         * lib/unictype/categ_Pc.h: Likewise.
63835         * lib/unictype/categ_Pd.h: Likewise.
63836         * lib/unictype/categ_Pe.h: Likewise.
63837         * lib/unictype/categ_Pf.h: Likewise.
63838         * lib/unictype/categ_Pi.h: Likewise.
63839         * lib/unictype/categ_Po.h: Likewise.
63840         * lib/unictype/categ_Ps.h: Likewise.
63841         * lib/unictype/categ_S.h: Likewise.
63842         * lib/unictype/categ_Sc.h: Likewise.
63843         * lib/unictype/categ_Sk.h: Likewise.
63844         * lib/unictype/categ_Sm.h: Likewise.
63845         * lib/unictype/categ_So.h: Likewise.
63846         * lib/unictype/categ_Z.h: Likewise.
63847         * lib/unictype/categ_Zl.h: Likewise.
63848         * lib/unictype/categ_Zp.h: Likewise.
63849         * lib/unictype/categ_Zs.h: Likewise.
63850         * lib/unictype/categ_of.h: Likewise.
63851         * lib/unictype/combining.h: Likewise.
63852         * lib/unictype/ctype_alnum.h: Likewise.
63853         * lib/unictype/ctype_alpha.h: Likewise.
63854         * lib/unictype/ctype_blank.h: Likewise.
63855         * lib/unictype/ctype_cntrl.h: Likewise.
63856         * lib/unictype/ctype_digit.h: Likewise.
63857         * lib/unictype/ctype_graph.h: Likewise.
63858         * lib/unictype/ctype_lower.h: Likewise.
63859         * lib/unictype/ctype_print.h: Likewise.
63860         * lib/unictype/ctype_punct.h: Likewise.
63861         * lib/unictype/ctype_space.h: Likewise.
63862         * lib/unictype/ctype_upper.h: Likewise.
63863         * lib/unictype/ctype_xdigit.h: Likewise.
63864         * lib/unictype/decdigit.h: Likewise.
63865         * lib/unictype/digit.h: Likewise.
63866         * lib/unictype/mirror.h: Likewise.
63867         * lib/unictype/numeric.h: Likewise.
63868         * lib/unictype/pr_alphabetic.h: Likewise.
63869         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63870         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63871         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63872         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63873         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63874         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63875         * lib/unictype/pr_bidi_control.h: Likewise.
63876         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63877         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63878         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63879         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63880         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63881         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63882         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63883         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63884         * lib/unictype/pr_bidi_pdf.h: Likewise.
63885         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63886         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63887         * lib/unictype/pr_combining.h: Likewise.
63888         * lib/unictype/pr_composite.h: Likewise.
63889         * lib/unictype/pr_currency_symbol.h: Likewise.
63890         * lib/unictype/pr_dash.h: Likewise.
63891         * lib/unictype/pr_decimal_digit.h: Likewise.
63892         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63893         * lib/unictype/pr_deprecated.h: Likewise.
63894         * lib/unictype/pr_diacritic.h: Likewise.
63895         * lib/unictype/pr_extender.h: Likewise.
63896         * lib/unictype/pr_format_control.h: Likewise.
63897         * lib/unictype/pr_grapheme_base.h: Likewise.
63898         * lib/unictype/pr_grapheme_extend.h: Likewise.
63899         * lib/unictype/pr_grapheme_link.h: Likewise.
63900         * lib/unictype/pr_hex_digit.h: Likewise.
63901         * lib/unictype/pr_hyphen.h: Likewise.
63902         * lib/unictype/pr_id_continue.h: Likewise.
63903         * lib/unictype/pr_id_start.h: Likewise.
63904         * lib/unictype/pr_ideographic.h: Likewise.
63905         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63906         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63907         * lib/unictype/pr_ignorable_control.h: Likewise.
63908         * lib/unictype/pr_iso_control.h: Likewise.
63909         * lib/unictype/pr_join_control.h: Likewise.
63910         * lib/unictype/pr_left_of_pair.h: Likewise.
63911         * lib/unictype/pr_line_separator.h: Likewise.
63912         * lib/unictype/pr_logical_order_exception.h: Likewise.
63913         * lib/unictype/pr_lowercase.h: Likewise.
63914         * lib/unictype/pr_math.h: Likewise.
63915         * lib/unictype/pr_non_break.h: Likewise.
63916         * lib/unictype/pr_not_a_character.h: Likewise.
63917         * lib/unictype/pr_numeric.h: Likewise.
63918         * lib/unictype/pr_other_alphabetic.h: Likewise.
63919         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63920         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63921         * lib/unictype/pr_other_id_continue.h: Likewise.
63922         * lib/unictype/pr_other_id_start.h: Likewise.
63923         * lib/unictype/pr_other_lowercase.h: Likewise.
63924         * lib/unictype/pr_other_math.h: Likewise.
63925         * lib/unictype/pr_other_uppercase.h: Likewise.
63926         * lib/unictype/pr_paired_punctuation.h: Likewise.
63927         * lib/unictype/pr_paragraph_separator.h: Likewise.
63928         * lib/unictype/pr_pattern_syntax.h: Likewise.
63929         * lib/unictype/pr_pattern_white_space.h: Likewise.
63930         * lib/unictype/pr_private_use.h: Likewise.
63931         * lib/unictype/pr_punctuation.h: Likewise.
63932         * lib/unictype/pr_quotation_mark.h: Likewise.
63933         * lib/unictype/pr_radical.h: Likewise.
63934         * lib/unictype/pr_sentence_terminal.h: Likewise.
63935         * lib/unictype/pr_soft_dotted.h: Likewise.
63936         * lib/unictype/pr_space.h: Likewise.
63937         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63938         * lib/unictype/pr_titlecase.h: Likewise.
63939         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63940         * lib/unictype/pr_unified_ideograph.h: Likewise.
63941         * lib/unictype/pr_uppercase.h: Likewise.
63942         * lib/unictype/pr_variation_selector.h: Likewise.
63943         * lib/unictype/pr_white_space.h: Likewise.
63944         * lib/unictype/pr_xid_continue.h: Likewise.
63945         * lib/unictype/pr_xid_start.h: Likewise.
63946         * lib/unictype/pr_zero_width.h: Likewise.
63947         * lib/unictype/scripts.h: Likewise.
63948         * lib/unictype/scripts_byname.gperf: Likewise.
63949         * lib/unictype/sy_c_ident.h: Likewise.
63950         * lib/unictype/sy_c_whitespace.h: Likewise.
63951         * lib/unictype/sy_java_ident.h: Likewise.
63952         * lib/unictype/sy_java_whitespace.h: Likewise.
63953
63954         * lib/unictype/Makefile: New file.
63955         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63956         glibc.
63957         * lib/unictype/3level.h: New file, copied from glibc.
63958         * lib/unictype/3levelbit.h: New file.
63959
63960 2007-11-11  Bruno Haible  <bruno@clisp.org>
63961
63962         * modules/gperf: New file.
63963         * modules/iconv_open (Depends-on): Add it.
63964         (Makefile.am): Remove the GPERF definition.
63965
63966 2007-11-11  Bruno Haible  <bruno@clisp.org>
63967
63968         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63969         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63970
63971 2007-11-11  Bruno Haible  <bruno@clisp.org>
63972
63973         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63974         (usage): Remove function.
63975
63976 2007-11-11  Bruno Haible  <bruno@clisp.org>
63977
63978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63979         gl_FUNC_CEILF_LIBS.
63980         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63981         gl_FUNC_CEIL_LIBS.
63982         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63983         gl_FUNC_CEILL_LIBS.
63984         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63985         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63986         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63987
63988 2007-11-11  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63991         roundf were declared but do not exist on functions.
63992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63993         roundl were declared but do not exist on functions.
63994         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63995         HAVE_FLOORL_AND_CEILL, respectively.
63996         Needed for Sun C on Solaris 10.
63997
63998 2007-11-11  Bruno Haible  <bruno@clisp.org>
63999
64000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64001         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64002         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64003         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64004         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64005         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64006         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64007         HAVE_DECL_ROUNDF.
64008         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64009         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64011         of HAVE_DECL_ROUND*.
64012         * modules/math (Makefile.am): Update.
64013
64014 2007-11-10  Bruno Haible  <bruno@clisp.org>
64015
64016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64017         ptrdiff_t as m4/intl.m4.
64018
64019 2007-11-10  Jim Meyering  <meyering@redhat.com>
64020
64021         Avoid link failure for the argmatch test.
64022         * tests/test-argmatch.c (usage): Define function to avoid a link
64023         failure: argmatch_die requires a usage function.
64024
64025 2007-11-09  Bruno Haible  <bruno@clisp.org>
64026
64027         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64028         * doc/functions/vsnprintf.texi: Likewise.
64029         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64030         with a size argument < 2.
64031
64032 2007-11-09  Bruno Haible  <bruno@clisp.org>
64033
64034         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64035         buffer. Fixes an inefficiency introduced on 2007-11-03.
64036
64037 2007-11-09  Bruno Haible  <bruno@clisp.org>
64038
64039         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64040         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64041
64042 2007-11-08  Jim Meyering  <meyering@redhat.com>
64043
64044         Change cache variable name prefix "jm_" to "gl_" everywhere.
64045         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64046         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64047         * m4/uptime.m4: s/gl_/jm_/
64048
64049 2007-11-07  Bruno Haible  <bruno@clisp.org>
64050
64051         Update to GNU gettext 0.17.
64052         * m4/intl.m4: Update to GNU gettext 0.17.
64053         * m4/po.m4: Likewise.
64054         * modules/gettext (Files): Remove m4/ulonglong.m4.
64055         (configure.ac): Require gettext infrastructure from version 0.17.
64056
64057 2007-11-06  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64060         symbolic values are not defined in a public header.
64061         * lib/freadable.c (freadable) [QNX]: Likewise.
64062         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64063         * lib/freading.c (freading) [QNX]: Likewise.
64064         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64065         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64066         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64067         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64068         Reported by Alain Magloire.
64069
64070         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64071
64072 2007-11-05  Bruno Haible  <bruno@clisp.org>
64073
64074         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64075         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64076         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64077         Reported by Eric Blake.
64078
64079 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64080             Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64083         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64084         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64085         (malloc): Undefine also before including <stdlib.h>.
64086         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64087         Needed on OSF/1 4.0.
64088
64089 2007-11-05  Jim Meyering  <meyering@redhat.com>
64090
64091         git-version-gen: sync from coreutils.
64092         * build-aux/git-version-gen: Add comments.
64093         Change the first '-' to '.' in the snapshot version string,
64094         e.g., 6.9-377-08144 -> 6.9.377-08144
64095         Remove first parameter.
64096         Don't declare a version "-dirty" merely because a time
64097         stamp has changed.
64098
64099 2007-11-04  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/lock.h: Protect all macro definitions containing an 'if'
64102         statement through a "do { ... } while (0)".
64103         * lib/tls.h: Likewise.
64104
64105 2007-11-04  Bruno Haible  <bruno@clisp.org>
64106
64107         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64108
64109 2007-11-04  Bruno Haible  <bruno@clisp.org>
64110
64111         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64112         * modules/fprintf-posix (Depends-on): Add nocrash.
64113         * modules/snprintf-posix (Depends-on): Likewise.
64114         * modules/sprintf-posix (Depends-on): Likewise.
64115         * modules/vasnprintf-posix (Depends-on): Likewise.
64116         * modules/vasprintf-posix (Depends-on): Likewise.
64117         * modules/vfprintf-posix (Depends-on): Likewise.
64118         * modules/vsnprintf-posix (Depends-on): Likewise.
64119         * modules/vsprintf-posix (Depends-on): Likewise.
64120         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64121         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64122         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64123         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64124         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64125         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64126         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64127
64128 2007-11-04  Bruno Haible  <bruno@clisp.org>
64129
64130         * modules/nocrash: New file.
64131         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64132         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64133
64134 2007-11-04  Bruno Haible  <bruno@clisp.org>
64135
64136         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64137         precision handling.
64138         * tests/test-vasprintf-posix.c (test_function): Likewise.
64139         * tests/test-snprintf-posix.h (test_function): Likewise.
64140         * tests/test-sprintf-posix.h (test_function): Likewise.
64141
64142         Fix *printf behaviour for large precisions on mingw and BeOS.
64143         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64144         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64146         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64148         gl_PRINTF_PRECISION and test its result. Invoke
64149         gl_PREREQ_VASNPRINTF_PRECISION.
64150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64157         * doc/functions/fprintf.texi: Update.
64158         * doc/functions/printf.texi: Update.
64159         * doc/functions/snprintf.texi: Update.
64160         * doc/functions/sprintf.texi: Update.
64161         * doc/functions/vfprintf.texi: Update.
64162         * doc/functions/vprintf.texi: Update.
64163         * doc/functions/vsnprintf.texi: Update.
64164         * doc/functions/vsprintf.texi: Update.
64165
64166 2007-11-04  Bruno Haible  <bruno@clisp.org>
64167
64168         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64169
64170 2007-11-04  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64173         Reported by Sylvain Beucler <beuc@gnu.org>.
64174
64175 2007-11-03  Bruno Haible  <bruno@clisp.org>
64176
64177         * tests/test-fprintf-posix2.sh: New file.
64178         * tests/test-fprintf-posix2.c: New file.
64179         * modules/fprintf-posix-tests (Files): Add them.
64180         (TESTS): Add test-fprintf-posix2.sh.
64181         (configure.ac): Check for getrlimit and setrlimit.
64182         (check_PROGRAMS): Add test-fprintf-posix2.
64183
64184         * tests/test-printf-posix2.sh: New file.
64185         * tests/test-printf-posix2.c: New file.
64186         * modules/printf-posix-tests (Files): Add them.
64187         (TESTS): Add test-printf-posix2.sh.
64188         (configure.ac): Check for getrlimit and setrlimit.
64189         (check_PROGRAMS): Add test-printf-posix2.
64190
64191         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64192         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64193         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64194         (decode_double): New function, copied from decode_long_double.
64195         (scale10_round_decimal_decoded): New function, extracted from
64196         scale10_round_decimal_long_double.
64197         (scale10_round_decimal_long_double): Use it.
64198         (scale10_round_decimal_double): New function.
64199         (floorlog10): New function.
64200         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64202         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64204         gl_PRINTF_ENOMEM and test its result. Invoke
64205         gl_PREREQ_VASNPRINTF_ENOMEM.
64206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64213         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64214         * modules/snprintf-posix (Depends-on): Likewise.
64215         * modules/sprintf-posix (Depends-on): Likewise.
64216         * modules/vasnprintf-posix (Depends-on): Likewise.
64217         * modules/vasprintf-posix (Depends-on): Likewise.
64218         * modules/vfprintf-posix (Depends-on): Likewise.
64219         * modules/vsnprintf-posix (Depends-on): Likewise.
64220         * modules/vsprintf-posix (Depends-on): Likewise.
64221         * doc/functions/fprintf.texi: Update.
64222         * doc/functions/printf.texi: Update.
64223         * doc/functions/snprintf.texi: Update.
64224         * doc/functions/sprintf.texi: Update.
64225         * doc/functions/vfprintf.texi: Update.
64226         * doc/functions/vprintf.texi: Update.
64227         * doc/functions/vsnprintf.texi: Update.
64228         * doc/functions/vsprintf.texi: Update.
64229
64230 2007-11-03  Bruno Haible  <bruno@clisp.org>
64231
64232         * modules/frexp-nolibm-tests: New file.
64233
64234         * modules/frexp-nolibm: New file.
64235         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64236
64237 2007-11-03  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64240         value is C99 compliant.
64241         Needed for OSF/1 5.1.
64242
64243 2007-11-03  Bruno Haible  <bruno@clisp.org>
64244
64245         Fix out-of-memory handling of vasnprintf.
64246         * lib/printf-parse.c: Include <errno.h>.
64247         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64248         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64249         is already set.
64250
64251 2007-11-02  Eric Blake  <ebb9@byu.net>
64252
64253         Fix tests on cygwin.
64254         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64255
64256 2007-11-01  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64259         warning.
64260         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64261         needed for POSIX compatibility.
64262
64263 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64266         for compatibility with GNU.
64267
64268 2007-11-01  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64271         (putenv): Renamed from rpl_putenv. Change argument type from
64272         'const char *' to 'char *'.
64273         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64274         of defining putenv in config.h, just set REPLACE_PUTENV.
64275         * modules/putenv (Depends-on): Add stdlib.
64276         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64277         (Include): Use <stdlib.h>.
64278         * lib/stdlib.in.h (putenv): New declaration.
64279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64280         REPLACE_PUTENV.
64281         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64282         REPLACE_PUTENV.
64283         Needed for MacOS X 10.5.0.
64284         Reported by Peter O'Gorman <peter@pogma.com>.
64285
64286 2007-11-01  Jim Meyering  <meyering@redhat.com>
64287
64288         Treat an empty date string exactly like "0".
64289         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64290         if the remaining date string (to be parsed) is empty, use "0".
64291         Reported by Mischa Molhoek and discussed in this thread:
64292         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64293
64294 2007-10-31  Bruno Haible  <bruno@clisp.org>
64295
64296         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64297         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64298         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64299         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64300         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64301         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64302
64303 2007-10-31  Bruno Haible  <bruno@clisp.org>
64304
64305         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64306         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64307         (AC_TYPE_LONG_LONG_INT): Use it.
64308         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64309         it as well.
64310         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64311         to m4/longlong.m4.
64312         * modules/stdint (Files): Remove m4/ulonglong.m4.
64313         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64314         m4/ulonglong.m4.
64315         * modules/strtoumax (Files): Likewise.
64316
64317 2007-10-30  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/xvasprintf-posix: New file.
64320         Suggested by Eric Blake.
64321
64322 2007-10-30  Bruno Haible  <bruno@clisp.org>
64323
64324         * modules/xprintf-posix-tests: New file.
64325         * tests/test-xprintf-posix.sh: New file.
64326         * tests/test-xprintf-posix.c: New file.
64327         * tests/test-xfprintf-posix.c: New file.
64328
64329         * modules/xprintf-posix: New file.
64330
64331 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64332
64333         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64334         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64335         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64336
64337 2007-10-29  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64340         contain the special marker '_cv_'.
64341         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64342         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64343         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64344         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64345         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64346         Reported by Ralf Wildenhues.
64347
64348 2007-10-29  Bruno Haible  <bruno@clisp.org>
64349
64350         * gnulib-tool (func_import): When --lgpl is not specified, set
64351         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64352         GPLv3.
64353         Reported by Simon Josefsson.
64354
64355 2007-10-28  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64358         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64359         HAVE_DECL_ISFINITE.
64360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64361         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64362         HAVE_DECL_ISFINITE.
64363
64364 2007-10-28  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64367         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64368
64369 2007-10-28  Bruno Haible  <bruno@clisp.org>
64370
64371         Fix link errors with Sun C 5.0 on Solaris 10.
64372         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64373         function is declared but not present in the compiler's libm.
64374         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64375         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64376         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64377         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64378         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64379         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64380         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64382         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64383         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64384         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64385         HAVE_DECL_FLOORL.
64386
64387 2007-10-28  Bruno Haible  <bruno@clisp.org>
64388
64389         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64390         gl_FUNC_FLOORL. Cache the result.
64391         (gl_FUNC_FLOORL): Use it.
64392         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64393         gl_FUNC_CEILL. Cache the result.
64394         (gl_FUNC_CEILL): Use it.
64395
64396         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64397         gl_FUNC_FLOOR. Cache the result.
64398         (gl_FUNC_FLOOR): Use it.
64399         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64400         gl_FUNC_CEIL. Cache the result.
64401         (gl_FUNC_CEIL): Use it.
64402
64403         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64404         gl_FUNC_FLOORF. Cache the result.
64405         (gl_FUNC_FLOORF): Use it.
64406         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64407         gl_FUNC_CEILF. Cache the result.
64408         (gl_FUNC_CEILF): Use it.
64409
64410 2007-10-28  Bruno Haible  <bruno@clisp.org>
64411
64412         * gnulib-tool: Allow specifying the LGPL version number through
64413         --lgpl=2 or --lgpl=3.
64414         (func_usage): Document --lgpl with argument.
64415         Handle --lgpl=... arguments.
64416         (func_import): Recognize also gl_LGPL calls with an argument. When
64417         --lgpl=2 is used and the module's license is just LGPL, report an
64418         error. Set sed_transform_lib_file according to the lgpl variable. In
64419         the generated files, use --lgpl or gl_LGPL invocations with argument,
64420         if necessary.
64421         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64422         an LGPv2+ license.
64423         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64424         gl_LGPL macro.
64425
64426 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64427             Bruno Haible  <bruno@clisp.org>
64428
64429         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64430         (u16_uctomb_aux): Likewise.
64431         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64432         !HAVE_INLINE.
64433         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64434
64435 2007-10-28  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64438         Invoke AM_GETTEXT_OPTION if it exists.
64439         * modules/vasprintf: Likewise.
64440         * modules/verror: Likewise.
64441         * modules/xprintf: Likewise.
64442         * modules/xvasprintf: Likewise.
64443
64444 2007-10-27  Ben Pfaff  <blp@gnu.org>
64445
64446         * lib/math.in.h: Define isfinite macro and prototypes for
64447         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64448         implementations.
64449         * m4/math_h.m4: New substitutions for isfinite module.
64450         * lib/isfinite.c: New file.
64451         * m4/isfinite.m4: New file.
64452         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64453         * modules/isfinite: New file.
64454         * modules/isfinite-tests: New file.
64455         * tests/tests-isfinite.c: New file.
64456         * doc/functions/isfinite.texi: Mention isfinite module.
64457         * MODULES.html.sh: Mention new module.
64458
64459 2007-10-27  Ben Pfaff  <blp@gnu.org>
64460
64461         Ralf Wildenhues reported that Tru64 4.0D declares the round
64462         functions but does not have definitions.
64463         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64464         cannot be found in any library, set the output variable to
64465         "missing" instead of "".
64466         * m4/round.m4: Also use our substitute if we cannot find round in
64467         any library, even if it is declared.
64468         * m4/roundf.m4: Likewise for roundf.
64469         * m4/roundl.m4: Likewise for roundl.
64470         * lib/math.in.h: Undefine roundf, round, roundl before defining
64471         their replacements, to allow for hypothetical systems where these
64472         may be defined as macros but not available in libraries.
64473
64474 2007-10-27  Bruno Haible  <bruno@clisp.org>
64475
64476         * doc/gnulib.texi: Invoke @firstparagraphindent.
64477         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64478         changes in gnulib.
64479         (Source changes): New section.
64480
64481 2007-10-26  Bruno Haible  <bruno@clisp.org>
64482
64483         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64484         borrowed from autoconf.
64485
64486 2007-10-26  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64489         strerror returned the empty string. Needed on HP-UX 11.00.
64490
64491 2007-10-24  Micah Cowan  <micah@cowan.name>
64492
64493         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64494         * build-aux/bootstrap: Remove support for now-unnecessary option,
64495         --cvs-user, and envvars CVS_USER, CVS_RSH.
64496
64497 2007-10-24  Jim Meyering  <meyering@redhat.com>
64498
64499         Avoid diagnostics from sha1sum when there is no cached checksum.
64500         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64501         if the po.s1 file hasn't been created yet.
64502
64503         * build-aux/bootstrap: Sync from coreutils:
64504         2007-10-24  Jim Meyering  <meyering@redhat.com>
64505         Get gnulib from the git repository, not from an obsolete cvs one.
64506         * build-aux/bootstrap: Suggestion from Micah Cowan.
64507         2007-10-04  Jim Meyering  <jim@meyering.net>
64508         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64509         (update_po_files): Work also when there are no .po files in po/.
64510
64511 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * README: Append ".git" to git and cg examples.
64514         Problem reported by Benoit Sigoure.
64515
64516 2007-10-23  Micah Cowan  <micah@cowan.name>
64517
64518         * users.txt: Add wget.
64519
64520 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64521
64522         Fix linking of some unistdio tests on FreeBSD.
64523         * modules/unistdio/u16-vsnprintf-tests
64524         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64525         * modules/unistdio/u16-vsprintf-tests
64526         (test_u16_vsnprintf1_LDADD): Likewise.
64527         * modules/unistdio/u32-vsnprintf-tests
64528         (test_u32_vsnprintf1_LDADD): Likewise.
64529         * modules/unistdio/u32-vsprintf-tests
64530         (test_u32_vsprintf1_LDADD): Likewise.
64531         * modules/unistdio/u8-vsnprintf-tests
64532         (test_u8_vsnprintf1_LDADD): Likewise.
64533         * modules/unistdio/u8-vsprintf-tests
64534         (test_u8_vsprintf1_LDADD): Likewise.
64535         * modules/unistdio/ulc-vsnprintf-tests
64536         (test_ulc_vsnprintf1_LDADD): Likewise.
64537         * modules/unistdio/ulc-vsprintf-tests
64538         (test_ulc_vsprintf1_LDADD): Likewise.
64539
64540         Fix linking of some uniconv tests on FreeBSD.
64541         * modules/uniconv/u16-conv-from-enc-tests
64542         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64543         * modules/uniconv/u16-conv-to-enc-tests
64544         (test_u16_conv_to_enc_LDADD): Likewise.
64545         * modules/uniconv/u16-strconv-from-enc-tests
64546         (test_u16_strconv_from_enc_LDADD): Likewise.
64547         * modules/uniconv/u16-strconv-to-enc-tests
64548         (test_u16_strconv_to_enc_LDADD): Likewise.
64549         * modules/uniconv/u32-conv-from-enc-tests
64550         (test_u32_conv_from_enc_LDADD): Likewise.
64551         * modules/uniconv/u32-conv-to-enc-tests
64552         (test_u32_conv_to_enc_LDADD): Likewise.
64553         * modules/uniconv/u32-strconv-from-enc-tests
64554         (test_u32_strconv_from_enc_LDADD): Likewise.
64555         * modules/uniconv/u32-strconv-to-enc-tests
64556         (test_u32_strconv_to_enc_LDADD): Likewise.
64557         * modules/uniconv/u8-conv-from-enc-tests
64558         (test_u8_conv_from_enc_LDADD): Likewise.
64559         * modules/uniconv/u8-conv-to-enc-tests
64560         (test_u8_conv_to_enc_LDADD): Likewise.
64561         * modules/uniconv/u8-strconv-from-enc-tests
64562         (test_u8_strconv_from_enc_LDADD): Likewise.
64563         * modules/uniconv/u8-strconv-to-enc-tests
64564         (test_u8_strconv_to_enc_LDADD): Likewise.
64565
64566 2007-10-22  Bruno Haible  <bruno@clisp.org>
64567
64568         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64569         size.
64570
64571 2007-10-22  Eric Blake  <ebb9@byu.net>
64572
64573         Tweak x*printf documentation.
64574         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64575         variable name and comments.
64576         Suggested by Bruno Haible.
64577
64578 2007-10-22  Bruno Haible  <bruno@clisp.org>
64579
64580         * lib/acl.c (copy_acl): Fix file name in comment.
64581
64582 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         Fix Tru64 problem with stdbool.h.
64585         * lib/stdbool.in.h (false, true):
64586         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64587         Don't declare as an enum in this situation; it runs afoul of Tru64.
64588         Problem reported by Steven M. Schweda in
64589         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64590
64591 2007-10-22  Eric Blake  <ebb9@byu.net>
64592
64593         Also wrap vf?printf.
64594         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64595         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64596         (xvprintf, xvfprintf): New functions.
64597
64598 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64599
64600         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64601         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64602
64603         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64604         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64605
64606 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64609         by Bruno Haible.
64610
64611 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64612
64613         * lib/getloadavg.c
64614         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64615         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64616
64617         * tests/test-i-ring.c: Work for C89.
64618
64619 2007-10-22  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64622         -1u, in preprocessor expression, so that we don't test for the bug
64623         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64625
64626 2007-10-22  Eric Blake  <ebb9@byu.net>
64627
64628         * tests/test-yesno.sh: Silence stderr during test.
64629
64630 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64631
64632         * modules/crypto/gc-camellia: New file.
64633
64634         * m4/gc-camellia.m4: New file.
64635
64636         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64637
64638         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64639
64640 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64641
64642         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64643         --help to stdout.  Reported by sms@antinode.org (Steven
64644         M. Schweda).
64645
64646 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64647
64648         * users.txt: Fix link to libksba.
64649
64650 2007-10-21  Ben Pfaff  <blp@gnu.org>
64651
64652         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64653         round.c roundf implementation that depends on floorf and ceilf to
64654         be tested unconditionally.
64655
64656 2007-10-21  Ben Pfaff  <blp@gnu.org>
64657
64658         * m4/check-libm-func.m4: Removed.
64659         * m4/check-math-lib.m4: New file.
64660         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64661         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64662         definition and lack of AC_LIBOBJ([roundf]).
64663         * m4/roundl.m4: Ditto, and similarly for roundl.
64664         * modules/round: Reference new m4 file.
64665         * modules/roundf: Ditto.
64666         * modules/roundl: Ditto.
64667         * tests/test-round2.c (main): Use ROUND instead of round.
64668         Bug report from Bruno Haible.
64669
64670 2007-10-21  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64673         context.
64674
64675 2007-10-21  Bruno Haible  <bruno@clisp.org>
64676
64677         * tests/test-wcwidth.c (main): Allow negative result for some control
64678         characters.
64679
64680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64681         Needed on OSF/1 5.1.
64682
64683 2007-10-21  Bruno Haible  <bruno@clisp.org>
64684
64685         * tests/test-floorf1.c: Include isnanf.h.
64686         (main): Use isnanf() instead of isnan().
64687         * tests/test-ceilf1.c: Include isnanf.h.
64688         (main): Use isnanf() instead of isnan().
64689         * tests/test-truncf1.c: Include isnanf.h.
64690         (main): Use isnanf() instead of isnan().
64691         * tests/test-roundf1.c: Include isnanf.h.
64692         (main): Use isnanf() instead of isnan().
64693
64694 2007-10-21  Eric Blake  <ebb9@byu.net>
64695
64696         * users.txt: Update URL for m4.
64697
64698 2007-10-21  Bruno Haible  <bruno@clisp.org>
64699
64700         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64701
64702 2007-10-21  Bruno Haible  <bruno@clisp.org>
64703
64704         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64705         Git's management files if the CVS files are not present.
64706
64707 2007-10-20  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64710         gcc-3.4.x.
64711
64712 2007-10-20  Ben Pfaff  <blp@gnu.org>
64713
64714         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64715         implementations.
64716         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64717         * lib/round.c: New file.
64718         * lib/roundf.c: New file.
64719         * lib/roundl.c: New file.
64720         * m4/round.m4: New file.
64721         * m4/roundf.m4: New file.
64722         * m4/roundl.m4: New file.
64723         * m4/check-libm-func-m4: New file.
64724         * modules/math: Replace round, roundf, roundl related @VARS@ in
64725         math.in.h.
64726         * modules/round: New file.
64727         * modules/round-tests: New file.
64728         * modules/roundf: New file.
64729         * modules/roundf-tests: New file.
64730         * modules/roundl: New file.
64731         * modules/roundl-tests: New file.
64732         * tests/test-round1.c: New file.
64733         * tests/test-round2.c: New file.
64734         * tests/test-roundf1.c: New file.
64735         * tests/test-roundf2.c: New file.
64736         * tests/test-roundl.c: New file.
64737         * doc/functions/round.texi: Mention round module.
64738         * doc/functions/roundf.texi: Mention roundf module.
64739         * doc/functions/roundl.texi: Mention roundl module.
64740         * MODULES.html.sh: Mention new modules.
64741         Thanks to Bruno Haible for suggestions.
64742
64743 2007-10-20  Jim Meyering  <meyering@redhat.com>
64744
64745         * lib/xprintf.c: Include <config.h> unconditionally.
64746
64747         Change xprintf's license to GPL.
64748         * modules/xprintf (License): s/LGPL/GPL/, since this module
64749         depends on modules (exit and exitfail) which are GPL.
64750         Suggestion from Bruno Haible.
64751
64752         xprintf fixes.
64753         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64754         Use a clearer diagnostic.
64755         Patch from Bruno Haible.
64756
64757 2007-10-20  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64760         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64762
64763 2007-10-20  Bruno Haible  <bruno@clisp.org>
64764
64765         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64766         precision in the comparison result > x - 1 or similar.
64767         * tests/test-ceilf2.c (correct_result_p): Likewise.
64768         * tests/test-truncf2.c (correct_result_p): Likewise.
64769         * tests/test-trunc2.c (correct_result_p): Likewise.
64770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64771
64772 2007-10-20  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/ceil: New file.
64775         * m4/ceil.m4: New file.
64776         * doc/functions/ceil.texi: Mention the 'ceil' module.
64777
64778 2007-10-20  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/floor: New file.
64781         * m4/floor.m4: New file.
64782         * doc/functions/floor.texi: Mention the 'floor' module.
64783
64784 2007-10-20  Bruno Haible  <bruno@clisp.org>
64785
64786         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64787         of %a.
64788         * modules/floorf-tests (Depends-on): Likewise.
64789         * modules/truncf-tests (Depends-on): Likewise.
64790         * modules/trunc-tests (Depends-on): Likewise.
64791         Reported by Ben Pfaff.
64792
64793 2007-10-19  Jim Meyering  <meyering@redhat.com>
64794
64795         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64796         Don't bother testing specific errno values.  Just test ferror.
64797
64798         New module: xprintf
64799         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64800
64801 2007-10-19  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64804         syntax.
64805         * modules/javaexec (Makefile.am): Likewise.
64806         * modules/relocatable-prog (Makefile.am): Likewise.
64807         Suggested by Jim Meyering.
64808
64809 2007-10-18  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64812         Reported by Jim Meyering.
64813
64814 2007-10-18  Eric Blake  <ebb9@byu.net>
64815
64816         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64817
64818 2007-10-18  Bruno Haible  <bruno@clisp.org>
64819
64820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64821         the format string into writable memory. Needed in Fortify conditions.
64822
64823 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64824             Bruno Haible  <bruno@clisp.org>
64825
64826         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64827         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64828         * modules/trim (Depends-on): Add mbchar.
64829         (configure.ac): Add gl_FUNC_MBRTOWC.
64830         (Makefile.am): Augment lib_SOURCES.
64831
64832 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64833
64834         Modify glob.c to use fstatat and dirfd, to simplify it.
64835         Suggested by Eric Blake.
64836         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64837         Don't include <stdbool.h>; not used.
64838         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64839         (link_exists_p): Simplify implementation, since we can now assume
64840         dirfd and fstatat.
64841         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64842
64843 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64844
64845         * gnulib-tool (func_get_dependencies): Fix sed script to
64846         match only tests.
64847
64848 2007-10-17  Bruno Haible  <bruno@clisp.org>
64849
64850         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64851         allow locale names without encoding suffix.
64852         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64853         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64854
64855 2007-10-16  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64858         * lib/getgroups.c (getgroups): Likewise.
64859         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64860
64861 2007-10-16  Bruno Haible  <bruno@clisp.org>
64862
64863         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64864         * modules/malloc-posix (License): Likewise.
64865         * modules/realloc-posix (License): Likewise.
64866         * modules/calloc-posix (License): Likewise.
64867         * modules/intprops (License): Change from GPL to LGPL, with
64868         Paul Eggert's approval.
64869
64870 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         Merge glibc changes into lib/glob.c.
64873
64874         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64875         2007-10-15 04:59:03 UTC.  Here are the changes:
64876
64877         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64878
64879         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64880
64881         * lib/glob.c: Add some branch prediction throughout.
64882
64883         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64884
64885         [BZ #5103]
64886         * lib/glob.c (glob): Recognize patterns starting \/.
64887
64888         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64889
64890         [BZ #3996]
64891         * lib/glob.c (attribute_hidden): Define if not defined.
64892         (glob): Unescape dirname, filename or username when needed and not
64893         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64894         is NULL.  Handle unescaped [ in pattern without closing ].
64895         Don't pass GLOB_CHECK down to recursive glob for directories.
64896         (__glob_pattern_type): New function.
64897         (__glob_pattern_p): Implement using __glob_pattern_type.
64898         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64899         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64900         Remove unreachable code.
64901
64902         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64903
64904         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64905         explain why there are no leaks.
64906
64907         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64908
64909         [BZ #3253]
64910         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64911         time, rather allocate increasingly bigger arrays of pointers, if
64912         possible with alloca, if too large with malloc.
64913
64914 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64915
64916         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64917         Problem reported by H.Merijn Brand in
64918         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64919         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64920         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64921
64922 2007-10-15  Bruno Haible  <bruno@clisp.org>
64923
64924         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64925         with explicit rpl_ prefix.
64926         * lib/fopen.c (fopen): Likewise.
64927         * lib/freopen.c (freopen): Likewise.
64928         * lib/iconv.c (iconv): Likewise.
64929         * lib/iconv_close.c (iconv_close): Likewise.
64930
64931 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64932
64933         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64934
64935 2007-10-15  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64938         <stddef.h> instead of <stdlib.h> since we only need NULL.
64939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64940
64941 2007-10-15  Bruno Haible  <bruno@clisp.org>
64942
64943         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64944         Replace paragraph talking about LIBOBJS.
64945         Reported by Colin Watson <cjwatson@debian.org>.
64946
64947 2007-10-15  Bruno Haible  <bruno@clisp.org>
64948
64949         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64950         <stdlib.h> before using NULL.
64951
64952 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64953
64954         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64955         Reported by Albert Chin <china@thewrittenword.com>.
64956
64957 2007-10-14  Bruno Haible  <bruno@clisp.org>
64958
64959         * modules/iconv_open-utf-tests: New file.
64960         * tests/test-iconv-utf.c: New file.
64961
64962         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64963         * modules/iconv_open-utf: New file.
64964         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64965         (iconv, iconv_close): New declarations.
64966         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64967         be defined.
64968         (iconv_open): Add special handling of conversion between UTF-8 and
64969         UTF-{16,32}{BE,LE}.
64970         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64971         * lib/iconv_close.c: New file.
64972         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64973         gl_FUNC_ICONV_OPEN.
64974         (gl_FUNC_ICONV_OPEN): Use it.
64975         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64976         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64977         and REPLACE_ICONV_UTF.
64978         * modules/iconv_open (Depends-on): Add c-strcase.
64979         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64980         ICONV_CONST.
64981         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64982
64983 2007-10-13  Albert Chin  <china@thewrittenword.com>
64984             Bruno Haible  <bruno@clisp.org>
64985
64986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64987         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64988
64989 2007-10-13  Bruno Haible  <bruno@clisp.org>
64990
64991         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64992         defined, use the ISO C99 inline semantics.
64993         * lib/argp.h (ARGP_EI): Likewise.
64994
64995 2007-10-13  Bruno Haible  <bruno@clisp.org>
64996
64997         Handle 'inline' change in gcc 4.3.0.
64998         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64999         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65000         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65001         argp_fmtstream_point): Disable 'extern' declaration if the function
65002         definition is going to be provided inline.
65003         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65004         semantics, not the ISO C99 inline semantics.
65005         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65006         'extern' declaration if the function definition is going to be provided
65007         inline.
65008         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65009         the GNU C inline semantics, not the ISO C99 inline semantics. With
65010         GCC 4.2, avoid a warning.
65011
65012 2007-10-13  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/freading.h (freading): Enable the use of __freading for
65015         glibc >= 2.7.
65016         * lib/freading.c (freading): Likewise.
65017
65018 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65021         "warning: C99 inline functions are not supported; using GNU89".
65022
65023 2007-10-12  Bruno Haible  <bruno@clisp.org>
65024
65025         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65026         of 2.
65027         * tests/test-ceilf2.c: New file.
65028         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65029
65030         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65031         * modules/ceilf-tests: Update.
65032
65033 2007-10-12  Bruno Haible  <bruno@clisp.org>
65034
65035         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65036         of 2.
65037         * tests/test-floorf2.c: New file.
65038         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65039
65040         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65041         * modules/floorf-tests: Update.
65042
65043 2007-10-12  Bruno Haible  <bruno@clisp.org>
65044
65045         * tests/test-trunc2.c: New file.
65046         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65047
65048         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65049         * modules/trunc-tests: Update.
65050
65051 2007-10-12  Bruno Haible  <bruno@clisp.org>
65052
65053         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65054         of 2.
65055         * tests/test-truncf2.c: New file.
65056         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65057
65058         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65059         * modules/truncf-tests: Update.
65060
65061 2007-10-11  Eric Blake  <ebb9@byu.net>
65062
65063         Don't claim strerror is broken on Interix.
65064         * doc/functions/strerror.texi (strerror): Known broken systems are
65065         now Solaris 8, and not Interix.
65066         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65067         Interix on cross-compile.
65068         Reported by Martin Koeppe in
65069         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65070
65071 2007-10-11  Bruno Haible  <bruno@clisp.org>
65072
65073         * modules/i-ring-tests: New file.
65074         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65075         instead of assert.
65076
65077 2007-10-11  Bruno Haible  <bruno@clisp.org>
65078
65079         * modules/filenamecat-tests: New file.
65080         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65081         * lib/filenamecat.c: Remove test code.
65082
65083 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65086
65087         * lib/strerror.c: Include <string.h> always, to test interface,
65088         and to remove the need for the dummy.
65089         Include intprops.h to compute width instead of doing it ourselves
65090         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65091         (strerror): Define it to return NULL if there's no system strerror.
65092         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65093         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65094         ancient pre-strerror Unix systems well any more.  Saying "unknown
65095         system error" is enough.
65096         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65097         simpler strerror.c implementation.
65098         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65099         Simplify the tests to reflect the simpler strerror implementation.
65100         * modules/strerror (Depends-on): Add intprops.
65101
65102 2007-10-09  Eric Blake  <ebb9@byu.net>
65103
65104         Silence test-fpending.
65105         * modules/fpending-tests (Files): Add wrapper script.
65106         * tests/test-fpending.sh: New file.
65107
65108 2007-10-09  Bruno Haible  <bruno@clisp.org>
65109
65110         * MODULES.html.sh (func_module): Don't create a hyperlink for
65111         function names like 'printf_frexp'.
65112         (Misc): Add crc, memxor.
65113         (Characteristics of floating types): New section.
65114         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65115         isnanf-nolibm, signbit, trunc, truncf, truncl.
65116         (Enhancements for ISO C 99 functions): New subsection Input/output.
65117         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65118         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65119         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65120         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65121         (Enhancements for POSIX:2001 functions): Add chdir-long.
65122         (File system functions): Add areadlink, chdir-safer, read-file.
65123         Remove cycle-check.
65124         (File system as inode set): New section.
65125         (Date and time): Add gethrxtime.
65126         (Multithreading): Add openmp.
65127         (Internationalization functions): Add localename.
65128         (Unicode string functions): Add unistr/u*-mbsnlen.
65129         (Support for maintaining and releasing projects): Add git-version-gen.
65130         (Lone files): Remove directories.
65131
65132 2007-10-08  Ben Pfaff  <blp@gnu.org>
65133
65134         * lib/xmalloca.h: Fix typo in comment.
65135
65136 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65139         when avoiding problems with integer overflow.  Use a portable test
65140         instead.
65141
65142 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65143
65144         * modules/dummy (License): Change to LGPLv2+.
65145         * modules/float (License): Likewise
65146         * modules/realloc (License): Likewise
65147         * modules/stdlib (License): Likewise
65148
65149 2007-10-07  Bruno Haible  <bruno@clisp.org>
65150
65151         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65152         * floor.c (TWO_MANT_DIG): Likewise.
65153         * ceil.c (TWO_MANT_DIG): Likewise.
65154         Reported by Ben Pfaff.
65155
65156 2007-10-07  Bruno Haible  <bruno@clisp.org>
65157
65158         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65159         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65160         * lib/frexp.c (FUNC): Likewise.
65161         * lib/printf-frexp.h (printf_frexp): Likewise.
65162         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65163         * lib/printf-frexp.c (FUNC): Likewise.
65164         Suggested by Jim Meyering.
65165
65166 2007-10-07  Jim Meyering  <meyering@redhat.com>
65167
65168         Make xnanosleep's integer overflow test more robust.
65169         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65170         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65171
65172 2007-10-07  Bruno Haible  <bruno@clisp.org>
65173
65174         * NEWS: Mention the license change.
65175
65176         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65177         abbreviations in the modules files.
65178
65179         Change copyright notice from GPLv2+ to GPLv3+.
65180         * README: Change copyright notice.
65181         * MODULES.html.sh: Likewise.
65182         * build-aux/bootstrap.conf: Likewise.
65183         * build-aux/config.libpath: Likewise.
65184         * build-aux/csharpcomp.sh.in: Likewise.
65185         * build-aux/csharpexec.sh.in: Likewise.
65186         * build-aux/install-reloc: Likewise.
65187         * build-aux/javacomp.sh.in: Likewise.
65188         * build-aux/javaexec.sh.in: Likewise.
65189         * build-aux/ldd.sh.in: Likewise.
65190         * build-aux/reloc-ldflags: Likewise.
65191         * build-aux/relocatable.sh.in: Likewise.
65192         * build-aux/x-to-1.in: Likewise.
65193         * check-module: Likewise.
65194         * config/srclistvars.sh: Likewise.
65195         * gnulib-tool: Likewise.
65196         * lib/acl-internal.h: Likewise.
65197         * lib/acl.c: Likewise.
65198         * lib/acl.h: Likewise.
65199         * lib/acl_entries.c: Likewise.
65200         * lib/areadlink-with-size.c: Likewise.
65201         * lib/areadlink.c: Likewise.
65202         * lib/areadlink.h: Likewise.
65203         * lib/argmatch.c: Likewise.
65204         * lib/argmatch.h: Likewise.
65205         * lib/argp-ba.c: Likewise.
65206         * lib/argp-eexst.c: Likewise.
65207         * lib/argp-fmtstream.c: Likewise.
65208         * lib/argp-fmtstream.h: Likewise.
65209         * lib/argp-fs-xinl.c: Likewise.
65210         * lib/argp-help.c: Likewise.
65211         * lib/argp-namefrob.h: Likewise.
65212         * lib/argp-parse.c: Likewise.
65213         * lib/argp-pin.c: Likewise.
65214         * lib/argp-pv.c: Likewise.
65215         * lib/argp-pvh.c: Likewise.
65216         * lib/argp-xinl.c: Likewise.
65217         * lib/argp.h: Likewise.
65218         * lib/at-func.c: Likewise.
65219         * lib/atanl.c: Likewise.
65220         * lib/backupfile.c: Likewise.
65221         * lib/backupfile.h: Likewise.
65222         * lib/basename.c: Likewise.
65223         * lib/binary-io.h: Likewise.
65224         * lib/byteswap.in.h: Likewise.
65225         * lib/c-stack.c: Likewise.
65226         * lib/c-stack.h: Likewise.
65227         * lib/c-strcasestr.c: Likewise.
65228         * lib/c-strcasestr.h: Likewise.
65229         * lib/c-strstr.c: Likewise.
65230         * lib/c-strstr.h: Likewise.
65231         * lib/c-strtod.c: Likewise.
65232         * lib/calloc.c: Likewise.
65233         * lib/canon-host.c: Likewise.
65234         * lib/canon-host.h: Likewise.
65235         * lib/canonicalize-lgpl.c: Likewise.
65236         * lib/canonicalize.c: Likewise.
65237         * lib/canonicalize.h: Likewise.
65238         * lib/ceil.c: Likewise.
65239         * lib/ceilf.c: Likewise.
65240         * lib/ceill.c: Likewise.
65241         * lib/chdir-long.c: Likewise.
65242         * lib/chdir-long.h: Likewise.
65243         * lib/chdir-safer.c: Likewise.
65244         * lib/chdir-safer.h: Likewise.
65245         * lib/chown.c: Likewise.
65246         * lib/classpath.c: Likewise.
65247         * lib/classpath.h: Likewise.
65248         * lib/clean-temp.c: Likewise.
65249         * lib/clean-temp.h: Likewise.
65250         * lib/cloexec.c: Likewise.
65251         * lib/close-stream.c: Likewise.
65252         * lib/closein.c: Likewise.
65253         * lib/closein.h: Likewise.
65254         * lib/closeout.c: Likewise.
65255         * lib/closeout.h: Likewise.
65256         * lib/concat-filename.c: Likewise.
65257         * lib/copy-file.c: Likewise.
65258         * lib/copy-file.h: Likewise.
65259         * lib/count-one-bits.h: Likewise.
65260         * lib/crc.c: Likewise.
65261         * lib/crc.h: Likewise.
65262         * lib/creat-safer.c: Likewise.
65263         * lib/csharpcomp.c: Likewise.
65264         * lib/csharpcomp.h: Likewise.
65265         * lib/csharpexec.c: Likewise.
65266         * lib/csharpexec.h: Likewise.
65267         * lib/cycle-check.c: Likewise.
65268         * lib/cycle-check.h: Likewise.
65269         * lib/diacrit.c: Likewise.
65270         * lib/diacrit.h: Likewise.
65271         * lib/diffseq.h: Likewise.
65272         * lib/dirchownmod.c: Likewise.
65273         * lib/dirent.in.h: Likewise.
65274         * lib/dirfd.c: Likewise.
65275         * lib/dirfd.h: Likewise.
65276         * lib/dirname.c: Likewise.
65277         * lib/dirname.h: Likewise.
65278         * lib/dummy.c: Likewise.
65279         * lib/dup-safer.c: Likewise.
65280         * lib/dup2.c: Likewise.
65281         * lib/eealloc.h: Likewise.
65282         * lib/error.c: Likewise.
65283         * lib/error.h: Likewise.
65284         * lib/euidaccess.c: Likewise.
65285         * lib/exclude.c: Likewise.
65286         * lib/exclude.h: Likewise.
65287         * lib/execute.c: Likewise.
65288         * lib/execute.h: Likewise.
65289         * lib/exitfail.c: Likewise.
65290         * lib/exitfail.h: Likewise.
65291         * lib/expl.c: Likewise.
65292         * lib/fatal-signal.c: Likewise.
65293         * lib/fatal-signal.h: Likewise.
65294         * lib/fbufmode.c: Likewise.
65295         * lib/fbufmode.h: Likewise.
65296         * lib/fchdir.c: Likewise.
65297         * lib/fchmodat.c: Likewise.
65298         * lib/fchownat.c: Likewise.
65299         * lib/fcntl--.h: Likewise.
65300         * lib/fcntl-safer.h: Likewise.
65301         * lib/fcntl.in.h: Likewise.
65302         * lib/fd-safer.c: Likewise.
65303         * lib/fflush.c: Likewise.
65304         * lib/file-has-acl.c: Likewise.
65305         * lib/file-set.c: Likewise.
65306         * lib/file-type.c: Likewise.
65307         * lib/file-type.h: Likewise.
65308         * lib/fileblocks.c: Likewise.
65309         * lib/filemode.c: Likewise.
65310         * lib/filemode.h: Likewise.
65311         * lib/filename.h: Likewise.
65312         * lib/filenamecat.c: Likewise.
65313         * lib/filenamecat.h: Likewise.
65314         * lib/findprog.c: Likewise.
65315         * lib/findprog.h: Likewise.
65316         * lib/float.in.h: Likewise.
65317         * lib/floor.c: Likewise.
65318         * lib/floorf.c: Likewise.
65319         * lib/floorl.c: Likewise.
65320         * lib/fopen-safer.c: Likewise.
65321         * lib/fopen.c: Likewise.
65322         * lib/fpending.c: Likewise.
65323         * lib/fpending.h: Likewise.
65324         * lib/fprintf.c: Likewise.
65325         * lib/fprintftime.h: Likewise.
65326         * lib/fpucw.h: Likewise.
65327         * lib/fpurge.c: Likewise.
65328         * lib/fpurge.h: Likewise.
65329         * lib/freadable.c: Likewise.
65330         * lib/freadable.h: Likewise.
65331         * lib/freadahead.c: Likewise.
65332         * lib/freadahead.h: Likewise.
65333         * lib/freading.c: Likewise.
65334         * lib/freading.h: Likewise.
65335         * lib/free.c: Likewise.
65336         * lib/freopen.c: Likewise.
65337         * lib/frexp.c: Likewise.
65338         * lib/frexpl.c: Likewise.
65339         * lib/fseek.c: Likewise.
65340         * lib/fseterr.c: Likewise.
65341         * lib/fseterr.h: Likewise.
65342         * lib/fstatat.c: Likewise.
65343         * lib/fstrcmp.c: Likewise.
65344         * lib/fstrcmp.h: Likewise.
65345         * lib/fsusage.c: Likewise.
65346         * lib/fsusage.h: Likewise.
65347         * lib/ftell.c: Likewise.
65348         * lib/ftello.c: Likewise.
65349         * lib/fts-cycle.c: Likewise.
65350         * lib/fts.c: Likewise.
65351         * lib/fts_.h: Likewise.
65352         * lib/full-read.c: Likewise.
65353         * lib/full-read.h: Likewise.
65354         * lib/full-write.c: Likewise.
65355         * lib/full-write.h: Likewise.
65356         * lib/fwritable.c: Likewise.
65357         * lib/fwritable.h: Likewise.
65358         * lib/fwriteerror.c: Likewise.
65359         * lib/fwriteerror.h: Likewise.
65360         * lib/fwriting.c: Likewise.
65361         * lib/fwriting.h: Likewise.
65362         * lib/gcd.c: Likewise.
65363         * lib/gcd.h: Likewise.
65364         * lib/getcwd.c: Likewise.
65365         * lib/getdate.h: Likewise.
65366         * lib/getdate.y: Likewise.
65367         * lib/getdomainname.c: Likewise.
65368         * lib/getdomainname.h: Likewise.
65369         * lib/getgroups.c: Likewise.
65370         * lib/gethostname.c: Likewise.
65371         * lib/gethrxtime.c: Likewise.
65372         * lib/gethrxtime.h: Likewise.
65373         * lib/getloadavg.c: Likewise.
65374         * lib/getndelim2.c: Likewise.
65375         * lib/getndelim2.h: Likewise.
65376         * lib/getnline.c: Likewise.
65377         * lib/getnline.h: Likewise.
65378         * lib/getopt.c: Likewise.
65379         * lib/getopt.in.h: Likewise.
65380         * lib/getopt1.c: Likewise.
65381         * lib/getopt_int.h: Likewise.
65382         * lib/getpagesize.h: Likewise.
65383         * lib/getsubopt.c: Likewise.
65384         * lib/gettime.c: Likewise.
65385         * lib/getugroups.c: Likewise.
65386         * lib/getugroups.h: Likewise.
65387         * lib/getusershell.c: Likewise.
65388         * lib/gl_anyavltree_list1.h: Likewise.
65389         * lib/gl_anyavltree_list2.h: Likewise.
65390         * lib/gl_anyhash_list1.h: Likewise.
65391         * lib/gl_anyhash_list2.h: Likewise.
65392         * lib/gl_anylinked_list1.h: Likewise.
65393         * lib/gl_anylinked_list2.h: Likewise.
65394         * lib/gl_anyrbtree_list1.h: Likewise.
65395         * lib/gl_anyrbtree_list2.h: Likewise.
65396         * lib/gl_anytree_list1.h: Likewise.
65397         * lib/gl_anytree_list2.h: Likewise.
65398         * lib/gl_anytree_oset.h: Likewise.
65399         * lib/gl_anytreehash_list1.h: Likewise.
65400         * lib/gl_anytreehash_list2.h: Likewise.
65401         * lib/gl_array_list.c: Likewise.
65402         * lib/gl_array_list.h: Likewise.
65403         * lib/gl_array_oset.c: Likewise.
65404         * lib/gl_array_oset.h: Likewise.
65405         * lib/gl_avltree_list.c: Likewise.
65406         * lib/gl_avltree_list.h: Likewise.
65407         * lib/gl_avltree_oset.c: Likewise.
65408         * lib/gl_avltree_oset.h: Likewise.
65409         * lib/gl_avltreehash_list.c: Likewise.
65410         * lib/gl_avltreehash_list.h: Likewise.
65411         * lib/gl_carray_list.c: Likewise.
65412         * lib/gl_carray_list.h: Likewise.
65413         * lib/gl_linked_list.c: Likewise.
65414         * lib/gl_linked_list.h: Likewise.
65415         * lib/gl_linkedhash_list.c: Likewise.
65416         * lib/gl_linkedhash_list.h: Likewise.
65417         * lib/gl_list.c: Likewise.
65418         * lib/gl_list.h: Likewise.
65419         * lib/gl_oset.c: Likewise.
65420         * lib/gl_oset.h: Likewise.
65421         * lib/gl_rbtree_list.c: Likewise.
65422         * lib/gl_rbtree_list.h: Likewise.
65423         * lib/gl_rbtree_oset.c: Likewise.
65424         * lib/gl_rbtree_oset.h: Likewise.
65425         * lib/gl_rbtreehash_list.c: Likewise.
65426         * lib/gl_rbtreehash_list.h: Likewise.
65427         * lib/gl_sublist.c: Likewise.
65428         * lib/gl_sublist.h: Likewise.
65429         * lib/group-member.c: Likewise.
65430         * lib/group-member.h: Likewise.
65431         * lib/hard-locale.c: Likewise.
65432         * lib/hard-locale.h: Likewise.
65433         * lib/hash-pjw.c: Likewise.
65434         * lib/hash-pjw.h: Likewise.
65435         * lib/hash-triple.c: Likewise.
65436         * lib/hash.c: Likewise.
65437         * lib/hash.h: Likewise.
65438         * lib/human.c: Likewise.
65439         * lib/human.h: Likewise.
65440         * lib/i-ring.c: Likewise.
65441         * lib/i-ring.h: Likewise.
65442         * lib/idcache.c: Likewise.
65443         * lib/imaxabs.c: Likewise.
65444         * lib/imaxdiv.c: Likewise.
65445         * lib/inet_pton.c: Likewise.
65446         * lib/inet_pton.h: Likewise.
65447         * lib/intprops.h: Likewise.
65448         * lib/inttostr.c: Likewise.
65449         * lib/inttostr.h: Likewise.
65450         * lib/inttypes.in.h: Likewise.
65451         * lib/isapipe.c: Likewise.
65452         * lib/isdir.c: Likewise.
65453         * lib/isnan.c: Likewise.
65454         * lib/isnan.h: Likewise.
65455         * lib/isnanf.c: Likewise.
65456         * lib/isnanf.h: Likewise.
65457         * lib/isnanl-nolibm.h: Likewise.
65458         * lib/isnanl.c: Likewise.
65459         * lib/isnanl.h: Likewise.
65460         * lib/javacomp.c: Likewise.
65461         * lib/javacomp.h: Likewise.
65462         * lib/javaexec.c: Likewise.
65463         * lib/javaexec.h: Likewise.
65464         * lib/javaversion.c: Likewise.
65465         * lib/javaversion.h: Likewise.
65466         * lib/javaversion.java: Likewise.
65467         * lib/lbrkprop.h: Likewise.
65468         * lib/lchmod.h: Likewise.
65469         * lib/lchown.c: Likewise.
65470         * lib/ldexpl.c: Likewise.
65471         * lib/linebreak.c: Likewise.
65472         * lib/linebreak.h: Likewise.
65473         * lib/linebuffer.c: Likewise.
65474         * lib/linebuffer.h: Likewise.
65475         * lib/locale.in.h: Likewise.
65476         * lib/logl.c: Likewise.
65477         * lib/long-options.c: Likewise.
65478         * lib/long-options.h: Likewise.
65479         * lib/lstat.c: Likewise.
65480         * lib/lstat.h: Likewise.
65481         * lib/math.in.h: Likewise.
65482         * lib/mbchar.c: Likewise.
65483         * lib/mbchar.h: Likewise.
65484         * lib/mbfile.h: Likewise.
65485         * lib/mbiter.h: Likewise.
65486         * lib/mbscasecmp.c: Likewise.
65487         * lib/mbscasestr.c: Likewise.
65488         * lib/mbschr.c: Likewise.
65489         * lib/mbscspn.c: Likewise.
65490         * lib/mbslen.c: Likewise.
65491         * lib/mbsncasecmp.c: Likewise.
65492         * lib/mbsnlen.c: Likewise.
65493         * lib/mbspbrk.c: Likewise.
65494         * lib/mbspcasecmp.c: Likewise.
65495         * lib/mbsrchr.c: Likewise.
65496         * lib/mbssep.c: Likewise.
65497         * lib/mbsspn.c: Likewise.
65498         * lib/mbsstr.c: Likewise.
65499         * lib/mbstok_r.c: Likewise.
65500         * lib/mbswidth.c: Likewise.
65501         * lib/mbswidth.h: Likewise.
65502         * lib/mbuiter.h: Likewise.
65503         * lib/memcasecmp.c: Likewise.
65504         * lib/memcasecmp.h: Likewise.
65505         * lib/memchr.c: Likewise.
65506         * lib/memcmp.c: Likewise.
65507         * lib/memcoll.c: Likewise.
65508         * lib/memcoll.h: Likewise.
65509         * lib/memcpy.c: Likewise.
65510         * lib/memrchr.c: Likewise.
65511         * lib/mkancesdirs.c: Likewise.
65512         * lib/mkdir-p.c: Likewise.
65513         * lib/mkdir-p.h: Likewise.
65514         * lib/mkdir.c: Likewise.
65515         * lib/mkdirat.c: Likewise.
65516         * lib/mkdtemp.c: Likewise.
65517         * lib/mkstemp-safer.c: Likewise.
65518         * lib/mkstemp.c: Likewise.
65519         * lib/modechange.c: Likewise.
65520         * lib/modechange.h: Likewise.
65521         * lib/mountlist.c: Likewise.
65522         * lib/mountlist.h: Likewise.
65523         * lib/mpsort.c: Likewise.
65524         * lib/nanosleep.c: Likewise.
65525         * lib/obstack.c: Likewise.
65526         * lib/obstack.h: Likewise.
65527         * lib/open-safer.c: Likewise.
65528         * lib/open.c: Likewise.
65529         * lib/openat-die.c: Likewise.
65530         * lib/openat-priv.h: Likewise.
65531         * lib/openat-proc.c: Likewise.
65532         * lib/openat.c: Likewise.
65533         * lib/openat.h: Likewise.
65534         * lib/pagealign_alloc.c: Likewise.
65535         * lib/pagealign_alloc.h: Likewise.
65536         * lib/physmem.c: Likewise.
65537         * lib/physmem.h: Likewise.
65538         * lib/pipe-safer.c: Likewise.
65539         * lib/pipe.c: Likewise.
65540         * lib/pipe.h: Likewise.
65541         * lib/posixtm.c: Likewise.
65542         * lib/posixtm.h: Likewise.
65543         * lib/posixver.c: Likewise.
65544         * lib/printf-frexp.c: Likewise.
65545         * lib/printf-frexp.h: Likewise.
65546         * lib/printf-frexpl.c: Likewise.
65547         * lib/printf-frexpl.h: Likewise.
65548         * lib/printf.c: Likewise.
65549         * lib/progname.c: Likewise.
65550         * lib/progname.h: Likewise.
65551         * lib/progreloc.c: Likewise.
65552         * lib/putenv.c: Likewise.
65553         * lib/quote.c: Likewise.
65554         * lib/quote.h: Likewise.
65555         * lib/quotearg.c: Likewise.
65556         * lib/quotearg.h: Likewise.
65557         * lib/raise.c: Likewise.
65558         * lib/readline.c: Likewise.
65559         * lib/readline.h: Likewise.
65560         * lib/readlink.c: Likewise.
65561         * lib/readtokens.c: Likewise.
65562         * lib/readtokens.h: Likewise.
65563         * lib/readtokens0.c: Likewise.
65564         * lib/readtokens0.h: Likewise.
65565         * lib/readutmp.c: Likewise.
65566         * lib/readutmp.h: Likewise.
65567         * lib/realloc.c: Likewise.
65568         * lib/relocwrapper.c: Likewise.
65569         * lib/rename-dest-slash.c: Likewise.
65570         * lib/rename.c: Likewise.
65571         * lib/rmdir.c: Likewise.
65572         * lib/rpmatch.c: Likewise.
65573         * lib/safe-read.c: Likewise.
65574         * lib/safe-read.h: Likewise.
65575         * lib/safe-write.c: Likewise.
65576         * lib/safe-write.h: Likewise.
65577         * lib/same-inode.h: Likewise.
65578         * lib/same.c: Likewise.
65579         * lib/same.h: Likewise.
65580         * lib/save-cwd.c: Likewise.
65581         * lib/save-cwd.h: Likewise.
65582         * lib/savedir.c: Likewise.
65583         * lib/savedir.h: Likewise.
65584         * lib/savewd.c: Likewise.
65585         * lib/savewd.h: Likewise.
65586         * lib/search.in.h: Likewise.
65587         * lib/setenv.c: Likewise.
65588         * lib/setenv.h: Likewise.
65589         * lib/settime.c: Likewise.
65590         * lib/sh-quote.c: Likewise.
65591         * lib/sh-quote.h: Likewise.
65592         * lib/sig2str.c: Likewise.
65593         * lib/sig2str.h: Likewise.
65594         * lib/signal.in.h: Likewise.
65595         * lib/signbitd.c: Likewise.
65596         * lib/signbitf.c: Likewise.
65597         * lib/signbitl.c: Likewise.
65598         * lib/sigprocmask.c: Likewise.
65599         * lib/sincosl.c: Likewise.
65600         * lib/sleep.c: Likewise.
65601         * lib/sprintf.c: Likewise.
65602         * lib/sqrtl.c: Likewise.
65603         * lib/stat-time.h: Likewise.
65604         * lib/stdio--.h: Likewise.
65605         * lib/stdio-safer.h: Likewise.
65606         * lib/stdlib--.h: Likewise.
65607         * lib/stdlib-safer.h: Likewise.
65608         * lib/stdlib.in.h: Likewise.
65609         * lib/stpcpy.c: Likewise.
65610         * lib/stpncpy.c: Likewise.
65611         * lib/strchrnul.c: Likewise.
65612         * lib/strcspn.c: Likewise.
65613         * lib/strerror.c: Likewise.
65614         * lib/strftime.c: Likewise.
65615         * lib/strftime.h: Likewise.
65616         * lib/striconveh.c: Likewise.
65617         * lib/striconveh.h: Likewise.
65618         * lib/striconveha.c: Likewise.
65619         * lib/striconveha.h: Likewise.
65620         * lib/stripslash.c: Likewise.
65621         * lib/strnlen1.c: Likewise.
65622         * lib/strnlen1.h: Likewise.
65623         * lib/strtod.c: Likewise.
65624         * lib/strtoimax.c: Likewise.
65625         * lib/strtok_r.c: Likewise.
65626         * lib/strtol.c: Likewise.
65627         * lib/strtoll.c: Likewise.
65628         * lib/strtoul.c: Likewise.
65629         * lib/strtoull.c: Likewise.
65630         * lib/sysexits.in.h: Likewise.
65631         * lib/tempname.c: Likewise.
65632         * lib/tempname.h: Likewise.
65633         * lib/timespec.h: Likewise.
65634         * lib/tls.c: Likewise.
65635         * lib/tls.h: Likewise.
65636         * lib/tmpdir.c: Likewise.
65637         * lib/tmpdir.h: Likewise.
65638         * lib/tmpfile-safer.c: Likewise.
65639         * lib/tmpfile.c: Likewise.
65640         * lib/trigl.c: Likewise.
65641         * lib/trigl.h: Likewise.
65642         * lib/trim.c: Likewise.
65643         * lib/trim.h: Likewise.
65644         * lib/trunc.c: Likewise.
65645         * lib/truncf.c: Likewise.
65646         * lib/truncl.c: Likewise.
65647         * lib/tsearch.c: Likewise.
65648         * lib/unicodeio.c: Likewise.
65649         * lib/unicodeio.h: Likewise.
65650         * lib/unistd--.h: Likewise.
65651         * lib/unistd-safer.h: Likewise.
65652         * lib/unistdio/ulc-fprintf.c: Likewise.
65653         * lib/unistdio/ulc-vfprintf.c: Likewise.
65654         * lib/unlinkdir.c: Likewise.
65655         * lib/unlinkdir.h: Likewise.
65656         * lib/unlocked-io.h: Likewise.
65657         * lib/unsetenv.c: Likewise.
65658         * lib/userspec.c: Likewise.
65659         * lib/utime.c: Likewise.
65660         * lib/utimecmp.c: Likewise.
65661         * lib/utimecmp.h: Likewise.
65662         * lib/utimens.c: Likewise.
65663         * lib/verify.h: Likewise.
65664         * lib/verror.c: Likewise.
65665         * lib/verror.h: Likewise.
65666         * lib/version-etc-fsf.c: Likewise.
65667         * lib/version-etc.c: Likewise.
65668         * lib/version-etc.h: Likewise.
65669         * lib/vfprintf.c: Likewise.
65670         * lib/vprintf.c: Likewise.
65671         * lib/vsprintf.c: Likewise.
65672         * lib/w32spawn.h: Likewise.
65673         * lib/wait-process.c: Likewise.
65674         * lib/wait-process.h: Likewise.
65675         * lib/wcwidth.c: Likewise.
65676         * lib/write-any-file.c: Likewise.
65677         * lib/xalloc-die.c: Likewise.
65678         * lib/xalloc.h: Likewise.
65679         * lib/xasprintf.c: Likewise.
65680         * lib/xgetcwd.c: Likewise.
65681         * lib/xgetcwd.h: Likewise.
65682         * lib/xgetdomainname.c: Likewise.
65683         * lib/xgetdomainname.h: Likewise.
65684         * lib/xgethostname.c: Likewise.
65685         * lib/xmalloc.c: Likewise.
65686         * lib/xmalloca.c: Likewise.
65687         * lib/xmalloca.h: Likewise.
65688         * lib/xmemcoll.c: Likewise.
65689         * lib/xnanosleep.c: Likewise.
65690         * lib/xreadlink.c: Likewise.
65691         * lib/xreadlink.h: Likewise.
65692         * lib/xsetenv.c: Likewise.
65693         * lib/xsetenv.h: Likewise.
65694         * lib/xstriconv.c: Likewise.
65695         * lib/xstriconv.h: Likewise.
65696         * lib/xstrndup.c: Likewise.
65697         * lib/xstrndup.h: Likewise.
65698         * lib/xstrtod.c: Likewise.
65699         * lib/xstrtod.h: Likewise.
65700         * lib/xstrtol-error.c: Likewise.
65701         * lib/xstrtol.c: Likewise.
65702         * lib/xstrtol.h: Likewise.
65703         * lib/xtime.h: Likewise.
65704         * lib/xvasprintf.c: Likewise.
65705         * lib/xvasprintf.h: Likewise.
65706         * lib/yesno.c: Likewise.
65707         * lib/yesno.h: Likewise.
65708         * posix-modules: Likewise.
65709         * tests/test-alloca-opt.c: Likewise.
65710         * tests/test-arcfour.c: Likewise.
65711         * tests/test-arctwo.c: Likewise.
65712         * tests/test-argmatch.c: Likewise.
65713         * tests/test-argp-2.sh: Likewise.
65714         * tests/test-argp.c: Likewise.
65715         * tests/test-arpa_inet.c: Likewise.
65716         * tests/test-array_list.c: Likewise.
65717         * tests/test-array_oset.c: Likewise.
65718         * tests/test-atexit.c: Likewise.
65719         * tests/test-avltree_list.c: Likewise.
65720         * tests/test-avltree_oset.c: Likewise.
65721         * tests/test-avltreehash_list.c: Likewise.
65722         * tests/test-base64.c: Likewise.
65723         * tests/test-binary-io.c: Likewise.
65724         * tests/test-byteswap.c: Likewise.
65725         * tests/test-c-ctype.c: Likewise.
65726         * tests/test-c-strcasecmp.c: Likewise.
65727         * tests/test-c-strcasestr.c: Likewise.
65728         * tests/test-c-strncasecmp.c: Likewise.
65729         * tests/test-c-strstr.c: Likewise.
65730         * tests/test-canonicalize-lgpl.c: Likewise.
65731         * tests/test-canonicalize.c: Likewise.
65732         * tests/test-carray_list.c: Likewise.
65733         * tests/test-ceilf.c: Likewise.
65734         * tests/test-ceill.c: Likewise.
65735         * tests/test-count-one-bits.c: Likewise.
65736         * tests/test-crc.c: Likewise.
65737         * tests/test-dirname.c: Likewise.
65738         * tests/test-fbufmode.c: Likewise.
65739         * tests/test-fcntl.c: Likewise.
65740         * tests/test-fflush.c: Likewise.
65741         * tests/test-floorf.c: Likewise.
65742         * tests/test-floorl.c: Likewise.
65743         * tests/test-fopen.c: Likewise.
65744         * tests/test-fprintf-posix.c: Likewise.
65745         * tests/test-fprintf-posix.h: Likewise.
65746         * tests/test-fpurge.c: Likewise.
65747         * tests/test-freadable.c: Likewise.
65748         * tests/test-freadahead.c: Likewise.
65749         * tests/test-freading.c: Likewise.
65750         * tests/test-freopen.c: Likewise.
65751         * tests/test-frexp.c: Likewise.
65752         * tests/test-frexpl.c: Likewise.
65753         * tests/test-fseek.c: Likewise.
65754         * tests/test-fseeko.c: Likewise.
65755         * tests/test-fseterr.c: Likewise.
65756         * tests/test-fstrcmp.c: Likewise.
65757         * tests/test-ftell.c: Likewise.
65758         * tests/test-ftello.c: Likewise.
65759         * tests/test-fwritable.c: Likewise.
65760         * tests/test-fwriting.c: Likewise.
65761         * tests/test-getaddrinfo.c: Likewise.
65762         * tests/test-getpass.c: Likewise.
65763         * tests/test-gettimeofday.c: Likewise.
65764         * tests/test-hmac-md5.c: Likewise.
65765         * tests/test-hmac-sha1.c: Likewise.
65766         * tests/test-iconv.c: Likewise.
65767         * tests/test-iconvme.c: Likewise.
65768         * tests/test-inttypes.c: Likewise.
65769         * tests/test-isnan.c: Likewise.
65770         * tests/test-isnanf.c: Likewise.
65771         * tests/test-isnanl-nolibm.c: Likewise.
65772         * tests/test-isnanl.c: Likewise.
65773         * tests/test-isnanl.h: Likewise.
65774         * tests/test-ldexpl.c: Likewise.
65775         * tests/test-linked_list.c: Likewise.
65776         * tests/test-linkedhash_list.c: Likewise.
65777         * tests/test-locale.c: Likewise.
65778         * tests/test-localename.c: Likewise.
65779         * tests/test-lock.c: Likewise.
65780         * tests/test-lseek.c: Likewise.
65781         * tests/test-malloca.c: Likewise.
65782         * tests/test-math.c: Likewise.
65783         * tests/test-mbscasecmp.c: Likewise.
65784         * tests/test-mbscasestr1.c: Likewise.
65785         * tests/test-mbscasestr2.c: Likewise.
65786         * tests/test-mbscasestr3.c: Likewise.
65787         * tests/test-mbscasestr4.c: Likewise.
65788         * tests/test-mbschr.c: Likewise.
65789         * tests/test-mbscspn.c: Likewise.
65790         * tests/test-mbsncasecmp.c: Likewise.
65791         * tests/test-mbspbrk.c: Likewise.
65792         * tests/test-mbspcasecmp.c: Likewise.
65793         * tests/test-mbsrchr.c: Likewise.
65794         * tests/test-mbsspn.c: Likewise.
65795         * tests/test-mbsstr1.c: Likewise.
65796         * tests/test-mbsstr2.c: Likewise.
65797         * tests/test-mbsstr3.c: Likewise.
65798         * tests/test-md5.c: Likewise.
65799         * tests/test-memmem.c: Likewise.
65800         * tests/test-netinet_in.c: Likewise.
65801         * tests/test-open.c: Likewise.
65802         * tests/test-printf-frexp.c: Likewise.
65803         * tests/test-printf-frexpl.c: Likewise.
65804         * tests/test-printf-posix.c: Likewise.
65805         * tests/test-printf-posix.h: Likewise.
65806         * tests/test-rbtree_list.c: Likewise.
65807         * tests/test-rbtree_oset.c: Likewise.
65808         * tests/test-rbtreehash_list.c: Likewise.
65809         * tests/test-read-file.c: Likewise.
65810         * tests/test-rijndael.c: Likewise.
65811         * tests/test-search.c: Likewise.
65812         * tests/test-signbit.c: Likewise.
65813         * tests/test-sleep.c: Likewise.
65814         * tests/test-snprintf-posix.c: Likewise.
65815         * tests/test-snprintf-posix.h: Likewise.
65816         * tests/test-snprintf.c: Likewise.
65817         * tests/test-sprintf-posix.c: Likewise.
65818         * tests/test-sprintf-posix.h: Likewise.
65819         * tests/test-stat-time.c: Likewise.
65820         * tests/test-stdbool.c: Likewise.
65821         * tests/test-stdint.c: Likewise.
65822         * tests/test-stdio.c: Likewise.
65823         * tests/test-stdlib.c: Likewise.
65824         * tests/test-stpncpy.c: Likewise.
65825         * tests/test-strcasestr.c: Likewise.
65826         * tests/test-striconv.c: Likewise.
65827         * tests/test-striconveh.c: Likewise.
65828         * tests/test-striconveha.c: Likewise.
65829         * tests/test-string.c: Likewise.
65830         * tests/test-sys_select.c: Likewise.
65831         * tests/test-sys_socket.c: Likewise.
65832         * tests/test-sys_stat.c: Likewise.
65833         * tests/test-sys_time.c: Likewise.
65834         * tests/test-sysexits.c: Likewise.
65835         * tests/test-time.c: Likewise.
65836         * tests/test-tls.c: Likewise.
65837         * tests/test-trunc.c: Likewise.
65838         * tests/test-truncf.c: Likewise.
65839         * tests/test-truncl.c: Likewise.
65840         * tests/test-unistd.c: Likewise.
65841         * tests/test-vasnprintf-posix.c: Likewise.
65842         * tests/test-vasnprintf-posix2.c: Likewise.
65843         * tests/test-vasnprintf.c: Likewise.
65844         * tests/test-vasprintf-posix.c: Likewise.
65845         * tests/test-vasprintf.c: Likewise.
65846         * tests/test-verify.c: Likewise.
65847         * tests/test-vfprintf-posix.c: Likewise.
65848         * tests/test-vprintf-posix.c: Likewise.
65849         * tests/test-vsnprintf-posix.c: Likewise.
65850         * tests/test-vsnprintf.c: Likewise.
65851         * tests/test-vsprintf-posix.c: Likewise.
65852         * tests/test-wchar.c: Likewise.
65853         * tests/test-wctype.c: Likewise.
65854         * tests/test-wcwidth.c: Likewise.
65855         * tests/test-xstrtol.c: Likewise.
65856         * tests/test-xvasprintf.c: Likewise.
65857         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65858         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65859         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65860         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65861         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65862         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65863         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65864         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65865         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65866         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65867         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65868         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65869         * tests/uniname/test-uninames.c: Likewise.
65870         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65871         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65872         * tests/unistdio/test-u16-printf1.h: Likewise.
65873         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65874         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65875         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65876         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65877         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65878         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65879         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65880         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65881         * tests/unistdio/test-u32-printf1.h: Likewise.
65882         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65883         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65884         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65885         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65886         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65887         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65888         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65889         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65890         * tests/unistdio/test-u8-printf1.h: Likewise.
65891         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65892         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65893         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65894         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65895         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65896         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65897         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65898         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65899         * tests/unistdio/test-ulc-printf1.h: Likewise.
65900         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65901         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65902         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65903         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65904         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65905         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65906         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65907         * tests/uniwidth/test-u16-width.c: Likewise.
65908         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65909         * tests/uniwidth/test-u32-width.c: Likewise.
65910         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65911         * tests/uniwidth/test-u8-width.c: Likewise.
65912         * tests/uniwidth/test-uc_width.c: Likewise.
65913         * config/srclist-update: Likewise.
65914         (fixlicense): Update to GPLv3+.
65915
65916         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65917         * tests/test-tsearch.c: Change copyright notice.
65918
65919         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65920         * lib/c-strcaseeq.h: Change copyright notice.
65921         * lib/streq.h: Likewise.
65922         * lib/uniconv.h: Likewise.
65923         * lib/uniconv/u-conv-from-enc.h: Likewise.
65924         * lib/uniconv/u-conv-to-enc.h: Likewise.
65925         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65926         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65927         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65928         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65929         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65930         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65931         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65932         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65933         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65934         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65935         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65936         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65937         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65938         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65939         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65940         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65941         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65942         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65943         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65944         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65945         * lib/uniname.h: Likewise.
65946         * lib/uniname/uniname.c: Likewise.
65947         * lib/unistdio.h: Likewise.
65948         * lib/unistdio/u-asnprintf.h: Likewise.
65949         * lib/unistdio/u-asprintf.h: Likewise.
65950         * lib/unistdio/u-printf-args.c: Likewise.
65951         * lib/unistdio/u-printf-args.h: Likewise.
65952         * lib/unistdio/u-printf-parse.h: Likewise.
65953         * lib/unistdio/u-snprintf.h: Likewise.
65954         * lib/unistdio/u-sprintf.h: Likewise.
65955         * lib/unistdio/u-vasprintf.h: Likewise.
65956         * lib/unistdio/u-vsnprintf.h: Likewise.
65957         * lib/unistdio/u-vsprintf.h: Likewise.
65958         * lib/unistdio/u16-asnprintf.c: Likewise.
65959         * lib/unistdio/u16-asprintf.c: Likewise.
65960         * lib/unistdio/u16-printf-parse.c: Likewise.
65961         * lib/unistdio/u16-snprintf.c: Likewise.
65962         * lib/unistdio/u16-sprintf.c: Likewise.
65963         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65964         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65965         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65966         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65967         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65968         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65969         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65970         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65971         * lib/unistdio/u16-vasnprintf.c: Likewise.
65972         * lib/unistdio/u16-vasprintf.c: Likewise.
65973         * lib/unistdio/u16-vsnprintf.c: Likewise.
65974         * lib/unistdio/u16-vsprintf.c: Likewise.
65975         * lib/unistdio/u32-asnprintf.c: Likewise.
65976         * lib/unistdio/u32-asprintf.c: Likewise.
65977         * lib/unistdio/u32-printf-parse.c: Likewise.
65978         * lib/unistdio/u32-snprintf.c: Likewise.
65979         * lib/unistdio/u32-sprintf.c: Likewise.
65980         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65981         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65982         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65983         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65984         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65985         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65986         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65987         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65988         * lib/unistdio/u32-vasnprintf.c: Likewise.
65989         * lib/unistdio/u32-vasprintf.c: Likewise.
65990         * lib/unistdio/u32-vsnprintf.c: Likewise.
65991         * lib/unistdio/u32-vsprintf.c: Likewise.
65992         * lib/unistdio/u8-asnprintf.c: Likewise.
65993         * lib/unistdio/u8-asprintf.c: Likewise.
65994         * lib/unistdio/u8-printf-parse.c: Likewise.
65995         * lib/unistdio/u8-snprintf.c: Likewise.
65996         * lib/unistdio/u8-sprintf.c: Likewise.
65997         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65998         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65999         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66000         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66001         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66002         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66003         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66004         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66005         * lib/unistdio/u8-vasnprintf.c: Likewise.
66006         * lib/unistdio/u8-vasprintf.c: Likewise.
66007         * lib/unistdio/u8-vsnprintf.c: Likewise.
66008         * lib/unistdio/u8-vsprintf.c: Likewise.
66009         * lib/unistdio/ulc-asnprintf.c: Likewise.
66010         * lib/unistdio/ulc-asprintf.c: Likewise.
66011         * lib/unistdio/ulc-printf-parse.c: Likewise.
66012         * lib/unistdio/ulc-snprintf.c: Likewise.
66013         * lib/unistdio/ulc-sprintf.c: Likewise.
66014         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66015         * lib/unistdio/ulc-vasprintf.c: Likewise.
66016         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66017         * lib/unistdio/ulc-vsprintf.c: Likewise.
66018         * lib/unistr.h: Likewise.
66019         * lib/unistr/u-cpy-alloc.h: Likewise.
66020         * lib/unistr/u-cpy.h: Likewise.
66021         * lib/unistr/u-endswith.h: Likewise.
66022         * lib/unistr/u-move.h: Likewise.
66023         * lib/unistr/u-set.h: Likewise.
66024         * lib/unistr/u-startswith.h: Likewise.
66025         * lib/unistr/u-stpcpy.h: Likewise.
66026         * lib/unistr/u-stpncpy.h: Likewise.
66027         * lib/unistr/u-strcat.h: Likewise.
66028         * lib/unistr/u-strcpy.h: Likewise.
66029         * lib/unistr/u-strcspn.h: Likewise.
66030         * lib/unistr/u-strdup.h: Likewise.
66031         * lib/unistr/u-strlen.h: Likewise.
66032         * lib/unistr/u-strncat.h: Likewise.
66033         * lib/unistr/u-strncpy.h: Likewise.
66034         * lib/unistr/u-strnlen.h: Likewise.
66035         * lib/unistr/u-strpbrk.h: Likewise.
66036         * lib/unistr/u-strspn.h: Likewise.
66037         * lib/unistr/u-strstr.h: Likewise.
66038         * lib/unistr/u-strtok.h: Likewise.
66039         * lib/unistr/u16-check.c: Likewise.
66040         * lib/unistr/u16-chr.c: Likewise.
66041         * lib/unistr/u16-cmp.c: Likewise.
66042         * lib/unistr/u16-cpy-alloc.c: Likewise.
66043         * lib/unistr/u16-cpy.c: Likewise.
66044         * lib/unistr/u16-endswith.c: Likewise.
66045         * lib/unistr/u16-mblen.c: Likewise.
66046         * lib/unistr/u16-mbsnlen.c: Likewise.
66047         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66048         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66049         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66050         * lib/unistr/u16-mbtouc.c: Likewise.
66051         * lib/unistr/u16-mbtoucr.c: Likewise.
66052         * lib/unistr/u16-move.c: Likewise.
66053         * lib/unistr/u16-next.c: Likewise.
66054         * lib/unistr/u16-prev.c: Likewise.
66055         * lib/unistr/u16-set.c: Likewise.
66056         * lib/unistr/u16-startswith.c: Likewise.
66057         * lib/unistr/u16-stpcpy.c: Likewise.
66058         * lib/unistr/u16-stpncpy.c: Likewise.
66059         * lib/unistr/u16-strcat.c: Likewise.
66060         * lib/unistr/u16-strchr.c: Likewise.
66061         * lib/unistr/u16-strcmp.c: Likewise.
66062         * lib/unistr/u16-strcpy.c: Likewise.
66063         * lib/unistr/u16-strcspn.c: Likewise.
66064         * lib/unistr/u16-strdup.c: Likewise.
66065         * lib/unistr/u16-strlen.c: Likewise.
66066         * lib/unistr/u16-strmblen.c: Likewise.
66067         * lib/unistr/u16-strmbtouc.c: Likewise.
66068         * lib/unistr/u16-strncat.c: Likewise.
66069         * lib/unistr/u16-strncmp.c: Likewise.
66070         * lib/unistr/u16-strncpy.c: Likewise.
66071         * lib/unistr/u16-strnlen.c: Likewise.
66072         * lib/unistr/u16-strpbrk.c: Likewise.
66073         * lib/unistr/u16-strrchr.c: Likewise.
66074         * lib/unistr/u16-strspn.c: Likewise.
66075         * lib/unistr/u16-strstr.c: Likewise.
66076         * lib/unistr/u16-strtok.c: Likewise.
66077         * lib/unistr/u16-to-u32.c: Likewise.
66078         * lib/unistr/u16-to-u8.c: Likewise.
66079         * lib/unistr/u16-uctomb-aux.c: Likewise.
66080         * lib/unistr/u16-uctomb.c: Likewise.
66081         * lib/unistr/u32-check.c: Likewise.
66082         * lib/unistr/u32-chr.c: Likewise.
66083         * lib/unistr/u32-cmp.c: Likewise.
66084         * lib/unistr/u32-cpy-alloc.c: Likewise.
66085         * lib/unistr/u32-cpy.c: Likewise.
66086         * lib/unistr/u32-endswith.c: Likewise.
66087         * lib/unistr/u32-mblen.c: Likewise.
66088         * lib/unistr/u32-mbsnlen.c: Likewise.
66089         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66090         * lib/unistr/u32-mbtouc.c: Likewise.
66091         * lib/unistr/u32-mbtoucr.c: Likewise.
66092         * lib/unistr/u32-move.c: Likewise.
66093         * lib/unistr/u32-next.c: Likewise.
66094         * lib/unistr/u32-prev.c: Likewise.
66095         * lib/unistr/u32-set.c: Likewise.
66096         * lib/unistr/u32-startswith.c: Likewise.
66097         * lib/unistr/u32-stpcpy.c: Likewise.
66098         * lib/unistr/u32-stpncpy.c: Likewise.
66099         * lib/unistr/u32-strcat.c: Likewise.
66100         * lib/unistr/u32-strchr.c: Likewise.
66101         * lib/unistr/u32-strcmp.c: Likewise.
66102         * lib/unistr/u32-strcpy.c: Likewise.
66103         * lib/unistr/u32-strcspn.c: Likewise.
66104         * lib/unistr/u32-strdup.c: Likewise.
66105         * lib/unistr/u32-strlen.c: Likewise.
66106         * lib/unistr/u32-strmblen.c: Likewise.
66107         * lib/unistr/u32-strmbtouc.c: Likewise.
66108         * lib/unistr/u32-strncat.c: Likewise.
66109         * lib/unistr/u32-strncmp.c: Likewise.
66110         * lib/unistr/u32-strncpy.c: Likewise.
66111         * lib/unistr/u32-strnlen.c: Likewise.
66112         * lib/unistr/u32-strpbrk.c: Likewise.
66113         * lib/unistr/u32-strrchr.c: Likewise.
66114         * lib/unistr/u32-strspn.c: Likewise.
66115         * lib/unistr/u32-strstr.c: Likewise.
66116         * lib/unistr/u32-strtok.c: Likewise.
66117         * lib/unistr/u32-to-u16.c: Likewise.
66118         * lib/unistr/u32-to-u8.c: Likewise.
66119         * lib/unistr/u32-uctomb.c: Likewise.
66120         * lib/unistr/u8-check.c: Likewise.
66121         * lib/unistr/u8-chr.c: Likewise.
66122         * lib/unistr/u8-cmp.c: Likewise.
66123         * lib/unistr/u8-cpy-alloc.c: Likewise.
66124         * lib/unistr/u8-cpy.c: Likewise.
66125         * lib/unistr/u8-endswith.c: Likewise.
66126         * lib/unistr/u8-mblen.c: Likewise.
66127         * lib/unistr/u8-mbsnlen.c: Likewise.
66128         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66129         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66130         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66131         * lib/unistr/u8-mbtouc.c: Likewise.
66132         * lib/unistr/u8-mbtoucr.c: Likewise.
66133         * lib/unistr/u8-move.c: Likewise.
66134         * lib/unistr/u8-next.c: Likewise.
66135         * lib/unistr/u8-prev.c: Likewise.
66136         * lib/unistr/u8-set.c: Likewise.
66137         * lib/unistr/u8-startswith.c: Likewise.
66138         * lib/unistr/u8-stpcpy.c: Likewise.
66139         * lib/unistr/u8-stpncpy.c: Likewise.
66140         * lib/unistr/u8-strcat.c: Likewise.
66141         * lib/unistr/u8-strchr.c: Likewise.
66142         * lib/unistr/u8-strcmp.c: Likewise.
66143         * lib/unistr/u8-strcpy.c: Likewise.
66144         * lib/unistr/u8-strcspn.c: Likewise.
66145         * lib/unistr/u8-strdup.c: Likewise.
66146         * lib/unistr/u8-strlen.c: Likewise.
66147         * lib/unistr/u8-strmblen.c: Likewise.
66148         * lib/unistr/u8-strmbtouc.c: Likewise.
66149         * lib/unistr/u8-strncat.c: Likewise.
66150         * lib/unistr/u8-strncmp.c: Likewise.
66151         * lib/unistr/u8-strncpy.c: Likewise.
66152         * lib/unistr/u8-strnlen.c: Likewise.
66153         * lib/unistr/u8-strpbrk.c: Likewise.
66154         * lib/unistr/u8-strrchr.c: Likewise.
66155         * lib/unistr/u8-strspn.c: Likewise.
66156         * lib/unistr/u8-strstr.c: Likewise.
66157         * lib/unistr/u8-strtok.c: Likewise.
66158         * lib/unistr/u8-to-u16.c: Likewise.
66159         * lib/unistr/u8-to-u32.c: Likewise.
66160         * lib/unistr/u8-uctomb-aux.c: Likewise.
66161         * lib/unistr/u8-uctomb.c: Likewise.
66162         * lib/unitypes.h: Likewise.
66163         * lib/uniwidth.h: Likewise.
66164         * lib/uniwidth/cjk.h: Likewise.
66165         * lib/uniwidth/u16-strwidth.c: Likewise.
66166         * lib/uniwidth/u16-width.c: Likewise.
66167         * lib/uniwidth/u32-strwidth.c: Likewise.
66168         * lib/uniwidth/u32-width.c: Likewise.
66169         * lib/uniwidth/u8-strwidth.c: Likewise.
66170         * lib/uniwidth/u8-width.c: Likewise.
66171         * lib/uniwidth/width.c: Likewise.
66172
66173 2007-10-07  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66176         The file is still under LGPL (see modules/inttypes).
66177
66178 2007-10-06  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/trunc (Dependencies): Add 'extensions'.
66181         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66182         Reported by Ben Pfaff <blp@gnu.org>.
66183
66184 2007-10-06  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/freopen-tests: New file.
66187         * tests/test-freopen.c: New file.
66188
66189         * modules/fopen-tests: New file.
66190         * tests/test-fopen.c: New file.
66191
66192         * modules/fopen: New file.
66193         * lib/fopen.c: New file.
66194         * m4/fopen.m4: New file.
66195         * modules/freopen: New file.
66196         * lib/freopen.c: New file.
66197         * m4/freopen.m4: New file.
66198         * lib/stdio.in.h (fopen, freopen): New declarations.
66199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66200         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66201         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66202         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66203         * doc/functions/fopen.texi: Mention the 'fopen' module.
66204         * doc/functions/freopen.texi: Mention the 'freopen' module.
66205
66206 2007-10-06  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/open-tests: New file.
66209         * tests/test-open.c: New file.
66210
66211         * modules/open: New file.
66212         * lib/open.c: New file.
66213         * m4/open.m4: New file.
66214         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66215         lib/open.c does.
66216         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66217         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66218         macros.
66219         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66220         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66221         REPLACE_OPEN.
66222         * doc/functions/open.texi: Mention the 'open' module.
66223
66224 2007-10-04  Bruno Haible  <bruno@clisp.org>
66225
66226         * modules/ceill-tests: New file.
66227         * tests/test-ceill.c: New file.
66228
66229         * modules/ceill: New file.
66230         * lib/ceill.c: Replace entire file.
66231         * m4/ceill.m4: New file.
66232         * lib/math.in.h (ceill): Replace declaration.
66233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66234         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66235         * doc/functions/ceill.texi: Mention the 'ceill' module.
66236         * modules/mathl (Files): Remove lib/ceill.c.
66237         (Depends-on): Add ceill.
66238
66239 2007-10-04  Bruno Haible  <bruno@clisp.org>
66240
66241         * modules/ceilf-tests: New file.
66242         * tests/test-ceilf.c: New file.
66243
66244         * modules/ceilf: New file.
66245         * lib/ceil.c: New file.
66246         * lib/ceilf.c: New file.
66247         * m4/ceilf.m4: New file.
66248         * lib/math.in.h (ceilf): New declaration.
66249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66250         HAVE_DECL_CEILF.
66251         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66252         HAVE_DECL_CEILF.
66253         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66254
66255 2007-10-04  Bruno Haible  <bruno@clisp.org>
66256
66257         * modules/floorl-tests: New file.
66258         * tests/test-floorl.c: New file.
66259
66260         * modules/floorl: New file.
66261         * lib/floorl.c: Replace entire file.
66262         * m4/floorl.m4: New file.
66263         * lib/math.in.h (floorl): Replace declaration.
66264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66265         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66266         * doc/functions/floorl.texi: Mention the 'floorl' module.
66267         * modules/mathl (Files): Remove lib/floorl.c.
66268         (Depends-on): Add floorl.
66269
66270 2007-10-04  Bruno Haible  <bruno@clisp.org>
66271
66272         * modules/floorf-tests: New file.
66273         * tests/test-floorf.c: New file.
66274
66275         * modules/floorf: New file.
66276         * lib/floor.c: New file.
66277         * lib/floorf.c: New file.
66278         * m4/floorf.m4: New file.
66279         * lib/math.in.h (floorf): New declaration.
66280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66281         HAVE_DECL_FLOORF.
66282         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66283         HAVE_DECL_FLOORF.
66284         * doc/functions/floorf.texi: Mention the 'floorf' module.
66285
66286 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66287             Bruno Haible  <bruno@clisp.org>
66288
66289         Advertise for the Git server instead of the CVS server.
66290         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66291         repository instead of the CVS one.
66292         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66293         about all VCS systems generically.
66294         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66295
66296 2007-10-04  Bruno Haible  <bruno@clisp.org>
66297
66298         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66299         means.
66300         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66301
66302 2007-10-04  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/truncl-tests: New file.
66305         * tests/test-truncl.c: New file.
66306
66307         * modules/truncl: New file.
66308         * lib/truncl.c: New file.
66309         * m4/truncl.m4: New file.
66310         * lib/math.in.h (truncl): New declaration.
66311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66312         HAVE_DECL_TRUNCL.
66313         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66314         HAVE_DECL_TRUNCL.
66315         * doc/functions/truncl.texi: Mention the 'truncl' module.
66316
66317 2007-10-04  Bruno Haible  <bruno@clisp.org>
66318
66319         * modules/truncf-tests: New file.
66320         * tests/test-truncf.c: New file.
66321
66322         * modules/truncf: New file.
66323         * lib/trunc.c: Make paramerizable through USE_* macros.
66324         * lib/truncf.c: New file.
66325         * m4/truncf.m4: New file.
66326         * lib/math.in.h (truncf): New declaration.
66327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66328         HAVE_DECL_TRUNCF.
66329         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66330         HAVE_DECL_TRUNCF.
66331         * doc/functions/truncf.texi: Mention the 'truncf' module.
66332
66333 2007-10-03  Bruno Haible  <bruno@clisp.org>
66334
66335         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66336         augmentation also for tests modules.
66337         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66338         * modules/atexit-tests (Makefile.am): Likewise.
66339         * modules/binary-io-tests (Makefile.am): Likewise.
66340         * modules/c-strcase-tests (Makefile.am): Likewise.
66341         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66342         * modules/canonicalize-tests (Makefile.am): Likewise.
66343         * modules/closein-tests (Makefile.am): Likewise.
66344         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66345         * modules/freadahead-tests (Makefile.am): Likewise.
66346         * modules/fseek-tests (Makefile.am): Likewise.
66347         * modules/fseeko-tests (Makefile.am): Likewise.
66348         * modules/ftell-tests (Makefile.am): Likewise.
66349         * modules/ftello-tests (Makefile.am): Likewise.
66350         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66351         * modules/isnanl-tests (Makefile.am): Likewise.
66352         * modules/lseek-tests (Makefile.am): Likewise.
66353         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66354         * modules/mbscasestr-tests (Makefile.am): Likewise.
66355         * modules/mbschr-tests (Makefile.am): Likewise.
66356         * modules/mbscspn-tests (Makefile.am): Likewise.
66357         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66358         * modules/mbspbrk-tests (Makefile.am): Likewise.
66359         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66360         * modules/mbsrchr-tests (Makefile.am): Likewise.
66361         * modules/mbsspn-tests (Makefile.am): Likewise.
66362         * modules/mbsstr-tests (Makefile.am): Likewise.
66363         * modules/printf-posix-tests (Makefile.am): Likewise.
66364         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66365         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66366         * modules/tsearch-tests (Makefile.am): Likewise.
66367         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66368         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66369         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66370         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66371         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66372         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66373         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66374         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66375         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66376         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66377         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66378         * modules/xstrtol-tests (Makefile.am): Likewise.
66379         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66380         * modules/yesno-tests (Makefile.am): Likewise.
66381
66382 2007-10-03  Bruno Haible  <bruno@clisp.org>
66383
66384         * modules/trunc-tests: New file.
66385         * tests/test-trunc.c: New file.
66386
66387         * modules/trunc: New file.
66388         * lib/trunc.c: New file.
66389         * m4/trunc.m4: New file.
66390         * lib/math.in.h (trunc): New declaration.
66391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66392         HAVE_DECL_TRUNC.
66393         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66394         HAVE_DECL_TRUNC.
66395         * doc/functions/trunc.texi: Mention the 'trunc' module.
66396
66397 2007-10-03  Bruno Haible  <bruno@clisp.org>
66398
66399         * tests/test-fpending.c: New file, mostly copied
66400         from coreutils/lib/t-fpending.c.
66401         * modules/fpending-tests: New file.
66402
66403 2007-10-03  Bruno Haible  <bruno@clisp.org>
66404
66405         Port the stdio extensions to QNX (untested).
66406         * lib/fseterr.c (fseterr): Add support for QNX.
66407         * lib/fbufmode.c (fbufmode): Likewise.
66408         * lib/freadable.c (freadable): Likewise.
66409         * lib/fwritable.c (fwritable): Likewise.
66410         * lib/freading.c (freading): Likewise.
66411         * lib/fwriting.c (fwriting): Likewise.
66412         * lib/freadahead.c (freadahed): Likewise.
66413         * lib/fpurge.c (fpurge): Likewise.
66414         * lib/fseeko.c (rpl_fseeko): Likewise.
66415
66416 2007-10-03  Bruno Haible  <bruno@clisp.org>
66417             Jim Meyering  <jim@meyering.net>
66418             Eric Blake  <ebb9@byu.net>
66419
66420         * doc/relocatable.texi: Use @command instead of @program.
66421
66422 2007-10-02  Jim Meyering  <jim@meyering.net>
66423
66424         Perform one more "_.h" -> ".in.h" substitution.
66425         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66426         instead of unistd_.h here, too.
66427
66428 2007-10-01  Bruno Haible  <bruno@clisp.org>
66429
66430         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66431         Needed for the alloca-opt module.
66432
66433 2007-09-30  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66436         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66437         alloca_.h.
66438         * lib/argz.in.h: Renamed from lib/argz_.h.
66439         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66440         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66441         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66442         byteswap_.h.
66443         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66444         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66445         dirent_.h.
66446         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66447         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66448         fcntl_.h.
66449         * lib/float.in.h: Renamed from lib/float_.h.
66450         * modules/float (Files, Makefile.am): Use float.in.h instead of
66451         float_.h.
66452         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66453         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66454         fnmatch_.h.
66455         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66456         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66457         getopt_.h.
66458         * lib/glob.in.h: Renamed from lib/glob_.h.
66459         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66460         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66461         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66462         iconv_.h.
66463         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66464         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66465         inttypes_.h.
66466         * lib/locale.in.h: Renamed from lib/locale_.h.
66467         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66468         locale_.h.
66469         * lib/math.in.h: Renamed from lib/math_.h.
66470         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66471         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66472         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66473         of netinet_in_.h. Add dependency.
66474         * lib/poll.in.h: Renamed from lib/poll_.h.
66475         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66476         * lib/search.in.h: Renamed from lib/search_.h.
66477         * modules/search (Files, Makefile.am): Use search.in.h instead of
66478         search_.h.
66479         * lib/signal.in.h: Renamed from lib/signal_.h.
66480         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66481         _signal.h.
66482         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66483         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66484         stdbool_.h.
66485         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66486         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66487         stdint_.h.
66488         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66489         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66490         stdio_.h.
66491         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66492         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66493         stdlib_.h.
66494         * lib/string.in.h: Renamed from lib/string_.h.
66495         * modules/string (Files, Makefile.am): Use string.in.h instead of
66496         string_.h.
66497         * doc/gnulib-tool.texi (Initial import): Update.
66498         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66499         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66500         of sys_select_.h. Add dependency.
66501         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66502         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66503         of sys_socket_.h.
66504         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66505         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66506         sys_stat_.h.
66507         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66508         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66509         sys_time_.h.
66510         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66511         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66512         sysexits_.h.
66513         * lib/time.in.h: Renamed from lib/time_.h.
66514         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66515         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66516         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66517         unistd_.h.
66518         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66519         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66520         wchar_.h.
66521         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66522         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66523         wctype_.h.
66524         * build-aux/bootstrap (slurp): Update.
66525         * lib/.cppi-disable: Update.
66526
66527 2007-09-30  Bruno Haible  <bruno@clisp.org>
66528
66529         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66530         Needed on BeOS.
66531
66532 2007-09-30  Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66535
66536 2007-09-29  Bruno Haible  <bruno@clisp.org>
66537
66538         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66539
66540 2007-09-29  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66543         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66544         * build-aux/install-reloc: Compile also areadlink.c.
66545         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66546
66547 2007-09-29  Bruno Haible  <bruno@clisp.org>
66548
66549         * gnulib-tool (func_emit_initmacro_done): Indentation.
66550
66551 2007-09-29  Bruno Haible  <bruno@clisp.org>
66552
66553         * README: Add CVS checkout update instructions.
66554         Info from Bob Proulx <bob@proulx.com>.
66555
66556 2007-09-28  Eric Blake  <ebb9@byu.net>
66557
66558         Provide move-if-change.
66559         * build-aux/move-if-change: New file, based on best practice
66560         rather than any canonical upstream location.
66561
66562 2007-09-28  Jim Meyering  <jim@meyering.net>
66563
66564         Fix canonicalize loop-detection corner case.
66565         Do not attempt to stat the symlink values stored via seen_triple.
66566         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66567         on linux-2.6.18, (but not 2.6.22).
66568         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66569         triple_compare.  The former compares dev,ino,filename, while the latter
66570         would actually stat dirname(filename) when dev and ino were equal.
66571         * lib/hash-triple.c: Install <string.h>.
66572         (STREQ): Define.
66573         (triple_compare_ino_str): New function.
66574         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66575
66576 2007-09-28  Eric Blake  <ebb9@byu.net>
66577
66578         Enforce that AC_REPLACE_FUNCS files exist.
66579         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66580         override check for typos.
66581
66582         Fix test-closein on Solaris 10.
66583         * tests/test-closein.c (main): Don't assume stdin can be inherited
66584         closed on all systems.
66585         * tests/test-closein.sh: Likewise.
66586         Reported by Piotr Tarnowski.
66587
66588 2007-09-28  Jim Meyering  <jim@meyering.net>
66589
66590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66591
66592 2007-09-27  Jim Meyering  <jim@meyering.net>
66593
66594         canonicalize: Avoid a false-positive cycle failure.
66595         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66596         Sort.  Remove cycle-check.
66597         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66598         not cycle-check.h.
66599         (seen_triple): New function.
66600         (canonicalize_filename_mode): Use it instead of cycle-check.
66601         * tests/test-canonicalize.c: Add a test for this bug.
66602         * tests/test-canonicalize.sh: Set up and run the test.
66603
66604         New module, file-set, from coreutils.
66605         * modules/file-set: Define it.
66606         * lib/file-set.c, lib/file-set.h: Implement.
66607
66608         New module, hash-triple, from coreutils.
66609         * modules/hash-triple: Define it.
66610         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66611
66612 2007-09-25  Eric Blake  <ebb9@byu.net>
66613
66614         Fix strerror on Interix.
66615         * lib/string_.h (strerror): Declare replacement.
66616         * doc/functions/strerror.texi (strerror): Document the Interix
66617         shortcoming.
66618         * modules/string (Makefile.am): Support new hooks.
66619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66620         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66621         gl_FUNC_STRERROR_SEPARATE.
66622         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66623         * lib/strerror.c (rpl_strerror): Provide replacement.
66624         * modules/strerror (Depends-on): Add string.
66625         (configure.ac): Detect use of module.
66626         * tests/test-strerror.c: New file.
66627         * modules/strerror-tests: New test module.
66628         * modules/argp (Depends-on): Add strerror.
66629         * modules/error (Depends-on): Likewise.
66630         Reported by Martin Koeppe.
66631
66632 2007-09-24  Bruno Haible  <bruno@clisp.org>
66633
66634         * README: Update git instructions.
66635
66636 2007-09-24  Eric Blake  <ebb9@byu.net>
66637
66638         Revert fpending breakage from 2007-09-08.
66639         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66640         __fpending.c.
66641
66642 2007-09-24  Jim Meyering  <jim@meyering.net>
66643
66644         filenamecat.c: Add a test.
66645         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66646         showing how the function works when DIR is the empty string.
66647
66648 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66649
66650         * tests/test-canonicalize.sh: Turn on executable bit.
66651
66652 2007-09-19  Eric Blake  <ebb9@byu.net>
66653
66654         * README: Update CVS instructions.
66655
66656 2007-09-18  Bruno Haible  <bruno@clisp.org>
66657
66658         * modules/areadlink: New file.
66659         * lib/areadlink.h (areadlink): New declaration.
66660         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66661
66662 2007-09-17  Jim Meyering  <jim@meyering.net>
66663
66664         * lib/savewd.c (ESTALE) [!defined]: Define.
66665         Reported to be required on Interix by Martin Koeppe.
66666
66667 2007-09-17  Bruno Haible  <bruno@clisp.org>
66668
66669         * gnulib-tool (func_version): Use $version.
66670
66671 2007-09-16  Bruno Haible  <bruno@clisp.org>
66672
66673         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66674         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66675         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66676         Reported by Greg Schafer <gschafer@zip.com.au>.
66677
66678 2007-09-15  Bruno Haible  <bruno@clisp.org>
66679
66680         * gnulib-tool (sed): Try a little harder to make bash understand the
66681         alias.
66682         Reported by Bruce Korb <bruce.korb@gmail.com>.
66683
66684 2007-09-13  Eric Blake  <ebb9@byu.net>
66685
66686         * ChangeLog: Remove conflict markers.
66687
66688 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66689
66690         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66691         Reported by Bruno Haible <bruno@clisp.org>.
66692
66693 2007-09-12  Bruno Haible  <bruno@clisp.org>
66694
66695         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66696         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66697         is not defined.
66698
66699 2007-09-12  Eric Blake  <ebb9@byu.net>
66700
66701         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66702         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66703         Autoconf definition.
66704         * modules/euidaccess (Depends-on): Add extensions, for
66705         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66706         * modules/fnmatch (Depends-on): Likewise.
66707         * modules/getaddrinfo (Depends-on): Likewise.
66708         * modules/getdelim (Depends-on): Likewise.
66709         * modules/getline (Depends-on): Likewise.
66710         * modules/getsubopt (Depends-on): Likewise.
66711         * modules/gettext (Depends-on): Likewise.
66712         * modules/group-member (Depends-on): Likewise.
66713         * modules/mbchar (Depends-on): Likewise.
66714         * modules/memmem (Depends-on): Likewise.
66715         * modules/mempcpy (Depends-on): Likewise.
66716         * modules/memrchr (Depends-on): Likewise.
66717         * modules/pagealign_alloc (Depends-on): Likewise.
66718         * modules/readutmp (Depends-on): Likewise.
66719         * modules/stpcpy (Depends-on): Likewise.
66720         * modules/stpncpy (Depends-on): Likewise.
66721         * modules/strchrnul (Depends-on): Likewise.
66722         * modules/strndup (Depends-on): Likewise.
66723         * modules/strsep (Depends-on): Likewise.
66724         * modules/strverscmp (Depends-on): Likewise.
66725         * modules/vasprintf (Depends-on): Likewise.
66726         * modules/wcwidth (Depends-on): Likewise.
66727         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66728         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66729         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66730         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66731         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66732         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66733         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66734         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66735         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66736         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66738         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66740         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66741         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66742         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66743         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66744         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66746         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66748         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66749         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66750         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66751         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66753         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66754         so that lock.m4 can be used in gettext without extensions module.
66755
66756 2007-09-11  Bruno Haible  <bruno@clisp.org>
66757
66758         * m4/isc-posix.m4: Remove file.
66759         Suggested by Eric Blake.
66760
66761 2007-09-11  Eric Blake  <ebb9@byu.net>
66762
66763         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66764
66765 2007-09-10  Bruno Haible  <bruno@clisp.org>
66766
66767         * posix-modules: Fix typo in error message.
66768         Reported by Matt <mkraai@beckman.com>.
66769
66770 2007-09-09  Bruno Haible  <bruno@clisp.org>
66771
66772         * doc/functions/getdelim.texi: Update list of platforms lacking the
66773         function.
66774         * doc/functions/getline.texi: Likewise.
66775
66776 2007-09-09  Jim Meyering  <jim@meyering.net>
66777
66778         * lib/hash.c (hash_initialize): Detect calloc failure.
66779         Reported by Bruno Haible.
66780
66781 2007-09-09  Bruno Haible  <bruno@clisp.org>
66782
66783         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66784         malloc or realloc fails.
66785
66786 2007-09-09  Bruno Haible  <bruno@clisp.org>
66787
66788         * modules/getcwd (Depends-on): Add malloc-posix.
66789         * modules/glob (Depends-on): Likewise.
66790         * modules/putenv (Depends-on): Likewise.
66791         * modules/strdup (Depends-on): Likewise.
66792         * modules/getdelim (Depends-on): Add realloc-posix.
66793         * modules/read-file (Depends-on): Likewise.
66794
66795 2007-09-09  Bruno Haible  <bruno@clisp.org>
66796
66797         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66798         (gl_FUNC_MALLOC_POSIX): Require it.
66799         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66800         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66801         * modules/realloc (Files): Add m4/malloc.m4.
66802         * modules/calloc (Files): Likewise.
66803
66804 2007-09-09  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/malloc-posix: New file.
66807         * modules/malloc (Depends-on): Add malloc-posix.
66808         * lib/malloc.c: Include errno.h.
66809         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66810         and a POSIX-compatible malloc into a single function. Set ENOMEM
66811         when returning NULL.
66812         * m4/malloc.m4: New file.
66813         * doc/functions/malloc.texi: Mention the malloc-posix module.
66814         * lib/stdlib_.h (malloc): New declaration.
66815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66816         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66817         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66818         and HAVE_MALLOC_POSIX.
66819
66820 2007-09-09  Bruno Haible  <bruno@clisp.org>
66821
66822         * modules/realloc-posix: New file.
66823         * modules/realloc (Depends-on): Add realloc-posix.
66824         * lib/realloc.c: Include errno.h.
66825         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66826         and a POSIX-compatible realloc into a single function. Set ENOMEM
66827         when returning NULL.
66828         * m4/realloc.m4: New file.
66829         * doc/functions/realloc.texi: Mention the realloc-posix module.
66830         * lib/stdlib_.h (realloc): New declaration.
66831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66832         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66833         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66834         and HAVE_REALLOC_POSIX.
66835
66836 2007-09-09  Bruno Haible  <bruno@clisp.org>
66837
66838         * modules/calloc-posix: New file.
66839         * modules/calloc (Depends-on): Add calloc-posix.
66840         * lib/calloc.c: Include errno.h.
66841         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66842         and a POSIX-compatible calloc into a single function. Set ENOMEM
66843         when returning NULL.
66844         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66845         * doc/functions/calloc.texi: Mention the calloc-posix module.
66846         * lib/stdlib_.h (calloc): New declaration.
66847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66848         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66849         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66850         and HAVE_CALLOC_POSIX.
66851
66852 2007-09-09  Bruno Haible  <bruno@clisp.org>
66853
66854         Allow for modules to show an arbitrary notice.
66855         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66856         * gnulib-tool: New option --extract-notice.
66857         (func_usage): Document it.
66858         (sed_extract_prog): Update.
66859         (func_get_notice): New function.
66860         (func_modules_notice): New function.
66861         (func_import, func_create_testdir): Invoke it.
66862         Suggested by Jim Meyering.
66863
66864 2007-09-09  Bruno Haible  <bruno@clisp.org>
66865
66866         * gnulib-tool: New options --verbose, --quiet.
66867         (func_usage): Document them.
66868         (verbose): New variable.
66869         (func_execute_command): New function.
66870         (func_import): Don't show the module list and the file list if
66871         $verbose < 0.
66872         (func_create_testdir): Likewise. Use func_execute_command.
66873         (func_create_megatestdir): Use func_execute_command.
66874
66875 2007-09-08  Bruno Haible  <bruno@clisp.org>
66876
66877         * gnulib-tool (func_import): Prefer rsync over wget when available,
66878         for fetching the PO files.
66879
66880 2007-09-08  Bruno Haible  <bruno@clisp.org>
66881
66882         * posix-modules: New file. Portions copied from gnulib-tool.
66883         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66884
66885 2007-09-08  Jim Meyering  <jim@meyering.net>
66886
66887         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66888         * lib/fpending.h: Rename from __fpending.h.
66889         * lib/fpending.c: Rename from __fpending.c.
66890         Include "fpending.h", not "__fpending.h".
66891         * lib/__fpending.h, lib/__fpending.c: Remove files.
66892         * modules/fpending (Files): Reflect new file names.
66893         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66894
66895 2007-09-08  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/inttypes-h.m4: Remove stub file.
66898
66899 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66900
66901         * doc/headers/stdint.texi: Discuss #include_next issue.
66902
66903 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66906
66907 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66908
66909         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66910         in variable name.
66911
66912 2007-09-03  Jim Meyering  <jim@meyering.net>
66913
66914         New module: git-version-gen.
66915         * modules/git-version-gen: New file.
66916
66917         Import changes from coreutils for bootstrap script.
66918
66919         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66920
66921         bootstrap: uses rsync to download the .po files
66922         * build-aux/bootstrap (po_download_command_format): New global.
66923         (download_po_files): Use rsync.
66924         (update_po_files): Don't remove .po files after download,
66925         so future rsync runs can take advantage of the copies.
66926
66927         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66928
66929         Solve the unnecessary-.po-file-regeneration problem once and for all.
66930         * build-aux/bootstrap (download_po_files): New function, renamed from
66931         get_translations.  Now, downloads, but doesn't update LINGUAS.
66932         (update_po_files): New function.
66933
66934         bootstrap: Ignore more.
66935         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66936         uniwidth to e.g., lib/.gitignore.
66937         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66938
66939         * build-aux/bootstrap: New setting: vc_ignore.
66940         (insert_sorted_if_absent): Create $file if absent.
66941         Adapt to new, possibly empty, list: $vc_ignore.
66942
66943         bootstrap: generate more ignorable names
66944         * build-aux/bootstrap (slurp): When generating ignorable names,
66945         also map .sin to .sed, .gperf to .c, and .y to .c.
66946
66947 2007-09-03  Jim Meyering  <jim@meyering.net>
66948
66949         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66950         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66951
66952 2007-09-02  Bruno Haible  <bruno@clisp.org>
66953
66954         Fix mis-recognition of 'mcs' on QNX 6.
66955         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66956         output contains the string "Mono".
66957         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66958         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66959
66960 2007-09-01  Bruno Haible  <bruno@clisp.org>
66961
66962         Fix collision between uniwidth/* and linebreak modules.
66963         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66964         u32_width): Remove declarations.
66965         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66966         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66967         streq3, streq2, streq1, streq0): Remove functions.
66968         (STREQ): Remove macro.
66969         (is_cjk_encoding): Remove function.
66970         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66971         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66972         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66973         * NEWS: Document the change.
66974
66975 2007-09-01  Bruno Haible  <bruno@clisp.org>
66976
66977         * lib/streq.h: Add double-inclusion guard.
66978
66979 2007-09-01  Karl Berry  <karl@gnu.org>
66980
66981         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66982
66983 2007-08-28  Jim Meyering  <jim@meyering.net>
66984
66985         Rename mreadlink_with_size to areadlink_with_size.
66986         * NEWS: Document the change.
66987         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66988         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66989         * lib/mreadlink.h: Rename this to...
66990         * lib/areadlink.h: ...this.
66991         * modules/mreadlink-with-size: Rename this to...
66992         * modules/areadlink-with-size: ...this.
66993         * lib/canonicalize.c: Reflect the renaming.
66994         * modules/canonicalize: Likewise.
66995
66996 2007-08-26  Bruno Haible  <bruno@clisp.org>
66997
66998         * gnulib-tool (func_import): When deciding which files to remove,
66999         consider also dangling symbolic links.
67000         Reported by Eric Blake.
67001
67002 2007-08-26  Bruno Haible  <bruno@clisp.org>
67003
67004         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67005
67006 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67007
67008         * lib/readline.c: Don't include getline.h, the prototype is now
67009         found in stdio.h.
67010
67011 2007-08-23  Jim Meyering  <jim@meyering.net>
67012
67013         Getdelim touchup.
67014         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67015         around the funlockfile call, since funlockfile never sets errno.
67016         Don't set errno upon failed realloc.
67017
67018 2007-08-22  Eric Blake  <ebb9@byu.net>
67019
67020         Getline touchups.
67021         * lib/getdelim.c (getdelim): Revert regression that required *n to
67022         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67024         getdelim, rather than whether implementation is missing.
67025         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67026         * lib/stdio_.h (getline): Also declare if replacement is
67027         required.
67028         * doc/functions/getdelim.texi: New file.
67029         * doc/functions/getline.texi: Likewise.
67030         * doc/gnulib.texi (Function Substitutes): Add new files.
67031         Reported by Bruno Haible.
67032
67033 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67034
67035         * users.txt: Add Guile.
67036
67037 2007-08-22  Eric Blake  <ebb9@byu.net>
67038
67039         * tests/test-getdelim.c (main): Use remove, not unlink.
67040         * tests/test-getline.c (main): Likewise.
67041
67042         Move getline and getdelim into stdio.h, per POSIX 200x.
67043         * modules/getline (Files): Remove getline.h.
67044         (Depends-on): Add stdio.
67045         (configure.ac): Add module indicator.
67046         * modules/getdelim (Files): Remove getdelim.h.
67047         (Depends-on): Add stdio.
67048         (configure.ac): Add module indicator.
67049         * modules/stdio (Makefile.am): Work with new indicators.
67050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67051         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67052         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67053         * lib/getdelim.h: Delete.
67054         * lib/getline.h: Delete.
67055         * lib/stdio_.h (getdelim, getline): Declare.
67056         * modules/getdelim-tests: New module.
67057         * modules/getline-tests: Likewise.
67058         * tests/test-getdelim.c: New file.
67059         * tests/test-getline.c: Likewise.
67060         * NEWS: Document the change.
67061         * lib/getline.c: Update choice of header.
67062         * lib/csharpcomp.c: Likewise.
67063         * lib/getpass.c: Likewise.
67064         * lib/javacomp.c: Likewise.
67065         * lib/javaversion.c: Likewise.
67066         * lib/yesno.c: Likewise.
67067         * lib/getdelim.c: Likewise.
67068         (getdelim): Set errno on failure, and avoid memory leak.
67069
67070 2007-08-19  Bruno Haible  <bruno@clisp.org>
67071
67072         * modules/closein (Depends-on): Add freadahead.
67073         * lib/closein.c: Include freadahead.h.
67074         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67075         is zero.
67076
67077 2007-08-19  Bruno Haible  <bruno@clisp.org>
67078
67079         * modules/freadahead-tests: New file.
67080         * tests/test-freadahead.sh: New file.
67081         * tests/test-freadahead.c: New file.
67082
67083         * modules/freadahead: New file.
67084         * lib/freadahead.h: New file.
67085         * lib/freadahead.c: New file.
67086         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67087         fbufmode, fpurge, freadable, fwritable.
67088
67089 2007-08-19  Eric Blake  <ebb9@byu.net>
67090
67091         Test yesno in combination with closein.
67092         * lib/yesno.c (yesno): Document use of stdin.
67093         * modules/yesno-tests (Files): New module.
67094         * tests/test-yesno.c (main): New file.
67095         * tests/test-yesno.sh: Likewise.
67096
67097 2007-08-19  Bruno Haible  <bruno@clisp.org>
67098
67099         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67100         * lib/fseeko.c (rpl_fseeko): Likewise.
67101         * lib/fseterr.c (fseterr): Likewise.
67102
67103 2007-08-19  Bruno Haible  <bruno@clisp.org>
67104
67105         * tests/test-lseek.c (main): Disable a test for BeOS.
67106         * doc/functions/lseek.texi: Document the BeOS bug.
67107
67108 2007-08-19  Bruno Haible  <bruno@clisp.org>
67109             Eric Blake  <ebb9@byu.net>
67110
67111         * lib/lseek.c: Include <sys/stat.h>.
67112         (rpl_lseek): Add workaround code also for Unix platforms.
67113         Needed for BeOS.
67114         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67115         * doc/functions/lseek.texi: Document BeOS definiency.
67116
67117 2007-08-18  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/fstrcmp-tests: New file.
67120         * tests/test-fstrcmp.c: New file.
67121
67122 2007-08-18  Bruno Haible  <bruno@clisp.org>
67123
67124         * modules/fstrcmp: New file, from GNU gettext with modifications.
67125         * lib/fstrcmp.h: New file, from GNU gettext.
67126         * lib/fstrcmp.c: New file, from GNU gettext.
67127         * MODULES.html.sh (String handling): Add fstrcmp.
67128
67129 2007-08-18  Bruno Haible  <bruno@clisp.org>
67130
67131         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67132         'bool'.
67133         (diag, compareseq): Remove const from the ctxt argument.
67134         (USE_HEURISTIC): Undefine at the end.
67135
67136 2007-08-18  Jim Meyering  <jim@meyering.net>
67137
67138         New file: lib/idcache.h
67139         * NEWS: Mention the addition.
67140         * modules/idcache (Files): Add lib/idcache.h
67141         * lib/idcache.c: Include "idcache.h".
67142         Don't include <sys/types.h>.
67143         Add a FIXME comment.
67144         Move file-scoped "static" declarations to the top.
67145         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67146
67147 2007-08-17  Bruno Haible  <bruno@clisp.org>
67148         and Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * MODULES.html.sh: Add diffseq.
67151         * modules/diffseq: New file.
67152         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67153         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67154
67155 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         Import changes from coreutils for bootstrap script.
67158
67159         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         * build-aux/bootstrap (slurp): Work even in environments where
67162         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67163         current code does not slurp files whose names start with ".", and
67164         this looks like it might be a troublesome area.
67165
67166         2007-07-11  Jim Meyering  <jim@meyering.net>
67167
67168         If there's a GPL vN copyright comment, require that N == 3.
67169
67170         2007-07-08  Jim Meyering  <jim@meyering.net>
67171
67172         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67173         * build-aux/bootstrap (mam_template): Move definition out of loop.
67174
67175         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67176
67177         * build-aux/bootstrap (symlink_to_dir): Rename function from
67178         symlink_to_gnulib.  Add a directory parameter.  Update all
67179         callers.
67180         (cp_mark_as_generated): Also check for -- and link to -- files in
67181         gl/.
67182
67183         2007-07-08  Jim Meyering  <jim@meyering.net>
67184
67185         Adapt to deeper hierarchy in gnulib.
67186         * build-aux/bootstrap (symlink_to_dir): If the destination
67187         directory doesn't exist, create it. This is required at least for
67188         "lib/uniwidth/cjk.h".
67189
67190         2007-05-15  Jim Meyering  <jim@meyering.net>
67191
67192         * build-aux/bootstrap: Now that generated Makefile.am files
67193         are no longer under version control, they must be created at
67194         bootstrap time.
67195
67196 2007-08-14  Ben Pfaff  <blp@gnu.org>
67197
67198         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67199
67200 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67203         given the changes below.
67204         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67205         even on hosts that have padding bits beyond the supported 64.
67206
67207 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67210         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67211         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67212         depends on it.
67213         (xstrtol_error): Remove.
67214         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67215         but with a different signature.
67216         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67217         * lib/xstrtol-error.c: Include exitfail.h.
67218         (xstrtol_fatal): New function, with a different signature from the
67219         old xstrtol_error, so that the caller need not worry about passing
67220         in an exit status, or about storage management of the option argument.
67221         (xstrtol_error): Now a static function.  Redo signature to
67222         implement xstrtol_fatal.  Output the correct number of hyphens in
67223         front of the option so that the caller need not worry about
67224         storage management.
67225         (N_): New macro.
67226         (_): Remove; not used now.
67227         * modules/xstrtol: Depend on getopt.
67228         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67229         of old STRTOL_FATAL_ERROR macro.
67230         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67231         of test program.
67232         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67233         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67234
67235 2007-08-08  Eric Blake  <ebb9@byu.net>
67236
67237         * lib/xstrtol-error.c: Add missing include.
67238
67239         Move xstrtol messages into gnulib domain, when --pobase is used.
67240         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67241         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67242         * modules/xstrtol (Files): Distribute new file.
67243         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67244         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67245         * tests/test-xstrtol.c: ...into new file.
67246         * tests/test-xstrtoul.c: Also test xstrtoul.
67247         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67248         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67249         * tests/test-xstrtol.sh: Drive the tests.
67250         * tests/test-xstrtoimax.sh: Likewise.
67251         * tests/test-xstrtoumax.sh: Likewise.
67252         * modules/xstrtol-tests: New module.
67253         * modules/xstrtoimax-tests: Likewise.
67254         * modules/xstrtoumax-tests: Likewise.
67255
67256 2007-08-08  Jim Meyering  <jim@meyering.net>
67257
67258         New function: mfile_name_concat.
67259         * lib/filenamecat.c (mfile_name_concat): New function, just like
67260         file_name_concat, but return NULL upon failure rather than exiting
67261         with a diagnostic.
67262         * lib/filenamecat.h: Declare it.
67263
67264 2007-08-07  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67267         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67268         warning from gcc.
67269         Reported by Eric Blake.
67270
67271 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67272
67273         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67274         * modules/crypto/arcfour (License): Likewise.
67275         * modules/crypto/des-tests (License): Likewise.
67276         * modules/crypto/gc-arctwo-tests (License): Likewise.
67277         * modules/crypto/gc-des-tests (License): Likewise.
67278         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67279         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67280         * modules/crypto/gc-md2-tests (License): Likewise.
67281         * modules/crypto/gc-md4-tests (License): Likewise.
67282         * modules/crypto/gc-md5-tests (License): Likewise.
67283         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67284         * modules/crypto/gc-rijndael-tests (License): Likewise.
67285         * modules/crypto/gc-sha1-tests (License): Likewise.
67286         * modules/crypto/gc-tests (License): Likewise.
67287         * modules/crypto/hmac-md5 (License): Likewise.
67288         * modules/crypto/hmac-sha1 (License): Likewise.
67289         * modules/crypto/md2-tests (License): Likewise.
67290         * modules/crypto/md4-tests (License): Likewise.
67291         * modules/crypto/md5 (License): Likewise.
67292         * modules/crypto/rijndael (License): Likewise.
67293         * modules/crypto/sha1 (License): Likewise.
67294         * modules/memxor (License): Likewise.
67295
67296 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67297         and Bruno Haible  <bruno@clisp.org>
67298
67299         * NEWS: Describe interface changes to human, xstrtol.
67300         * lib/human.h: Include <xstrtol.h>.
67301         (human_options): Return enum strtol_error, not int.  Remove
67302         bool arg; take int * instead.
67303         * lib/human.c: Don't include "gettext.h".
67304         (_): Remove; no longer used.
67305         Don't include <xstrtol.h>, since human.h does it.
67306         (human_options): Adjust to abovementioned interface changes.
67307         Do not report error to stderr; that's now the caller's
67308         responsibility.
67309         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67310         interface change.
67311         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67312         Str, Argument_type_string.  All uses changed.  Put " argument"
67313         in diagnostics to make them clearer.  Change wording of suffix
67314         message for clarity.
67315         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67316         Argument_type_string.
67317         (STRTOL_FATAL_WARN): Remove; no longer used.
67318         * modules/human (Depends-on): Remove gettext-h.
67319
67320 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67321
67322         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67323
67324 2007-07-31  Bruno Haible  <bruno@clisp.org>
67325
67326         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67327         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67328         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67329
67330 2007-07-31  Bruno Haible  <bruno@clisp.org>
67331
67332         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67333         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67334
67335 2007-07-30  Bruno Haible  <bruno@clisp.org>
67336
67337         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67338         * modules/c-ctype (License): Likewise.
67339         * modules/c-strcase (License): Likewise.
67340         * modules/check-version (License): Likewise.
67341         * modules/iconv (License): Likewise.
67342         * modules/iconv_open (License): Likewise.
67343         * modules/read-file (License): Likewise.
67344         * modules/striconv (License): Likewise.
67345         * modules/strverscmp (License): Likewise.
67346         * modules/vasprintf (License): Likewise.
67347         * modules/crypto/des (License): Likewise.
67348         * modules/crypto/gc (License): Likewise.
67349         * modules/crypto/gc-arcfour (License): Likewise.
67350         * modules/crypto/gc-arctwo (License): Likewise.
67351         * modules/crypto/gc-des (License): Likewise.
67352         * modules/crypto/gc-hmac-md5 (License): Likewise.
67353         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67354         * modules/crypto/gc-md2 (License): Likewise.
67355         * modules/crypto/gc-md4 (License): Likewise.
67356         * modules/crypto/gc-md5 (License): Likewise.
67357         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67358         * modules/crypto/gc-random (License): Likewise.
67359         * modules/crypto/gc-rijndael (License): Likewise.
67360         * modules/crypto/gc-sha1 (License): Likewise.
67361         * modules/crypto/md2 (License): Likewise.
67362         * modules/crypto/md4 (License): Likewise.
67363
67364 2007-07-30  Jim Meyering  <jim@meyering.net>
67365
67366         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67367         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67368         it has valid stat data.  This bug would cause du not to count the
67369         sizes of inaccessible directories.
67370         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67371         in <http://bugzilla.redhat.com/250077>.
67372
67373 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67374             Bruno Haible  <bruno@clisp.org>
67375
67376         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67377         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67378         #include_next, gives a diagnostic about it, but reports no error in
67379         the exit code.
67380         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67381
67382 2007-07-24  Ben Pfaff  <blp@gnu.org>
67383
67384         Improve name: "count-one-bits" is better than "popcount".
67385         * MODULES.html.sh: Update name.
67386         * lib/popcount.h: Renamed lib/count-one-bits.h.
67387         (popcount): Renamed count_one_bits.
67388         (popcountl): Renamed count_one_bits_l.
67389         (popcountll): Renamed count_one_bits_ll.
67390         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67391         * modules/popcount: Renamed module/count-one-bits.
67392         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67393         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67394
67395 2007-07-23  Ben Pfaff  <blp@gnu.org>
67396
67397         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67398         better code generation, and add U to large constants to avoid
67399         warnings, in non-GCC case.
67400         Suggested by Bruno Haible.
67401
67402 2007-07-23  Ben Pfaff  <blp@gnu.org>
67403
67404         * lib/popcount.h: Use verify_true instead of if...abort.
67405         * modules/popcount: Depend on verify module.
67406         Suggested by Jim Meyering.
67407
67408 2007-07-23  Bruno Haible  <bruno@clisp.org>
67409
67410         * gnulib-tool (func_import): Create a .cvsignore file also when the
67411         directory is not yet in CVS but the toplevel directory is. When
67412         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67413         Reported by Karl Berry.
67414
67415 2007-07-22  Ben Pfaff  <blp@gnu.org>
67416
67417         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67418         case.
67419         Suggested by Eric Blake.
67420
67421 2007-07-22  Ben Pfaff  <blp@gnu.org>
67422
67423         New module: popcount.
67424         * MODULES.html.sh: Add popcount.
67425         * modules/popcount: New file.
67426         * modules/popcount-tests: New file.
67427         * tests/test-popcount.c: New file.
67428         * lib/popcount.h: New file.
67429         * m4/popcount.m4: New file.
67430
67431 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67432
67433         * build-aux/announce-gen: Update to GPLv3.
67434
67435         * build-aux/config.guess: Update from config.
67436
67437 2007-07-21  Bruno Haible  <bruno@clisp.org>
67438
67439         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67440         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67441
67442 2007-07-20  Jim Meyering  <jim@meyering.net>
67443
67444         * check-module: Diagnose a self-dependency.
67445
67446 2007-07-19  Bruno Haible  <bruno@clisp.org>
67447
67448         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67449         empty.
67450         Reported by Eric Blake.
67451
67452 2007-07-18  Bruno Haible  <bruno@clisp.org>
67453
67454         * gnulib-tool: New options --po-base, --po-domain.
67455         (func_usage): Document them.
67456         (pobase, po_domain): New variables.
67457         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67458         DEFAULT_TEXT_DOMAIN.
67459         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67460         (func_import): Consider pobase and po_domain. Create a po/ directory.
67461         (func_create_testdir): Set pobase and po_domain to empty.
67462         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67463         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67464
67465 2007-07-18  Bruno Haible  <bruno@clisp.org>
67466
67467         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67468         EXTRA_DIST augmentation for files in build-aux/.
67469
67470 2007-07-16  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67473         * modules/getdelim (License): Likewise.
67474
67475 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67476
67477         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67478         * modules/d-type (License): Likewise.
67479         * modules/extensions (License): Likewise.
67480         * modules/fnmatch (License): Likewise.
67481         * modules/fseeko (License): Likewise.
67482         * modules/getaddrinfo (License): Likewise.
67483         * modules/getline (License): Likewise.
67484         * modules/getlogin_r (License): Likewise.
67485         * modules/getpass (License): Likewise.
67486         * modules/gettimeofday (License): Likewise.
67487         * modules/glob (License): Likewise.
67488         * modules/inet_ntop (License): Likewise.
67489         * modules/malloc (License): Likewise.
67490         * modules/malloca (License): Likewise.
67491         * modules/memmem (License): Likewise.
67492         * modules/mempcpy (License): Likewise.
67493         * modules/memset (License): Likewise.
67494         * modules/minmax (License): Likewise.
67495         * modules/mktime (License): Likewise.
67496         * modules/netinet_in (License): Likewise.
67497         * modules/pathmax (License): Likewise.
67498         * modules/poll (License): Likewise.
67499         * modules/regex (License): Likewise.
67500         * modules/snprintf (License): Likewise.
67501         * modules/stdbool (License): Likewise.
67502         * modules/stdint (License): Likewise.
67503         * modules/stdio (License): Likewise.
67504         * modules/strcase (License): Likewise.
67505         * modules/strcasestr (License): Likewise.
67506         * modules/strdup (License): Likewise.
67507         * modules/string (License): Likewise.
67508         * modules/strndup (License): Likewise.
67509         * modules/strnlen (License): Likewise.
67510         * modules/strpbrk (License): Likewise.
67511         * modules/strptime (License): Likewise.
67512         * modules/strsep (License): Likewise.
67513         * modules/sys_select (License): Likewise.
67514         * modules/sys_socket (License): Likewise.
67515         * modules/sys_stat (License): Likewise.
67516         * modules/sys_time (License): Likewise.
67517         * modules/time (License): Likewise.
67518         * modules/time_r (License): Likewise.
67519         * modules/timegm (License): Likewise.
67520         * modules/unistd (License): Likewise.
67521         * modules/vsnprintf (License): Likewise.
67522         * modules/wctype (License): Likewise.
67523
67524 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67525
67526         * modules/argz (License): LGPLv2+.
67527
67528 2007-07-15  Karl Berry  <karl@gnu.org>
67529
67530         * doc/gnulib.texi: revise node structure per new fdl.texi.
67531
67532 2007-07-14  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67535         the output file.
67536         * lib/uniname/uninames.h: Regenerated.
67537
67538 2007-07-14  Karl Berry  <karl@gnu.org>
67539
67540         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67541         omitting sectioning and index commands.
67542
67543 2007-07-13  Bruno Haible  <bruno@clisp.org>
67544
67545         New gnulib-tool option --more-symlinks.
67546         * gnulib-tool (func_usage): Document --more-symlinks.
67547         (do_copyrights): New variable.
67548         Recognize option --more-symlinks.
67549         (func_import): Don't add a copyright notice transform to
67550         sed_transform_lib_file if do_copyrights is empty.
67551
67552 2007-07-13  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/vasnprintf.c (decimal_point_char): Define also if
67555         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67556         && !NEED_PRINTF_DIRECTIVE_A.
67557         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67558         Gary V. Vaughan <gary@gnu.org>.
67559
67560 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * lib/inttypes_.h: Undo previous change, since it was fixed
67563         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67564
67565 2007-07-13  Bruno Haible  <bruno@clisp.org>
67566
67567         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67568         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67569
67570 2007-07-13  Jim Meyering  <jim@meyering.net>
67571
67572         df: Don't fail for Tru64's "file-on-file mount".
67573         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67574         so we fall through and use statfs instead.  Details here:
67575         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67576         Reported by Albert Chin.
67577
67578 2007-07-13  Bruno Haible  <bruno@clisp.org>
67579
67580         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67581         * modules/configmake (License): Likewise.
67582         * modules/gettext (License): Likewise.
67583         * modules/gettext-h (License): Likewise.
67584         * modules/include_next (License): Likewise.
67585         * modules/link-warning (License): Likewise.
67586         * modules/localcharset (License): Likewise.
67587         * modules/localename (License): Likewise.
67588         * modules/lock (License): Likewise.
67589         * modules/relocatable-lib-lgpl (License): Likewise.
67590         * modules/size_max (License): Likewise.
67591         * modules/vasnprintf (License): Likewise.
67592         * modules/wchar (License): Likewise.
67593         * modules/xsize (License): Likewise.
67594
67595 2007-07-13  Bruno Haible  <bruno@clisp.org>
67596
67597         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67598         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67599
67600 2007-07-12  Bruno Haible  <bruno@clisp.org>
67601
67602         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67603         in the modules files.
67604
67605 2007-07-11  Karl Berry  <karl@gnu.org>
67606
67607         * MODULES.html.sh (func_module): use
67608          sed -e '\|^'"${includefile}"'$|d'
67609          instead of /.../d, to avoid errors on $includefile's containing /.
67610
67611 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67612
67613         * gnulib-tool (func_import): Avoid duplication of --avoid
67614         statements
67615         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67616         names to `_' in variable names.
67617
67618 2007-07-10  Eric Blake  <ebb9@byu.net>
67619
67620         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67621         * NEWS: Document this change.
67622
67623 2007-07-08  Bruno Haible  <bruno@clisp.org>
67624
67625         Update to Unicode 5.0.
67626         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67627         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67628         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67629         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67630         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67631         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67632         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67633         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67634         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67635         U+10A3F, U+1D242..U+1D244.
67636         (nonspacing_table_ind): Update.
67637         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67638         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67639
67640 2007-07-08  Bruno Haible  <bruno@clisp.org>
67641
67642         Update to Unicode 5.0.
67643         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67644         code transform. Extend the name index field of unicode_name_to_code and
67645         unicode_code_to_name from 16 to 24 bits.
67646         * lib/uniname/uniname.c (unicode_character_name,
67647         unicode_name_character): Add the range 0x12xxx to the code transform.
67648         * lib/uniname/uninames.h: Regenerated.
67649         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67650
67651 2007-07-07  Bruno Haible  <bruno@clisp.org>
67652
67653         * modules/wcwidth-tests: New file.
67654         * tests/test-wcwidth.c: New file.
67655
67656         Work around MacOS X wcwidth() bug.
67657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67658         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67659         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67660         original wcwidth in non-UTF-8 locales.
67661         * modules/wcwidth (Depends-on): Add localcharset, streq,
67662         uniwidth/width.
67663         * doc/functions/wcwidth.texi: Update.
67664
67665 2007-07-07  Bruno Haible  <bruno@clisp.org>
67666
67667         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67668         (wcwidth): New declaration.
67669         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67670         macros.
67671         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67672         here. Prepare for creating <wchar.h> unconditionally.
67673         * modules/wchar (Depends-on): Add link-warning.
67674         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67675         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67676         * lib/wcwidth.h: Remove file.
67677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67678         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67679         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67680         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67681         (Include): Replace wcwidth.h with <wchar.h>.
67682         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67683         * lib/mbchar.h: Don't include wcwidth.h.
67684         * lib/mbswidth.c: Likewise.
67685         * NEWS: Mention the change.
67686
67687 2007-07-07  Bruno Haible  <bruno@clisp.org>
67688
67689         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67690         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67691         definition with an external declaration.
67692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67693         defined as a function. Remove AC_C_INLINE requirement.
67694         * modules/wcwidth (Files): Add lib/wcwidth.c.
67695         (Makefile.am): Remove redundant statement.
67696
67697 2007-07-07  Bruno Haible  <bruno@clisp.org>
67698
67699         * MODULES.html.sh (Unicode string functions): Add the new modules.
67700
67701         * tests/uniwidth/test-u32-strwidth.c: New file.
67702         * modules/uniwidth/u32-strwidth-tests: New file.
67703
67704         * lib/uniwidth/u32-strwidth.c: New file.
67705         * modules/uniwidth/u32-strwidth: New file.
67706
67707         * tests/uniwidth/test-u16-strwidth.c: New file.
67708         * modules/uniwidth/u16-strwidth-tests: New file.
67709
67710         * lib/uniwidth/u16-strwidth.c: New file.
67711         * modules/uniwidth/u16-strwidth: New file.
67712
67713         * tests/uniwidth/test-u8-strwidth.c: New file.
67714         * modules/uniwidth/u8-strwidth-tests: New file.
67715
67716         * lib/uniwidth/u8-strwidth.c: New file.
67717         * modules/uniwidth/u8-strwidth: New file.
67718
67719         * tests/uniwidth/test-u32-width.c: New file.
67720         * modules/uniwidth/u32-width-tests: New file.
67721
67722         * lib/uniwidth/u32-width.c: New file.
67723         * modules/uniwidth/u32-width: New file.
67724
67725         * tests/uniwidth/test-u16-width.c: New file.
67726         * modules/uniwidth/u16-width-tests: New file.
67727
67728         * lib/uniwidth/u16-width.c: New file.
67729         * modules/uniwidth/u16-width: New file.
67730
67731         * tests/uniwidth/test-u8-width.c: New file.
67732         * modules/uniwidth/u8-width-tests: New file.
67733
67734         * lib/uniwidth/u8-width.c: New file.
67735         * modules/uniwidth/u8-width: New file.
67736
67737         * tests/uniwidth/test-uc_width.c: New file.
67738         * modules/uniwidth/width-tests: New file.
67739
67740         * lib/uniwidth/width.c: New file, from GNU libiconv.
67741         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67742         * modules/uniwidth/width: New file.
67743
67744         * lib/uniwidth.h: New file, from GNU libiconv.
67745         * modules/uniwidth/base: New file.
67746
67747 2007-07-07  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/uniname.h: New file, from GNU gettext.
67750         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67751         * lib/uniname/uninames.h: New file, from GNU gettext.
67752         * lib/uniname/uniname.c: New file, from GNU gettext.
67753         * tests/uniname/test-uninames.sh: New file.
67754         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67755         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67756         * modules/uniname/base: New file.
67757         * modules/uniname/uniname: New file.
67758         * modules/uniname/uniname-tests: New file.
67759         * MODULES.html.sh (Unicode string functions): Add the new modules.
67760
67761 2007-07-06  Bruno Haible  <bruno@clisp.org>
67762
67763         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67764
67765 2007-07-06  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67768         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67769         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67770         include <sys/time.h>.
67771         Reported by Eric Blake.
67772
67773 2007-07-06  Eric Blake  <ebb9@byu.net>
67774
67775         Fix testing canonicalize on cygwin.
67776         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67777         Revert patch from 2007-06-19.
67778         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67779         canonicalize module is also in use.
67780         * tests/test-canonicalize.c: New file.
67781         * tests/test-canonicalize.sh: Likewise.
67782         * modules/canonicalize-tests: Likewise.
67783
67784 2007-07-06  Jim Meyering  <jim@meyering.net>
67785
67786         * lib/getugroups.c (getugroups): Detect getgrent failure.
67787         Adjust comment to reflect reality: this function may return -1.
67788
67789 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67790
67791         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67792         the new TP address.
67793         (usage): Fix typo
67794         (gnulib_mk): New variable.
67795
67796 2007-07-05  Jim Meyering  <jim@meyering.net>
67797
67798         Don't let endgrent clobber errno, no matter how improbable.
67799         * lib/getugroups.c (getugroups): Save and restore errno around
67800         endgrent call.
67801
67802         Close the group DB even when failing with 2^31 or more members.
67803         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67804
67805 2007-07-04  Jim Meyering  <jim@meyering.net>
67806
67807         * lib/getugroups.h: New file.
67808         * lib/getugroups.c: Include "getugroups.h".
67809         Remove uses of "register" keyword.
67810         Move local variable, "cp", down into scope where used.
67811         Give "username" parameter the "const" attribute.
67812         * modules/getugroups (Files): Add lib/getugroups.h
67813
67814 2007-07-04  Karl Berry  <karl@gnu.org>
67815
67816         * MODULES.html.sh (func_all_modules): Complete rename of
67817         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67818
67819 2007-07-02  Bruno Haible  <bruno@clisp.org>
67820
67821         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67822         mode, when inttypes.h comes from gnulib.
67823         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67824
67825 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67826
67827         * NEWS: Mention lgpl module name change.
67828
67829         * modules/lgpl-2.1: Renamed from lgpl.
67830
67831         * NEWS: Mention gpl module name change.
67832
67833         * modules/gpl-3.0: New file, based on gpl-2.0.
67834
67835         * modules/gpl-2.0: Renamed from gpl.
67836
67837         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67838         doc/gpl-2.0.texi.
67839
67840 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67843         #define __STDC_LIMIT_MACROS temporarily while including
67844         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67845         Problem reported by Joel E. Denny in
67846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67847
67848 2007-07-01  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/unistdio.h: New file.
67851         * lib/unistdio/u-asnprintf.h: New file.
67852         * lib/unistdio/u-asprintf.h: New file.
67853         * lib/unistdio/u-printf-args.c: New file.
67854         * lib/unistdio/u-printf-args.h: New file.
67855         * lib/unistdio/u-printf-parse.h: New file.
67856         * lib/unistdio/u-snprintf.h: New file.
67857         * lib/unistdio/u-sprintf.h: New file.
67858         * lib/unistdio/u-vasprintf.h: New file.
67859         * lib/unistdio/u-vsnprintf.h: New file.
67860         * lib/unistdio/u-vsprintf.h: New file.
67861         * lib/unistdio/ulc-asnprintf.c: New file.
67862         * lib/unistdio/ulc-asprintf.c: New file.
67863         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67864         * lib/unistdio/ulc-printf-parse.c: New file.
67865         * lib/unistdio/ulc-snprintf.c: New file.
67866         * lib/unistdio/ulc-sprintf.c: New file.
67867         * lib/unistdio/ulc-vasnprintf.c: New file.
67868         * lib/unistdio/ulc-vasprintf.c: New file.
67869         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67870         * lib/unistdio/ulc-vsnprintf.c: New file.
67871         * lib/unistdio/ulc-vsprintf.c: New file.
67872         * lib/unistdio/u8-asnprintf.c: New file.
67873         * lib/unistdio/u8-asprintf.c: New file.
67874         * lib/unistdio/u8-printf-parse.c: New file.
67875         * lib/unistdio/u8-snprintf.c: New file.
67876         * lib/unistdio/u8-sprintf.c: New file.
67877         * lib/unistdio/u8-vasnprintf.c: New file.
67878         * lib/unistdio/u8-vasprintf.c: New file.
67879         * lib/unistdio/u8-vsnprintf.c: New file.
67880         * lib/unistdio/u8-vsprintf.c: New file.
67881         * lib/unistdio/u8-u8-asnprintf.c: New file.
67882         * lib/unistdio/u8-u8-asprintf.c: New file.
67883         * lib/unistdio/u8-u8-snprintf.c: New file.
67884         * lib/unistdio/u8-u8-sprintf.c: New file.
67885         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67886         * lib/unistdio/u8-u8-vasprintf.c: New file.
67887         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67888         * lib/unistdio/u8-u8-vsprintf.c: New file.
67889         * lib/unistdio/u16-asnprintf.c: New file.
67890         * lib/unistdio/u16-asprintf.c: New file.
67891         * lib/unistdio/u16-printf-parse.c: New file.
67892         * lib/unistdio/u16-snprintf.c: New file.
67893         * lib/unistdio/u16-sprintf.c: New file.
67894         * lib/unistdio/u16-vasnprintf.c: New file.
67895         * lib/unistdio/u16-vasprintf.c: New file.
67896         * lib/unistdio/u16-vsnprintf.c: New file.
67897         * lib/unistdio/u16-vsprintf.c: New file.
67898         * lib/unistdio/u16-u16-asnprintf.c: New file.
67899         * lib/unistdio/u16-u16-asprintf.c: New file.
67900         * lib/unistdio/u16-u16-snprintf.c: New file.
67901         * lib/unistdio/u16-u16-sprintf.c: New file.
67902         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67903         * lib/unistdio/u16-u16-vasprintf.c: New file.
67904         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67905         * lib/unistdio/u16-u16-vsprintf.c: New file.
67906         * lib/unistdio/u32-asnprintf.c: New file.
67907         * lib/unistdio/u32-asprintf.c: New file.
67908         * lib/unistdio/u32-printf-parse.c: New file.
67909         * lib/unistdio/u32-snprintf.c: New file.
67910         * lib/unistdio/u32-sprintf.c: New file.
67911         * lib/unistdio/u32-vasnprintf.c: New file.
67912         * lib/unistdio/u32-vasprintf.c: New file.
67913         * lib/unistdio/u32-vsnprintf.c: New file.
67914         * lib/unistdio/u32-vsprintf.c: New file.
67915         * lib/unistdio/u32-u32-asnprintf.c: New file.
67916         * lib/unistdio/u32-u32-asprintf.c: New file.
67917         * lib/unistdio/u32-u32-snprintf.c: New file.
67918         * lib/unistdio/u32-u32-sprintf.c: New file.
67919         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67920         * lib/unistdio/u32-u32-vasprintf.c: New file.
67921         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67922         * lib/unistdio/u32-u32-vsprintf.c: New file.
67923         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67924         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67925         * tests/unistdio/test-ulc-printf1.h: New file.
67926         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67927         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67928         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67929         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67930         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67931         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67932         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67933         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67934         * tests/unistdio/test-u8-asnprintf1.c: New file.
67935         * tests/unistdio/test-u8-asnprintf1.h: New file.
67936         * tests/unistdio/test-u8-printf1.h: New file.
67937         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67938         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67939         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67940         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67941         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67942         * tests/unistdio/test-u8-vasprintf1.c: New file.
67943         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67944         * tests/unistdio/test-u8-vsprintf1.c: New file.
67945         * tests/unistdio/test-u16-asnprintf1.c: New file.
67946         * tests/unistdio/test-u16-asnprintf1.h: New file.
67947         * tests/unistdio/test-u16-printf1.h: New file.
67948         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67949         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67950         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67951         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67952         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67953         * tests/unistdio/test-u16-vasprintf1.c: New file.
67954         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67955         * tests/unistdio/test-u16-vsprintf1.c: New file.
67956         * tests/unistdio/test-u32-asnprintf1.c: New file.
67957         * tests/unistdio/test-u32-asnprintf1.h: New file.
67958         * tests/unistdio/test-u32-printf1.h: New file.
67959         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67960         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67961         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67962         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67963         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67964         * tests/unistdio/test-u32-vasprintf1.c: New file.
67965         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67966         * tests/unistdio/test-u32-vsprintf1.c: New file.
67967         * modules/unistdio/base: New file.
67968         * modules/unistdio/u-printf-args: New file.
67969         * modules/unistdio/ulc-asnprintf: New file.
67970         * modules/unistdio/ulc-asprintf: New file.
67971         * modules/unistdio/ulc-fprintf: New file.
67972         * modules/unistdio/ulc-printf-parse: New file.
67973         * modules/unistdio/ulc-snprintf: New file.
67974         * modules/unistdio/ulc-sprintf: New file.
67975         * modules/unistdio/ulc-vasnprintf: New file.
67976         * modules/unistdio/ulc-vasprintf: New file.
67977         * modules/unistdio/ulc-vfprintf: New file.
67978         * modules/unistdio/ulc-vsnprintf: New file.
67979         * modules/unistdio/ulc-vsprintf: New file.
67980         * modules/unistdio/u8-asnprintf: New file.
67981         * modules/unistdio/u8-asprintf: New file.
67982         * modules/unistdio/u8-printf-parse: New file.
67983         * modules/unistdio/u8-snprintf: New file.
67984         * modules/unistdio/u8-sprintf: New file.
67985         * modules/unistdio/u8-vasnprintf: New file.
67986         * modules/unistdio/u8-vasprintf: New file.
67987         * modules/unistdio/u8-vsnprintf: New file.
67988         * modules/unistdio/u8-vsprintf: New file.
67989         * modules/unistdio/u8-u8-asnprintf: New file.
67990         * modules/unistdio/u8-u8-asprintf: New file.
67991         * modules/unistdio/u8-u8-snprintf: New file.
67992         * modules/unistdio/u8-u8-sprintf: New file.
67993         * modules/unistdio/u8-u8-vasnprintf: New file.
67994         * modules/unistdio/u8-u8-vasprintf: New file.
67995         * modules/unistdio/u8-u8-vsnprintf: New file.
67996         * modules/unistdio/u8-u8-vsprintf: New file.
67997         * modules/unistdio/u16-asnprintf: New file.
67998         * modules/unistdio/u16-asprintf: New file.
67999         * modules/unistdio/u16-printf-parse: New file.
68000         * modules/unistdio/u16-snprintf: New file.
68001         * modules/unistdio/u16-sprintf: New file.
68002         * modules/unistdio/u16-vasnprintf: New file.
68003         * modules/unistdio/u16-vasprintf: New file.
68004         * modules/unistdio/u16-vsnprintf: New file.
68005         * modules/unistdio/u16-vsprintf: New file.
68006         * modules/unistdio/u16-u16-asnprintf: New file.
68007         * modules/unistdio/u16-u16-asprintf: New file.
68008         * modules/unistdio/u16-u16-snprintf: New file.
68009         * modules/unistdio/u16-u16-sprintf: New file.
68010         * modules/unistdio/u16-u16-vasnprintf: New file.
68011         * modules/unistdio/u16-u16-vasprintf: New file.
68012         * modules/unistdio/u16-u16-vsnprintf: New file.
68013         * modules/unistdio/u16-u16-vsprintf: New file.
68014         * modules/unistdio/u32-asnprintf: New file.
68015         * modules/unistdio/u32-asprintf: New file.
68016         * modules/unistdio/u32-printf-parse: New file.
68017         * modules/unistdio/u32-snprintf: New file.
68018         * modules/unistdio/u32-sprintf: New file.
68019         * modules/unistdio/u32-vasnprintf: New file.
68020         * modules/unistdio/u32-vasprintf: New file.
68021         * modules/unistdio/u32-vsnprintf: New file.
68022         * modules/unistdio/u32-vsprintf: New file.
68023         * modules/unistdio/u32-u32-asnprintf: New file.
68024         * modules/unistdio/u32-u32-asprintf: New file.
68025         * modules/unistdio/u32-u32-snprintf: New file.
68026         * modules/unistdio/u32-u32-sprintf: New file.
68027         * modules/unistdio/u32-u32-vasnprintf: New file.
68028         * modules/unistdio/u32-u32-vasprintf: New file.
68029         * modules/unistdio/u32-u32-vsnprintf: New file.
68030         * modules/unistdio/u32-u32-vsprintf: New file.
68031         * modules/unistdio/ulc-asnprintf-tests: New file.
68032         * modules/unistdio/ulc-vasnprintf-tests: New file.
68033         * modules/unistdio/ulc-vasprintf-tests: New file.
68034         * modules/unistdio/ulc-vsnprintf-tests: New file.
68035         * modules/unistdio/ulc-vsprintf-tests: New file.
68036         * modules/unistdio/u8-asnprintf-tests: New file.
68037         * modules/unistdio/u8-vasnprintf-tests: New file.
68038         * modules/unistdio/u8-vasprintf-tests: New file.
68039         * modules/unistdio/u8-vsnprintf-tests: New file.
68040         * modules/unistdio/u8-vsprintf-tests: New file.
68041         * modules/unistdio/u16-asnprintf-tests: New file.
68042         * modules/unistdio/u16-vasnprintf-tests: New file.
68043         * modules/unistdio/u16-vasprintf-tests: New file.
68044         * modules/unistdio/u16-vsnprintf-tests: New file.
68045         * modules/unistdio/u16-vsprintf-tests: New file.
68046         * modules/unistdio/u32-asnprintf-tests: New file.
68047         * modules/unistdio/u32-vasnprintf-tests: New file.
68048         * modules/unistdio/u32-vasprintf-tests: New file.
68049         * modules/unistdio/u32-vsnprintf-tests: New file.
68050         * modules/unistdio/u32-vsprintf-tests: New file.
68051         * MODULES.html.sh (Unicode string functions): Add the new modules.
68052
68053 2007-07-01  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/sprintf.c (sprintf): Limit the available length estimation,
68056         to avoid address wraparound.
68057         * lib/vsprintf.c (vsprintf): Likewise.
68058         * modules/sprintf-posix (Dependencies): Add stdint.
68059         * modules/vsprintf-posix (Dependencies): Likewise.
68060
68061 2007-07-01  Bruno Haible  <bruno@clisp.org>
68062
68063         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68064         Windows PATH as well. Conservative double-quoting. Comments.
68065
68066 2007-07-01  Bruno Haible  <bruno@clisp.org>
68067             Eric Blake  <ebb9@byu.net>
68068             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68069
68070         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68071         empty components in $PATH, denoting '.'.
68072
68073 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68074
68075         * gnulib-tool: Fix indentation.
68076         (func_create_megatestdir): Likewise.
68077         Report by Bruno Haible.
68078
68079 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68080
68081         Sync from Automake.
68082         * build-aux/gnupload: Fix shell portability issues with for loops.
68083         Report by Karl Berry.
68084
68085 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68086
68087         * build-aux/maint.mk (POURL): Use translationproject.org.
68088
68089 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68090             Bruno Haible  <bruno@clisp.org>
68091
68092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68093         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68094         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68095         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68096         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68097
68098 2007-06-27  Bruno Haible  <bruno@clisp.org>
68099
68100         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68101         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68102
68103 2007-06-26  Karl Berry  <karl@gnu.org>
68104
68105         * MODULES.html.sh: remove xreadlink-with-size.
68106
68107 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68108
68109         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68110         method that I hope also handles the double-include problem noted
68111         by Bruno Haible in
68112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68113
68114 2007-06-23  Bruno Haible  <bruno@clisp.org>
68115
68116         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68117         Don't let the 'mostlyclean' target fail if the last subdirectory could
68118         not be removed.
68119         Reported by Karl Berry.
68120
68121 2007-06-23  Bruno Haible  <bruno@clisp.org>
68122
68123         * gnulib-tool (echo): Add a speedier workaround for ksh.
68124         * tests/test-echo.sh: Likewise.
68125
68126 2007-06-23  Bruno Haible  <bruno@clisp.org>
68127
68128         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68129         * tests/test-echo.sh: Likewise.
68130
68131 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68132
68133         * gnulib-tool (IFS): Initialize early, so we don't set it to
68134         empty later.
68135         (self_abspathname): Rewrite algorithm to set it, reindent.
68136         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68137         (func_create_megatestdir): Merge some sed scripts.
68138
68139 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68142         exposed by Sun Studio 11 cc on Solaris 8.
68143
68144 2007-06-22  Bruno Haible  <bruno@clisp.org>
68145
68146         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68147         backslashes.
68148         * tests/test-echo.sh: New file.
68149
68150 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68151
68152         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68153         simplify `sed_replace_build_aux' scripts, they are portable but
68154         echoing them with `echo' is not.
68155         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68156
68157 2007-06-21  Karl Berry  <karl@gnu.org>
68158
68159         * config/srclist.txt: guess we can't handle the licenses via
68160         srclist at the moment.
68161
68162 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * MODULES.html.sh: Add include_next.
68165         * modules/include_next: New file.
68166
68167 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68170         INCLUDE_NEXT.
68171         (gl_CHECK_NEXT_HEADERS): New macro.
68172         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68173         the obsolescent gl_ABSOLUTE_HEADER.
68174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68175         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68176         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68177         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68178         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68179         * m4/math_h.m4 (gl_MATH_H): Likewise.
68180         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68182         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68183         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68184         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68185         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68186         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68191         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68192         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68193         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68194         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68195         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68196         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68197         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68198         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68199         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68200         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68201         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68202         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68203         * lib/float_.h: Likewise.
68204         * lib/inttypes_.h: Likewise.
68205         * lib/math_.h: Likewise.
68206         * lib/search_.h: Likewise.
68207         * lib/signal_.h: Likewise.
68208         * lib/stdint_.h: Likewise.
68209         * lib/stdio_.h: Likewise.
68210         * lib/stdlib_.h: Likewise.
68211         * lib/string_.h: Likewise.
68212         * lib/sys_stat_.h: Likewise.
68213         * lib/sys_time_.h: Likewise.
68214         * lib/time_.h: Likewise.
68215         * lib/unistd_.h: Likewise.
68216         * lib/wchar_.h: Likewise.
68217         * lib/wctype_.h: Likewise.
68218         * lib/dirent_.h: Likewise.
68219         * lib/iconv_.h: Likewise.
68220         * lib/locale_.h: Likewise.
68221         * lib/netinet_in_.h: Likewise.
68222         * lib/sys_select_.h: Likewise.
68223         * lib/sys_socket_.h: Likewise.
68224         * lib/sysexits_.h: Likewise.
68225         * modules/fcntl (Depends-on): Depend on include_next, not
68226         absolute_header.
68227         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68228         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68229         * modules/fchdir: Likewise.
68230         * modules/float: Likewise.
68231         * modules/iconv_open: Likewise.
68232         * modules/inttypes: Likewise.
68233         * modules/locale: Likewise.
68234         * modules/math: Likewise.
68235         * modules/netinet_in: Likewise.
68236         * modules/search: Likewise.
68237         * modules/signal: Likewise.
68238         * modules/stdint: Likewise.
68239         * modules/stdio: Likewise.
68240         * modules/stdlib: Likewise.
68241         * modules/string: Likewise.
68242         * modules/sys_select: Likewise.
68243         * modules/sys_socket: Likewise.
68244         * modules/sys_stat: Likewise.
68245         * modules/sys_time: Likewise.
68246         * modules/sysexits: Likewise.
68247         * modules/time: Likewise.
68248         * modules/unistd: Likewise.
68249         * modules/wchar: Likewise.
68250         * modules/wctype: Likewise.
68251         * modules/sys_stat: Change maintainer to "all".
68252         * modules/unistd: Likewise.
68253
68254 2007-06-20  Karl Berry  <karl@gnu.org>
68255
68256         * config/srclist.txt: track www changes in license files.
68257
68258 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68259
68260         * build-aux/bootstrap: Remove stray dot.
68261         Make sure build_aux settings are honored when linking
68262         gnulib_extra_files.
68263
68264 2007-06-19  Eric Blake  <ebb9@byu.net>
68265
68266         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68267         Allow compilation on cygwin.
68268
68269 2007-06-19  Jim Meyering  <jim@meyering.net>
68270
68271         xreadlink-with-size: Remove module.  No longer used.
68272         Ex-callers now use xreadlink or mreadlink-with-size.
68273         * modules/xreadlink-with-size: Remove module.
68274         * lib/xreadlink-with-size.c: Remove file.
68275         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68276         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68277         just before the function definition *is* accurate.
68278
68279         Eliminate one way canonicalize_filename_mode could exit.
68280         * lib/canonicalize.c (canonicalize_filename_mode):
68281         Use mreadlink_with_size, not xreadlink_with_size.
68282
68283 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         Detect porting problems to FreeBSD/arm, which has time_t wider than
68286         long int.  Original problem reported for GNU diff by Xin Li in
68287         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68288         * modules/getdate (Depends-on): Add intprops, verify.
68289         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68290         is an integer type no wider than long int.
68291
68292 2007-06-18  Jim Meyering  <jim@meyering.net>
68293
68294         New module: mreadlink-with-size.
68295         * MODULES.html.sh: Add mreadlink-with-size.
68296         * modules/mreadlink-with-size: New module
68297         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68298         not xreadlink-with-size.
68299         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68300
68301 2007-06-16  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68304         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68305         Reported by Gary V. Vaughan <gary@gnu.org>.
68306
68307 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         Revamp lchown so that it lives in unistd.h where it belongs.
68310         * lib/lchown.h: Remove.
68311         * lib/dirchownmod.c: Don't include lib/lchown.h.
68312         * lib/fchownat.c: Likewise.
68313         * lib/openat.c: Likewise.
68314         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68315         does not follow symlinks.
68316         (EOPNOTSUPP): Define if not defined.
68317         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68318         is defined to 0.
68319         (lchown): New decl.
68320         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68321         Do not check for lchown decl.
68322         Set REPLACE_LCHOWN.
68323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68324         REPLACE_LCHOWN.
68325         * modules/chown: Make it clear it follows symlinks.
68326         * modules/lchown: Make it clear it doesn't follow symlinks.
68327         (Files): Remove lib/lchown.h
68328         (Depends-on): Add unistd.
68329         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68330         (Include): Include <unistd.h>, not "lchown.h".
68331         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68332         REPLACE_LCHOWN.
68333
68334 2007-06-15  Jim Meyering  <jim@meyering.net>
68335
68336         Change license (GPL to LGPL) of fsusage and dependents.
68337         * modules/fsusage (License): Change to LGPL.
68338         * modules/full-read (License): Likewise.
68339         * modules/full-write (License): Likewise.
68340         * modules/safe-read (License): Likewise.
68341         * modules/safe-write (License): Likewise.
68342
68343 2007-06-14  Ben Pfaff  <blp@gnu.org>
68344
68345         Missing part of allocsa -> malloca transition.
68346         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68347         gl_MALLOCA.
68348
68349 2007-06-12  Bruno Haible  <bruno@clisp.org>
68350
68351         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68352         to ia64, x86_64, i386.
68353         Reported by Eric Blake.
68354
68355 2007-06-12  Bruno Haible  <bruno@clisp.org>
68356
68357         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68358         cross-compiling to x86_64.
68359
68360 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68363         glitch reported by Ralf Wildenhues in
68364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68365
68366         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68367         Vin Shelton.
68368
68369 2007-06-11  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68372         replacement string.
68373         Reported by Eric Blake.
68374
68375 2007-06-10  Bruno Haible  <bruno@clisp.org>
68376
68377         Prepare vasnprintf code for use with Unicode strings.
68378         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68379         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68380         TYPE_U32_STRING.
68381         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68382         a_u32_string variants.
68383         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68384         * lib/printf-args.c: Don't include config.h and the specification
68385         header if PRINTF_FETCHARGS is already defined.
68386         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68387         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68388         TYPE_U16_STRING, TYPE_U32_STRING.
68389         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68390         u16_directive, u16_directives, u32_directive, u32_directives): New
68391         types.
68392         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68393         New declarations.
68394         * lib/printf-parse.c: Don't include config.h and the specification
68395         header if PRINTF_PARSE is already defined. Eliminate the set of
68396         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68397         them now. Include c-ctype.h.
68398         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68399         directive and CHAR_T_ONLY_ASCII.
68400         * lib/vasnprintf.c: Don't include config.h and the specification header
68401         if VASNPRINTF is already defined.
68402         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68403         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68404         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68405         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68406         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68407         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68408         code accordingly.
68409         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68410         pad_ourselves also in this case, with the 'c' and 's' directives, and
68411         with a different notion of "width".
68412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68413
68414 2007-06-10  Bruno Haible  <bruno@clisp.org>
68415
68416         * modules/unistr/u32-mbsnlen: New file.
68417         * lib/unistr/u32-mbsnlen.c: New file.
68418
68419         * modules/unistr/u16-mbsnlen: New file.
68420         * lib/unistr/u16-mbsnlen.c: New file.
68421
68422         * modules/unistr/u8-mbsnlen: New file.
68423         * lib/unistr/u8-mbsnlen.c: New file.
68424
68425         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68426         declarations.
68427
68428 2007-06-10  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/string_.h (mbsnlen): New declaration.
68431         * lib/mbsnlen.c: New file.
68432         * m4/mbsnlen.m4: New file.
68433         * modules/mbsnlen: New file.
68434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68435         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68436         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68437
68438 2007-06-10  Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68441
68442 2007-06-10  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68445         * lib/mbuiter.h: Likewise.
68446
68447 2007-06-10  Bruno Haible  <bruno@clisp.org>
68448
68449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68450         declaration.
68451
68452 2007-06-10  Karl Berry  <karl@gnu.org>
68453
68454         * config/srclist.txt: remove gettext entries, Bruno prefers
68455         to update individually.
68456
68457 2007-06-10  Bruno Haible  <bruno@clisp.org>
68458
68459         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68460         'maxlen'. Ensure only length + width bytes are allocated, not
68461         length + 1 + width.
68462
68463 2007-06-09  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68466         (CHAR_T): Remove macro.
68467         (VASNPRINTF): Update.
68468
68469 2007-06-09  Bruno Haible  <bruno@clisp.org>
68470
68471         * MODULES.html.sh (Unicode string functions): Add the new modules.
68472
68473         * modules/uniconv/u32-conv-to-enc: New file.
68474         * lib/uniconv/u32-conv-to-enc.c: New file.
68475         * modules/uniconv/u32-conv-to-enc-tests: New file.
68476         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68477
68478         * modules/uniconv/u16-conv-to-enc: New file.
68479         * lib/uniconv/u16-conv-to-enc.c: New file.
68480         * lib/uniconv/u-conv-to-enc.h: New file.
68481         * modules/uniconv/u16-conv-to-enc-tests: New file.
68482         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68483
68484         * modules/uniconv/u8-conv-to-enc: New file.
68485         * lib/uniconv/u8-conv-to-enc.c: New file.
68486         * modules/uniconv/u8-conv-to-enc-tests: New file.
68487         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68488
68489         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68490         u32_conv_to_encoding): New declarations.
68491
68492 2007-06-09  Bruno Haible  <bruno@clisp.org>
68493
68494         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68495
68496 2007-06-09  Bruno Haible  <bruno@clisp.org>
68497
68498         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68499         * modules/malloca: Renamed from modules/allocsa, updated.
68500         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68501         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68502         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68503         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68504         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68505         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68506         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68507         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68508         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68509         * modules/c-strcasestr (Depends-on): Update.
68510         * lib/c-strcasestr.c: Update.
68511         * modules/c-strstr (Depends-on): Update.
68512         * lib/c-strstr.c: Update.
68513         * modules/canonicalize-lgpl (Depends-on): Update.
68514         * lib/canonicalize-lgpl.c: Update.
68515         * modules/clean-temp (Depends-on): Update.
68516         * lib/clean-temp.c: Update.
68517         * modules/csharpcomp (Depends-on): Update.
68518         * lib/csharpcomp.c: Update.
68519         * modules/csharpexec (Depends-on): Update.
68520         * lib/csharpexec.c: Update.
68521         * modules/javacomp (Depends-on): Update.
68522         * lib/javacomp.c: Update.
68523         * modules/javaexec (Depends-on): Update.
68524         * lib/javaexec.c: Update.
68525         * modules/mbscasestr (Depends-on): Update.
68526         * lib/mbscasestr.c: Update.
68527         * modules/mbsstr (Depends-on): Update.
68528         * lib/mbsstr.c: Update.
68529         * modules/setenv (Depends-on): Update.
68530         * lib/setenv.c: Update.
68531         * modules/strcasestr (Depends-on): Update.
68532         * lib/strcasestr.c: Update.
68533         * modules/striconveha (Depends-on): Update.
68534         * lib/striconveha.c: Update.
68535         * modules/relocatable-prog-wrapper (Files): Update.
68536         * lib/relocwrapper.c: Update.
68537         * build-aux/install-reloc: Update.
68538         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68539
68540 2007-06-08  Bruno Haible  <bruno@clisp.org>
68541
68542         Port to uClibc.
68543         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68544         * lib/fpurge.c (fpurge): Likewise.
68545         * lib/freading.c (freading): Likewise.
68546         * lib/fseeko.c (rpl_fseeko): Likewise.
68547         * lib/fseterr.c (fseterr): Likewise.
68548         * lib/fwriting.c (fwriting): Likewise.
68549         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68550
68551 2007-06-08  Bruno Haible  <bruno@clisp.org>
68552
68553         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68554         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68555         * modules/gettext (Files): Add m4/intlmacosx.m4.
68556
68557 2007-06-07  Bruno Haible  <bruno@clisp.org>
68558
68559         * modules/localename-tests: New file.
68560         * tests/test-localename.c: New file.
68561
68562         New module 'localename'.
68563         * lib/localename.h: New file.
68564         * lib/localename.c: New file, from GNU gettext.
68565         * m4/localename.m4: New file.
68566         * modules/localename: New file.
68567
68568 2007-06-07  Bruno Haible  <bruno@clisp.org>
68569
68570         Work around the lack of <wchar.h> on some builds of uClibc.
68571         * doc/headers/wchar.texi: Update.
68572         * lib/wchar_.h: Include <wchar.h> only if it exists.
68573         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68574         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68575         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68576         doesn't exist.
68577         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68578         * modules/mbfile (Depends-on): Add wchar.
68579         * modules/mbiter (Depends-on): Likewise.
68580         * modules/mbuiter (Depends-on): Likewise.
68581         Reported by Simon Josefsson.
68582
68583 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         Work around problem reported by Steven M. Schweda in
68586         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68587         Tru64 5.1B with the Compaq compiler environment installed declares
68588         an 'isblank' function but does not define it in the C library.
68589         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68590         * lib/regex_internal.h (isblank): Likewise.
68591         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68592         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68593
68594 2007-06-05  Bruno Haible  <bruno@clisp.org>
68595
68596         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68597         ia64.
68598         * modules/printf-safe: New file.
68599         * modules/fprintf-posix (Depends-on): Add printf-safe.
68600         * modules/printf-posix (Depends-on): Likewise.
68601         * modules/snprintf-posix (Depends-on): Likewise.
68602         * modules/sprintf-posix (Depends-on): Likewise.
68603         * modules/vasnprintf-posix (Depends-on): Likewise.
68604         * modules/vasprintf-posix (Depends-on): Likewise.
68605         * modules/vfprintf-posix (Depends-on): Likewise.
68606         * modules/vprintf-posix (Depends-on): Likewise.
68607         * modules/vsnprintf-posix (Depends-on): Likewise.
68608         * modules/vsprintf-posix (Depends-on): Likewise.
68609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68610         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68611         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68612         "no" on i386, x86_64, ia64.
68613         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68614         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68615         on i386, x86_64, ia64.
68616         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68617         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68618         on i386, x86_64, ia64.
68619         * tests/test-vasnprintf-posix.c: Include float.h.
68620         (LDBL80_WORDS): New macro.
68621         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68622         on i386, x86_64, ia64.
68623         * tests/test-vasprintf-posix.c: Include float.h.
68624         (LDBL80_WORDS): New macro.
68625         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68626         on i386, x86_64, ia64.
68627         * tests/test-snprintf-posix.c: Include float.h.
68628         * tests/test-sprintf-posix.c: Likewise.
68629         * tests/test-vsnprintf-posix.c: Likewise.
68630         * tests/test-vsprintf-posix.c: Likewise.
68631
68632 2007-06-05  Bruno Haible  <bruno@clisp.org>
68633
68634         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68635         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68636         non-IEEE numbers on i386, x86_64, ia64.
68637         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68638         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68639         * tests/test-isnanl.h: Include float.h.
68640         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68641
68642 2007-06-05  Bruno Haible  <bruno@clisp.org>
68643
68644         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68645         also the %a / %A. Handle the %a / %A code before this extra handling.
68646
68647 2007-06-05  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68650         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68651
68652 2007-06-05  Bruno Haible  <bruno@clisp.org>
68653
68654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68655         typo in variable name.
68656
68657 2007-06-05  Eric Blake  <ebb9@byu.net>
68658
68659         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68660         Reported by Simon Josefsson.
68661
68662 2007-06-04  Bruno Haible  <bruno@clisp.org>
68663
68664         Avoid test failures on some PowerPC platforms.
68665         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68666         Define differently for PowerPC.
68667         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68668         Reported by Gary V. Vaughan <gary@gnu.org>.
68669
68670 2007-06-02  Bruno Haible  <bruno@clisp.org>
68671
68672         Fix test-stdint failure on FreeBSD/ia64.
68673         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68674         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68675         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68676         * doc/headers/stdint.texi: Update.
68677
68678 2007-06-01  Bruno Haible  <bruno@clisp.org>
68679
68680         * tests/test-binary-io.c (main): Pass a third argument to open().
68681         Reported by Gary V. Vaughan <gary@gnu.org>.
68682
68683 2007-06-01  Bruno Haible  <bruno@clisp.org>
68684
68685         * doc/functions/frexpl.texi: Update for mingw.
68686
68687 2007-06-01  Bruno Haible  <bruno@clisp.org>
68688
68689         * tests/test-lseek.c (main): Disable test of errno for invalid third
68690         argument.
68691         * doc/functions/lseek.texi: Update.
68692         Reported by Gary V. Vaughan <gary@gnu.org>.
68693
68694 2007-05-28  Bruno Haible  <bruno@clisp.org>
68695
68696         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68697
68698 2007-05-31  Eric Blake  <ebb9@byu.net>
68699
68700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68701         cross compiling.
68702
68703 2007-05-30  Eric Blake  <ebb9@byu.net>
68704         and Bruno Haible  <bruno@clisp.org>
68705
68706         Work around mingw test failures exposed by m4-1.4.9b.
68707         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68708         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68709         moment.
68710
68711 2007-05-30  Bruno Haible  <bruno@clisp.org>
68712
68713         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68714         assuming that they are closed. Needed on HP-UX 11.
68715
68716 2007-05-29  Bruno Haible  <bruno@clisp.org>
68717
68718         Fix a problem with #include_next.
68719         * lib/dirent_.h: Split the double-inclusion guard.
68720         * lib/fcntl_.h: Likewise.
68721         * lib/float_.h: Likewise.
68722         * lib/iconv_.h: Likewise.
68723         * lib/inttypes_.h: Likewise.
68724         * lib/locale_.h: Likewise.
68725         * lib/math_.h: Likewise.
68726         * lib/netinet_in_.h: Likewise.
68727         * lib/search_.h: Likewise.
68728         * lib/signal_.h: Likewise.
68729         * lib/stdint_.h: Likewise.
68730         * lib/stdio_.h: Likewise.
68731         * lib/stdlib_.h: Likewise.
68732         * lib/string_.h: Likewise.
68733         * lib/sys_select_.h: Likewise.
68734         * lib/sys_socket_.h: Likewise.
68735         * lib/sys_stat_.h: Likewise.
68736         * lib/sys_time_.h: Likewise.
68737         * lib/sysexits_.h: Likewise.
68738         * lib/time_.h: Likewise.
68739         * lib/unistd_.h: Likewise.
68740         * lib/wchar_.h: Likewise.
68741         * lib/wctype_.h: Likewise.
68742
68743 2007-05-29  Bruno Haible  <bruno@clisp.org>
68744
68745         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68746         for the moment.
68747
68748 2007-05-29  Bruno Haible  <bruno@clisp.org>
68749
68750         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68751         invocation.
68752         Reported by Eric Blake.
68753
68754 2007-05-29  Bruno Haible  <bruno@clisp.org>
68755
68756         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68757         compiling case.
68758
68759 2007-05-29  Eric Blake  <ebb9@byu.net>
68760             Bruno Haible  <bruno@clisp.org>
68761
68762         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68763         cross compiles.
68764
68765 2007-05-28  Eric Blake  <ebb9@byu.net>
68766
68767         * modules/closein-tests (test_closein_LDADD): Support test on
68768         cygwin with libtool.
68769
68770 2007-05-28  Bruno Haible  <bruno@clisp.org>
68771
68772         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68776         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68777         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68778         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68779         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68780         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68781
68782 2007-05-28  Eric Blake  <ebb9@byu.net>
68783
68784         Unconditionally include <config.h> in unit tests.
68785         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68786         * tests/test-allocsa.c, tests/test-arcfour.c,
68787         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68788         tests/test-array_list.c, tests/test-array_oset.c,
68789         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68790         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68791         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68792         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68793         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68794         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68795         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68796         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68797         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68798         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68799         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68800         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68801         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68802         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68803         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68804         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68805         test-md5.c, test-memmem.c, test-printf-posix.c,
68806         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68807         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68808         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68809         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68810         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68811         test-vasnprintf-posix2.c, test-vasnprintf.c,
68812         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68813         test-vfprintf-posix.c, test-vprintf-posix.c,
68814         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68815         test-xvasprintf.c: Likewise.
68816
68817 2007-05-28  Bruno Haible  <bruno@clisp.org>
68818
68819         * gnulib-tool (func_import): Remember the --with-tests command-line
68820         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68821         Reported by Eric Blake.
68822
68823 2007-05-28  Bruno Haible  <bruno@clisp.org>
68824
68825         * modules/ftell-tests: New file.
68826         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68827         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68828
68829         * lib/ftell.c: New file.
68830         * modules/ftell: New file.
68831         * m4/ftell.m4: New file.
68832         * doc/functions/ftell.texi: Update.
68833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68834         REPLACE_FTELL.
68835         * lib/stdio_.h (rpl_ftell): New declaration.
68836         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68837         REPLACE_FTELL.
68838
68839 2007-05-28  Eric Blake  <ebb9@byu.net>
68840
68841         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68842
68843 2007-05-28  Bruno Haible  <bruno@clisp.org>
68844
68845         * modules/fseek-tests: New file.
68846         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68847         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68848
68849         * lib/fseek.c: New file.
68850         * modules/fseek: New file.
68851         * m4/fseek.m4: New file.
68852         * doc/functions/fseek.texi: Update.
68853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68854         REPLACE_FSEEK.
68855         * lib/stdio_.h (rpl_fseek): New declaration.
68856         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68857         REPLACE_FSEEK.
68858
68859 2007-05-28  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/stdio_.h (fflush): More comments.
68862
68863 2007-05-28  Bruno Haible  <bruno@clisp.org>
68864
68865         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68866         runtime test.
68867
68868 2007-05-28  Eric Blake  <ebb9@byu.net>
68869
68870         Improve lseek module.
68871         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68872         * lib/unistd_.h (lseek): Scale back link warning message.
68873         * tests/test-lseek.c: Beef up test.
68874         * tests/test-lseek.sh: Exercise more facets of lseek.
68875         Reported by Bruno Haible.
68876
68877 2007-05-28  Bruno Haible  <bruno@clisp.org>
68878
68879         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68880         to define.
68881
68882 2007-05-27  Bruno Haible  <bruno@clisp.org>
68883
68884         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68885
68886 2007-05-27  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/openmp: New file.
68889         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68890         Noah Misch.
68891
68892 2007-05-26  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/chdir-long (Depends-on): Add fchdir.
68895         * modules/chdir-safer (Depends-on): Likewise.
68896         * modules/fts (Depends-on): Likewise.
68897         * modules/fts-lgpl (Depends-on): Likewise.
68898         * modules/openat (Depends-on): Likewise.
68899         * modules/savewd (Depends-on): Likewise.
68900
68901 2007-05-24  Eric Blake  <ebb9@byu.net>
68902
68903         Fix lseek on mingw.
68904         * modules/lseek: New module.
68905         * m4/lseek.m4: New file.
68906         * lib/lseek.c: New file.
68907         * modules/lseek-tests: New file.
68908         * tests/test-lseek.c: New file.
68909         * tests/test-lseek.sh: New file.
68910         * MODULES.html.sh: Document lseek module.
68911         * modules/fflush (Depends-on): Add lseek, fseeko.
68912         * modules/fseeko (Depends-on): Likewise.
68913         * modules/ftello (Depends-on): Likewise.
68914         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68915         broken.
68916         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68917         broken.
68918         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68919         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68920         * lib/ftello.c (rpl_ftello): Likewise.
68921         * tests/test-fseeko.c (main): Test this.
68922         * tests/test-fseeko.sh: Likewise.
68923         * tests/test-ftello.c (main): Likewise.
68924         * tests/test-ftello.sh: Likewise.
68925         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68926         implies replacing fseek.
68927         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68928         HAVE_FTELLO.
68929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68930         * modules/unistd (Makefile.am): Likewise.
68931         * lib/unistd_.h (lseek): Declare a replacement.
68932         * doc/functions/lseek.texi (lseek): Document this fix.
68933         * doc/functions/fseek.texi (fseek): Likewise.
68934         * doc/functions/ftell.texi (ftell): Likewise.
68935
68936 2007-05-24  Bruno Haible  <bruno@clisp.org>
68937
68938         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68939         in the printed representation of a NaN.
68940         * tests/test-vasprintf-posix.c (test_function): Likewise.
68941         * tests/test-snprintf-posix.h (test_function): Likewise.
68942         * tests/test-sprintf-posix.h (test_function): Likewise.
68943         Reported by Eric Blake.
68944
68945 2007-05-23  Eric Blake  <ebb9@byu.net>
68946
68947         Fix fseeko/ftello on cygwin 1.5.24.
68948         * doc/functions/fseeko.texi (fseeko): Document the fix.
68949         * doc/functions/ftello.texi (ftello): Document the fix.
68950         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68951         * doc/functions/stdout.text (stdout): New file.
68952         * doc/functions/stderr.text (stderr): New file.
68953         * doc/gnulib.texi (Function Substitutes): Use new files.
68954         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68955         prior to 1.7.0.
68956         * tests/test-ftello.c (main): Likewise for ftello.
68957         * tests/test-fseeko.sh: New file.
68958         * tests/test-ftello.sh: New file.
68959         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68960         with seekable stdin.
68961         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68962         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68963         (gl_REPLACE_FSEEKO): New macro.
68964         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68965         * modules/fseeko (Files): Distribute fseeko.c.
68966         * modules/ftello (Files): Distribute ftello.c.
68967         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68968         mode.
68969         * lib/ftello.c (rpl_ftello): New file.
68970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68971         fseeko, ftello.
68972         (gl_STDIN_LARGE_OFFSET): New macro.
68973         * modules/stdio (Makefile.am): Perform the replacement.
68974         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68975
68976 2007-05-23  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68979         GNULIB_POSIXCHECK is defined.
68980
68981 2007-05-21  Bruno Haible  <bruno@clisp.org>
68982
68983         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68984         Check also the output for NaN arguments. When cross-compiling, guess
68985         no on IRIX.
68986         * lib/vasnprintf.c: Update comments.
68987         * tests/test-vasnprintf-posix.c (strisnan): New function.
68988         (test_function): Use it.
68989         * tests/test-vasprintf-posix.c (strisnan): New function.
68990         (test_function): Use it.
68991         * tests/test-snprintf-posix.h (strisnan): New function.
68992         (test_function): Use it.
68993         * tests/test-sprintf-posix.h (strisnan): New function.
68994         (test_function): Use it.
68995         Reported by Eric Blake.
68996
68997 2007-05-20  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69000         numbers that fails on BeOS.
69001         * doc/functions/frexpl.texi: Update.
69002
69003 2007-05-20  Jim Meyering  <jim@meyering.net>
69004
69005         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69006         forced upon us by glibc-2.6.
69007
69008 2007-05-20  Bruno Haible  <bruno@clisp.org>
69009
69010         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69011         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69012         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69013         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69014         NEED_PRINTF_INFINITE.
69015         (is_infinitel): New function.
69016         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69018         gl_PREREQ_VASNPRINTF_INFINITE.
69019         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69021         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69022         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69023         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69024         gl_PREREQ_VASNPRINTF_INFINITE.
69025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69032         * doc/functions/fprintf.texi: Update.
69033         * doc/functions/printf.texi: Update.
69034         * doc/functions/snprintf.texi: Update.
69035         * doc/functions/sprintf.texi: Update.
69036         * doc/functions/vfprintf.texi: Update.
69037         * doc/functions/vprintf.texi: Update.
69038         * doc/functions/vsnprintf.texi: Update.
69039         * doc/functions/vsprintf.texi: Update.
69040
69041 2007-05-20  Bruno Haible  <bruno@clisp.org>
69042
69043         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69044         was not found in libc.
69045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69046
69047 2007-05-20  Bruno Haible  <bruno@clisp.org>
69048
69049         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69050         printed as "-nan" instead of "nan".
69051         * tests/test-vasprintf-posix.c (test_function): Likewise.
69052         * tests/test-snprintf-posix.h (test_function): Likewise.
69053         * tests/test-sprintf-posix.h (test_function): Likewise.
69054         Needed for HP-UX 11.
69055
69056 2007-05-20  Jim Meyering  <jim@meyering.net>
69057
69058         Fix buggy test for the fchownat-deref bug.
69059         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69060         symlink required for the run-test.  Without it, this test would
69061         always declare that fchownat doesn't work, and client code would
69062         unnecessarily use the replacement function with fixed libc.
69063         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69064         Reported by Greg Schafer.
69065
69066 2007-05-19  Bruno Haible  <bruno@clisp.org>
69067
69068         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69069         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69070         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69071         Needed for IRIX 6.5 and Solaris 2.5.1.
69072
69073 2007-05-19  Bruno Haible  <bruno@clisp.org>
69074
69075         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69076         (test_function): Skip tests involving -0.0 on platforms where
69077         -0.0 = 0.0.
69078         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69079         (test_function): Skip tests involving -0.0 on platforms where
69080         -0.0 = 0.0.
69081         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69082         (test_function): Skip tests involving -0.0 on platforms where
69083         -0.0 = 0.0.
69084         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69085         (test_function): Skip tests involving -0.0 on platforms where
69086         -0.0 = 0.0.
69087         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69088         tests.
69089         * tests/test-printf-posix.h (test_function): Likewise.
69090         * tests/test-printf-posix.output: Remove all -0.0 related results.
69091         Needed for IRIX 6.5.
69092
69093 2007-05-19  Bruno Haible  <bruno@clisp.org>
69094
69095         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69096         printed as "nan0x7fffffff" instead of "nan".
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         * tests/test-fprintf-posix.h (NaN): Remove macro.
69101         (test_function): Remove all NaN related tests.
69102         * tests/test-printf-posix.h (NaN): Remove macro.
69103         (test_function): Remove all NaN related tests.
69104         * tests/test-printf-posix.output: Remove all NaN related results.
69105         Needed for IRIX 6.5.
69106
69107 2007-05-19  Bruno Haible  <bruno@clisp.org>
69108
69109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69111
69112 2007-05-19  Bruno Haible  <bruno@clisp.org>
69113
69114         * lib/float_.h: New file.
69115         * m4/float_h.m4: New file.
69116         * modules/float: New file.
69117         * modules/isnanl (Dependencies): Add float.
69118         * modules/isnanl-nolibm (Dependencies): Likewise.
69119         * modules/mathl (Dependencies): Likewise.
69120         * modules/printf-frexpl (Dependencies): Likewise.
69121         * modules/signbit (Dependencies): Likewise.
69122         * modules/vasnprintf (Dependencies): Likewise.
69123         * doc/headers/float.texi: Update.
69124
69125 2007-05-19  Jim Meyering  <jim@meyering.net>
69126
69127         * lib/utimens.c (gl_futimens): Rename from futimens,
69128         now that glibc-2.6 declares futimens.
69129         * lib/utimens.h: Likewise.
69130
69131 2007-05-19  Bruno Haible  <bruno@clisp.org>
69132
69133         Avoid test failures on mingw.
69134         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69135         * tests/test-printf-posix.sh: Likewise.
69136         * tests/test-vfprintf-posix.sh: Likewise.
69137         * tests/test-vprintf-posix.sh: Likewise.
69138
69139 2007-05-19  Bruno Haible  <bruno@clisp.org>
69140
69141         Fix *printf result for NaN, Inf, -0.0 on mingw.
69142         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69143         * lib/vasnprintf.c: Include math.h and isnan.h.
69144         (is_infinite_or_zero): New function.
69145         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69146         values in the %f, %F, %e, %E, %g, %G directives.
69147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69149         gl_PRINTF_INFINITE and test its result. Invoke
69150         gl_PREREQ_VASNPRINTF_INFINITE.
69151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69152         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69153         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69155         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69156         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69157         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69158         * doc/functions/fprintf.texi: Update.
69159         * doc/functions/printf.texi: Update.
69160         * doc/functions/snprintf.texi: Update.
69161         * doc/functions/sprintf.texi: Update.
69162         * doc/functions/vfprintf.texi: Update.
69163         * doc/functions/vprintf.texi: Update.
69164         * doc/functions/vsnprintf.texi: Update.
69165         * doc/functions/vsprintf.texi: Update.
69166
69167 2007-05-19  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69170         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69171         Instead of multiplying with 10^k, set extra_zeroes to k.
69172         (scale10_round_long_double): Remove function.
69173
69174 2007-05-18  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69177         introduced on 2007-05-06.
69178
69179 2007-05-18  Bruno Haible  <bruno@clisp.org>
69180
69181         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69182         %g directives.
69183         * tests/test-vasprintf-posix.c (test_function): Likewise.
69184         * tests/test-snprintf-posix.h (test_function): Likewise.
69185         * tests/test-sprintf-posix.h (test_function): Likewise.
69186
69187 2007-05-18  Bruno Haible  <bruno@clisp.org>
69188
69189         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69190         (strmatch): New function.
69191         (test_function): Test the %f directive on numbers of various exponents.
69192         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69193         (strmatch): New function.
69194         (test_function): Test the %f directive on numbers of various exponents.
69195         * tests/test-snprintf-posix.h (strmatch): New function.
69196         (test_function): Test the %f directive on numbers of various exponents.
69197         * tests/test-sprintf-posix.h (strmatch): New function.
69198         (test_function): Test the %f directive on numbers of various exponents.
69199         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69200         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69201         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69202         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69203
69204 2007-05-18  Bruno Haible  <bruno@clisp.org>
69205
69206         Add support for 'long double' number output.
69207         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69208         * lib/vasnprintf.c: Include math.h and float+.h.
69209         (mp_limb_t): New type.
69210         (GMP_LIMB_BITS): New macro.
69211         (mp_twolimb_t): New type.
69212         (GMP_TWOLIMB_BITS): New macro.
69213         (mpn_t): New type.
69214         (multiply, divide, convert_to_decimal, decode_long_double,
69215         scale10_round_long_double, scale10_round_decimal_long_double,
69216         floorlog10l): New functions.
69217         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69218         for the %f, %F, %e, %E, %g, %G directives.
69219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69221         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69222         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69225         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69227         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69229         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69230         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69231         * modules/snprintf-posix (Depends-on): Likewise.
69232         * modules/sprintf-posix (Depends-on): Likewise.
69233         * modules/vasnprintf-posix (Depends-on): Likewise.
69234         * modules/vasprintf-posix (Depends-on): Likewise.
69235         * modules/vfprintf-posix (Depends-on): Likewise.
69236         * modules/vsnprintf-posix (Depends-on): Likewise.
69237         * modules/vsprintf-posix (Depends-on): Likewise.
69238         * modules/vasnprintf (Files): Add lib/float+.h.
69239         * doc/functions/fprintf.texi: Update.
69240         * doc/functions/printf.texi: Update.
69241         * doc/functions/snprintf.texi: Update.
69242         * doc/functions/sprintf.texi: Update.
69243         * doc/functions/vfprintf.texi: Update.
69244         * doc/functions/vprintf.texi: Update.
69245         * doc/functions/vsnprintf.texi: Update.
69246         * doc/functions/vsprintf.texi: Update.
69247
69248 2007-05-18  Bruno Haible  <bruno@clisp.org>
69249
69250         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69251
69252 2007-05-18  Bruno Haible  <bruno@clisp.org>
69253
69254         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69255         for printing 64-bit integers. Needed for mingw.
69256
69257 2007-05-18  Bruno Haible  <bruno@clisp.org>
69258
69259         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69260         gl_FUNC_FREXPL_WORKS.
69261         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69262
69263 2007-05-18  Bruno Haible  <bruno@clisp.org>
69264
69265         * modules/frexpl-nolibm-tests: New file.
69266
69267         * modules/frexpl-nolibm: New file.
69268         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69269
69270 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69273         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69274         GCC 4.2, which otherwise issues a lot of warnings.
69275         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69276         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69277         Likewise.
69278         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69279         * modules/iconv_open (iconv.h): Likewise.
69280         * modules/locale (locale.h): Likewise.
69281         * modules/netinet_in (netinet/in.h): Likewise.
69282         * modules/sys_select (sys_select.h): Likewise.
69283         * modules/sys_socket (sys/socket.h): Likewise.
69284         * modules/sys_stat (sys/stat.h): Likewise.
69285         * modules/sysexits (sysexits.h): Likewise.
69286         * modules/unistd (unistd.h): Likewise.
69287
69288 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69289
69290         * modules/closein-tests (Makefile.am): Distribute
69291         `test-closein.sh'.
69292
69293 2007-05-17  Bruno Haible  <bruno@clisp.org>
69294
69295         * tests/test-printf-posix.output: Renamed from
69296         tests/test-fprintf-posix.out.
69297         * modules/fprintf-posix-tests: Update.
69298         * modules/printf-posix-tests: Update.
69299         * modules/vfprintf-posix-tests: Update.
69300         * modules/vprintf-posix-tests: Update.
69301         * tests/test-fprintf-posix.sh: Update.
69302         * tests/test-printf-posix.sh: Update.
69303         * tests/test-vfprintf-posix.sh: Update.
69304         * tests/test-vprintf-posix.sh: Update.
69305         Reported by Ralf Wildenhues.
69306
69307 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69310         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69311         GCC 4.2, which otherwise issues a lot of warnings.
69312         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69313         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69314         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69315         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69316         it should no longer be needed.
69317         * lib/string_.h: Likewise.
69318         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69319         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69320         * modules/inttypes (inttypes.h): Likewise.
69321         * modules/math (math.h): Likewise.
69322         * modules/search (search.h): Likewise.
69323         * modules/signal (signal.h): Likewise.
69324         * modules/stdint (stdint.h): Likewise.
69325         * modules/stdio (stdio.h): Likewise.
69326         * modules/stdlib (stdlib.h): Likewise.
69327         * modules/string (string.h): Likewise.
69328         * modules/sys_time (sys/time.h): Likewise.
69329         * modules/time (time.h): Likewise.
69330         * modules/wchar (wchar.h): Likewise.
69331         * modules/wctype (wtype.h): Likewise.
69332
69333 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69334
69335         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69336
69337 2007-05-13  Bruno Haible  <bruno@clisp.org>
69338
69339         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69340         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69341         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69342         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69343         (gl_PREREQ_STRTOK_R): Don't require it here.
69344
69345 2007-05-13  Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69348         when used in C++ mode.
69349
69350 2007-05-12  Bruno Haible  <bruno@clisp.org>
69351
69352         * lib/linebuffer.h: Tweak doc.
69353         * lib/linebuffer.c: Likewise.
69354
69355 2007-05-12  James Youngman  <jay@gnu.org>
69356
69357         * lib/linebuffer.c (readlinebuffer_delim): New function,
69358         like readlinebuffer, but use a caller-specified delimiter.
69359         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69360         as the delimiter.
69361         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69362
69363 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69364
69365         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69366         * modules/openat (Files): Remove openat-die.c.
69367         (Depends-on): Add openat-die.
69368         * modules/openat-die: New module.
69369
69370 2007-05-06  Bruno Haible  <bruno@clisp.org>
69371
69372         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69373         Update with info about Cygwin.
69374         * doc/functions/fprintf.texi: Update.
69375         * doc/functions/printf.texi: Update.
69376         * doc/functions/snprintf.texi: Update.
69377         * doc/functions/sprintf.texi: Update.
69378         * doc/functions/vfprintf.texi: Update.
69379         * doc/functions/vprintf.texi: Update.
69380         * doc/functions/vsnprintf.texi: Update.
69381         * doc/functions/vsprintf.texi: Update.
69382         Reported by Eric Blake.
69383
69384 2007-05-06  Bruno Haible  <bruno@clisp.org>
69385
69386         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69387         padding ourselves for the floating-point directives.
69388         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69391         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69392         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69400         * tests/test-snprintf-posix.h (test_function): Also check the width
69401         and some flags in the %f directive.
69402         * tests/test-sprintf-posix.h (test_function): Likewise.
69403         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69404         * tests/test-vasprintf-posix.c (test_function): Likewise.
69405         * doc/functions/fprintf.texi: Update.
69406         * doc/functions/printf.texi: Update.
69407         * doc/functions/snprintf.texi: Update.
69408         * doc/functions/sprintf.texi: Update.
69409         * doc/functions/vfprintf.texi: Update.
69410         * doc/functions/vprintf.texi: Update.
69411         * doc/functions/vsnprintf.texi: Update.
69412         * doc/functions/vsprintf.texi: Update.
69413
69414 2007-05-06  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69417         pass the ' flag character to sprintf or snprintf.
69418         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69421         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69422         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69430         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69431         flag.
69432         * tests/test-sprintf-posix.h (test_function): Likewise.
69433         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69434         * tests/test-vasprintf-posix.c (test_function): Likewise.
69435         * doc/functions/fprintf.texi: Update.
69436         * doc/functions/printf.texi: Update.
69437         * doc/functions/snprintf.texi: Update.
69438         * doc/functions/sprintf.texi: Update.
69439         * doc/functions/vfprintf.texi: Update.
69440         * doc/functions/vprintf.texi: Update.
69441         * doc/functions/vsnprintf.texi: Update.
69442         * doc/functions/vsprintf.texi: Update.
69443
69444 2007-05-01  Bruno Haible  <bruno@clisp.org>
69445
69446         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69447
69448 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69451         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69452
69453 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69456         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69458
69459 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69460
69461         * lib/argp-help.c (struct hol_entry): New member `ord'.
69462         (HOL_ENTRY_PTRCMP): Use ord for comparison
69463         (hol_sort): Initialize ord.
69464
69465 2007-05-01  Bruno Haible  <bruno@clisp.org>
69466
69467         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69468         Reported by Eric Blake.
69469         * doc/gnulib.texi (Function Substitutes): Update.
69470
69471 2007-05-01  Bruno Haible  <bruno@clisp.org>
69472
69473         * doc/functions.texi: Remove file, now redundant through
69474         doc/functions/*.texi.
69475
69476 2007-05-01  Bruno Haible  <bruno@clisp.org>
69477
69478         * modules/argp (Depends-on): Add sleep.
69479
69480 2007-05-01  Bruno Haible  <bruno@clisp.org>
69481
69482         * modules/sleep-tests: New file.
69483         * tests/test-sleep.c: New file.
69484
69485         * modules/sleep: New file.
69486         * lib/sleep.c: New file.
69487         * m4/sleep.m4: New file.
69488         * lib/unistd_.h (sleep): New declaration.
69489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69490         HAVE_SLEEP.
69491         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69492         * doc/functions/sleep.texi: Document the sleep module.
69493
69494 2007-05-01  Bruno Haible  <bruno@clisp.org>
69495
69496         * lib/sigprocmask.h: Remove file.
69497         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69498         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69500         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69501         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69502         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69503         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69504         HAVE_SIGSET_T as a shell variable.
69505         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69506         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69507         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69508         (Depends-on): Add signal. Remove verify.
69509         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69510         (Include): Mention <signal.h> instead of sigprocmask.h.
69511         * NEWS: Mention the change.
69512         * lib/fatal-signal.c: Don't include sigprocmask.h.
69513
69514 2007-05-01  Bruno Haible  <bruno@clisp.org>
69515
69516         * modules/signal: New file.
69517         * lib/signal_.h: New file.
69518         * m4/signal_h.m4: New file.
69519
69520 2007-05-01  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69523         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69524         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69525         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69526
69527 2007-05-01  Bruno Haible  <bruno@clisp.org>
69528
69529         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69530         configure time.
69531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69532         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69533         * modules/sys_stat (Makefile.am): Substitute their values into
69534         sys/stat.h.
69535
69536 2007-05-01  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69539         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69540         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69541
69542 2007-05-01  Bruno Haible  <bruno@clisp.org>
69543
69544         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69545         'assert' module here.
69546
69547 2007-05-01  Bruno Haible  <bruno@clisp.org>
69548
69549         * doc/functions/*.texi: New files.
69550         * doc/functions/google-ranking.txt: New file.
69551         * doc/gnulib.texi (Function Substitutes): New chapter.
69552         (ctime, inet_ntoa): Remove sections.
69553         * doc/ctime.texi: Remove file.
69554         * doc/inet_ntoa.texi: Remove file.
69555         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69556         dependencies.
69557         (%.info): New rule, specifying a --reference-limit.
69558
69559 2007-05-01  Bruno Haible  <bruno@clisp.org>
69560
69561         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69562
69563 2007-05-01  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69566         the portability of 'mkdir' to mingw systems.
69567
69568 2007-05-01  Bruno Haible  <bruno@clisp.org>
69569
69570         * doc/headers/google-ranking.txt: New file.
69571
69572 2007-04-30  Eric Blake  <ebb9@byu.net>
69573
69574         Prefer fseeko to fseek.
69575         * modules/getpass (Depends-on): Add fseeko.
69576         * lib/getpass.c (getpass): Use fseeko, not fseek.
69577
69578 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69579
69580         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69581         assumes the sorting is stable, while most qsort implementations
69582         are not.  Use argument addresses to ensure they never compare as
69583         equal.
69584
69585         * tests/test-argp-2.sh (usage-indent test): Fix output
69586         (func_compare): Restore diff options
69587         * tests/test-argp.c: Restore #include "progname.h"
69588
69589 2007-04-29  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69593         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69595         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69596         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69597         (TESTS, check_PROGRAMS): Add test-snprintf.
69598         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69599         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69600         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69601         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69602         assertions that fail on HP-UX, OSF/1, or IRIX.
69603         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69604
69605 2007-04-29  Bruno Haible  <bruno@clisp.org>
69606
69607         * MODULES.html.sh (posix_functions): Remove 'contents'.
69608
69609 2007-04-29  Karl Berry  <karl@gnu.org>
69610
69611         * config/srclist.txt (gendocs_template_min): new entry.
69612
69613 2007-04-29  Bruno Haible  <bruno@clisp.org>
69614
69615         Work around fpurge bug on BSD systems.
69616         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69618         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69619         fpurge to rpl_fpurge if the system already has this function.
69620         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69621         the case where the system already has this function. Correct invariants
69622         on BSD systems.
69623         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69624         BSD systems.
69625
69626 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69627
69628         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69629         proposed by Sven Verdoolaege.
69630
69631         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69632         options.
69633         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69634         (usage and help tests): Update
69635
69636 2007-04-29  Bruno Haible  <bruno@clisp.org>
69637
69638         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69639         Print more information in case of failure. Disable a test on BeOS.
69640
69641 2007-04-29  Bruno Haible  <bruno@clisp.org>
69642
69643         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69644         This helps debugging on systems on which no gdb is available.
69645
69646 2007-04-29  Bruno Haible  <bruno@clisp.org>
69647
69648         * lib/freading.h: Improve comments.
69649         * lib/fwriting.h: Likewise.
69650         * tests/test-freading.c (main): Don't check freading immediately after
69651         repositioning. Needed for glibc.
69652
69653 2007-04-29  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/freading.c (freading): Trivial simplification.
69656
69657 2007-04-28  Bruno Haible  <bruno@clisp.org>
69658
69659         * tests/test-fwriting.c (main): Also test the interaction between
69660         fflush and fwriting.
69661         * modules/fwriting-tests (Depends-on): Add fflush.
69662
69663         * tests/test-freading.c (main): Also test the interaction between
69664         fflush and freading.
69665         * modules/freading-tests (Depends-on): Add fflush.
69666
69667 2007-04-28  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69670         fseeko and ftello.
69671         Suggested by Eric Blake.
69672
69673 2007-04-28  Jim Meyering  <jim@meyering.net>
69674
69675         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69676         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69677         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69678
69679 2007-04-27  Eric Blake  <ebb9@byu.net>
69680
69681         * doc/headers/assert.texi (assert.h): Document assert module use.
69682
69683 2007-04-27  Bruno Haible  <bruno@clisp.org>
69684
69685         * doc/headers/*.texi: New files.
69686         * doc/gnulib.texi (Header File Substitutes): New chapter.
69687         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69688         dependencies.
69689         (standards.info ,standards.html, standards.dvi): Update dependencies.
69690         (mostlyclean, clean): New targets.
69691
69692 2007-04-27  Bruno Haible  <bruno@clisp.org>
69693
69694         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69695         * modules/sysexits (Files, Makefile.am): Update.
69696
69697         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69698         * modules/sys_socket (Files, Makefile.am): Update.
69699
69700         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69701         * modules/sys_stat (Files, Makefile.am): Update.
69702
69703 2007-04-27  Eric Blake  <ebb9@byu.net>
69704
69705         * lib/freading.h: Improve comments.
69706         * lib/fwriting.h: Likewise.
69707         * lib/fflush.c: Likewise.
69708
69709         Fix closein for mingw.
69710         * modules/closein-tests: Add tests for closein.
69711         * tests/test-closein.c: New file.
69712         * tests/test-closein.sh: Likewise.
69713         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69714         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69715
69716 2007-04-27  Bruno Haible  <bruno@clisp.org>
69717
69718         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69719         version is < 6.
69720         * lib/math_.h [__DECC]: Likewise.
69721         * lib/stdio_.h [__DECC]: Likewise.
69722         * lib/stdlib_.h [__DECC]: Likewise.
69723         * lib/string_.h [__DECC]: Likewise.
69724         * lib/time_.h [__DECC]: Likewise.
69725         * lib/wchar_.h [__DECC]: Likewise.
69726         * lib/wctype_.h [__DECC]: Likewise.
69727
69728 2007-04-27  Bruno Haible  <bruno@clisp.org>
69729
69730         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69731
69732 2007-04-27  Bruno Haible  <bruno@clisp.org>
69733
69734         * lib/fflush.c: Add comments.
69735         * modules/fpurge-tests (Depends-on): Add fflush.
69736         * modules/freadable-tests (Depends-on): Likewise.
69737         * modules/fwritable-tests (Depends-on): Likewise.
69738
69739 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69740
69741         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69742         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69743         Report by Bruno Haible <bruno@clisp.org>.
69744
69745 2007-04-26  Eric Blake  <ebb9@byu.net>
69746
69747         Fix fflush on mingw.
69748         * modules/fflush (Depends-on): Add freading.
69749         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69750         but unread data.
69751
69752 2007-04-26  Eric Blake  <ebb9@byu.net>
69753         and Bruno Haible  <bruno@clisp.org>
69754
69755         Implement freading and fwriting.
69756         * lib/freading.c: New file.
69757         * lib/freading.h: Likewise.
69758         * m4/freading.m4: Likewise.
69759         * modules/freading: Likewise.
69760         * modules/freading-tests: Likewise.
69761         * tests/test-freading.c: Likewise.
69762         * lib/fwriting.c: New file.
69763         * lib/fwriting.h: Likewise.
69764         * m4/fwriting.m4: Likewise.
69765         * modules/fwriting: Likewise.
69766         * modules/fwriting-tests: Likewise.
69767         * tests/test-fwriting.c: Likewise.
69768         * MODULES.html.sh (File stream based Input/Output): Mention them.
69769
69770 2007-04-26  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69773         'long' when we assume it.
69774         Suggested by Eric Blake.
69775
69776 2007-04-26  Bruno Haible  <bruno@clisp.org>
69777
69778         Ensure fseeko, ftello are declared on glibc systems.
69779         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69780         * modules/fseeko (configure.ac-early): Likewise.
69781         * modules/ftello (configure.ac-early): Likewise.
69782         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69783         AC_FUNC_FSEEKO for this.
69784         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69785         (gl_CHECK_FSEEKO): Remove macro.
69786
69787 2007-04-26  Bruno Haible  <bruno@clisp.org>
69788
69789         * tests/test-fflush.c (main): Also check the ftell result after
69790         fflush and fseek/fseeko.
69791         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69792         file descriptor position cache in the stream.
69793         * lib/fseeko.c (rpl_fseeko): Likewise.
69794
69795 2007-04-26  Bruno Haible  <bruno@clisp.org>
69796
69797         * modules/fflush-tests (Depends-on): Add fseeko.
69798
69799 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69800             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69801
69802         * lib/argz_.h: ensure error_t definition is obtained in same
69803         mechanism system argz.h would have.
69804         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69805         argz facilities are known bad.  Err on the side of caution if
69806         cross-compiling.
69807
69808 2007-04-25  Eric Blake  <ebb9@byu.net>
69809
69810         * lib/fpurge.c (includes): Use stdlib.h for free.
69811         * tests/test-fflush.c (main): Also test fflush-fseeko.
69812
69813 2007-04-25  Bruno Haible  <bruno@clisp.org>
69814
69815         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69816         * lib/fseeko.c: New file.
69817         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69818         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69819         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69820         gl_FUNC_FSEEKO.
69821         (gl_FUNC_FSEEKO): Invoke it.
69822         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69823         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69824         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69825
69826 2007-04-25  Bruno Haible  <bruno@clisp.org>
69827
69828         * modules/fflush (Depends-on): Add ftello.
69829
69830 2007-04-25  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/ftello-tests: New file.
69833         * tests/test-ftello.c: New file.
69834
69835         * modules/ftello: New file.
69836         * m4/ftello.m4: New file.
69837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69838         HAVE_FTELLO.
69839         * lib/stdio_.h (ftello): New declaration.
69840         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69841         HAVE_FTELLO.
69842
69843 2007-04-25  Bruno Haible  <bruno@clisp.org>
69844
69845         * modules/fseeko-tests: New file.
69846         * tests/test-fseeko.c: New file.
69847
69848         * modules/fseeko: New file.
69849         * m4/fseeko.m4: New file.
69850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69851         HAVE_FSEEKO.
69852         * lib/stdio_.h (fseeko): New declaration.
69853         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69854         HAVE_FSEEKO.
69855
69856 2007-04-25  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69859
69860 2007-04-25  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69863         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69864         * tests/test-unistd.c: Likewise.
69865         * tests/test-fcntl.c: Likewise.
69866
69867 2007-04-23  Eric Blake  <ebb9@byu.net>
69868
69869         * lib/fflush.c: Fix missing include.
69870         Reported by Bruno Haible.
69871
69872 2007-04-23  Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69875         Reported by Eric Blake.
69876
69877 2007-04-23  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69880
69881 2007-04-23  Bruno Haible  <bruno@clisp.org>
69882
69883         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69884
69885 2007-04-23  Bruno Haible  <bruno@clisp.org>
69886
69887         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69888         Needed on HP-UX 11.
69889
69890 2007-04-16  Eric Blake  <ebb9@byu.net>
69891
69892         Make fflush rely on fpurge.
69893         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69894         open coding all variants.
69895         * modules/fflush (Depends-on): Add fpurge and unistd.
69896         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69898
69899         Fix --with-tests compilation on cygwin.
69900         * modules/argmatch-tests (Makefile.am): List gnulib library first
69901         in LDADD.
69902         * modules/argp-tests (Makefile.am): Likewise.
69903         * modules/array-list-tests (Makefile.am): Likewise.
69904         * modules/array-oset-tests (Makefile.am): Likewise.
69905         * modules/avltree-list-tests (Makefile.am): Likewise.
69906         * modules/avltree-oset-tests (Makefile.am): Likewise.
69907         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69908         * modules/carray-list-tests (Makefile.am): Likewise.
69909         * modules/dirname-tests (Makefile.am): Likewise.
69910         * modules/frexp-tests (Makefile.am): Likewise.
69911         * modules/isnanl-tests (Makefile.am): Likewise.
69912         * modules/linked-list-tests (Makefile.am): Likewise.
69913         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69914         * modules/lock-tests (Makefile.am): Likewise.
69915         * modules/rbtree-list-tests (Makefile.am): Likewise.
69916         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69917         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69918         * modules/tls-tests (Makefile.am): Likewise.
69919         * modules/tsearch-tests (Makefile.am): Likewise.
69920         * modules/xvasprintf-tests (Makefile.am): Likewise.
69921
69922         Fix fpurge for cygwin.
69923         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69924         value.
69925         * modules/fpurge-tests (Depends-on): Clean up trash.
69926
69927 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69928
69929         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69930
69931         * m4/autobuild.m4: Re-indent.
69932
69933 2007-04-13  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/fpurge-tests: New file.
69936         * tests/test-fpurge.c: New file.
69937
69938         * modules/fpurge: New file.
69939         * lib/fpurge.h: New file.
69940         * lib/fpurge.c: New file.
69941         * m4/fpurge.m4: New file.
69942
69943 2007-04-13  Bruno Haible  <bruno@clisp.org>
69944
69945         * modules/fbufmode-tests: New file.
69946         * tests/test-fbufmode.c: New file.
69947
69948         * modules/fbufmode: New file.
69949         * lib/fbufmode.h: New file.
69950         * lib/fbufmode.c: New file.
69951         * m4/fbufmode.m4: New file.
69952
69953 2007-04-13  Bruno Haible  <bruno@clisp.org>
69954
69955         * modules/fwritable-tests: New file.
69956         * tests/test-fwritable.c: New file.
69957
69958         * modules/fwritable: New file.
69959         * lib/fwritable.h: New file.
69960         * lib/fwritable.c: New file.
69961         * m4/fwritable.m4: New file.
69962
69963 2007-04-13  Bruno Haible  <bruno@clisp.org>
69964
69965         * modules/freadable-tests: New file.
69966         * tests/test-freadable.c: New file.
69967
69968         * modules/freadable: New file.
69969         * lib/freadable.h: New file.
69970         * lib/freadable.c: New file.
69971         * m4/freadable.m4: New file.
69972
69973 2007-04-13  Bruno Haible  <bruno@clisp.org>
69974
69975         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69976         MOSTLYCLEANFILES.
69977
69978 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69981         gzip bootstrap.conf to avoid dragging in i18n machinery.
69982         (gnulib_tool_option): Use it.
69983
69984 2007-04-13  Bruno Haible  <bruno@clisp.org>
69985
69986         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69987         %F directives.
69988         * tests/test-vasprintf-posix.c (test_function): Likewise.
69989         * tests/test-snprintf-posix.h (test_function): Likewise.
69990         * tests/test-sprintf-posix.h (test_function): Likewise.
69991         * tests/test-fprintf-posix.h (test_function): Likewise.
69992         * tests/test-printf-posix.h (test_function): Likewise.
69993         * tests/test-fprintf-posix.out: Likewise.
69994
69995 2007-04-13  Bruno Haible  <bruno@clisp.org>
69996
69997         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69998         * modules/tls-tests (configure.ac): Likewise.
69999         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70000
70001 2007-04-13  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/tls.c (glthread_tls_get): Fix return type.
70004         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70005
70006 2007-04-12  Eric Blake  <ebb9@byu.net>
70007
70008         * modules/gettime (Depends-on): Remove gettime.
70009         Reported by Dmitry V. Levin.
70010
70011 2007-04-12  Bruno Haible  <bruno@clisp.org>
70012
70013         * modules/fflush (Include): Mention <stdio.h>.
70014         * modules/strtoimax (Include): Mention <inttypes.h>.
70015         * modules/strtoumax (Include): Likewise.
70016
70017 2007-04-12  Eric Blake  <ebb9@byu.net>
70018
70019         * .cvsignore: New file.
70020         * .gitignore: Likewise.
70021
70022 2007-04-12  Bruno Haible  <bruno@clisp.org>
70023
70024         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70025         not before, since $(LDADD) often contains libgnu.a.
70026         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70027         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70028         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70029         Needed on Cygwin.
70030
70031 2007-04-12  Eric Blake  <ebb9@byu.net>
70032
70033         Work around glibc's failure to flush stdin on fclose.
70034         * lib/closein.c (close_stdin): Flush stdin before closing.
70035
70036         Work around glibc's failure to reset seekable stdin on exit.
70037         * modules/closein: New module.
70038         * lib/closein.c: New file.
70039         * lib/closein.h: Likewise.
70040         * m4/closein.m4: Likewise.
70041         * MODULES.html.sh (File stream based Input/Output): Document it.
70042
70043 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70044
70045         * gnulib-tool: Rename generated 'autobuild' script to
70046         'do-autobuild' in --create-megatestdir output.
70047
70048         * doc/gnulib.texi (Build robot for gnulib): Fix.
70049
70050 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70051
70052         * modules/sysexits (Depends-on): Add absolute-header.
70053
70054 2007-04-12  Eric Blake  <ebb9@byu.net>
70055
70056         No need to preserve errno on success.
70057         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70058         Reported by Bruno Haible.
70059
70060 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70061
70062         * MODULES.html.sh (Support for maintaining and releasing
70063         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70064
70065 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70066
70067         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70068
70069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70070
70071         * modules/autobuild: New module.
70072
70073         * m4/autobuild.m4: New file.
70074
70075 2007-04-11  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70078         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70082         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70083         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70084         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70085         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70086         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70088         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70089         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70091         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70092         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70094         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70095         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70097         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70098         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70100         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70101         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70103         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70104         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70105         Reported by Eric Blake.
70106
70107 2007-04-11  Bruno Haible  <bruno@clisp.org>
70108
70109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70110
70111 2007-04-10  Bruno Haible  <bruno@clisp.org>
70112
70113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70114         for NaN and Infinity. Needed on FreeBSD 6.1.
70115         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70116         regarding results for "%010a" of Infinity and NaN.
70117         * tests/test-vasprintf-posix.c (test_function): Likewise.
70118         * tests/test-snprintf-posix.h (test_function): Likewise.
70119         * tests/test-sprintf-posix.h (test_function): Likewise.
70120         * tests/test-fprintf-posix.h (test_function): Likewise.
70121         * tests/test-printf-posix.h (test_function): Likewise.
70122         * tests/test-fprintf-posix.out: Likewise.
70123
70124 2007-04-10  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/locale-tests: New file.
70127         * tests/test-locale.c: New file.
70128
70129         * modules/locale: New file.
70130         * lib/locale_.h: New file.
70131         * m4/locale_h.m4: New file.
70132
70133 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70134             Bruno Haible  <bruno@clisp.org>
70135
70136         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70137         be determined, test for availability of the copysignf, copysign,
70138         copysignl functions.
70139         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70140         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70141         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70142
70143 2007-04-09  Eric Blake  <ebb9@byu.net>
70144
70145         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70146         * modules/stdio (Makefile.am): Support fflush.
70147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70148         * modules/fflush: New file.
70149         * lib/fflush.c: Likewise.
70150         * m4/fflush.m4: Likewise.
70151         * modules/fflush-tests: New test.
70152         * tests/test-fflush.c: Likewise.
70153         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70154
70155 2007-04-06  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70158         (VASNPRINTF): Use signbit for faster determination whether to print a
70159         minus sign.
70160         * modules/vasnprintf (Files): Remove lib/float+.h.
70161         * modules/fprintf-posix (Depends-on): Add signbit.
70162         * modules/snprintf-posix (Depends-on): Likewise.
70163         * modules/sprintf-posix (Depends-on): Likewise.
70164         * modules/vasnprintf-posix (Depends-on): Likewise.
70165         * modules/vasprintf-posix (Depends-on): Likewise.
70166         * modules/vfprintf-posix (Depends-on): Likewise.
70167         * modules/vsnprintf-posix (Depends-on): Likewise.
70168         * modules/vsprintf-posix (Depends-on): Likewise.
70169
70170 2007-04-06  Bruno Haible  <bruno@clisp.org>
70171
70172         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70173         * tests/test-frexpl.c (main): Likewise.
70174         * tests/test-ldexpl.c (main): Likewise.
70175         * modules/frexp-tests (Depends-on): Add signbit.
70176         * modules/frexpl-tests (Depdends-on): Likewise.
70177         * modules/ldexpl-tests (Depdends-on): Likewise.
70178
70179 2007-04-06  Bruno Haible  <bruno@clisp.org>
70180
70181         * modules/signbit-tests: New file.
70182         * tests/test-signbit.c: New file.
70183
70184         * modules/signbit: New file.
70185         * lib/signbitf.c: New file.
70186         * lib/signbitd.c: New file.
70187         * lib/signbitl.c: New file.
70188         * m4/signbit.m4: New file.
70189         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70190         (signbit): New macro.
70191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70192         REPLACE_SIGNBIT.
70193         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70194         REPLACE_FREXPL into math.h.
70195
70196 2007-04-06  Bruno Haible  <bruno@clisp.org>
70197
70198         * modules/isnanf-nolibm-tests: New file.
70199         * tests/test-isnanf.c: New file.
70200
70201         * modules/isnanf-nolibm: New file.
70202         * lib/isnanf.h: New file.
70203         * lib/isnanf.c: New file.
70204         * lib/isnan.c: Consider the USE_FLOAT macro.
70205         * m4/isnanf.m4: New file.
70206
70207 2007-04-06  Bruno Haible  <bruno@clisp.org>
70208
70209         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70210         (Link): New section.
70211
70212         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70213
70214 2007-04-06  Bruno Haible  <bruno@clisp.org>
70215
70216         Assume the 'long double' type.
70217         * m4/longdouble.m4: Remove file.
70218         * config/srclist.txt: Don't mention longdouble.m4.
70219         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70220         * lib/float+.h: Likewise.
70221         * lib/frexp.c: Likewise.
70222         * lib/printf-args.h: Likewise.
70223         * lib/printf-args.c: Likewise.
70224         * lib/printf-frexp.c: Likewise.
70225         * lib/printf-parse.c: Likewise.
70226         * lib/vasnprintf.c: Likewise.
70227         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70228         * m4/intl.m4: Likewise.
70229         * m4/isnanl.m4: Likewise.
70230         * m4/printf.m4: Likewise.
70231         * m4/printf-frexpl.m4: Likewise.
70232         * m4/vasnprintf.m4: Likewise.
70233         * modules/allocsa (Files): Remove m4/longdouble.m4.
70234         * modules/gettext (Files): Likewise.
70235         * modules/relocatable-prog-wrapper (Files): Likewise.
70236         * modules/vasnprintf (Files): Likewise.
70237         * modules/isnanl (Files): Likewise.
70238         (Include): Simplify.
70239         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70240         (Include): Simplify.
70241         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70242         (Include): Simplify.
70243         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70244         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70245         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70246         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70247         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70248         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70249         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70250         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70251         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70252         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70253         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70255         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70256         * tests/test-isnanl.c: Likewise.
70257         * tests/test-snprintf-posix.h: Likewise.
70258         * tests/test-sprintf-posix.h: Likewise.
70259         * tests/test-vasnprintf-posix.c: Likewise.
70260         * tests/test-vasnprintf-posix2.c: Likewise.
70261         * tests/test-vasprintf-posix.c: Likewise.
70262
70263 2007-04-06  Bruno Haible  <bruno@clisp.org>
70264
70265         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70266         * lib/math_.h [__DECC]: Include the overridden include file through
70267         #include_next, outside the double-inclusion guard.
70268         * lib/stdio_.h [__DECC]: Likewise.
70269         * lib/stdlib_.h [__DECC]: Likewise.
70270         * lib/string_.h [__DECC]: Likewise.
70271         * lib/time_.h [__DECC]: Likewise.
70272         * lib/wchar_.h [__DECC]: Likewise.
70273         * lib/wctype_.h [__DECC]: Likewise.
70274         * lib/inttypes_.h [__DECC]: Likewise.
70275         Reported by Albert Chin <china@thewrittenword.com> in
70276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70277
70278 2007-04-04  Eric Blake  <ebb9@byu.net>
70279
70280         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70281         1.5.x.
70282
70283 2007-04-04  Bruno Haible  <bruno@clisp.org>
70284
70285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70286         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70287
70288 2007-04-04  Bruno Haible  <bruno@clisp.org>
70289
70290         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70291         results for "%010a" of Infinity and NaN.
70292         * tests/test-vasprintf-posix.c (test_function): Likewise.
70293         * tests/test-snprintf-posix.h (test_function): Likewise.
70294         * tests/test-sprintf-posix.h (test_function): Likewise.
70295         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70296         * tests/test-printf-posix.h (test_function): Likewise.
70297         * tests/test-fprintf-posix.out: Update.
70298         Needed for FreeBSD 6.1.
70299
70300 2007-04-04  Bruno Haible  <bruno@clisp.org>
70301
70302         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70303         directly used by the gnulib modules nor by gnulib-tool.
70304
70305 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * DEPENDENCIES: Give overall description of version dependency
70308         desirability.  Use more-typical names for apps.
70309         Add shell, coreutils, diffutils, grep, tar, gzip.
70310
70311 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70312
70313         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70314
70315 2007-04-04  Karl Berry  <karl@gnu.org>
70316
70317         * MODULES.html.sh (func_module): missing '.
70318
70319 2007-04-03  Bruno Haible  <bruno@clisp.org>
70320
70321         * modules/argmatch-tests (Makefile.am): New variable
70322         test_argmatch_LDADD.
70323         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70324         * modules/array-list-tests (Makefile.am): New variable
70325         test_array_list_LDADD.
70326         * modules/array-oset-tests (Makefile.am): New variable
70327         test_array_oset_LDADD.
70328         * modules/avltree-list-tests (Makefile.am): New variable
70329         test_avltree_list_LDADD.
70330         * modules/avltree-oset-tests (Makefile.am): New variable
70331         test_avltree_oset_LDADD.
70332         * modules/avltreehash-list-tests (Makefile.am): New variable
70333         test_avltreehash_list_LDADD.
70334         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70335         test_canonicalize_lgpl_LDADD.
70336         * modules/carray-list-tests (Makefile.am): New variable
70337         test_carray_list_LDADD.
70338         * modules/dirname-tests (Makefile.am): New variable
70339         test_dirname_LDADD.
70340         * modules/linked-list-tests (Makefile.am): New variable
70341         test_linked_list_LDADD.
70342         * modules/linkedhash-list-tests (Makefile.am): New variable
70343         test_linkedhash_list_LDADD.
70344         * modules/rbtree-list-tests (Makefile.am): New variable
70345         test_rbtree_list_LDADD.
70346         * modules/rbtree-oset-tests (Makefile.am): New variable
70347         test_rbtree_oset_LDADD.
70348         * modules/rbtreehash-list-tests (Makefile.am): New variable
70349         test_rbtreehash_list_LDADD.
70350         * modules/xvasprintf-tests (Makefile.am): New variable
70351         test_xvasprintf_LDADD.
70352         Reported by Eric Blake.
70353
70354 2007-04-03  Eric Blake  <ebb9@byu.net>
70355
70356         * DEPENDENCIES: Weaken m4 requirements.
70357
70358 2007-04-03  Bruno Haible  <bruno@clisp.org>
70359
70360         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70361         * modules/isnanl-tests (configure.ac): Likewise.
70362
70363 2007-04-03  Ben Pfaff  <blp@gnu.org>
70364
70365         * modules/iconv_open: Add $(srcdir)/ to source directory
70366         references in Makefile fragments that call gperf, to fix VPATH
70367         builds.
70368
70369 2007-04-03  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70372         * lib/ldexpl.c: Undo last change.
70373
70374 2007-04-03  Bruno Haible  <bruno@clisp.org>
70375
70376         * modules/printf-frexpl (Depends-on): Undo last change.
70377         (Files): Add m4/ldexpl.m4.
70378
70379 2007-04-03  Bruno Haible  <bruno@clisp.org>
70380
70381         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70382         * modules/isnanl (Link): New section.
70383
70384         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70385         * modules/frexp (Link): New section.
70386
70387         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70388         * modules/frexpl (Link): New section.
70389
70390         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70391         * modules/ldexpl (Link): New section.
70392
70393 2007-04-03  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/TEMPLATE-EXTENDED: New file.
70396         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70397
70398 2007-04-03  Bruno Haible  <bruno@clisp.org>
70399
70400         * DEPENDENCIES: New file.
70401         Suggested by Simon Josefsson.
70402
70403 2007-04-03  Bruno Haible  <bruno@clisp.org>
70404
70405         * doc/gnulib.texi: Escape @.
70406
70407 2007-04-03  James Youngman  <jay@gnu.org>
70408         and Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70411         birthtime on all systems that have birthtime, not just those which
70412         use st_birthtimensec rather than st_birthtim.  Putting zero in
70413         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70414         that the birth time is not available for files on an NFS mount.
70415
70416 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70417
70418         * modules/memxor: Move back from crypto/, suggested by Bruno.
70419         * modules/crypto/hmac-sha1: Fix memxor dependency.
70420
70421         * modules/crypto/gc: Moved from ../.
70422
70423 2007-04-02  Eric Blake  <ebb9@byu.net>
70424
70425         * lib/ldexpl.c (includes): Avoid libm.
70426
70427         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70428
70429 2007-04-02  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70432         on IRIX.
70433
70434 2007-04-02  Bruno Haible  <bruno@clisp.org>
70435
70436         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70437         x86 or x86_64 platforms running MacOS X.
70438         Reported by Ryan Schmidt <@ryandesign.com>.
70439
70440 2007-04-02  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70443         i386.
70444
70445 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70446
70447         * modules/crypto/arcfour: Moved from ../.
70448         * modules/crypto/arcfour-tests: Moved from ../.
70449         * modules/crypto/arctwo: Moved from ../.
70450         * modules/crypto/arctwo-tests: Moved from ../.
70451         * modules/crypto/des: Moved from ../.
70452         * modules/crypto/des-tests: Moved from ../.
70453         * modules/crypto/gc-arcfour: Moved from ../.
70454         * modules/crypto/gc-arcfour-tests: Moved from ../.
70455         * modules/crypto/gc-arctwo: Moved from ../.
70456         * modules/crypto/gc-arctwo-tests: Moved from ../.
70457         * modules/crypto/gc-des: Moved from ../.
70458         * modules/crypto/gc-des-tests: Moved from ../.
70459         * modules/crypto/gc-hmac-md5: Moved from ../.
70460         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70461         * modules/crypto/gc-hmac-sha1: Moved from ../.
70462         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70463         * modules/crypto/gc-md2: Moved from ../.
70464         * modules/crypto/gc-md2-tests: Moved from ../.
70465         * modules/crypto/gc-md4: Moved from ../.
70466         * modules/crypto/gc-md4-tests: Moved from ../.
70467         * modules/crypto/gc-md5: Moved from ../.
70468         * modules/crypto/gc-md5-tests: Moved from ../.
70469         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70470         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70471         * modules/crypto/gc-random: Moved from ../.
70472         * modules/crypto/gc-rijndael: Moved from ../.
70473         * modules/crypto/gc-rijndael-tests: Moved from ../.
70474         * modules/crypto/gc-sha1: Moved from ../.
70475         * modules/crypto/gc-sha1-tests: Moved from ../.
70476         * modules/crypto/gc-tests: Moved from ../.
70477         * modules/crypto/hmac-md5: Moved from ../.
70478         * modules/crypto/hmac-md5-tests: Moved from ../.
70479         * modules/crypto/hmac-sha1: Moved from ../.
70480         * modules/crypto/hmac-sha1-tests: Moved from ../.
70481         * modules/crypto/md2: Moved from ../.
70482         * modules/crypto/md2-tests: Moved from ../.
70483         * modules/crypto/md4: Moved from ../.
70484         * modules/crypto/md4-tests: Moved from ../.
70485         * modules/crypto/md5: Moved from ../.
70486         * modules/crypto/md5-tests: Moved from ../.
70487         * modules/crypto/memxor: Moved from ../.
70488         * modules/crypto/rijndael: Moved from ../.
70489         * modules/crypto/rijndael-tests: Moved from ../.
70490         * modules/crypto/sha1: Moved from ../.
70491
70492 2007-03-30  James Youngman  <jay@gnu.org>
70493
70494         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70495         rename() to change the ctime of a file (because ctime is unaffected
70496         by rename on jfs2 on AIX 5.1).
70497         (main): Start by doing cleanup, in case a previous run failed leaving
70498         test files behind.
70499
70500 2007-03-31  Bruno Haible  <bruno@clisp.org>
70501
70502         Support old proprietary implementations of iconv.
70503         * modules/iconv_open: New file.
70504         * lib/iconv_.h: New file.
70505         * m4/iconv_h.m4: New file.
70506         * lib/iconv_open.c: New file.
70507         * lib/iconv_open-aix.gperf: New file.
70508         * lib/iconv_open-hpux.gperf: New file.
70509         * lib/iconv_open-irix.gperf: New file.
70510         * lib/iconv_open-osf.gperf: New file.
70511         * m4/iconv_open.m4: New file.
70512         * modules/linebreak (Depends-on): Add iconv_open.
70513         * modules/striconv (Depends-on): Likewise.
70514         * modules/striconveh (Depends-on): Likewise.
70515         * modules/unicodeio (Depends-on): Likewise.
70516         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70517         (iconv_t)(-1).
70518         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70519         conversion if cd is (iconv_t)(-1).
70520         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70521         is not possible.
70522
70523 2007-03-31  Bruno Haible  <bruno@clisp.org>
70524
70525         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70526         work on Solaris either. Protect also second use of "autodetect_jp".
70527
70528 2007-03-31  Bruno Haible  <bruno@clisp.org>
70529
70530         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70531         the function is not present.
70532
70533 2007-03-31  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70536         the function is not present.
70537
70538 2007-03-31  Bruno Haible  <bruno@clisp.org>
70539
70540         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70541         a bug in HP-UX iconv_open().
70542
70543 2007-03-31  Bruno Haible  <bruno@clisp.org>
70544
70545         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70546         (Mathematics <math.h>): New section, add fpieee.
70547         (Input/output <stdio.h>): Add fseterr.
70548         (Mathematics <math.h>): New section, add printf-frexp.
70549         (Container data structures): Add sublist.
70550         (Core language properties): Add fpucw, inline.
70551         (Functions for greatest-width integer types <inttypes.h>): Add
70552         imaxabs, imaxdiv, inttypes.
70553         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70554         isnanl-nolibm, ldexp.
70555         (Mathematics <math.h>): New section, add printf-frexpl.
70556         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70557         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70558         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70559         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70560         (Unicode string functions): Add unistr/u*-mbtoucr.
70561         (Java): Add javacomp-script, javaexec-script.
70562         (C#): Add csharpcomp-script, csharpexec-script.
70563         (Support for building libraries and executables): Add havelib,
70564         relocatable-*.
70565         (Support for maintaining and releasing projects): Renamed from
70566         'Support for maintaining and release projects'. Add announce-gen.
70567
70568 2007-03-31  Bruno Haible  <bruno@clisp.org>
70569
70570         * README: Talk primarily about git.
70571         (git and CVS): Renamed from CVS.
70572         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70573         gnulib is available through git.
70574         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70575
70576 2007-03-30  Bruno Haible  <bruno@clisp.org>
70577
70578         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70579         * lib/poll_.h: Likewise.
70580         * lib/stat_.h: Likewise.
70581         * lib/sys_time_.h: Likewise.
70582         * lib/sysexit_.h: Likewise.
70583         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70584         * lib/stdbool_.h: Likewise.
70585         * lib/byteswap_.h: Add double-inclusion guard.
70586
70587 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70588
70589         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70590
70591 2007-03-30  Karl Berry  <karl@gnu.org>
70592
70593         * config/srclist-update: double space after USA in the license
70594         substitution, since that's how it's usually (?) written.
70595
70596 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70599         reported by Bruno Haible.
70600
70601 2007-03-29  Bruno Haible  <bruno@clisp.org>
70602
70603         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70604         a bug in AIX iconv().
70605
70606 2007-03-29  Bruno Haible  <bruno@clisp.org>
70607
70608         * modules/ldexpl-tests: New file.
70609         * tests/test-ldexpl.c: New file.
70610
70611 2007-03-29  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/ldexpl.c: Include fpucw.h.
70614         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70615         multiplication.
70616         * modules/ldexpl (Depends-on): Add fpucw.
70617
70618 2007-03-29  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/ldexpl: New file.
70621         * m4/ldexpl.m4: New file.
70622         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70623         set.
70624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70625         REPLACE_LDEXPL.
70626         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70627         REPLACE_LDEXPL.
70628         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70629         gl_FUNC_LDEXPL_WORKS.
70630         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70631         * modules/mathl (Files): Remove lib/ldexpl.c.
70632         (Depends-on): Add ldexpl.
70633
70634 2007-03-29  Bruno Haible  <bruno@clisp.org>
70635
70636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70637
70638 2007-03-29  Bruno Haible  <bruno@clisp.org>
70639
70640         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70641         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70642         and possibly also HP-UX.
70643         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70644         work on AIX, IRIX, HP-UX, OSF/1.
70645         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70646         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70647         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70648         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70649         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70650         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70651
70652 2007-03-29  Bruno Haible  <bruno@clisp.org>
70653
70654         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70655
70656 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70659         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70660
70661 2007-03-29  Eric Blake  <ebb9@byu.net>
70662
70663         * lib/acl-internal.h: Remove redundant include.
70664         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70665         Cygwin when a file is locked.
70666
70667 2007-03-29  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70670         file.
70671         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70672
70673 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70676         try to remove a parent directory if the child couldn't be removed
70677         (except for the first rmdir, which could fail because the child
70678         doesn't exist).  Problem reported by Jeff Blaine in
70679         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70680
70681 2007-03-28  Bruno Haible  <bruno@clisp.org>
70682
70683         * lib/striconveh.c (utf8conv_carefully): New function.
70684         (mem_cd_iconveh_internal): Invoke it.
70685
70686 2007-03-28  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70689         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70690         input.
70691         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70692         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70693         unistr/u8-uctomb.
70694
70695 2007-03-28  Bruno Haible  <bruno@clisp.org>
70696
70697         * modules/unistr/u8-mbtoucr: New file.
70698         * lib/unistr/u8-mbtoucr.c: New file.
70699         * modules/unistr/u16-mbtoucr: New file.
70700         * lib/unistr/u16-mbtoucr.c: New file.
70701         * modules/unistr/u16-mbtoucr: New file.
70702         * lib/unistr/u16-mbtoucr.c: New file.
70703         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70704
70705 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70706             Bruno Haible  <bruno@clisp.org>
70707
70708         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70709         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70710         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70711
70712         * m4/stdio_h.m4: Add stubs for vasprintf too.
70713
70714         * modules/stdio: Support vasprintf in sed command.
70715
70716         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70717         vasprintf.h.  Add stdio module indicator.
70718
70719         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70720         vasprintf.h.
70721
70722         * lib/vasprintf.h: File removed.
70723
70724         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70725         * lib/vasprintf.c: Ditto.
70726         * lib/xvasprintf.c: Ditto.
70727         * tests/test-vasprintf-posix.c: Ditto.
70728         * tests/test-vasprintf.c: Ditto.
70729
70730 2007-03-27  Bruno Haible  <bruno@clisp.org>
70731
70732         Make vasnprintf multithread-safe.
70733         * lib/vasnprintf.c (decimal_point_char): New function.
70734         (VASNPRINTF): Use it.
70735         Suggested by Simon Josefsson.
70736
70737 2007-03-27  Eric Blake  <ebb9@byu.net>
70738
70739         Support sub-second birthtime on cygwin.
70740         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70741         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70742         (get_stat_birthtime): Also work with st_birthtim.
70743
70744 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70747         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70748         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70749         (get_stat_birthtime_ns): Simplify compile-time tests.
70750         (get_stat_birthtime): Change the API to look like
70751         get_stat_mtime etc., except return a negative tv_nsec on error.
70752         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70753         Don't check for "spare" fields.
70754         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70755         or for struct stat.st_birthtime, as these tests aren't used.
70756         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70757
70758 2007-03-27  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/stat-time.h: Include <sys/stat.h>.
70761
70762 2007-03-27  James Youngman  <jay@gnu.org>
70763
70764         * lib/stat-time.h (get_stat_birthtime): New function for
70765           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70766         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70767           and its variants.
70768         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70769         * modules/stat-time-test: New file.
70770         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70771
70772 2007-03-26  Bruno Haible  <bruno@clisp.org>
70773
70774         Better support of signalling NaNs.
70775         * lib/atanl.c: Include isnanl.h.
70776         (atanl): Perform test for NaN at the beginning of the function and
70777         through a call to isnanl.
70778         * lib/cosl.c: Include isnanl.h.
70779         (cosl): Perform test for NaN at the beginning of the function and
70780         through a call to isnanl.
70781         * lib/ldexpl.c: Include isnanl.h.
70782         (ldexpl): Perform test for NaN through a call to isnanl.
70783         * lib/logl.c: Include isnanl.h.
70784         (logl): Perform test for NaN at the beginning of the function and
70785         through a call to isnanl.
70786         * lib/sinl.c: Include isnanl.h.
70787         (sinl): Perform test for NaN at the beginning of the function and
70788         through a call to isnanl.
70789         * lib/sqrtl.c: Include isnanl.h.
70790         (sqrtl): Perform test for NaN at the beginning of the function and
70791         through a call to isnanl.
70792         * lib/tanl.c: Include isnanl.h.
70793         (tanl): Perform test for NaN at the beginning of the function and
70794         through a call to isnanl.
70795         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70796         * modules/mathl (Depends-on): Add isnanl.
70797
70798 2007-03-26  Eric Blake  <ebb9@byu.net>
70799
70800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70801         regression in logic sense of previous patch.
70802
70803 2007-03-26  Bruno Haible  <bruno@clisp.org>
70804
70805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70806         unportable shell command "if ! ...".
70807         Reported by Ralf Wildenhues.
70808
70809 2007-03-25  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70812         <sysexits.h> file, and only add EX_CONFIG.
70813         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70814         absolute file name and whether it is sufficient. Substitute also
70815         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70816         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70817         ABSOLUTE_SYSEXITS_H into sysexits.h.
70818
70819 2007-03-25  Bruno Haible  <bruno@clisp.org>
70820
70821         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70822         hints is NULL.
70823
70824 2007-03-25  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70827         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70828
70829 2007-03-25  Bruno Haible  <bruno@clisp.org>
70830
70831         * lib/vasnprintf.c: Include langinfo.h.
70832         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70833         multithread-safe.
70834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70836         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70840         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70841         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70842         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70843         Reported by Simon Josefsson.
70844
70845 2007-03-25  Bruno Haible  <bruno@clisp.org>
70846
70847         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70848         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70849         * modules/vasnprintf (Depends-on): Add stdint.
70850
70851 2007-03-25  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/fpieee: New file.
70854         * m4/fpieee.m4: New file.
70855         * modules/isnan-nolibm (Depends-on): Add fpieee.
70856         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70857         * modules/isnanl (Depends-on): Add fpieee.
70858
70859 2007-03-25  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70862
70863 2007-03-25  Bruno Haible  <bruno@clisp.org>
70864
70865         Avoid test failures on IRIX 6.5.
70866         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70867         (main): Use it.
70868         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70869         macros.
70870         (main): Use them.
70871
70872 2007-03-25  Bruno Haible  <bruno@clisp.org>
70873
70874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70875         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70876         exists but doesn't work.
70877         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70878         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70880         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70881         math.h.
70882
70883 2007-03-25  Bruno Haible  <bruno@clisp.org>
70884
70885         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70886         returns inf. Needed on IRIX 6.5.
70887
70888 2007-03-25  Bruno Haible  <bruno@clisp.org>
70889
70890         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70891         (main): Use isnanl instead of x != x idiom.
70892         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70893
70894         * tests/test-frexp.c: Include isnan.h.
70895         (main): Use isnan instead of x != x idiom.
70896         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70897
70898 2007-03-25  Bruno Haible  <bruno@clisp.org>
70899
70900         * tests/test-frexp.c (NaN): New function/macro.
70901         (main): Use it instead of 0.0 / 0.0.
70902         * tests/test-isnan.c (NaN): New function/macro.
70903         (main): Use it instead of 0.0 / 0.0.
70904         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70905         (test_function): Use it instead of 0.0 / 0.0.
70906         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70907         (test_function): Use it instead of 0.0 / 0.0.
70908         * tests/test-snprintf-posix.h (NaN): New function/macro.
70909         (test_function): Use it instead of 0.0 / 0.0.
70910         * tests/test-sprintf-posix.h (NaN): New function/macro.
70911         (test_function): Use it instead of 0.0 / 0.0.
70912         * tests/test-fprintf-posix.h (NaN): New function/macro.
70913         (test_function): Use it instead of 0.0 / 0.0.
70914         * tests/test-printf-posix.h (NaN): New function/macro.
70915         (test_function): Use it instead of 0.0 / 0.0.
70916
70917         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70918
70919 2007-03-25  Bruno Haible  <bruno@clisp.org>
70920
70921         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70922
70923 2007-03-25  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/regexec.c (merge_state_with_log): Make static.
70926
70927 2007-03-25  Bruno Haible  <bruno@clisp.org>
70928
70929         * lib/trigl.c (kernel_rem_pio2): Make static.
70930
70931 2007-03-25  Bruno Haible  <bruno@clisp.org>
70932
70933         * lib/sincosl.c (sincosl_table): Make static.
70934
70935 2007-03-25  Bruno Haible  <bruno@clisp.org>
70936
70937         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70938         if the compiler does not support C99.
70939
70940 2007-03-25  Bruno Haible  <bruno@clisp.org>
70941
70942         * modules/time (Makefile.am): Ensure all rule action lines start with a
70943         tab.
70944
70945 2007-03-24  Bruno Haible  <bruno@clisp.org>
70946
70947         * modules/tsearch-tests: New file.
70948         * tests/test-tsearch.sh: New file.
70949         * tests/test-tsearch.c: New file, mostly copied from glibc.
70950
70951         * modules/search-tests: New file.
70952         * tests/test-search.c: New file.
70953
70954         * modules/search: New file.
70955         * lib/search_.h: New file, incorporating lib/tsearch.h.
70956         * m4/search_h.m4: New file.
70957         * lib/tsearch.h: Remove file.
70958         * lib/tsearch.c: Include search.h instead of tsearch.h.
70959         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70960         HAVE_TSEARCH.
70961         * modules/tsearch (Files): Remove lib/tsearch.h.
70962         (Depends-on): Add search.
70963         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70964         (Include): Change tsearch.h into search.h.
70965
70966 2007-03-24  Bruno Haible  <bruno@clisp.org>
70967
70968         * modules/fpucw: New file.
70969         * lib/fpucw.h: New file.
70970         * lib/frexp.c: Include fpucw.h.
70971         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70972         (FUNC): Use them.
70973         * lib/printf-frexp.c: Include fpucw.h.
70974         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70975         (FUNC): Use them.
70976         * lib/vasnprintf.c: Include fpucw.h.
70977         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70978         'long double' calculations.
70979         * tests/test-frexpl.c: Include fpucw.h.
70980         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70981         * tests/test-printf-frexpl.c: Include fpucw.h.
70982         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70983         * modules/frexpl (Depends-on): Add fpucw.
70984         * modules/printf-frexpl (Depends-on): Likewise.
70985         * modules/fprintf-posix (Depends-on): Likewise.
70986         * modules/snprintf-posix (Depends-on): Likewise.
70987         * modules/sprintf-posix (Depends-on): Likewise.
70988         * modules/vasnprintf-posix (Depends-on): Likewise.
70989         * modules/vasprintf-posix (Depends-on): Likewise.
70990         * modules/vfprintf-posix (Depends-on): Likewise.
70991         * modules/vsnprintf-posix (Depends-on): Likewise.
70992         * modules/vsprintf-posix (Depends-on): Likewise.
70993         * modules/frexpl-tests (Depends-on): Likewise.
70994         * modules/printf-frexpl-tests (Depends-on): Likewise.
70995
70996 2007-03-24  Bruno Haible  <bruno@clisp.org>
70997
70998         * lib/float+.h: New file.
70999         * lib/isnan.c: Include float+.h.
71000         (SIZE): New macro.
71001         (FUNC): Compare only SIZE bytes of the value.
71002         * lib/vasnprintf.c: Include float+.h.
71003         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71004         SIZEOF_LDBL or SIZEOF_DBL bytes.
71005         * modules/isnan-nolibm (Files): Add lib/float+.h.
71006         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71007         * modules/isnanl (Files): Add lib/float+.h.
71008         * modules/vasnprintf (Files): Add lib/float+.h.
71009
71010 2007-03-24  Bruno Haible  <bruno@clisp.org>
71011
71012         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71013         include isnanl-nolibm.h.
71014
71015 2007-03-24  Bruno Haible  <bruno@clisp.org>
71016
71017         * tests/test-read-file.c (main): Don't produce spurious output for
71018         expected situations. Make the test fail if it encountered unexpected
71019         results.
71020
71021 2007-03-24  Bruno Haible  <bruno@clisp.org>
71022
71023         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71024         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71025
71026 2007-03-24  Bruno Haible  <bruno@clisp.org>
71027
71028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71029
71030 2007-03-24  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71033         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71034
71035         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71036         * modules/utf8-ucs4: Turn into a symbolic link to module
71037         unistr/u8-mbtouc.
71038
71039         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71040         utf8-ucs4-unsafe.
71041         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71042         unistr/u8-mbtouc-unsafe.
71043
71044         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71045         * modules/utf16-ucs4: Turn into a symbolic link to module
71046         unistr/u16-mbtouc.
71047
71048         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71049         utf16-ucs4-unsafe.
71050         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71051         unistr/u16-mbtouc-unsafe.
71052
71053         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71054         * modules/ucs4-utf8: Turn into a symbolic link to module
71055         unistr/u8-ubtomb.
71056
71057         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71058         * modules/ucs4-utf16: Turn into a symbolic link to module
71059         unistr/u16-ubtomb.
71060
71061 2007-03-24  Bruno Haible  <bruno@clisp.org>
71062
71063         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71064         Enable the function only if HAVE_INLINE.
71065         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71066         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71067         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71068         Enable the function only if HAVE_INLINE.
71069         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71070         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71071         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71072         Enable the function only if HAVE_INLINE.
71073         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71074         Enable the function only if HAVE_INLINE.
71075         * modules/utf8-ucs4: Update.
71076         * modules/utf8-ucs4-unsafe: Update.
71077         * modules/utf16-ucs4: Update.
71078         * modules/utf16-ucs4-unsafe: Update.
71079         * modules/ucs4-utf8: Update.
71080         * modules/ucs4-utf16: Update.
71081
71082 2007-03-24  Bruno Haible  <bruno@clisp.org>
71083
71084         * lib/utf8-ucs4.h: Remove file.
71085         * lib/utf8-ucs4-unsafe.h: Remove file.
71086         * lib/utf16-ucs4.h: Remove file.
71087         * lib/utf16-ucs4-unsafe.h: Remove file.
71088         * lib/ucs4-utf8.h: Remove file.
71089         * lib/ucs4-utf16.h: Remove file.
71090         * lib/unistr.h: Include their previous contents.
71091         * m4/utf-ucs4.m4: Remove file.
71092         * m4/ucs4-utf.m4: Remove file.
71093         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71094         (Depends-on): Add unistr/base.
71095         (configure.ac): Remove gl_UTF_UCS4.
71096         (Makefile.am): Update.
71097         (Include): Change to unistr.h.
71098         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71099         (Depends-on): Add unistr/base.
71100         (configure.ac): Remove gl_UTF_UCS4.
71101         (Makefile.am): Update.
71102         (Include): Change to unistr.h.
71103         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71104         (Depends-on): Add unistr/base.
71105         (configure.ac): Remove gl_UTF_UCS4.
71106         (Makefile.am): Update.
71107         (Include): Change to unistr.h.
71108         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71109         (Depends-on): Add unistr/base.
71110         (configure.ac): Remove gl_UTF_UCS4.
71111         (Makefile.am): Update.
71112         (Include): Change to unistr.h.
71113         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71114         (Depends-on): Add unistr/base.
71115         (configure.ac): Remove gl_UCS4_UTF.
71116         (Makefile.am): Update.
71117         (Include): Change to unistr.h.
71118         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71119         (Depends-on): Add unistr/base.
71120         (configure.ac): Remove gl_UCS4_UTF.
71121         (Makefile.am): Update.
71122         (Include): Change to unistr.h.
71123         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71124         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71125         utf8-ucs4-unsafe.h.
71126         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71127         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71128         utf16-ucs4-unsafe.h.
71129         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71130         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71131         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71132         * lib/unistr/u8-strchr.c: Likewise.
71133         * lib/unistr/u8-strrchr.c: Likewise.
71134         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71135         * lib/unistr/u16-strchr.c: Likewise.
71136         * lib/unistr/u16-strrchr.c: Likewise.
71137         * lib/striconveh.c: Update.
71138         * lib/linebreak.c: Update.
71139
71140 2007-03-24  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71143         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71144
71145 2007-03-22  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71148
71149 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * MODULES.html.sh (File system functions): New module write-any-file.
71152         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71153         * m4/write-any-file.m4: New files.
71154
71155 2007-03-23  Eric Blake  <ebb9@byu.net>
71156
71157         * gnulib-tool: Rearrange space-tab sequences, since some editors
71158         like to eat them.
71159
71160 2007-03-23  Eric Blake  <ebb9@byu.net>
71161
71162         * lib/version-etc.c (version_etc_va): Update license wording to
71163         be more concise.  Recommended by Richard Stallman.
71164
71165 2007-03-22  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/poll.c (MSG_PEEK): New fallback definition.
71168
71169 2007-03-22  Bruno Haible  <bruno@clisp.org>
71170
71171         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71172         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71173         (main): Update.
71174         Fixes a compilation error on BeOS.
71175
71176 2007-03-22  Bruno Haible  <bruno@clisp.org>
71177
71178         * modules/frexpl-tests: New file.
71179         * tests/test-frexpl.c: New file.
71180
71181         * modules/frexpl: New file.
71182         * m4/frexpl.m4: New file.
71183         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71184         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71186         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71187         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71188         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71189
71190 2007-03-22  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/frexpl.c: Share code with lib/frexp.c.
71193         * modules/mathl (Files): Add lib/frexp.c.
71194         (Depends-on): Add isnanl-nolibm.
71195
71196 2007-03-22  Bruno Haible  <bruno@clisp.org>
71197
71198         * modules/printf-frexp (Files): Add m4/frexp.m4.
71199         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71200         only if the found frexp function actually works.
71201
71202 2007-03-22  Bruno Haible  <bruno@clisp.org>
71203
71204         * lib/frexp.c: Remove older implementation that uses divisions.
71205
71206 2007-03-21  Bruno Haible  <bruno@clisp.org>
71207
71208         * modules/frexp-tests: New file.
71209         * tests/test-frexp.c: New file.
71210
71211         * modules/frexp: New file.
71212         * lib/frexp.c: New file.
71213         * m4/frexp.m4: New file.
71214         * lib/math_.h (frexp): New declaration.
71215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71216         REPLACE_FREXP.
71217         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71218
71219 2007-03-21  Bruno Haible  <bruno@clisp.org>
71220
71221         * modules/isnanl-tests: New file.
71222         * tests/test-isnanl.c: New file.
71223
71224         * modules/isnanl: New file.
71225         * lib/isnanl.h: New file.
71226         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71227         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71228         gl_FUNC_ISNANL_WORKS.
71229         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71230         New macros.
71231
71232 2007-03-21  Bruno Haible  <bruno@clisp.org>
71233
71234         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71235         lib/isnanl.h.
71236         (Include): Update.
71237         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71238         * lib/vasnprintf.c: Update.
71239         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71240         tests/test-isnanl.h, remove tests/test-isnanl.c.
71241         (Makefile.am): Update.
71242         * tests/test-isnanl-nolibm.c: New file.
71243         * tests/test-isnanl.h: New file.
71244         * tests/test-isnanl.c: Remove file.
71245
71246 2007-03-21  Jim Meyering  <jim@meyering.net>
71247
71248         When trying to open ".", treat ESTALE like EACCES.
71249         * lib/savewd.c (savewd_save): Resort to forking not just upon
71250         failure with EACCES, but also when errno is ESTALE.
71251
71252 2007-03-20  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71255         Needed on AIX 5.1. Reported by Matthew Woehlke.
71256
71257 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         Suggestions by Bruno Haible:
71260         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71261         our own.
71262         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71263         * modules/acl (Depends-on): Add gettext.
71264
71265 2007-03-19  Bruno Haible  <bruno@clisp.org>
71266
71267         * modules/iconvme: Remove file.
71268         * lib/iconvme.h: Remove file.
71269         * lib/iconvme.c: Remove file.
71270         * m4/iconvme.m4: Remove file.
71271
71272 2007-03-19  Bruno Haible  <bruno@clisp.org>
71273
71274         * doc/relocatable-maint.texi: Break long shell script line.
71275         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71276
71277 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71280         handle file_has_acl.
71281         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71282         * lib/acl.c: Move header inclusions and related macro defns into
71283         lib/acl-internal.h.
71284         (S_ISLNK): Remove defn, since that's now done for us.
71285         (file_has_acl): Move to lib/file-has-acl.c.
71286         Call acl_trivial if available.  This is the crucial part of the fix.
71287         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71288         shared within the library.  Rewrite a bit, partly to make it compatible
71289         with the GNU coding style.
71290         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71291         Remove unnecessary double-quotes.
71292         Don't test for acl_to_text; the build will catch that.
71293         Replace acl_entries if it doesn't exist and it is needed.
71294         Check for -lsec and acl_trivial (as used on Solaris 10).
71295         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71296         lib/file-has-acl.c.
71297         (Depends-on): Add sys_stat, for S_ISLNK.
71298
71299 2007-03-19  Ben Pfaff  <blp@gnu.org>
71300
71301         * doc/gnulib.texi: Fix typos.
71302         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71303
71304 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71307         If size is zero here, buf must be zero.
71308
71309 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71310
71311         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71312         <bruno@clisp.org>.
71313
71314 2007-03-18  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71317         Suggested by Eric Blake.
71318
71319 2007-03-18  Ben Pfaff  <blp@gnu.org>
71320
71321         * doc/relocatable.texi: Recommend using as prefix a directory
71322         that does not exist and will never be created.  Based on
71323         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71324         and others.
71325
71326 2007-03-17  Bruno Haible  <bruno@clisp.org>
71327
71328         * lib/fchownat.c: Include lchown.h.
71329
71330 2007-03-17  Bruno Haible  <bruno@clisp.org>
71331
71332         Fix endless loop when the given allocated size was > INT_MAX.
71333         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71334         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71335         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71336         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71337         * lib/sprintf.c (sprintf): Likewise.
71338
71339 2007-03-17  Bruno Haible  <bruno@clisp.org>
71340
71341         * tests/test-argp-2.sh (func_compare): Output a context diff.
71342
71343 2007-03-17  Bruno Haible  <bruno@clisp.org>
71344
71345         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71346         locale's decimal-point character.
71347
71348 2007-03-17  Bruno Haible  <bruno@clisp.org>
71349
71350         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71351         before comparing it. Needed because on some platforms (e.g. x86) a
71352         'long double' occupies less bytes than sizeof (long double).
71353
71354 2007-03-17  Bruno Haible  <bruno@clisp.org>
71355
71356         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71357         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71358         * tests/test-getaddrinfo.c (simple): Likewise.
71359         * tests/test-read-file.c (main): Likewise.
71360
71361 2007-03-17  Bruno Haible  <bruno@clisp.org>
71362
71363         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71364
71365 2007-03-17  Bruno Haible  <bruno@clisp.org>
71366
71367         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71368         unused variable.
71369
71370 2007-03-17  Bruno Haible  <bruno@clisp.org>
71371
71372         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71373         * tests/test-c-strncasecmp.c: Likewise.
71374
71375 2007-03-17  Bruno Haible  <bruno@clisp.org>
71376
71377         * modules/stdlib (Depends-on): Add unistd.
71378         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71379         Needed for MacOS X 10.3.
71380
71381 2007-03-17  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71384
71385 2007-03-17  Bruno Haible  <bruno@clisp.org>
71386
71387         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71388
71389 2007-03-17  Bruno Haible  <bruno@clisp.org>
71390
71391         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71392         to reflect files copied from gnulib (with or without modifications).
71393         Suggested by Jim Meyering.
71394
71395 2007-03-17  Eric Blake  <ebb9@byu.net>
71396
71397         * NEWS: Document stdlib change from 2007-02-18.
71398
71399 2007-03-17  Jim Meyering  <jim@meyering.net>
71400
71401         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71402         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71403         someone uses a name containing shell meta-characters.
71404         Reported by Alfred M. Szmidt.
71405
71406         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71407
71408 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71409
71410         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71411         and copy gettext configuration files only if configure.ac contains
71412         a use of AM_GNU_GETTEXT_VERSION.
71413
71414 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71415
71416         * build-aux/bootstrap (gnulib_name): New variable.
71417         (gnulib_tool_options): Use it.
71418
71419 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71420
71421         * tests/test-des.c: Use new namespace.
71422
71423 2007-03-15  Bruno Haible  <bruno@clisp.org>
71424
71425         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71426         Reported by James Youngman <jay@gnu.org>.
71427
71428 2007-03-15  Bruno Haible  <bruno@clisp.org>
71429
71430         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71431         declared prototype. Needed with cc on OSF/1 5.1.
71432
71433 2007-03-15  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71436         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71437         (struct gl_list_implementation): Add dispose_fn argument to the
71438         'create_empty', 'create' methods.
71439         (struct gl_list_impl_base): Add field 'dispose_fn'.
71440         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71441         argument.
71442         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71443         dispose_fn argument.
71444         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71445         dispose_fn on the dropped values.
71446         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71447         dispose_fn argument.
71448         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71449         dropped values.
71450         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71451         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71452         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71453         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71454         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71455         argument.
71456         (gl_tree_list_free): Call dispose_fn on the dropped values.
71457         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71458         the dropped values.
71459         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71460         Add dispose_fn argument.
71461         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71462         Call dispose_fn on the dropped values.
71463         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71464         Add dispose_fn argument.
71465         (gl_sublist_create): Initialize the 'dispose_fn' field.
71466         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71467         * tests/test-array_list.c (main): Update.
71468         * tests/test-carray_list.c (main): Update.
71469         * tests/test-avltree_list.c (main): Update.
71470         * tests/test-rbtree_list.c (main): Update.
71471         * tests/test-avltreehash_list.c (main): Update.
71472         * tests/test-rbtreehash_list.c (main): Update.
71473         * tests/test-linked_list.c (main): Update.
71474         * tests/test-linkedhash_list.c (main): Update.
71475         * tests/test-array_oset.c (main): Update.
71476
71477 2007-03-15  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71480         (gl_oset_create_empty): Add dispose_fn argument.
71481         (struct gl_oset_implementation): Add dispose_fn argument to
71482         'create_empty' method.
71483         (struct gl_oset_impl_base): Add dispose_fn field.
71484         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71485         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71486         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71487         values.
71488         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71489         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71490         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71491         dropped value.
71492         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71493         dropped value.
71494         * tests/test-array_oset.c (main): Update.
71495         * tests/test-avltree_oset.c (main): Update.
71496         * tests/test-rbtree_oset.c (main): Update.
71497         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71498
71499 2007-03-13  Bruno Haible  <bruno@clisp.org>
71500
71501         * tests/test-stdbool.c (i): Update after last patch.
71502
71503 2007-03-12  Bruno Haible  <bruno@clisp.org>
71504
71505         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71506         the iswprint macro. Needed on Solaris 2.5.1.
71507
71508 2007-03-12  Bruno Haible  <bruno@clisp.org>
71509
71510         * tests/test-printf-frexp.c (main): Declare x as volatile.
71511
71512 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71513
71514         * doc/gnulib.texi (Build robot for gnulib): New section.
71515
71516 2007-03-12  Jim Meyering  <jim@meyering.net>
71517
71518         * build-aux/bootstrap: New file.
71519         * build-aux/bootstrap.conf: New file, from coreutils.
71520
71521 2007-03-11  Bruno Haible  <bruno@clisp.org>
71522
71523         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71524
71525 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71526
71527         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71528         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71529         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71530
71531 2007-03-11  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71534         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71535
71536 2007-03-11  Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71539         formula. Needed for SunPRO C 5.0.
71540
71541 2007-03-11  Bruno Haible  <bruno@clisp.org>
71542
71543         * modules/long-options (Depends-on): Add getopt.
71544
71545 2007-03-11  Bruno Haible  <bruno@clisp.org>
71546
71547         * modules/modechange (Depends-on): Add stdbool.
71548
71549 2007-03-11  Bruno Haible  <bruno@clisp.org>
71550
71551         * modules/i-ring (Depends-on): Add stdbool.
71552
71553 2007-03-11  Bruno Haible  <bruno@clisp.org>
71554
71555         * modules/gc-des (Depends-on): Add stdbool.
71556
71557 2007-03-11  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71560
71561 2007-03-11  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71564
71565 2007-03-11  Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71568
71569 2007-03-11  Bruno Haible  <bruno@clisp.org>
71570
71571         * lib/vasnprintf.c (sprintf): Undefine.
71572
71573 2007-03-11  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71576         initializers in SunPRO C and Compaq C compilers.
71577
71578 2007-03-11  Bruno Haible  <bruno@clisp.org>
71579
71580         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71581         decrementing code ANSI C compliant.
71582
71583 2007-03-11  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71586         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71587
71588 2007-03-11  Bruno Haible  <bruno@clisp.org>
71589
71590         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71591         <stdbool.h> substitute doesn't pass.
71592
71593 2007-03-11  Bruno Haible  <bruno@clisp.org>
71594
71595         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71596
71597 2007-03-11  Bruno Haible  <bruno@clisp.org>
71598
71599         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71600         script, for submission to autobuild.josefsson.org.
71601
71602 2007-03-10  Bruno Haible  <bruno@clisp.org>
71603
71604         * modules/canonicalize-lgpl-tests: New file.
71605         * tests/test-canonicalize-lgpl.sh: New file.
71606         * tests/test-canonicalize-lgpl.c: New file.
71607
71608         * modules/c-strcase-tests: New file.
71609         * tests/test-c-strcase.sh: New file.
71610         * tests/test-c-strcasecmp.c: New file.
71611         * tests/test-c-strncasecmp.c: New file.
71612
71613         * modules/atexit-tests: New file.
71614         * tests/test-atexit.sh: New file.
71615         * tests/test-atexit.c: New file.
71616
71617 2007-03-10  Bruno Haible  <bruno@clisp.org>
71618
71619         * tests/test-binary-io.sh: Use temporary filenames that are not so
71620         likely to clash with those of other tests (in a parallel make).
71621         * tests/test-binary-io.c: Likewise.
71622
71623 2007-03-10  Bruno Haible  <bruno@clisp.org>
71624
71625         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71626         fallback; use #error instead.
71627         Suggested by Simon Josefsson.
71628
71629 2007-03-10  Bruno Haible  <bruno@clisp.org>
71630
71631         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71632         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71633         first and the last.
71634
71635 2007-03-10  Bruno Haible  <bruno@clisp.org>
71636
71637         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71638
71639 2007-03-10  Bruno Haible  <bruno@clisp.org>
71640
71641         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71642         "make distcheck".
71643         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71644         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71645         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71646
71647 2007-03-10  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71650         variable.
71651         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71652         variable.
71653
71654 2007-03-09  Eric Blake  <ebb9@byu.net>
71655         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71656
71657         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71658         types are not being provided by gnulib.
71659         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71660         types are supported.
71661
71662 2007-03-10  Bruno Haible  <bruno@clisp.org>
71663
71664         * lib/stdio_.h (__attribute__): New macro.
71665         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71666         vsprintf): Specify __attribute__ __format__ for GCC.
71667         Suggested by Eric Blake.
71668
71669 2007-03-09  Bruno Haible  <bruno@clisp.org>
71670
71671         * modules/printf-posix-tests: New file.
71672         * tests/test-printf-posix.sh: New file.
71673         * tests/test-printf-posix.c: New file.
71674
71675         * modules/printf-posix: New file.
71676         * lib/printf.c: New file.
71677         * m4/printf-posix-rpl.m4: New file.
71678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71679         REPLACE_PRINTF.
71680         * lib/stdio_.h (printf): New declaration.
71681         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71682         ____strfmon____): New macros.
71683         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71684         REPLACE_PRINTF.
71685
71686 2007-03-09  Bruno Haible  <bruno@clisp.org>
71687
71688         * tests/test-vasnprintf-posix2.sh: New file.
71689         * tests/test-vasnprintf-posix2.c: New file.
71690         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71691         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71692         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71693
71694         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71695         a locale dependent decimal point, rather than always '.'.
71696
71697 2007-03-09  Eric Blake  <ebb9@byu.net>
71698
71699         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71700         spite of platforms like Tandem/NSK that define it to -1.
71701
71702 2007-03-08  Bruno Haible  <bruno@clisp.org>
71703
71704         * modules/vprintf-posix-tests: New file.
71705         * tests/test-vprintf-posix.sh: New file.
71706         * tests/test-vprintf-posix.c: New file.
71707         * tests/test-printf-posix.h: New file.
71708
71709         * modules/vprintf-posix: New file.
71710         * lib/vprintf.c: New file.
71711         * m4/vprintf-posix.m4: New file.
71712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71713         REPLACE_VPRINTF.
71714         * lib/stdio_.h (vprintf): New declaration.
71715         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71716         REPLACE_VPRINTF.
71717
71718 2007-03-08  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/fprintf-posix-tests: New file.
71721         * tests/test-fprintf-posix.sh: New file.
71722         * tests/test-fprintf-posix.c: New file.
71723
71724         * modules/fprintf-posix: New file.
71725         * lib/fprintf.c: New file.
71726         * m4/fprintf-posix.m4: New file.
71727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71728         REPLACE_FPRINTF.
71729         * lib/stdio_.h (fprintf): New declaration.
71730         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71731         REPLACE_FPRINTF.
71732
71733 2007-03-08  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/vfprintf-posix-tests: New file.
71736         * tests/test-vfprintf-posix.sh: New file.
71737         * tests/test-vfprintf-posix.c: New file.
71738         * tests/test-fprintf-posix.h: New file.
71739         * tests/test-fprintf-posix.out: New file.
71740
71741         * modules/vfprintf-posix: New file.
71742         * lib/vfprintf.c: New file.
71743         * m4/vfprintf-posix.m4: New file.
71744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71745         REPLACE_VFPRINTF.
71746         * lib/stdio_.h (vfprintf): New declaration.
71747         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71748         REPLACE_VFPRINTF.
71749
71750 2007-03-08  Bruno Haible  <bruno@clisp.org>
71751
71752         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71753
71754 2007-03-08  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71757         instead of 'expr' invocations.
71758         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71759         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71760         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71763         Suggested by Paul Eggert.
71764
71765 2007-03-08  Bruno Haible  <bruno@clisp.org>
71766
71767         * modules/fseterr-tests: New file.
71768         * tests/test-fseterr.c: New file.
71769
71770         * modules/fseterr: New file.
71771         * lib/fseterr.h: New file.
71772         * lib/fseterr.c: New file.
71773
71774 2007-03-08  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71777         * lib/getopt_.h: Likewise.
71778         * lib/mbswidth.h: Likewise.
71779         * lib/setenv.h: Likewise.
71780         * lib/vasnprintf.h: Likewise.
71781         * lib/vasprintf.h: Likewise.
71782         * lib/verror.h: Likewise.
71783         * lib/xsetenv.h: Likewise.
71784         * lib/xvasprintf.h: Likewise.
71785
71786 2007-03-08  Jim Meyering  <jim@meyering.net>
71787
71788         * users.txt: Add parted.
71789
71790         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71791
71792 2007-03-07  Bruno Haible  <bruno@clisp.org>
71793
71794         * m4/printf.m4: Make the shell script snippets copy&pastable.
71795
71796 2007-03-02  Bruno Haible  <bruno@clisp.org>
71797
71798         * lib/netinet_in_.h: New file.
71799         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71800         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71801         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71802         (Depends-on): Add absolute-header.
71803         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71804         into netinet/in.h.
71805
71806 2007-03-03  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/sys_select_.h: New file.
71809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71810         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71811         * modules/sys_select (Files): Add lib/sys_select_.h.
71812         (Depends-on): Add absolute-header.
71813         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71814         into sys/select.h.
71815
71816 2007-03-02  Bruno Haible  <bruno@clisp.org>
71817
71818         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71819         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71820         values.
71821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71822         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71823         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71824         * modules/sys_socket (Depends-on): Add absolute-header.
71825         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71826         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71827         (Include): Remove requirement of inclusion of <sys/types.h>.
71828
71829 2007-03-02  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/byteswap_.h (bswap_32): Fix formula.
71832
71833 2007-03-06  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/sprintf-posix-tests: New file.
71836         * tests/test-sprintf-posix.c: New file.
71837
71838         * modules/sprintf-posix: New file.
71839         * lib/sprintf.c: New file.
71840         * m4/sprintf-posix.m4: New file.
71841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71842         REPLACE_SPRINTF.
71843         * lib/stdio_.h (sprintf): New declaration.
71844         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71845         REPLACE_SPRINTF.
71846
71847 2007-03-06  Bruno Haible  <bruno@clisp.org>
71848
71849         * modules/vsprintf-posix-tests: New file.
71850         * tests/test-vsprintf-posix.c: New file.
71851         * tests/test-sprintf-posix.h: New file.
71852
71853         * modules/vsprintf-posix: New file.
71854         * lib/vsprintf.c: New file.
71855         * m4/vsprintf-posix.m4: New file.
71856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71857         REPLACE_VSPRINTF.
71858         * lib/stdio_.h (vsprintf): New declaration.
71859         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71860         REPLACE_VSPRINTF.
71861
71862 2007-03-06  Bruno Haible  <bruno@clisp.org>
71863
71864         * modules/vsnprintf (Depend-on): Remove minmax.
71865
71866 2007-03-06  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/snprintf-posix-tests: New file.
71869         * tests/test-snprintf-posix.c: New file.
71870
71871         * modules/snprintf-posix: New file.
71872         * m4/snprintf-posix.m4: New file.
71873         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71874         gl_FUNC_SNPRINTF.
71875         (gl_FUNC_SNPRINTF): Invoke it.
71876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71877         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71878         is set.
71879         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71880
71881 2007-03-06  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/vsnprintf-posix-tests: New file.
71884         * tests/test-vsnprintf-posix.c: New file.
71885         * tests/test-snprintf-posix.h: New file.
71886
71887         * modules/vsnprintf-posix: New file.
71888         * m4/vsnprintf-posix.m4: New file.
71889         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71890         gl_FUNC_VSNPRINTF.
71891         (gl_FUNC_VSNPRINTF): Invoke it.
71892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71893         * lib/stdio_.h (vsnprintf): Define as a replacement if
71894         REPLACE_VSNPRINTF is set.
71895         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71896
71897 2007-03-06  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71901
71902 2007-03-06  Bruno Haible  <bruno@clisp.org>
71903
71904         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71905         (asinl): Declare also if HAVE_DECL_ASINL is set.
71906         (atanl): Declare also if HAVE_DECL_ATANL is set.
71907         (ceill): Declare also if HAVE_DECL_CEILL is set.
71908         (cosl): Declare also if HAVE_DECL_COSL is set.
71909         (expl): Declare also if HAVE_DECL_EXPL is set.
71910         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71911         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71912         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71913         (logl): Declare also if HAVE_DECL_LOGL is set.
71914         (sinl): Declare also if HAVE_DECL_SINL is set.
71915         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71916         (tanl): Declare also if HAVE_DECL_TANL is set.
71917         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71920         declaration of frexpl, ldexpl.
71921         * modules/printf-frexpl (Depends-on): Add math.
71922         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71923
71924 2007-03-05  Bruno Haible  <bruno@clisp.org>
71925
71926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71927         frexpl and ldexpl are declared.
71928         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71929
71930 2007-03-05  Bruno Haible  <bruno@clisp.org>
71931
71932         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71933         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71934
71935 2007-03-05  Bruno Haible  <bruno@clisp.org>
71936
71937         * lib/stdio_.h: Include <stddef.h>.
71938
71939 2007-03-05  Bruno Haible  <bruno@clisp.org>
71940
71941         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71942
71943 2007-03-05  Bruno Haible  <bruno@clisp.org>
71944
71945         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71946         NetBSD 4, from Ralf Wildenhues.
71947
71948 2007-03-04  Bruno Haible  <bruno@clisp.org>
71949
71950         * lib/vasprintf.h: Update #if logic for the case when the functions
71951         exist but are overridden.
71952
71953 2007-03-04  Bruno Haible  <bruno@clisp.org>
71954
71955         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71956         implementations: glibc-2.4 and MacOS X 10.3.
71957         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71958         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71959         * tests/test-vasprintf-posix.c (test_function): Likewise.
71960
71961 2007-03-04  Bruno Haible  <bruno@clisp.org>
71962
71963         * modules/vasprintf-posix-tests: New file.
71964         * tests/test-vasprintf-posix.c: New file.
71965
71966         * modules/vasprintf-posix: New file.
71967         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71968         defined.
71969         * m4/vasprintf-posix.m4: New file.
71970         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71971         gl_FUNC_VASPRINTF.
71972         (gl_FUNC_VASPRINTF): Invoke it.
71973         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71974         here.
71975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71976
71977 2007-03-04  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71980         REPLACE_GETTIMEOFDAY.
71981         * modules/sys_time (Makefile.am): Likewise.
71982         * m4/sys_time_h.m4: Likewise.
71983         * m4/gettimeofday.m4: Likewise.
71984
71985 2007-03-04  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/vasnprintf-posix-tests: New file.
71988         * tests/test-vasnprintf-posix.c: New file.
71989
71990         * modules/vasnprintf-posix: New file.
71991         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71992         printf-frexpl.h.
71993         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71994         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71995         REPLACE_VASNPRINTF is defined.
71996         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71997         gl_FUNC_VASNPRINTF.
71998         (gl_FUNC_VASNPRINTF): Invoke it.
71999         * m4/vasnprintf-posix.m4: New file.
72000         * m4/printf.m4: New file.
72001
72002 2007-03-04  Bruno Haible  <bruno@clisp.org>
72003
72004         Compile progreloc.c only if --enable-relocatable is specified.
72005         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72006         if --enable-relocatable was specified.
72007         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72008         lib_SOURCES.
72009
72010 2007-03-04  Jim Meyering  <jim@meyering.net>
72011
72012         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72013         Use it consistently, rather than enumerating errno constants.
72014
72015 2007-03-04  Bruno Haible  <bruno@clisp.org>
72016
72017         * modules/xvasprintf-tests: New file.
72018         * tests/test-xvasprintf.c: New file.
72019
72020         * modules/vasprintf-tests: New file.
72021         * tests/test-vasprintf.c: New file.
72022
72023         * modules/vasnprintf-tests: New file.
72024         * tests/test-vasnprintf.c: New file.
72025
72026         * modules/vsnprintf-tests: New file.
72027         * tests/test-vsnprintf.c: New file.
72028
72029         * modules/snprintf-tests: New file.
72030         * tests/test-snprintf.c: New file.
72031
72032 2007-03-04  Bruno Haible  <bruno@clisp.org>
72033
72034         Compile relocatable.c only if --enable-relocatable is specified.
72035         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72036         gl_RELOCATABLE_LIBRARY.
72037         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72038         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72039         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72040         gl_RELOCATABLE_LIBRARY.
72041         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72042         (Makefile.am): Remove lib_SOURCES.
72043         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72044         gl_RELOCATABLE_LIBRARY.
72045         (Makefile.am): Remove lib_SOURCES.
72046         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72047         always.
72048         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72049         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72050
72051 2007-03-04  Bruno Haible  <bruno@clisp.org>
72052
72053         * modules/argmatch-tests: New file.
72054         * tests/test-argmatch.c: New file.
72055
72056         * tests/test-allocsa.c (main): Halve the number of loop runs.
72057
72058         * modules/alloca-opt-tests: New file.
72059         * tests/test-alloca-opt.c: New file.
72060
72061 2007-03-04  Jim Meyering  <jim@meyering.net>
72062
72063         Work around difference between Linux ACLs and Solaris 10 ZFS.
72064         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72065         for EINVAL.
72066
72067 2007-03-03  Bruno Haible  <bruno@clisp.org>
72068
72069         * modules/relocatable-prog (Depends-on): Add back progreloc's
72070         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72071
72072 2007-03-03  Bruno Haible  <bruno@clisp.org>
72073
72074         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72075         * modules/relocatable-lib: New file.
72076
72077 2007-03-03  Bruno Haible  <bruno@clisp.org>
72078
72079         * modules/relocatable-prog: Renamed from modules/relocatable.
72080         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72081
72082 2007-03-03  Bruno Haible  <bruno@clisp.org>
72083
72084         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72085         m4/relocatable-lib.m4.
72086         (Depends-on): Remove 'relocatable'.
72087         (configure.ac): Add gl_RELOCATABLE_NOP.
72088
72089 2007-03-03  Bruno Haible  <bruno@clisp.org>
72090
72091         * modules/relocatable-prog-wrapper: New file.
72092         * modules/relocatable (Depends-on): Add it. Remove all other
72093         dependencies except progname.
72094         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72095
72096         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72097         (gl_FUNC_STRERROR): Nop.
72098         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72099
72100         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72101         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72102
72103         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72104         (gl_FUNC_READLINK): Update.
72105
72106         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72107
72108 2007-03-03  Bruno Haible  <bruno@clisp.org>
72109
72110         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72111         * modules/xreadlink (Depends-on): Add unistd.
72112         * modules/xreadlink-with-size (Depends-on): Likewise.
72113
72114 2007-03-03  Bruno Haible  <bruno@clisp.org>
72115
72116         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72117         extracted from gt_FUNC_SETENV.
72118         (gt_FUNC_SETENV): Remove macro.
72119         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72120         remove gt_FUNC_SETENV.
72121
72122 2007-03-03  Bruno Haible  <bruno@clisp.org>
72123
72124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72125         ENABLE_RELOCATABLE here.
72126         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72127
72128 2007-03-03  Bruno Haible  <bruno@clisp.org>
72129
72130         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72131         * tests/test-rbtreehash_list.c: Include progname.h.
72132         (main): Call set_program_name.
72133
72134         * modules/rbtree-oset-tests (Depends-on): Add progname.
72135         * tests/test-rbtree_oset.c: Include progname.h.
72136         (main): Call set_program_name.
72137
72138         * modules/rbtree-list-tests (Depends-on): Add progname.
72139         * tests/test-rbtree_list.c: Include progname.h.
72140         (main): Call set_program_name.
72141
72142         * modules/linked-list-tests (Depends-on): Add progname.
72143         * tests/test-linked_list.c: Include progname.h.
72144         (main): Call set_program_name.
72145
72146 2007-03-03  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72149         All uses of __restrict changed to _Restrict_.
72150         * lib/glob_.h (__restrict): Remove macro.
72151
72152 2007-03-02  Bruno Haible  <bruno@clisp.org>
72153
72154         * modules/gettext (configure.ac): Require gettext infrastructure
72155         from version 0.16.1.
72156
72157 2007-03-02  Bruno Haible  <bruno@clisp.org>
72158
72159         * modules/linkedhash-list-tests (Depends-on): Add progname.
72160         * tests/test-linkedhash_list.c: Include progname.h.
72161         (main): Call set_program_name.
72162
72163         * modules/carray-list-tests (Depends-on): Add progname.
72164         * tests/test-carray_list.c: Include progname.h.
72165         (main): Call set_program_name.
72166
72167         * modules/avltreehash-list-tests (Depends-on): Add progname.
72168         * tests/test-avltreehash_list.c: Include progname.h.
72169         (main): Call set_program_name.
72170
72171         * modules/avltree-oset-tests (Depends-on): Add progname.
72172         * tests/test-avltree_oset.c: Include progname.h.
72173         (main): Call set_program_name.
72174
72175         * modules/avltree-list-tests (Depends-on): Add progname.
72176         * tests/test-avltree_list.c: Include progname.h.
72177         (main): Call set_program_name.
72178
72179         * modules/array-oset-tests (Depends-on): Add progname.
72180         * tests/test-array_oset.c: Include progname.h.
72181         (main): Call set_program_name.
72182
72183         * modules/array-list-tests (Depends-on): Add progname.
72184         * tests/test-array_list.c: Include progname.h.
72185         (main): Call set_program_name.
72186
72187         * modules/argp-tests (Depends-on): Add progname.
72188         * tests/test-argp.c: Include argp.h first. Include progname.h.
72189         (main): Call set_program_name.
72190
72191 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * doc/gnulib-tool.texi (Initial import): Reword description of
72194         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72195         limited effect even if defined after the first system include.
72196
72197 2007-03-01  Bruno Haible  <bruno@clisp.org>
72198
72199         * build-aux/config.libpath: Update to libtool-1.5.22.
72200         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72201
72202 2007-03-01  Bruno Haible  <bruno@clisp.org>
72203
72204         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72205         foo_CFLAGS.
72206         Reported by Ralf Wildenhues.
72207
72208 2007-03-01  Bruno Haible  <bruno@clisp.org>
72209
72210         * build-aux/install-reloc: Remove object files left over by some
72211         compilers.
72212         Reported by Ralf Wildenhues.
72213
72214 2007-03-01  Bruno Haible  <bruno@clisp.org>
72215
72216         * build-aux/install-reloc: Break long lines.
72217
72218 2007-03-01  Bruno Haible  <bruno@clisp.org>
72219
72220         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72221         Reported by Ralf Wildenhues.
72222
72223 2007-03-01  Bruno Haible  <bruno@clisp.org>
72224
72225         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72226         include ordering constraints.
72227
72228 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72232         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72233         as another example.
72234         * lib/time_.h: Fix misspelling.
72235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72236         Require gl_HEADER_TIME_H_DEFAULTS.
72237         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72238         * m4/time_r.m4 (gl_TIME_R): Likewise.
72239         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72240
72241 2007-03-01  Bruno Haible  <bruno@clisp.org>
72242
72243         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72244         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72245
72246 2007-03-01  Jim Meyering  <jim@meyering.net>
72247
72248         * modules/xreadlink (Maintainer): Add my name.
72249         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72250
72251 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72252             Bruno Haible  <bruno@clisp.org>
72253
72254         * build-aux/install-reloc: Compile also c-ctype.c.
72255         * build-aux/relocatable.sh.in: New file.
72256         * doc/relocatable.texi: New file.
72257         * doc/relocatable-maint.texi: New file.
72258         * doc/gnulib.texi: Include relocatable-maint.texi.
72259         * lib/progreloc.c: Include unistd.h unconditionally.
72260         * lib/relocwrapper.c: Include unistd.h unconditionally.
72261         Include c-ctype.h.
72262         (add_dotbin): Use c_tolower.
72263         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72264         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72265         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72266         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72267         to m4/relocatable-lib.m4.
72268         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72269         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72270         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72271         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72272         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72273         * modules/relocatable: New file.
72274         * modules/relocatable-lib: New file.
72275         * modules/relocatable-script: New file.
72276
72277 2007-02-28  Bruno Haible  <bruno@clisp.org>
72278
72279         Import --enable-relocatable infrastructure.
72280         * build-aux/config.libpath: New file, from GNU gettext.
72281         * build-aux/install-reloc: New file, from GNU gettext.
72282         * build-aux/reloc-ldflags: New file, from GNU gettext.
72283         * lib/relocatable.h: New file, from GNU gettext.
72284         * lib/relocatable.c: New file, from GNU gettext.
72285         * lib/relocwrapper.c: New file, from GNU gettext.
72286         * m4/relocatable.m4: New file, from GNU gettext.
72287
72288 2007-02-28  Bruno Haible  <bruno@clisp.org>
72289
72290         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72291
72292         * modules/xreadlink: New file, from GNU gettext with modifications.
72293         * lib/xreadlink.c: New file, from GNU gettext.
72294         * lib/xreadlink.h: Add comments.
72295         (xreadlink): New declaration.
72296
72297         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72298         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72299         lib/xreadlink-with-size.c.
72300         (configure.ac): Remove gl_XREADLINK invocation.
72301         (Makefile.am): Augment lib_SOURCES.
72302         * m4/xreadlink.m4: Remove file.
72303         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72304         (xreadlink_with_size): Renamed from xreadink.
72305         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72306         * modules/canonicalize (Depends-on): Replace xreadlink with
72307         xreadlink-with-size.
72308         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72309
72310 2007-02-25  Jim Meyering  <jim@meyering.net>
72311
72312         * build-aux/announce-gen: When complaining about excess arguments,
72313         list them.
72314
72315 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * README: Document signed integer overflow situation more
72318         accurately.
72319
72320 2007-02-25  Bruno Haible  <bruno@clisp.org>
72321
72322         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72323         'a' or 'A' conversion.
72324
72325 2007-02-25  Bruno Haible  <bruno@clisp.org>
72326
72327         * modules/filename: Renamed from modules/pathname.
72328         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72329         lib/concatpath.c with lib/concat-filename.c.
72330         (Makefile.am): Update.
72331         (Include): Replace pathname.h with filename.h.
72332         * lib/filename.h: Renamed from lib/pathname.h.
72333         (concatenated_filename): Renamed from concatenated_pathname.
72334         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72335         (concatenated_filename): Renamed from concatenated_pathname.
72336         * lib/findprog.c: Include filename.h instead of pathname.h.
72337         (find_in_path): Update.
72338         * lib/javacomp.c: Include filename.h instead of pathname.h.
72339         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72340         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72341         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72342         is_oldgcj_14_13_usable, is_javac_usable): Update.
72343         * lib/javaexec.c: Include filename.h instead of pathname.h.
72344         (execute_java_class): Update.
72345         * modules/findprog: Update.
72346         * modules/javacomp: Update.
72347         * modules/javaexec: Update.
72348         * MODULES.html.sh (File system functions): Add 'filename', remove
72349         'pathname'.
72350
72351 2007-02-25  Bruno Haible  <bruno@clisp.org>
72352
72353         * modules/printf-frexpl-tests: New file.
72354         * tests/test-printf-frexpl.c: New file.
72355
72356         * modules/printf-frexpl: New file.
72357         * lib/printf-frexpl.h: New file.
72358         * lib/printf-frexpl.c: New file.
72359         * m4/printf-frexpl.m4: New file.
72360
72361 2007-02-25  Bruno Haible  <bruno@clisp.org>
72362
72363         * modules/printf-frexp-tests: New file.
72364         * tests/test-printf-frexp.c: New file.
72365
72366         * modules/printf-frexp: New file.
72367         * lib/printf-frexp.h: New file.
72368         * lib/printf-frexp.c: New file.
72369         * m4/printf-frexp.m4: New file.
72370
72371 2007-02-25  Bruno Haible  <bruno@clisp.org>
72372
72373         Assume automake >= 1.10 for the tests.
72374         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72375         * modules/arctwo-tests: Likewise.
72376         * modules/argp-tests: Likewise.
72377         * modules/avltree-list-tests: Likewise.
72378         * modules/avltree-oset-tests: Likewise.
72379         * modules/avltreehash-list-tests: Likewise.
72380         * modules/carray-list-tests: Likewise.
72381         * modules/crc-tests: Likewise.
72382         * modules/des-tests: Likewise.
72383         * modules/gc-arcfour-tests: Likewise.
72384         * modules/gc-arctwo-tests: Likewise.
72385         * modules/gc-des-tests: Likewise.
72386         * modules/gc-hmac-md5-tests: Likewise.
72387         * modules/gc-hmac-sha1-tests: Likewise.
72388         * modules/gc-md2-tests: Likewise.
72389         * modules/gc-md4-tests: Likewise.
72390         * modules/gc-md5-tests: Likewise.
72391         * modules/gc-pbkdf2-sha1-tests: Likewise.
72392         * modules/gc-rijndael-tests: Likewise.
72393         * modules/gc-sha1-tests: Likewise.
72394         * modules/gc-tests: Likewise.
72395         * modules/getaddrinfo-tests: Likewise.
72396         * modules/hmac-md5-tests: Likewise.
72397         * modules/hmac-sha1-tests: Likewise.
72398         * modules/linked-list-tests: Likewise.
72399         * modules/linkedhash-list-tests: Likewise.
72400         * modules/lock-tests: Likewise.
72401         * modules/md2-tests: Likewise.
72402         * modules/md4-tests: Likewise.
72403         * modules/md5-tests: Likewise.
72404         * modules/rbtree-list-tests: Likewise.
72405         * modules/rbtree-oset-tests: Likewise.
72406         * modules/rbtreehash-list-tests: Likewise.
72407         * modules/read-file-tests: Likewise.
72408         * modules/rijndael-tests: Likewise.
72409         * modules/stdint-tests: Likewise.
72410         * modules/tls-tests: Likewise.
72411
72412 2007-02-24  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72415         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72416         function; instead check whether isnan with a double argument links.
72417         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72418         function; instead check whether isnan with a 'long double' argument
72419         links.
72420         Reported by Eric Blake <ebb9@byu.net>.
72421
72422 2007-02-24  Bruno Haible  <bruno@clisp.org>
72423
72424         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72425         defined.
72426         * lib/isnanl.c: Remove all code. Just include isnan.c.
72427         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72428
72429 2007-02-25  Jim Meyering  <jim@meyering.net>
72430
72431         Avoid conflicting types for 'unsetenv' on FreeBSD.
72432         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72433         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72434         in stdlib.h.
72435
72436 2007-02-24  Bruno Haible  <bruno@clisp.org>
72437
72438         * modules/isnanl-nolibm-tests: New file.
72439         * tests/test-isnanl.c: New file.
72440
72441         * modules/isnanl-nolibm: New file.
72442         * lib/isnanl.h: New file.
72443         * lib/isnanl.c: New file.
72444         * m4/isnanl.m4: New file.
72445
72446 2007-02-24  Bruno Haible  <bruno@clisp.org>
72447
72448         * modules/isnan-nolibm-tests: New file.
72449         * tests/test-isnan.c: New file.
72450
72451         * modules/isnan-nolibm: New file.
72452         * lib/isnan.h: New file.
72453         * lib/isnan.c: New file.
72454         * m4/isnan.m4: New file.
72455
72456 2007-02-24  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72459         assume that an exponent fits in 20 bits.
72460
72461 2007-02-24  Jim Meyering  <jim@meyering.net>
72462
72463         * m4/regex.m4: Update the description of the configure-time option,
72464         --without-included-regex, to state accurately what the defaults are,
72465         and perhaps to give people an idea why using this option is risky.
72466
72467 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72470         loops on small arguments.  This attempts to avoid the problem
72471         Bruno Haible reported for AIX 4.3.2 in
72472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72473
72474 2007-02-23  Bruno Haible  <bruno@clisp.org>
72475
72476         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72477         Needed for help2man.
72478
72479 2007-02-23  Karl Berry  <karl@gnu.org>
72480
72481         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72482         exists, foo.h should be cvs-ignored, not committed.
72483
72484 2007-02-23  Eric Blake  <ebb9@byu.net>
72485
72486         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72487         * lib/stat-time.h (includes): Likewise.
72488         * lib/utimecmp.c (includes): Likewise.
72489         * lib/utimens.h (includes): Likewise.
72490         * lib/getdate.y (includes): Also include "timespec.h" for use
72491         internal to the module.
72492         * modules/utimens (Depends-on): Revert yesterday's patch.
72493         * modules/nanosleep (Depends-on): Add missing dependency.
72494
72495 2007-02-22  Bruno Haible  <bruno@clisp.org>
72496
72497         * lib/glob.c: Don't include getlogin_r.h.
72498
72499 2007-02-22  Jim Meyering  <jim@meyering.net>
72500
72501         * modules/utimens (Depends-on): Add timespec, required for
72502         utimens.h's inclusion of timespec.h.
72503
72504 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72507         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72508         Schwab in
72509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72510         I'll try to think of a better way to fix the Solaris problem.
72511
72512         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72513         like glibc; on Solaris 10, it fails with errno == EINVAL.
72514         POSIX says the behavior is unspecified if the first argument is NULL,
72515         so play it safe and never pass NULL to the system getcwd.
72516
72517 2007-02-21  Jim Meyering  <jim@meyering.net>
72518
72519         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72520         of gettimeofday.  It would conflict with the one now always
72521         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72522         an IRIX 6.5 build failure.
72523
72524 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         Minor fixups to port to Solaris 10 with Sun C 5.8.
72527         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72528         * modules/getcwd (Depends-on): Add dirfd.
72529         * lib/putenv.c (putenv): #undef it.
72530         (rpl_putenv): New decl.
72531         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72532
72533 2007-02-20  Bruno Haible  <bruno@clisp.org>
72534
72535         * modules/stdio-tests: New file.
72536         * tests/test-stdio.c: New file.
72537
72538         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72539         (Depends-on): Add stdio.
72540         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72541         (Include): Use <stdio.h> instead of vsnprintf.h.
72542         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72543         HAVE_DECL_VSNPRINTF.
72544         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72545
72546         * modules/snprintf (Files): Remove lib/snprintf.h.
72547         (Depends-on): Add stdio.
72548         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72549         (Include): Use <stdio.h> instead of snprintf.h.
72550         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72551         HAVE_DECL_SNPRINTF.
72552         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72553         * lib/getaddrinfo.c: Likewise.
72554
72555         * modules/stdio: New file.
72556         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72557         * lib/snprintf.h: Remove file.
72558         * lib/vsnprintf.h: Remove file.
72559         * lib/.cppi-disable: Remove snprintf.h.
72560         * m4/stdio_h.m4: New file.
72561         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72562
72563 2007-02-20  Jim Meyering  <jim@meyering.net>
72564
72565         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72566         used by e.g., mingw.  From Bruno Haible.
72567
72568 2007-02-19  Bruno Haible  <bruno@clisp.org>
72569
72570         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72571         warnings.
72572         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72573
72574 2007-02-19  Bruno Haible  <bruno@clisp.org>
72575
72576         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72577         from mingw users.
72578
72579 2007-02-19  Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72582         warnings.
72583         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72584
72585 2007-02-19  Jim Meyering  <jim@meyering.net>
72586
72587         Don't use FD after a successful "fdopendir (fd)".
72588         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72589         Reset it by calling dirfd on the just-obtained DIR*.
72590
72591         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72592         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72593
72594 2007-02-18  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/readlink.c: Include <unistd.h>.
72597         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72598         HAVE_READLINK.
72599         * modules/readlink (Depends-on): Add unistd.
72600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72601         (Include): Add <unistd.h>.
72602
72603         * lib/getlogin_r.h: Remove file.
72604         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72605         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72606         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72607         HAVE_DECL_GETLOGIN_R.
72608         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72610         (Include): Use <unistd.h> instead of getlogin_r.h.
72611
72612         * lib/getcwd.h: Remove file.
72613         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72614         * lib/xgetcwd.c: Likewise.
72615         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72616         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72617         * modules/getcwd (Files): Remove lib/getcwd.h.
72618         (Depends-on): Add unistd.
72619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72620         (Include): Use <unistd.h> instad of getcwd.h.
72621
72622         * lib/ftruncate.c: Include <unistd.h> first.
72623         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72624         Set HAVE_FTRUNCATE.
72625         * modules/ftruncate (Depends-on): Add unistd.
72626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72627
72628         * lib/fchdir.c: Include <unistd.h> first.
72629         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72631         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72632         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72633         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72634
72635         * lib/dup2.c: Include <unistd.h> first.
72636         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72637         HAVE_DUP2.
72638         * modules/dup2 (Depends-on): Add unistd.
72639         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72640
72641         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72642         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72643         REPLACE_CHOWN. Don't define chown as a macro here.
72644         * modules/chown (Depends-on): Add unistd.
72645         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72646
72647         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72648         Add definition for GL_LINK_WARNING.
72649         (chown, dup2): New declarations.
72650         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72651         link warning.
72652         (ftruncate): New declaration.
72653         (getcwd): New declaration, taken from old getcwd.h.
72654         (getlogin_r): New declaration, taken from old getlogin_r.h.
72655         (readlink): New declaration.
72656         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72657         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72658         (gl_PREREQ_UNISTD): Remove macro.
72659         (gl_UNISTD_MODULE_INDICATOR): New macro.
72660         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72661         many new variables. Don't set UNISTD_H.
72662         * modules/unistd (Description): Change.
72663         (Depends-on): Add link-warning.
72664         (configure.ac): Update.
72665         (Makefile.am): Create unistd.h always. Substitute many new variables
72666         into it.
72667
72668 2007-02-18  Bruno Haible  <bruno@clisp.org>
72669
72670         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72671         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72672         HAVE_GETSUBOPT.
72673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72674         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72675         * lib/getsubopt.h: Remove file.
72676         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72677         (Depends-on): Add stdlib.
72678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72679         (Includes): Use <stdlib.h> instead of getsubopt.h.
72680         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72681         Set HAVE_GETSUBOPT.
72682         * lib/getsubopt.c: Don't include getsubopt.h.
72683
72684 2007-02-18  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/fchdir (Depends-on): Add dup2.
72687
72688 2007-02-18  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/stdlib_.h: Handle glibc's special invocation convention
72691         specially.
72692
72693 2007-02-18  Bruno Haible  <bruno@clisp.org>
72694
72695         * modules/stdlib-tests: New file.
72696         * tests/test-stdlib.c: New file.
72697
72698         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72699         (Depends-on): Add stdlib.
72700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72701         (Includes): Use <stdlib.h> instead of mkstemp.h.
72702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72703         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72704         * lib/mkstemp.c: Don't include mkstemp.h.
72705         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72706         * lib/stdlib--.h: Don't include mkstemp.h.
72707
72708         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72709         (Depends-on): Add stdlib.
72710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72711         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72712         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72713         HAVE_MKDTEMP.
72714         * lib/mkdtemp.c: Don't include mkdtemp.h.
72715         * lib/clean-temp.c: Don't include mkdtemp.h.
72716
72717         * modules/exit (Files): Remove lib/exit.h.
72718         (Depends-on): Add stdlib.
72719         (Makefile.am): Remove lib_SOURCES.
72720         (Include): Use <stdlib.h> instead of exit.h.
72721         * lib/argmatch.c: Don't include exit.h.
72722         * lib/execute.c: Likewise.
72723         * lib/pagealign_alloc.c: Likewise.
72724         * lib/pipe.c: Likewise.
72725         * lib/wait-process.c: Likewise.
72726         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72727         * lib/exitfail.c: Likewise.
72728         * lib/savewd.c: Likewise.
72729         * lib/xsetenv.c: Likewise.
72730
72731         * modules/stdlib: New file.
72732         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72733         and extra comments about mkstemp().
72734         * lib/exit.h: Remove file.
72735         * lib/mkdtemp.h: Remove file.
72736         * lib/mkstemp.h: Remove file.
72737         * m4/stdlib_h.m4: New file.
72738         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72739
72740 2007-02-18  Bruno Haible  <bruno@clisp.org>
72741
72742         * modules/math-tests: New file.
72743         * tests/test-math.c: New file.
72744
72745         * modules/math: New file.
72746         * modules/mathl (Files): Remove lib/mathl.h.
72747         (Depends-on): Add math.
72748         (Makefile.am): Don't mention mathl.h.
72749         (Include): Use <math.h> instead of mathl.h.
72750         * lib/math_.h: New file.
72751         * lib/mathl.h: Remove file.
72752         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72753         mathl.h.
72754         * lib/asinl.c: Likewise.
72755         * lib/atanl.c: Likewise.
72756         * lib/ceill.c: Likewise.
72757         * lib/cosl.c: Likewise.
72758         * lib/expl.c: Likewise.
72759         * lib/floorl.c: Likewise.
72760         * lib/frexpl.c: Likewise.
72761         * lib/ldexpl.c: Likewise.
72762         * lib/logl.c: Likewise.
72763         * lib/sincosl.c: Likewise.
72764         * lib/sinl.c: Likewise.
72765         * lib/sqrtl.c: Likewise.
72766         * lib/tanl.c: Likewise.
72767         * lib/trigl.c: Likewise.
72768         * m4/math_h.m4: New file.
72769         * MODULES.html.sh (Mathematics): Add math.
72770
72771 2007-02-17  Bruno Haible  <bruno@clisp.org>
72772
72773         * modules/wctype-tests: New file.
72774         * tests/test-wctype.c: New file.
72775
72776         * modules/wchar-tests: New file.
72777         * tests/test-wchar.c: New file.
72778
72779         * modules/unistd-tests: New file.
72780         * tests/test-unistd.c: New file.
72781
72782         * modules/time-tests: New file.
72783         * tests/test-time.c: New file.
72784
72785         * modules/sysexits-tests: New file.
72786         * tests/test-sysexits.c: New file.
72787
72788         * modules/sys_time-tests: New file.
72789         * tests/test-sys_time.c: New file.
72790
72791         * modules/sys_stat-tests: New file.
72792         * tests/test-sys_stat.c: New file.
72793
72794         * modules/sys_socket-tests: New file.
72795         * tests/test-sys_socket.c: New file.
72796
72797         * modules/sys_select-tests: New file.
72798         * tests/test-sys_select.c: New file.
72799
72800         * modules/string-tests: New file.
72801         * tests/test-string.c: New file.
72802
72803         * modules/stdbool-tests: New file.
72804         * tests/test-stdbool.c: New file.
72805
72806         * modules/netinet_in-tests: New file.
72807         * tests/test-netinet_in.c: New file.
72808
72809         * modules/inttypes-tests: New file.
72810         * tests/test-inttypes.c: New file.
72811
72812         * modules/fcntl-tests: New file.
72813         * tests/test-fcntl.c: New file.
72814
72815         * modules/byteswap-tests: New file.
72816         * tests/test-byteswap.c: New file.
72817
72818         * modules/arpa_inet-tests: New file.
72819         * tests/test-arpa_inet.c: New file.
72820
72821 2007-02-17  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72824         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72825         if the corresponding module is not enabled. Emit link warnings if
72826         the function is used nevertheless.
72827         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72828         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72829         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72830         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72831         * modules/inttypes (Depends-on): Add link-warning.
72832         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72833         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72834         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72835         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72836         * modules/imaxdiv (configure.ac): Likewise.
72837         * modules/strtoimax (configure.ac): Likewise.
72838         * modules/strtoumax (configure.ac): Likewise.
72839
72840 2007-02-17  Bruno Haible  <bruno@clisp.org>
72841
72842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72843         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72844         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72845         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72846
72847 2007-02-17  Bruno Haible  <bruno@clisp.org>
72848
72849         * modules/link-warning: New file.
72850         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72851         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72852         * modules/string (Depends-on): Add link-warning.
72853         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72854         string.h.
72855         * MODULES.html.sh (Support for building libraries and executables): Add
72856         link-warning.
72857
72858 2007-02-17  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72861         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72862         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72863         long lines.
72864
72865 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72866             Bruno Haible  <bruno@clisp.org>
72867
72868         * modules/tmpfile: New file.
72869         * lib/tmpfile.c: New file.
72870         * m4/tmpfile.m4: New file.
72871         * MODULES.html.sh (func_all_modules): New section "Input/output".
72872
72873 2007-02-15  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72876         (supports_delete_on_close): New function.
72877         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72878
72879 2007-02-14  Bruno Haible  <bruno@clisp.org>
72880
72881         * modules/mbspcasecmp-tests: New file.
72882         * tests/test-mbspcasecmp.sh: New file.
72883         * tests/test-mbspcasecmp.c: New file.
72884
72885         New module mbspcasecmp.
72886         * modules/mbspcasecmp: New file.
72887         * lib/mbspcasecmp.c: New file.
72888         * lib/string_.h (strncasecmp): Change warning message.
72889         (mbspcasecmp): New declaration.
72890         * m4/mbspcasecmp.m4: New file.
72891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72892         GNULIB_MBSPCASECMP.
72893         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72894         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72895
72896 2007-02-14  Bruno Haible  <bruno@clisp.org>
72897
72898         * modules/mbsncasecmp-tests: New file.
72899         * tests/test-mbsncasecmp.sh: New file.
72900         * tests/test-mbsncasecmp.c: New file.
72901
72902         New module mbsncasecmp.
72903         * modules/mbsncasecmp: New file.
72904         * lib/mbsncasecmp.c: New file.
72905         * lib/string_.h (mbsncasecmp): New declaration.
72906         * m4/mbsncasecmp.m4: New file.
72907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72908         GNULIB_MBSNCASECMP.
72909         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72910         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72911
72912 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72915         Verify that it doesn't overlap with our flags.
72916         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72917         do not have the desired effect in multibyte locales; instead, use
72918         mbscasecmp.
72919         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72920         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72921         we don't require GNU fnmatch ourselves (if our users require it, they
72922         should do so explicitly).
72923
72924         Fix regex code so it doesn't rely on strcasecmp.
72925         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72926         Otherwise, include gnulib's langinfo.h.
72927         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72928         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72929         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72930         * modules/regex (FILES): Remove m4/codeset.m4.
72931         (Depends-on): Add localcharset.  Remove strcase.
72932
72933 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72934
72935         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72936         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72937
72938 2007-02-13  Bruno Haible  <bruno@clisp.org>
72939
72940         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72942
72943 2007-02-12  Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72946         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72947         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72948         time warning rather than a link error.
72949
72950 2007-02-12  Bruno Haible  <bruno@clisp.org>
72951
72952         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72953         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72955
72956 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72959         args, not 2.
72960
72961 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         New module 'time', so that apps can include <time.h> as per
72964         POSIX and GNU instead of separate include files like time_r.h
72965         and timegm.h.  This implementation tries out a simpler approach
72966         for replacing decls in standard include files (as compared to
72967         the string module), somewhat as an experiment.
72968
72969         * config/srclist.txt: Comment out mktime.c for now.
72970         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72971         since it doesn't apply any more.  Use generic wording instead.
72972         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72973         'time'.
72974         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72975         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72976         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72977         Don't include <sys/types.h>; no longer needed since we assume C89.
72978         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72979         * lib/strftime.c: Likewise.
72980         * lib/time_r.c: Likewise.
72981         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72982         * lib/nanosleep.c: Include <time.h> first, to check interface.
72983         * lib/strptime.c: Likewise.
72984         * lib/time_r.c: Likewise.
72985         * lib/timegm.c: Likewise.
72986         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72987         needed.
72988         * lib/timegm.c: Don't include timegm.h; no longer needed.
72989         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72990         time.h now handles any problems in that area.
72991         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72992         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72993         that time.h defines struct timespec.
72994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72995         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72996         handles that.
72997         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72998         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72999         needed.  Set REPLACE_LOCALTIME.
73000         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73001         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73002         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73003         nanosleep; time_h.m4 now does that.  Don't require
73004         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73005         module handles this now.
73006         * modules/getdate (Depends-on): Remove timespec.  Add time.
73007         * modules/nanosleep (Depends-on): Likewise.
73008         * modules/stat-time (Depends-on): Likewise.
73009         * modules/nanosleep (Include): Include time.h, not timespec.h.
73010         * modules/strptime (Files): Remove lib/strptime.h.
73011         (Depends-on): Add extensions, time.
73012         (Include): Include time.h, not strptime.h.
73013         * modules/time_r (Files): Remove lib/time_r.h.
73014         (Depends-on): Add time.
73015         (Include): Include time.h, not time_r.h.
73016         * modules/timegm: Likewise.
73017         * modules/timespec (Description): Now does timespec-related decls
73018         of our own, instead of struct timespec itself.
73019         (Depends-on): Add time; remove extensions.
73020         (Maintainer): Add self.
73021         * modules/utimecmp (Depends-on): Add time; remove timespec.
73022         * modules/utimens (Depends-on): Likewise.
73023         * modules/xnanosleep (Depends-on): Likewise.
73024
73025 2007-02-11  Bruno Haible  <bruno@clisp.org>
73026
73027         * lib/c-strstr.c: Include allocsa.h.
73028         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73029         * lib/c-strcasestr.c: Include allocsa.h.
73030         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73031         * lib/strcasestr.c: Include allocsa.h.
73032         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73033         * lib/mbsstr.c: Include allocsa.h.
73034         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73035         allocsa/freesa instead of malloc/free.
73036         * lib/mbscasestr.c: Include allocsa.h.
73037         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73038         allocsa/freesa instead of malloc/free.
73039         * modules/c-strstr (Depends-on): Add allocsa.
73040         * modules/c-strcasestr (Depends-on): Likewise.
73041         * modules/strcasestr (Depends-on): Likewise.
73042         * modules/mbsstr (Depends-on): Likewise.
73043         * modules/mbscasestr (Depends-on): Likewise.
73044
73045 2007-02-11  Bruno Haible  <bruno@clisp.org>
73046
73047         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73048
73049         * modules/mbsspn-tests: New file.
73050         * tests/test-mbsspn.sh: New file.
73051         * tests/test-mbsspn.c: New file.
73052
73053 2007-02-11  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73056
73057         * modules/mbspbrk-tests: New file.
73058         * tests/test-mbspbrk.sh: New file.
73059         * tests/test-mbspbrk.c: New file.
73060
73061 2007-02-11  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73064         unneeded cast.
73065
73066         * modules/mbscspn-tests: New file.
73067         * tests/test-mbscspn.sh: New file.
73068         * tests/test-mbscspn.c: New file.
73069
73070 2007-02-11  Bruno Haible  <bruno@clisp.org>
73071
73072         * modules/mbscasecmp-tests: New file.
73073         * tests/test-mbscasecmp.sh: New file.
73074         * tests/test-mbscasecmp.c: New file.
73075
73076 2007-02-11  Bruno Haible  <bruno@clisp.org>
73077
73078         Ensure O(n) worst-case complexity of mbscasestr.
73079         * lib/mbscasestr.c: Include stdbool.h.
73080         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73081         functions.
73082         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73083         the bookkeeping indicates that it's worth it.
73084         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73085
73086         * modules/mbscasestr-tests: New file.
73087         * tests/test-mbscasestr1.c: New file.
73088         * tests/test-mbscasestr2.sh: New file.
73089         * tests/test-mbscasestr2.c: New file.
73090         * tests/test-mbscasestr3.sh: New file.
73091         * tests/test-mbscasestr3.c: New file.
73092         * tests/test-mbscasestr4.sh: New file.
73093         * tests/test-mbscasestr4.c: New file.
73094         * m4/locale-tr.m4: New file.
73095
73096 2007-02-11  Bruno Haible  <bruno@clisp.org>
73097
73098         Ensure O(n) worst-case complexity of mbsstr.
73099         * lib/mbsstr.c: Include stdbool.h.
73100         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73101         functions.
73102         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73103         bookkeeping indicates that it's worth it.
73104         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73105
73106         * modules/mbsstr-tests: New file.
73107         * tests/test-mbsstr1.c: New file.
73108         * tests/test-mbsstr2.sh: New file.
73109         * tests/test-mbsstr2.c: New file.
73110         * tests/test-mbsstr3.sh: New file.
73111         * tests/test-mbsstr3.c: New file.
73112         * m4/locale-fr.m4: New file.
73113
73114 2007-02-11  Bruno Haible  <bruno@clisp.org>
73115
73116         * lib/mbsrchr.c (mbsrchr): Fix bug.
73117
73118         * modules/mbsrchr-tests: New file.
73119         * tests/test-mbsrchr.sh: New file.
73120         * tests/test-mbsrchr.c: New file.
73121
73122 2007-02-11  Bruno Haible  <bruno@clisp.org>
73123
73124         * lib/mbschr.c (mbschr): Fix bug.
73125
73126         * modules/mbschr-tests: New file.
73127         * tests/test-mbschr.sh: New file.
73128         * tests/test-mbschr.c: New file.
73129         * m4/locale-zh.m4: New file.
73130
73131 2007-02-11  Bruno Haible  <bruno@clisp.org>
73132
73133         Support for copying multibyte string iterators.
73134         * lib/mbiter.h: Include <string.h>.
73135         (mbiter_multi_copy): New function.
73136         (mbi_copy): New macro.
73137         * lib/mbuiter.h: Include <string.h>.
73138         (mbuiter_multi_copy): New function.
73139         (mbui_copy): New macro.
73140
73141 2007-02-11  Bruno Haible  <bruno@clisp.org>
73142
73143         New module mbslen.
73144         * modules/mbslen: New file.
73145         * lib/mbslen.c: New file.
73146         * lib/string_.h (mbslen): New declaration.
73147         * m4/mbslen.m4: New file.
73148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73149         GNULIB_MBSLEN.
73150         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73151         * MODULES.html.sh (Internationalization functions): Add mbslen.
73152
73153 2007-02-11  Bruno Haible  <bruno@clisp.org>
73154
73155         Ensure O(n) worst-case complexity of strcasestr substitute.
73156         * lib/strcasestr.c: Include stdbool.h.
73157         (knuth_morris_pratt): New function.
73158         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73159         bookkeeping indicates that it's worth it.
73160         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73161
73162         * modules/strcasestr-tests: New file.
73163         * tests/test-strcasestr.c: New file.
73164
73165 2007-02-11  Bruno Haible  <bruno@clisp.org>
73166
73167         Ensure O(n) worst-case complexity of c_strcasestr.
73168         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73169         (knuth_morris_pratt): New function.
73170         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73171         the bookkeeping indicates that it's worth it.
73172         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73173
73174         * modules/c-strcasestr-tests: New file.
73175         * tests/test-c-strcasestr.c: New file.
73176
73177 2007-02-11  Bruno Haible  <bruno@clisp.org>
73178
73179         Ensure O(n) worst-case complexity of c_strstr.
73180         * lib/c-strstr.c: Include stdbool.h, string.h.
73181         (knuth_morris_pratt): New function.
73182         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73183         bookkeeping indicates that it's worth it.
73184         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73185
73186         * lib/c-strstr.c: Complete rewrite for maintainability.
73187
73188         * modules/c-strstr-tests: New file.
73189         * tests/test-c-strstr.c: New file.
73190
73191 2007-02-11  Bruno Haible  <bruno@clisp.org>
73192
73193         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73194         5.2.1 and earlier, whereby \055 was treated just like the range
73195         delimiter '-'.
73196         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73197
73198 2007-02-08  Bruno Haible  <bruno@clisp.org>
73199
73200         * modules/regex (Depends-on): Add stdbool.
73201         Reported by Dalibor Topic <robilad@kaffe.org>.
73202
73203 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73206         Prefer returning from main to exiting from it.
73207         Remove unnecessary parens after sizeof.
73208
73209 2007-02-05  Bruno Haible  <bruno@clisp.org>
73210
73211         New module mbssep.
73212         * modules/mbssep: New file.
73213         * lib/mbssep.c: New file.
73214         * lib/string_.h (strsep): Add a conditional link warning.
73215         (mbssep): New declaration.
73216         * m4/mbssep.m4: New file.
73217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73218         GNULIB_MBSSEP.
73219         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73220         * MODULES.html.sh (Internationalization functions): Add mbssep.
73221
73222 2007-02-05  Bruno Haible  <bruno@clisp.org>
73223
73224         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73225         Optimize search in case of 1 delimiter.
73226
73227 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73228
73229         * lib/acl.h: Include sys/types.h before sys/acl.h.
73230
73231 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73232
73233         Merge upstream fix for glibc bugzilla #3957:
73234
73235         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73236
73237         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73238         bit for RE_HAT_LISTS_NOT_NEWLINE.
73239         (build_charclass_op): Remove bogus comment.
73240
73241 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73242
73243         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73244
73245 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73248         * lib/memmem.c [!defined _LIBC]: Include config.h.
73249
73250 2007-02-04  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73253         warning message.
73254
73255 2007-02-04  Bruno Haible  <bruno@clisp.org>
73256
73257         New module mbstok_r.
73258         * modules/mbstok_r: New file.
73259         * lib/mbstok_r.c: New file.
73260         * lib/string_.h (strtok_r): Change argument names to match the
73261         comments. Add a conditional link warning.
73262         (mbstok_r): New declaration.
73263         * m4/mbstok_r.m4: New file.
73264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73265         GNULIB_MBSTOK_R.
73266         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73267         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73268
73269 2007-02-04  Bruno Haible  <bruno@clisp.org>
73270
73271         New module mbsspn.
73272         * modules/mbsspn: New file.
73273         * lib/mbsspn.c: New file.
73274         * lib/string_.h (strspn): Add a conditional link warning.
73275         (mbsspn): New declaration.
73276         * m4/mbsspn.m4: New file.
73277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73278         GNULIB_MBSSPN.
73279         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73280         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73281
73282 2007-02-04  Bruno Haible  <bruno@clisp.org>
73283
73284         New module mbspbrk.
73285         * modules/mbspbrk: New file.
73286         * lib/mbspbrk.c: New file.
73287         * lib/string_.h (strpbrk): Add a conditional link warning.
73288         (mbspbrk): New declaration.
73289         * m4/mbspbrk.m4: New file.
73290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73291         GNULIB_MBSPBRK.
73292         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73293         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73294
73295 2007-02-04  Bruno Haible  <bruno@clisp.org>
73296
73297         New module mbscspn.
73298         * modules/mbscspn: New file.
73299         * lib/mbscspn.c: New file.
73300         * lib/string_.h (strcspn): Add a conditional link warning.
73301         (mbscspn): New declaration.
73302         * m4/mbscspn.m4: New file.
73303         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73304         GNULIB_MBSCSPN.
73305         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73306         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73307
73308 2007-02-04  Bruno Haible  <bruno@clisp.org>
73309
73310         New module mbscasestr, reduced goal of strcasestr.
73311         * modules/mbscasestr: New file.
73312         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73313         (mbscasestr): Renamed from strcasestr.
73314         * lib/strcasestr.c: Don't include mbuiter.h.
73315         (strcasestr): Remove support for multibyte locales.
73316         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73317         Change the conditional link warning.
73318         (mbscasestr): New declaration.
73319         * m4/mbscasestr.m4: New file.
73320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73321         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73322         REPLACE_STRCASESTR.
73323         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73325         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73326         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73327         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73328         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73329         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73330         (Depends-on): Remove mbuiter.
73331         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73332
73333 2007-02-04  Bruno Haible  <bruno@clisp.org>
73334
73335         Simplify handling of strncasecmp.
73336         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73337         the conditional link warning.
73338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73339         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73340         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73341         * modules/strcase (configure.ac): Don't invoke
73342         gl_STRING_MODULE_INDICATOR.
73343         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73344
73345 2007-02-04  Bruno Haible  <bruno@clisp.org>
73346
73347         New module mbscasecmp, reduced goal of strcasecmp.
73348         * modules/mbscasecmp: New file.
73349         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73350         (mbscasecmp): Renamed from strcasecmp.
73351         * lib/strcasecmp.c: Don't include mbuiter.h.
73352         (strcasecmp): Remove support for multibyte locales.
73353         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73354         Change the conditional link warning.
73355         (mbscasecmp): New declaration.
73356         * m4/mbscasecmp.m4: New file.
73357         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73358         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73359         REPLACE_STRCASECMP.
73360         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73362         GNULIB_MBSCASECMP.
73363         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73364         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73365         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73366         (Depends-on): Remove mbuiter.
73367         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73368
73369 2007-02-04  Bruno Haible  <bruno@clisp.org>
73370
73371         New module mbsstr. Remove module strstr.
73372         * modules/mbsstr: New file.
73373         * modules/strstr: Remove file.
73374         * lib/mbsstr.c: Renamed from lib/strstr.c.
73375         (mbsstr): Renamed from strstr.
73376         * lib/string_.h (strstr): Remove declaration. Change the conditional
73377         link warning.
73378         (mbsstr): New declaration.
73379         * m4/mbsstr.m4: New file.
73380         * m4/strstr.m4: Remove file.
73381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73382         REPLACE_STRSTR.
73383         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73384         Don't initialize GNULIB_STRSTR.
73385         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73386         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73387         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73388         (Support for systems lacking ANSI C 89): Remove strstr.
73389
73390 2007-02-04  Bruno Haible  <bruno@clisp.org>
73391
73392         New module mbsrchr.
73393         * modules/mbsrchr: New file.
73394         * lib/mbsrchr.c: New file.
73395         * lib/string_.h (strrchr): Add a conditional link warning.
73396         (mbsrchr): New declaration.
73397         * m4/mbsrchr.m4: New file.
73398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73399         GNULIB_MBSRCHR.
73400         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73401         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73402
73403 2007-02-04  Bruno Haible  <bruno@clisp.org>
73404
73405         New module mbschr.
73406         * modules/mbschr: New file.
73407         * lib/mbschr.c: New file.
73408         * lib/string_.h (strchr): Add a conditional link warning.
73409         (mbschr): New declaration.
73410         * m4/mbschr.m4: New file.
73411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73412         GNULIB_MBSCHR.
73413         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73414         * MODULES.html.sh (Internationalization functions): Add mbschr.
73415
73416 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73419
73420         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73421
73422 2007-02-04  Bruno Haible  <bruno@clisp.org>
73423
73424         New module description section 'configure.ac-early'.
73425         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73426         (func_get_autoconf_early_snippet): New function.
73427         (func_import, func_create_testdir): Use it. Remove special cases for
73428         modules 'extensions' and 'lock'.
73429         * modules/extensions (configure.ac-early): Require
73430         gl_USE_SYSTEM_EXTENSIONS.
73431         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73432
73433 2007-02-04  Bruno Haible  <bruno@clisp.org>
73434
73435         Make use of gcj-4.3's -fsource and -ftarget option.
73436         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73437         and if so try the options -fsource and -ftarget.
73438         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73439         source_version, ftarget_option, target_version arguments.
73440         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73441         (is_envjavac_oldgcj_14_14_usable): Renamed from
73442         is_envjavac_gcj_14_14_usable.
73443         (is_envjavac_oldgcj_14_13_usable): Renamed from
73444         is_envjavac_gcj_14_13_usable.
73445         (is_gcj_present): Update.
73446         (is_gcj_43, is_gcj43_usable): New functions.
73447         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73448         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73449         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73450         try the options -fsource and -ftarget.
73451
73452 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73453
73454         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73455         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73456         larger value.
73457
73458 2007-02-03  Jim Meyering  <jim@meyering.net>
73459
73460         Give tools a better chance to allocate space for very large buffers.
73461         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73462
73463         Make pwd and readlink work also when run with an unreadable parent dir
73464         on systems with openat support.
73465         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73466         provided getcwd function, even when we have openat support.
73467         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73468
73469 2007-02-02  Bruno Haible  <bruno@clisp.org>
73470
73471         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73472         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73473         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73474         portability problems if one of these functions is only used on specific
73475         platforms.
73476         Reported by Paul Eggert.
73477
73478 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73481         is causing more trouble than it's curing.
73482         * lib/regex_internal.h (__mempcpy): Remove.
73483         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73484         (and make the code a tad smaller to boot).
73485         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73486
73487 2007-02-02  Jim Meyering  <jim@meyering.net>
73488
73489         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73490         section, not in the Makefile.am: one.
73491
73492 2007-02-02  Eric Blake  <ebb9@byu.net>
73493
73494         * lib/strchrnul.c: Always include config.h first.
73495
73496         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73497         gnulib strstr is not necessary here.
73498
73499 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73500
73501         * m4/socklen.m4: Fix typo.
73502
73503 2007-02-02  Eric Blake  <ebb9@byu.net>
73504
73505         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73506         * modules/netinet_in (Makefile.am): Likewise.
73507
73508 2007-02-01  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/string_.h (GL_LINK_WARNING): New macro.
73511         (strcasecmp, strstr, strcasestr): If provided by the system,
73512         conditionally define as a macro that leads to a warning instead of to
73513         an error.
73514         (strncasecmp): Conditionally define as a macro that leads to a warning.
73515
73516 2007-02-01  Karl Berry  <karl@gnu.org>
73517
73518         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73519
73520 2007-02-01  Bruno Haible  <bruno@clisp.org>
73521
73522         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73523         renamings.
73524
73525 2007-02-01  Eric Blake  <ebb9@byu.net>
73526
73527         * modules/regex (Depends-on): Revert dependence on mempcpy.
73528         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73529         module's definition of mempcpy.
73530         Reported by Paul Eggert.
73531
73532 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73535         the symbol XYZ before redefining it.  This fixes a problem with
73536         programs that don't use XYZ, when compiled on systems that define
73537         XYZ to something else.
73538
73539 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73542         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73543         writeable to group or other and (2) is intended to have a special
73544         mode bit that is set or cleared.  In such a case, the directory
73545         should be neither group- nor other-writeable until the special
73546         mode bits are right.
73547
73548 2007-01-31  Eric Blake  <ebb9@byu.net>
73549
73550         * modules/mountlist (Depends-on): Add strstr.
73551
73552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73553         bug.
73554         * modules/string (Makefile.am): Remove redundant replacement.
73555         * modules/regex (Depends-on): Add mempcpy.
73556
73557 2007-01-31  Bruno Haible  <bruno@clisp.org>
73558
73559         New module description field 'Link'.
73560         * gnulib-tool (func_usage): Document --extract-link-directive.
73561         (sed_extract_prog): Recognize 'Link' directive.
73562         (func_get_link_directive): New function.
73563         (func_import): Show summary of link directives.
73564         Handle --extract-link-directive option.
73565         * modules/acl (Link): New section.
73566         * modules/clock-time (Link): New section.
73567         * modules/euidaccess (Link): New section.
73568         * modules/gettext (Link): New section.
73569         * modules/iconv (Link): New section.
73570         * modules/lock (Link): New section.
73571         * modules/nanosleep (Link): New section.
73572         * modules/readline (Link): New section.
73573
73574 2007-01-27  Bruno Haible  <bruno@clisp.org>
73575
73576         Enforce the use of gnulib modules for unportable <string.h> functions.
73577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73579         (gl_HEADER_STRING_H_BODY): Require it.
73580         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73581         the symbol XYZ to one that gives a link error.
73582         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73583         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73584         * modules/mempcpy (configure.ac): Likewise.
73585         * modules/memrchr (configure.ac): Likewise.
73586         * modules/stpcpy (configure.ac): Likewise.
73587         * modules/stpncpy (configure.ac): Likewise.
73588         * modules/strcase (configure.ac): Likewise.
73589         * modules/strcasestr (configure.ac): Likewise.
73590         * modules/strchrnul (configure.ac): Likewise.
73591         * modules/strdup (configure.ac): Likewise.
73592         * modules/strndup (configure.ac): Likewise.
73593         * modules/strnlen (configure.ac): Likewise.
73594         * modules/strpbrk (configure.ac): Likewise.
73595         * modules/strsep (configure.ac): Likewise.
73596         * modules/strstr (configure.ac): Likewise.
73597         * modules/strtok_r (configure.ac): Likewise.
73598
73599 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73600
73601         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73602
73603 2007-01-30  Jim Meyering  <jim@meyering.net>
73604
73605         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73606
73607 2007-01-29  Bruno Haible  <bruno@clisp.org>
73608
73609         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73610         * lib/execute.c: Likewise.
73611         * lib/pipe.c: Likewise.
73612         * lib/printf-args.h: Likewise.
73613         * lib/printf-args.c: Likewise.
73614         * lib/printf-parse.c: Likewise.
73615         * lib/vasnprintf.c: Likewise.
73616
73617 2007-01-29  Eric Blake  <ebb9@byu.net>
73618
73619         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73620         declaration.
73621
73622 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * lib/strptime.h (strptime): Use 'restrict' for args where
73625         POSIX requires this.
73626         * lib/strptime.c (strptime): Likewise.
73627         Change license notice from LGPL to GPL, since gnulib-tool will
73628         change this as needed.
73629         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73630         defined.
73631         Include "strptime.h" first, to check interface.
73632         Do not #undef _LIBC and _NL_CURRENT.
73633         Do not include <stdlib.h>; no longer needed.
73634         Include "time_r.h" and declare ptime_locale_status
73635         only if _LIBC is not defined.
73636         (__P): Remove unused macro.
73637         (match_string): Bring back glibc version, but use it only if _LIBC
73638         is defined.
73639         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73640         Remove unnecessary assertion and abort() call.
73641         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73642         * m4/strptime.m4: Fix serial number comment.
73643         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73644         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73645         (Depends-on): Add time_r.
73646
73647 2007-01-29  Bruno Haible  <bruno@clisp.org>
73648
73649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73650         strptime.
73651         * modules/strptime (Depends-on): Add stdbool.
73652         * lib/strptime.h: Include <time.h> always. Add comments.
73653
73654 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73655
73656         * modules/strptime: New file.
73657         * lib/strptime.h: New file.
73658         * lib/strptime.c: New file.
73659         * m4/strptime.m4: New file.
73660
73661 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * MODULES.html.sh: New module mpsort.
73664         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73665
73666         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73667         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73669         All uses changed.
73670         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73671         All uses changed.
73672         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73673         to _Restrict_.
73674         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73675         the parameter matches the prototype.
73676
73677 2007-01-28  Jim Meyering  <jim@meyering.net>
73678
73679         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73680         sys/time.h here, reverting that part of the previous patch:
73681         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73682
73683 2007-01-28  Bruno Haible  <bruno@clisp.org>
73684
73685         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73686         value of $(SYS_TIME_H).
73687         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73688         remove it conditionally, too. [added by Jim Meyering]
73689         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73691         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73692         GETTIMEOFDAY_REPLACEMENT to 1.
73693
73694 2007-01-28  Bruno Haible  <bruno@clisp.org>
73695
73696         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73697         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73699         Set UNISTD_H instead of UNISTD_H2.
73700         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73701
73702 2007-01-28  Bruno Haible  <bruno@clisp.org>
73703
73704         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73705         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73706
73707 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73708
73709         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73710         (func_create_testdir): Ensure C locale for `grep' and `tr'
73711         character ranges.
73712         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73713         ACLOCAL_AMFLAGS parsing state machine.
73714
73715 2007-01-27  Bruno Haible  <bruno@clisp.org>
73716
73717         * modules/unistr/base: Update.
73718
73719 2007-01-27  Bruno Haible  <bruno@clisp.org>
73720
73721         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73722         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73723         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73724         modules/unistr/u32-mbtouc.
73725         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73726         * lib/unistr.h: Update.
73727         * lib/linebreak.c: Update.
73728         * modules/unistr/u32-mbtouc: Renamed from
73729         modules/unistr/u32-mbtouc-safe.
73730         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73731         * lib/unistr.h: Update.
73732         * lib/unistr/u32-to-u8.c: Update.
73733         * lib/unistr/u32-to-u16.c: Update.
73734
73735 2007-01-27  Bruno Haible  <bruno@clisp.org>
73736
73737         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73738         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73739         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73740         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73741         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73742         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73743         modules/unistr/u16-mbtouc.
73744         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73745         * lib/unistr.h: Update.
73746         * lib/linebreak.c: Update.
73747         * modules/linebreak: Update.
73748         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73749         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73750         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73751         * modules/unistr/u16-mbtouc: Renamed from
73752         modules/unistr/u16-mbtouc-safe.
73753         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73754         * lib/unistr.h: Update.
73755         * lib/unistr/u16-to-u8.c: Update.
73756         * modules/unistr/u16-to-u8: Update.
73757         * lib/unistr/u16-to-u32.c: Update.
73758         * modules/unistr/u16-to-u32: Update.
73759
73760 2007-01-27  Bruno Haible  <bruno@clisp.org>
73761
73762         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73763         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73764         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73765         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73766         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73767         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73768         modules/unistr/u8-mbtouc.
73769         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73770         * lib/unistr.h: Update.
73771         * lib/striconveh.c: Update.
73772         * modules/striconveh: Update.
73773         * lib/linebreak.c: Update.
73774         * modules/linebreak: Update.
73775         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73776         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73777         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73778         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73779         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73780         * lib/unistr.h: Update.
73781         * lib/striconveh.c: Update.
73782         * modules/striconveh: Update.
73783         * lib/unistr/u8-to-u16.c: Update.
73784         * modules/unistr/u8-to-u16: Update.
73785         * lib/unistr/u8-to-u32.c: Update.
73786         * modules/unistr/u8-to-u32: Update.
73787
73788 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73789
73790         Sync from Libtool.
73791         * lib/argz.c: Do not include strings.h nor memory.h, include
73792         string.h unconditionally.  Patch by Simon Josefsson.
73793
73794 2007-01-27  Bruno Haible  <bruno@clisp.org>
73795
73796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73797         from gl_HEADER_STRING_H_BODY.
73798         (gl_HEADER_STRING_H_BODY): Require it.
73799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73801         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73802         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73804         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73806         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73807         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73809         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73810         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73811         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73813         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73814
73815 2007-01-27  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73818         check_PROGRAMS into noinst_PROGRAMS.
73819         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73820         check_PROGRAMS in this case.
73821         (func_import): Set for_test to false.
73822         (func_create_testdir): Set for_test to true.
73823
73824 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73825             Bruno Haible  <bruno@clisp.org>
73826
73827         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73828         (Depends-on): Add string.
73829         (Includes): Use <string.h> instead of strcasestr.h.
73830         * modules/string (Makefile.am): Also substitute the value of
73831         REPLACE_STRCASESTR.
73832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73833         assume strcasestr is declared in <string.h> not <strings.h>. Also
73834         set REPLACE_STRCASESTR.
73835         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73836         REPLACE_STRCASESTR.
73837         * lib/strcasestr.h: Remove file.
73838         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73839         * lib/string_.h (strcasestr): New declaration.
73840
73841 2007-01-27  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/string_.h: Use 'extern'.
73844
73845 2007-01-27  Jim Meyering  <jim@meyering.net>
73846
73847         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73848         of set-but-not-used local, "q".
73849
73850         * lib/mempcpy.c: Include <config.h> before <string.h>.
73851         This fixes a compilation error on HP-UX, due to the system's
73852         "restrict"-using mempcpy prototype.
73853
73854 2007-01-26  Bruno Haible  <bruno@clisp.org>
73855
73856         Small optimization.
73857         * lib/javacomp.c: Include c-strstr.h.
73858          (is_envjavac_gcj): Use c_strstr instead of strstr.
73859         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73860
73861 2007-01-26  Bruno Haible  <bruno@clisp.org>
73862
73863         * MODULES.html.sh (Unicode string functions): Add the new modules.
73864
73865         * modules/uniconv/u32-strconv-to-locale: New file.
73866         * lib/uniconv/u32-strconv-to-locale.c: New file.
73867
73868         * modules/uniconv/u16-strconv-to-locale: New file.
73869         * lib/uniconv/u16-strconv-to-locale.c: New file.
73870
73871         * modules/uniconv/u8-strconv-to-locale: New file.
73872         * lib/uniconv/u8-strconv-to-locale.c: New file.
73873
73874         * modules/uniconv/u32-strconv-from-locale: New file.
73875         * lib/uniconv/u32-strconv-from-locale.c: New file.
73876
73877         * modules/uniconv/u16-strconv-from-locale: New file.
73878         * lib/uniconv/u16-strconv-from-locale.c: New file.
73879
73880         * modules/uniconv/u8-strconv-from-locale: New file.
73881         * lib/uniconv/u8-strconv-from-locale.c: New file.
73882
73883         * modules/uniconv/u32-strconv-to-enc: New file.
73884         * lib/uniconv/u32-strconv-to-enc.c: New file.
73885         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73886         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73887
73888         * modules/uniconv/u16-strconv-to-enc: New file.
73889         * lib/uniconv/u16-strconv-to-enc.c: New file.
73890         * lib/uniconv/u-strconv-to-enc.h: New file.
73891         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73892         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73893
73894         * modules/uniconv/u8-strconv-to-enc: New file.
73895         * lib/uniconv/u8-strconv-to-enc.c: New file.
73896         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73897         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73898
73899         * modules/uniconv/u32-strconv-from-enc: New file.
73900         * lib/uniconv/u32-strconv-from-enc.c: New file.
73901         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73902         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73903
73904         * modules/uniconv/u16-strconv-from-enc: New file.
73905         * lib/uniconv/u16-strconv-from-enc.c: New file.
73906         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73907         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73908
73909         * modules/uniconv/u8-strconv-from-enc: New file.
73910         * lib/uniconv/u8-strconv-from-enc.c: New file.
73911         * lib/uniconv/u-strconv-from-enc.h: New file.
73912         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73913         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73914
73915         * modules/uniconv/u32-conv-from-enc: New file.
73916         * lib/uniconv/u32-conv-from-enc.c: New file.
73917         * modules/uniconv/u32-conv-from-enc-tests: New file.
73918         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73919
73920         * modules/uniconv/u16-conv-from-enc: New file.
73921         * lib/uniconv/u16-conv-from-enc.c: New file.
73922         * lib/uniconv/u-conv-from-enc.h: New file.
73923         * modules/uniconv/u16-conv-from-enc-tests: New file.
73924         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73925
73926         * modules/uniconv/u8-conv-from-enc: New file.
73927         * lib/uniconv/u8-conv-from-enc.c: New file.
73928         * modules/uniconv/u8-conv-from-enc-tests: New file.
73929         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73930
73931         * modules/uniconv/base: New file.
73932         * lib/uniconv.h: New file.
73933
73934 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         * doc/gnulib-tool.texi (Initial import): Update to match current
73937         behavior with strdup module.
73938         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73939         * lib/memmem.h: Remove; all uses removed.  This is now done
73940         by <string.h>.
73941         * lib/mempcpy.h: Likewise.
73942         * lib/memrchr.h: Likewise.
73943         * lib/stpcpy.h: Likewise.
73944         * lib/stpncpy.h: Likewise.
73945         * lib/strcase.h: Likewise.
73946         * lib/strchrnul.h: Likewise.
73947         * lib/strdup.h: Likewise.
73948         * lib/strndup.h: Likewise.
73949         * lib/strnlen.h: Likewise.
73950         * lib/strpbrk.h: Likewise.
73951         * lib/strsep.h: Likewise.
73952         * lib/strstr.h: Likewise.
73953         * lib/strtok_r.h: Likewise.
73954         * lib/string_.h: New file.
73955         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73956         Rely on <string.h> instead.
73957         * lib/canon-host.c: Likewise.
73958         * lib/chdir-long.c: Likewise.
73959         * lib/concatpath.c: Likewise.
73960         * lib/exclude.c: Likewise.
73961         * lib/fchdir.c: Likewise.
73962         * lib/getaddrinfo.c: Likewise.
73963         * lib/getcwd.c: Likewise.
73964         * lib/getsubopt.c: Likewise.
73965         * lib/glob.c: Likewise.
73966         * lib/hard-locale.c: Likewise.
73967         * lib/iconvme.c: Likewise.
73968         * lib/javacomp.c: Likewise.
73969         * lib/mempcpy.c: Likewise.
73970         * lib/memrchr.c: Likewise.
73971         * lib/regex_internal.h: Likewise.
73972         * lib/stpncpy.c: Likewise.
73973         * lib/strcasecmp.c: Likewise.
73974         * lib/strchrnul.c: Likewise.
73975         * lib/strdup.c: Likewise.
73976         * lib/striconv.c: Likewise.
73977         * lib/striconveh.c: Likewise.
73978         * lib/striconveha.c: Likewise.
73979         * lib/strncasecmp.c: Likewise.
73980         * lib/strndup.c: Likewise.
73981         * lib/strnlen.c: Likewise.
73982         * lib/strsep.c: Likewise.
73983         * lib/strstr.c: Likewise.
73984         * lib/strtok_r.c: Likewise.
73985         * lib/userspec.c: Likewise.
73986         * lib/w32spawn.h: Likewise.
73987         * lib/xstrndup.c: Likewise.
73988         * lib/mountlist.c (strstr): Remove decl.
73989         * m4/string_h.m4: New file.
73990         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73991         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73992         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73993         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73994         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73995         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73996         Set REPLACE_STRCASECMP if necessary.
73997         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73998         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73999         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74000         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74001         HAVE_DECL_STRDUP if necessary.
74002         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74003         since gl_FUNC_STRNDUP does that now.
74004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74005         Check for decl here...
74006         (gl_PREREQ_STRNLEN): ... not here.
74007         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74008         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74009         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74011         necessary.
74012         * modules/string: New file.
74013         * modules/memmem (Files): Remove special-purpose include file.
74014         (Depends-on): Add string.
74015         (Include): Include <string.h>, not the removed file.
74016         * modules/mempcpy: Likewise.
74017         * modules/memrchr: Likewise.
74018         * modules/stpcpy: Likewise.
74019         * modules/stpncpy: Likewise.
74020         * modules/strcase: Likewise.
74021         * modules/strchrnul: Likewise.
74022         * modules/strdup: Likewise.
74023         * modules/strndup: Likewise.
74024         * modules/strnlen: Likewise.
74025         * modules/strpbrk: Likewise.
74026         * modules/strsep: Likewise.
74027         * modules/strstr: Likewise.
74028         * modules/strtok_r: Likewise.
74029         * tests/test-dirname.c: Don't include "strdup.h", since
74030         <string.h> now suffices.
74031         * tests/test-memmem.c: Don't include "memmem.h", since
74032         <string.h> now suffices.
74033
74034 2007-01-25  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74037         *resultp is 0.
74038
74039         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74040         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74041         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74042         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74043
74044         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74045         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74046         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74047         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74048         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74049         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74050
74051 2007-01-24  Bruno Haible  <bruno@clisp.org>
74052
74053         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74055         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74056         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74057         gl_FUNC_FTS_CORE.
74058         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74059         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74060         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74061         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74062         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74063         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74064         gl_FUNC_FCHOWNAT.
74065         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74066         gl_FUNC_STRFTIME.
74067         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74068         Reported by Ralf Wildenhues.
74069
74070 2007-01-24  Bruno Haible  <bruno@clisp.org>
74071
74072         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74073         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74074         gl_GETADDRINFO.
74075         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74076         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74077         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74078
74079 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74082         Don't use 'exit'; just return from 'main'.
74083         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74084
74085         * lib/fnmatch_.h: Readjust white space and comments to match
74086         glibc, to avoid spurious diffs.
74087
74088 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74091         2004-12-01 change by Jakub Jelinek, since this code won't compile
74092         if !LIBC.  Problem reported by Bob Proulx.
74093
74094 2007-01-23  Bruno Haible  <bruno@clisp.org>
74095
74096         * lib/striconveh.c: Include c-strcaseeq.h.
74097         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74098         * modules/striconveh (Depends-on): Add c-strcaseeq.
74099
74100 2007-01-23  Bruno Haible  <bruno@clisp.org>
74101
74102         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74103
74104         * modules/c-strcaseeq: New file.
74105         * lib/c-strcaseeq.h: New file.
74106
74107         * modules/streq: New file.
74108         * lib/streq.h: New file.
74109
74110 2007-01-23  Bruno Haible  <bruno@clisp.org>
74111
74112         * modules/striconveha-tests: New file.
74113         * tests/test-striconveha.c: New file.
74114
74115         * lib/striconveha.h: Include <stdbool.h>.
74116         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74117         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74118         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74119         (mem_iconveha): New function.
74120         (str_iconveha_notranslit): Renamed from str_iconveha.
74121         (str_iconveha): New function.
74122         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74123         c-strcase.
74124
74125 2007-01-23  Bruno Haible  <bruno@clisp.org>
74126
74127         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74128         encodings without forgiving before trying any encoding with handler.
74129         (str_iconveha): Try all encodings without forgiving before trying any
74130         encoding with handler.
74131
74132 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         Import the following changes from libc.
74135
74136         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74137
74138         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74139
74140         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74141
74142         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74143         normal_bracket label.
74144
74145         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74146
74147         [BZ #361]
74148         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74149         to normal_bracket after fetching the next character.
74150
74151 2007-01-22  Bruno Haible  <bruno@clisp.org>
74152
74153         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74154         argument.
74155         * lib/striconveh.c (iconv_carefully_1): New function.
74156         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74157         argument.
74158         (str_cd_iconveh): Update.
74159         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74160         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74161         * tests/test-striconveh.c (MAGIC): New macro.
74162         (new_offsets): New function.
74163         (main): Test call with and without offsets.
74164
74165 2007-01-22  Bruno Haible  <bruno@clisp.org>
74166
74167         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74168         * modules/sys_select (Makefile.am): Likewise.
74169         * modules/sys_socket (Makefile.am): Likewise.
74170         * modules/sys_time (Makefile.am): Likewise.
74171
74172 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * modules/gettimeofday (License): Change from GPL to LGPL, since
74175         gettimeofday is a library function.
74176
74177 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74178
74179         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74180
74181 2007-01-21  Bruno Haible  <bruno@clisp.org>
74182
74183         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74184
74185 2007-01-21  Bruno Haible  <bruno@clisp.org>
74186
74187         * modules/striconveha: New file.
74188         * lib/striconveha.h: New file.
74189         * lib/striconveha.c: New file.
74190         * MODULES.html.sh (Internationalization functions): Add striconveha.
74191         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74192         string.
74193         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74194
74195 2007-01-21  Bruno Haible  <bruno@clisp.org>
74196
74197         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74198         * lib/striconveh.c (str_iconveh): Likewise.
74199
74200 2007-01-21  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/striconveh.h (mem_iconveh): New declaration.
74203         * lib/striconveh.c (mem_iconveh): New function.
74204         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74205
74206 2007-01-21  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74209
74210         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74211         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74212         original result buffer.
74213         (str_cd_iconveh): Update.
74214         * tests/test-striconveh.c (main): Update.
74215
74216         * lib/striconv.h (mem_cd_iconv): Change specification.
74217         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74218         result buffer.
74219         (str_cd_iconv): Update.
74220         * tests/test-striconv.c (main): Update.
74221
74222 2007-01-21  Bruno Haible  <bruno@clisp.org>
74223
74224         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74225
74226 2007-01-20  Jim Meyering  <jim@meyering.net>
74227
74228         * lib/userspec.c (parse_with_separator): If a user or group string
74229         starts with "+", skip the corresponding name-to-ID look-up, since
74230         such a look-up must fail: user and group names may not include "+".
74231
74232 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74235         since we now assume the sys_time module.
74236         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74237         check for sys/time.h; no longer needed.
74238         * modules/poll (Depends-on): Depend on sys_time.
74239
74240 2007-01-18  Bruno Haible  <bruno@clisp.org>
74241
74242         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74243         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74244
74245         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74246         gettimeofday.
74247
74248         * tests/test-gettimeofday.c: Include <time.h>.
74249         (dummy): Remove variable.
74250
74251         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74252         gl_HEADER_SYS_TIME_H.
74253         (gl_HEADER_SYS_TIME_H): New macro.
74254
74255         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74256         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74257         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74258         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74259         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74261         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74262         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74263         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74264         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74265         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74266
74267         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74268         last change; it caused a compilation error when cross-compiling to
74269         Cygwin.
74270
74271 2007-01-18  Jim Meyering  <jim@meyering.net>
74272
74273         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74274         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74275         than the race-prone "test -d sys || mkdir sys".
74276         (configure.ac): Use AC_PROG_MKDIR_P.
74277         * modules/sys_select: Likewise.
74278         * modules/sys_socket: Likewise.
74279         * modules/sys_time: Likewise.
74280
74281 2007-01-18  Eric Blake  <ebb9@byu.net>
74282
74283         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74284         replace gettimeofday.
74285         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74286         name, to avoid infinite recursion.
74287
74288 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74291         module sys_time.
74292         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74293         assume timespec.h defines struct timeval.
74294         * lib/settime.c: Likewise.
74295         * lib/utimens.c: Likewise.
74296         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74297         since we now assume the gettimeofday module.
74298         * lib/tempname.c (__gen_tempname): Likewise.
74299         * lib/gettimeofday.h: Remove.
74300         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74301         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74302         Include <time.h>, for 'time()'.
74303         (localtime_buffer_addr): Also use this workaround if
74304         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74305         to simplify the uses.  All uses changed.
74306         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74307         that #undef is inside {}, and 'const' follows type name consistently.
74308         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74309         (gettimeofday): Do not use the maximum possible value for
74310         tv->tv_usec, since that might break usages other than ls.c.
74311         Instead, we'll leave ls.c alone.  This undoes today's patch
74312         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74313         we've never observed the problem but might as well keep the
74314         canary.
74315         * lib/nanosleep.c: Include timespec.h first, for interface check.
74316         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74317         now assume the sys_time module.
74318         * lib/tempname.c: Likewise.
74319         * lib/timespec.h: Likewise.
74320         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74321         needed.
74322         * lib/strftime.c: Likewise.
74323         * lib/timespec.h: Likewise.
74324         * lib/posixtm.c: Include posixtm.h first, for interface check.
74325         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74326         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74327         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74328         * lib/sys_time_.h: New file.
74329         * lib/timespec.h (struct timespec): Use long int, not long.
74330         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74331         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74332         Remove obsolescent call to AC_HEADER_TIME.
74333         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74335         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74336         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74337         Likewise.
74338         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74339         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74341         into the sys_time module.  Check for gettimeofday just once.
74342         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74343         for gettimeofday signature to just check the signature.  Merely
74344         compile it, since linking doesn't test signature.  Improve test for
74345         whether gettimeofday.o is actually needed.
74346         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74347         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74348         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74349         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74350         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74351         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74352         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74353         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74354         than worrying about sys/time.h.
74355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74356         Don't bother worrying about TIME_WITH_SYS_TIME.
74357         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74358         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74359         * m4/sys_time_h.m4: New file.
74360         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74361         Don't include sys/time.h.  Return from main rather than exiting.
74362         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74363         all uses changed.
74364         * modules/gethrxtime (Depends-on): Add sys_time.
74365         * modules/gettime (Depends-on): Likewise.
74366         * modules/gettimeofday (Depends-on): Likewise.
74367         * modules/nanosleep (Depends-on): Likewise.
74368         * modules/settime (Depends-on): Likewise.
74369         * modules/tempname (Depends-on): Likewise.
74370         * modules/utimens (Depends-on): Likewise.
74371         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74372         (Include): Change back to <sys/time.h>.
74373         (Maintainer): Add self.
74374         * modules/sys_time: New file.
74375         * modules/tempname (Depends-on): Add gettimeofday.
74376         * tests/test-gettimeofday.c: Include <sys/time.h>
74377         rather than gettimeofday.h.
74378
74379 2007-01-17  Bruno Haible  <bruno@clisp.org>
74380
74381         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74382         the license default to GPL.
74383         (func_create_testdir): Don't complain if a module is LGPL and its
74384         tests module depends on GPLed modules.
74385
74386 2007-01-17  Bruno Haible  <bruno@clisp.org>
74387
74388         * lib/gettimeofday.c (gettimeofday): Add code for the case
74389         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74390         maximum possible value for tv->tv_usec, rather than the minimum one.
74391
74392 2005-10-08  Martin Lambers  <marlam@marlam.de>
74393 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74394 2007-01-16  Bruno Haible  <bruno@clisp.org>
74395
74396         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74397         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74398         gl_FUNC_GETTIMEOFDAY.
74399         (Include): Add gettimeofday.h.
74400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74401         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74402         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74403         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74404         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74405         * lib/gettimeofday.h: New file.
74406         * lib/gettimeofday.c: Include <sys/timeb.h>.
74407         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74408         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74409         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74410         fall back on time().
74411
74412         * tests/test-gettimeofday.c: New file.
74413         * modules/gettimeofday-tests: New file.
74414
74415 2007-01-16  Eric Blake  <ebb9@byu.net>
74416
74417         * modules/fnmatch (Depends-on): Depend on wchar.
74418         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74419         * m4/fnmatch.m4: Likewise.
74420         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74421         * m4/mbchar.m4: Likewise.
74422         * modules/mbswidth (Depends-on): Depend on wchar.
74423         * lib/mbswidth.c: Assume <wchar.h>.
74424         * m4/mbswidth.m4: Likewise.
74425         * modules/quotearg (Depends-on): Depend on wchar.
74426         * lib/quotearg.c: Assume <wchar.h>.
74427         * m4/quotearg.m4: Likewise.
74428         * modules/regex (Depends-on): Depend on wchar.
74429         * lib/regex_internal.h: Assume <wchar.h>.
74430         * m4/regex.m4: Likewise.
74431         * modules/stdint (Depends-on): Depend on wchar.
74432         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74433         * m4/stdint.m4: Likewise.
74434         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74435         * modules/strftime (Depends-on): Depend on wchar.
74436         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74437         * modules/strtol (Depends-on): Depend on wchar.
74438         * lib/strtol.c: Assume <wchar.h>.
74439         * modules/wcwidth (Depends-on): Depend on wchar.
74440         * lib/wcwidth.h: Assume <wchar.h>.
74441         * m4/wcwidth.m4: Likewise.
74442
74443 2007-01-16  Bruno Haible  <bruno@clisp.org>
74444
74445         * modules/csharpexec-script: New, created from...
74446         * modules/csharpexec: ... this.
74447
74448 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74449
74450         * modules/javaexec-script: New, created from...
74451         * modules/javaexec: ... this.
74452
74453 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74454
74455         * modules/poll (Dependencies): Add sys_select.
74456
74457 2007-01-15  Jim Meyering  <jim@meyering.net>
74458
74459         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74460         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74461         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74462         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74463
74464 2007-01-15  Bruno Haible  <bruno@clisp.org>
74465
74466         * modules/striconveh: New file.
74467         * lib/striconveh.h: New file.
74468         * lib/striconveh.c: New file.
74469         * MODULES.html.sh (Internationalization functions): Add striconveh.
74470
74471         * modules/striconveh-tests: New file.
74472         * tests/test-striconveh.c: New file.
74473
74474 2007-01-15  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74477         not from GNU libiconv or GNU libc.
74478
74479 2007-01-15  Bruno Haible  <bruno@clisp.org>
74480
74481         * doc/gnulib-intro.texi (Copyright): Explain the different license
74482         terms for module descriptions, autoconf macros, tests, documentation.
74483
74484 2007-01-14  Bruno Haible  <bruno@clisp.org>
74485
74486         * modules/striconv-tests: New file.
74487         * tests/test-striconv.c: New file.
74488
74489 2007-01-14  Bruno Haible  <bruno@clisp.org>
74490
74491         * modules/iconv-tests: New file.
74492         * tests/test-iconv.c: New file.
74493
74494 2007-01-14  Bruno Haible  <bruno@clisp.org>
74495
74496         * gnulib-tool (func_get_license): For test modules, use the license of
74497         the main module.
74498
74499 2007-01-14  Bruno Haible  <bruno@clisp.org>
74500
74501         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74502         if iconv is found to exist.
74503
74504 2007-01-14  Bruno Haible  <bruno@clisp.org>
74505
74506         * modules/c-ctype-tests: New file.
74507         * tests/test-c-ctype.c: New file.
74508
74509 2007-01-14  Bruno Haible  <bruno@clisp.org>
74510
74511         * modules/binary-io-tests: New file.
74512         * tests/test-binary-io.sh: New file.
74513         * tests/test-binary-io.c: New file.
74514
74515 2007-01-14  Bruno Haible  <bruno@clisp.org>
74516
74517         * modules/array-oset-tests: New file.
74518         * tests/test-array_oset.c: New file.
74519
74520 2007-01-14  Bruno Haible  <bruno@clisp.org>
74521
74522         * modules/array-list-tests: New file.
74523         * tests/test-array_list.c: New file.
74524
74525 2007-01-14  Bruno Haible  <bruno@clisp.org>
74526
74527         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74528         and make.
74529         Reported by Simon Josefsson in
74530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74531
74532 2007-01-14  Bruno Haible  <bruno@clisp.org>
74533
74534         * modules/allocsa-tests: New file.
74535         * tests/test-allocsa.c: New file.
74536
74537 2007-01-14  Bruno Haible  <bruno@clisp.org>
74538
74539         * modules/fchdir (Depends-on): Add absolute-header.
74540         * modules/unistd (Depends-on): Likewise.
74541
74542 2006-12-30  Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/fchdir: New file.
74545         * modules/unistd (Files): Add lib/unistd_.h.
74546         (Makefile.am): Generate unistd.h from unistd_.h.
74547         * lib/fchdir.c: New file.
74548         * lib/dirent_.h: New file.
74549         * lib/unistd_.h: New file.
74550         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74551         * m4/fchdir.m4: New file.
74552         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74553         (gl_HEADER_UNISTD): Invoke it.
74554         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74555         function.
74556         * lib/backupfile.c (opendir, closedir): Undefine.
74557         * lib/chown.c (open, close): Undefine.
74558         * lib/clean-temp.c (open, close): Undefine.
74559         * lib/copy-file.c (open, close): Undefine.
74560         * lib/execute.c (open, close): Undefine.
74561         * lib/fsusage.c (open, close): Undefine.
74562         * lib/gc-gnulib.c (open, close): Undefine.
74563         * lib/getcwd.c (opendir, closedir): Undefine.
74564         * lib/glob.c (opendir, closedir): Undefine.
74565         * lib/javacomp.c (open, close): Undefine.
74566         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74567         * lib/openat-proc.c (open, close): Undefine.
74568         * lib/pagealign_alloc.c (open, close): Undefine.
74569         * lib/pipe.c (open, close): Undefine.
74570         * lib/progreloc.c (open, close): Undefine.
74571         * lib/savedir.c (opendir, closedir): Undefine.
74572         * lib/utime.c (open, close): Undefine.
74573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74574
74575 2007-01-10  Bruno Haible  <bruno@clisp.org>
74576
74577         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74578
74579 2007-01-12  Eric Blake  <ebb9@byu.net>
74580
74581         Provide a robust <wchar.h>.  Further simplifications are now
74582         possible in other modules, but not included here.
74583         * modules/wchar: New module.
74584         * m4/wchar.m4: New file.
74585         * lib/wchar_.h: Likewise.
74586         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74587         of the new module.
74588         * MODULES.html.sh (Extended multibyte and wide character utilities):
74589         New section.
74590
74591 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74594         to a reasonable default for memory allocation.
74595         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74596         file system that reports garbage st_size values for symlinks.
74597         Problem reported by Liyang Hu.
74598
74599 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74600
74601         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74602         Emacs .#* auto-save files).
74603
74604 2007-01-11  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74607         directory.
74608
74609 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         Use @...@ consistently in lib/wctype_.h.
74612         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74613         on it being set to 1 or 0.
74614         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74615         go back to AC_SUBSTing it.
74616         * modules/wctype (Makefile.am): Undo previous change.
74617
74618 2007-01-10  Eric Blake  <ebb9@byu.net>
74619
74620         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74621         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74622         * modules/wctype (Makefile.am): Likewise.
74623         Reported by Chris McGuire.
74624
74625 2007-01-10  Jim Meyering  <jim@meyering.net>
74626
74627         fts.c: a small readability/maintainability improvement
74628         * lib/fts.c (fts_read): Make this code slightly more readable and
74629         maintainable by hoisting the "sp->fts_cur = p" assignments to
74630         immediately follow the statements that set P.  Derived from
74631         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74632
74633 2007-01-10  Eric Blake  <ebb9@byu.net>
74634
74635         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74636         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74637         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74638         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74639         Reported by Chris McGuire.
74640
74641 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74642
74643         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74644         in sed script.
74645
74646 2007-01-09  Bruno Haible  <bruno@clisp.org>
74647
74648         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74649         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74650         variables.
74651         (func_module): Use them.
74652
74653 2007-01-09  Bruno Haible  <bruno@clisp.org>
74654
74655         * modules/unistr/base: New file.
74656         * lib/unistr.h: New file.
74657
74658         * modules/unistr/u8-to-u16: New file.
74659         * lib/unistr/u8-to-u16.c: New file.
74660
74661         * modules/unistr/u8-to-u32: New file.
74662         * lib/unistr/u8-to-u32.c: New file.
74663
74664         * modules/unistr/u16-to-u8: New file.
74665         * lib/unistr/u16-to-u8.c: New file.
74666
74667         * modules/unistr/u16-to-u32: New file.
74668         * lib/unistr/u16-to-u32.c: New file.
74669
74670         * modules/unistr/u32-to-u8: New file.
74671         * lib/unistr/u32-to-u8.c: New file.
74672
74673         * modules/unistr/u32-to-u16: New file.
74674         * lib/unistr/u32-to-u16.c: New file.
74675
74676         * modules/unistr/u8-check: New file.
74677         * modules/unistr/u16-check: New file.
74678         * modules/unistr/u32-check: New file.
74679         * lib/unistr/u8-check.c: New file.
74680         * lib/unistr/u16-check.c: New file.
74681         * lib/unistr/u32-check.c: New file.
74682
74683         * modules/unistr/u8-chr: New file.
74684         * modules/unistr/u16-chr: New file.
74685         * modules/unistr/u32-chr: New file.
74686         * lib/unistr/u8-chr.c: New file.
74687         * lib/unistr/u16-chr.c: New file.
74688         * lib/unistr/u32-chr.c: New file.
74689
74690         * modules/unistr/u8-cmp: New file.
74691         * modules/unistr/u16-cmp: New file.
74692         * modules/unistr/u32-cmp: New file.
74693         * lib/unistr/u8-cmp.c: New file.
74694         * lib/unistr/u16-cmp.c: New file.
74695         * lib/unistr/u32-cmp.c: New file.
74696
74697         * modules/unistr/u8-cpy: New file.
74698         * modules/unistr/u16-cpy: New file.
74699         * modules/unistr/u32-cpy: New file.
74700         * lib/unistr/u8-cpy.c: New file.
74701         * lib/unistr/u16-cpy.c: New file.
74702         * lib/unistr/u32-cpy.c: New file.
74703         * lib/unistr/u-cpy.h: New file.
74704
74705         * modules/unistr/u8-cpy-alloc: New file.
74706         * modules/unistr/u16-cpy-alloc: New file.
74707         * modules/unistr/u32-cpy-alloc: New file.
74708         * lib/unistr/u8-cpy-alloc.c: New file.
74709         * lib/unistr/u16-cpy-alloc.c: New file.
74710         * lib/unistr/u32-cpy-alloc.c: New file.
74711         * lib/unistr/u-cpy-alloc.h: New file.
74712
74713         * modules/unistr/u8-endswith: New file.
74714         * modules/unistr/u16-endswith: New file.
74715         * modules/unistr/u32-endswith: New file.
74716         * lib/unistr/u8-endswith.c: New file.
74717         * lib/unistr/u16-endswith.c: New file.
74718         * lib/unistr/u32-endswith.c: New file.
74719         * lib/unistr/u-endswith.h: New file.
74720
74721         * modules/unistr/u8-mblen: New file.
74722         * modules/unistr/u16-mblen: New file.
74723         * modules/unistr/u32-mblen: New file.
74724         * lib/unistr/u8-mblen.c: New file.
74725         * lib/unistr/u16-mblen.c: New file.
74726         * lib/unistr/u32-mblen.c: New file.
74727
74728         * modules/unistr/u8-mbtouc: New file.
74729         * modules/unistr/u16-mbtouc: New file.
74730         * modules/unistr/u32-mbtouc: New file.
74731         * lib/unistr/u8-mbtouc.c: New file.
74732         * lib/unistr/u16-mbtouc.c: New file.
74733         * lib/unistr/u32-mbtouc.c: New file.
74734
74735         * modules/unistr/u8-mbtouc-safe: New file.
74736         * modules/unistr/u16-mbtouc-safe: New file.
74737         * modules/unistr/u32-mbtouc-safe: New file.
74738         * lib/unistr/u8-mbtouc-safe.c: New file.
74739         * lib/unistr/u16-mbtouc-safe.c: New file.
74740         * lib/unistr/u32-mbtouc-safe.c: New file.
74741
74742         * modules/unistr/u8-move: New file.
74743         * modules/unistr/u16-move: New file.
74744         * modules/unistr/u32-move: New file.
74745         * lib/unistr/u8-move.c: New file.
74746         * lib/unistr/u16-move.c: New file.
74747         * lib/unistr/u32-move.c: New file.
74748         * lib/unistr/u-move.h: New file.
74749
74750         * modules/unistr/u8-next: New file.
74751         * modules/unistr/u16-next: New file.
74752         * modules/unistr/u32-next: New file.
74753         * lib/unistr/u8-next.c: New file.
74754         * lib/unistr/u16-next.c: New file.
74755         * lib/unistr/u32-next.c: New file.
74756
74757         * modules/unistr/u8-prev: New file.
74758         * modules/unistr/u16-prev: New file.
74759         * modules/unistr/u32-prev: New file.
74760         * lib/unistr/u8-prev.c: New file.
74761         * lib/unistr/u16-prev.c: New file.
74762         * lib/unistr/u32-prev.c: New file.
74763
74764         * modules/unistr/u8-set: New file.
74765         * modules/unistr/u16-set: New file.
74766         * modules/unistr/u32-set: New file.
74767         * lib/unistr/u8-set.c: New file.
74768         * lib/unistr/u16-set.c: New file.
74769         * lib/unistr/u32-set.c: New file.
74770         * lib/unistr/u-set.h: New file.
74771
74772         * modules/unistr/u8-startswith: New file.
74773         * modules/unistr/u16-startswith: New file.
74774         * modules/unistr/u32-startswith: New file.
74775         * lib/unistr/u8-startswith.c: New file.
74776         * lib/unistr/u16-startswith.c: New file.
74777         * lib/unistr/u32-startswith.c: New file.
74778         * lib/unistr/u-startswith.h: New file.
74779
74780         * modules/unistr/u8-stpcpy: New file.
74781         * modules/unistr/u16-stpcpy: New file.
74782         * modules/unistr/u32-stpcpy: New file.
74783         * lib/unistr/u8-stpcpy.c: New file.
74784         * lib/unistr/u16-stpcpy.c: New file.
74785         * lib/unistr/u32-stpcpy.c: New file.
74786         * lib/unistr/u-stpcpy.h: New file.
74787
74788         * modules/unistr/u8-stpncpy: New file.
74789         * modules/unistr/u16-stpncpy: New file.
74790         * modules/unistr/u32-stpncpy: New file.
74791         * lib/unistr/u8-stpncpy.c: New file.
74792         * lib/unistr/u16-stpncpy.c: New file.
74793         * lib/unistr/u32-stpncpy.c: New file.
74794         * lib/unistr/u-stpncpy.h: New file.
74795
74796         * modules/unistr/u8-strcat: New file.
74797         * modules/unistr/u16-strcat: New file.
74798         * modules/unistr/u32-strcat: New file.
74799         * lib/unistr/u8-strcat.c: New file.
74800         * lib/unistr/u16-strcat.c: New file.
74801         * lib/unistr/u32-strcat.c: New file.
74802         * lib/unistr/u-strcat.h: New file.
74803
74804         * modules/unistr/u8-strchr: New file.
74805         * modules/unistr/u16-strchr: New file.
74806         * modules/unistr/u32-strchr: New file.
74807         * lib/unistr/u8-strchr.c: New file.
74808         * lib/unistr/u16-strchr.c: New file.
74809         * lib/unistr/u32-strchr.c: New file.
74810
74811         * modules/unistr/u8-strcmp: New file.
74812         * modules/unistr/u16-strcmp: New file.
74813         * modules/unistr/u32-strcmp: New file.
74814         * lib/unistr/u8-strcmp.c: New file.
74815         * lib/unistr/u16-strcmp.c: New file.
74816         * lib/unistr/u32-strcmp.c: New file.
74817
74818         * modules/unistr/u8-strcpy: New file.
74819         * modules/unistr/u16-strcpy: New file.
74820         * modules/unistr/u32-strcpy: New file.
74821         * lib/unistr/u8-strcpy.c: New file.
74822         * lib/unistr/u16-strcpy.c: New file.
74823         * lib/unistr/u32-strcpy.c: New file.
74824         * lib/unistr/u-strcpy.h: New file.
74825
74826         * modules/unistr/u8-strcspn: New file.
74827         * modules/unistr/u16-strcspn: New file.
74828         * modules/unistr/u32-strcspn: New file.
74829         * lib/unistr/u8-strcspn.c: New file.
74830         * lib/unistr/u16-strcspn.c: New file.
74831         * lib/unistr/u32-strcspn.c: New file.
74832         * lib/unistr/u-strcspn.h: New file.
74833
74834         * modules/unistr/u8-strdup: New file.
74835         * modules/unistr/u16-strdup: New file.
74836         * modules/unistr/u32-strdup: New file.
74837         * lib/unistr/u8-strdup.c: New file.
74838         * lib/unistr/u16-strdup.c: New file.
74839         * lib/unistr/u32-strdup.c: New file.
74840         * lib/unistr/u-strdup.h: New file.
74841
74842         * modules/unistr/u8-strlen: New file.
74843         * modules/unistr/u16-strlen: New file.
74844         * modules/unistr/u32-strlen: New file.
74845         * lib/unistr/u8-strlen.c: New file.
74846         * lib/unistr/u16-strlen.c: New file.
74847         * lib/unistr/u32-strlen.c: New file.
74848         * lib/unistr/u-strlen.h: New file.
74849
74850         * modules/unistr/u8-strmblen: New file.
74851         * modules/unistr/u16-strmblen: New file.
74852         * modules/unistr/u32-strmblen: New file.
74853         * lib/unistr/u8-strmblen.c: New file.
74854         * lib/unistr/u16-strmblen.c: New file.
74855         * lib/unistr/u32-strmblen.c: New file.
74856
74857         * modules/unistr/u8-strmbtouc: New file.
74858         * modules/unistr/u16-strmbtouc: New file.
74859         * modules/unistr/u32-strmbtouc: New file.
74860         * lib/unistr/u8-strmbtouc.c: New file.
74861         * lib/unistr/u16-strmbtouc.c: New file.
74862         * lib/unistr/u32-strmbtouc.c: New file.
74863
74864         * modules/unistr/u8-strncat: New file.
74865         * modules/unistr/u16-strncat: New file.
74866         * modules/unistr/u32-strncat: New file.
74867         * lib/unistr/u8-strncat.c: New file.
74868         * lib/unistr/u16-strncat.c: New file.
74869         * lib/unistr/u32-strncat.c: New file.
74870         * lib/unistr/u-strncat.h: New file.
74871
74872         * modules/unistr/u8-strncmp: New file.
74873         * modules/unistr/u16-strncmp: New file.
74874         * modules/unistr/u32-strncmp: New file.
74875         * lib/unistr/u8-strncmp.c: New file.
74876         * lib/unistr/u16-strncmp.c: New file.
74877         * lib/unistr/u32-strncmp.c: New file.
74878
74879         * modules/unistr/u8-strncpy: New file.
74880         * modules/unistr/u16-strncpy: New file.
74881         * modules/unistr/u32-strncpy: New file.
74882         * lib/unistr/u8-strncpy.c: New file.
74883         * lib/unistr/u16-strncpy.c: New file.
74884         * lib/unistr/u32-strncpy.c: New file.
74885         * lib/unistr/u-strncpy.h: New file.
74886
74887         * modules/unistr/u8-strnlen: New file.
74888         * modules/unistr/u16-strnlen: New file.
74889         * modules/unistr/u32-strnlen: New file.
74890         * lib/unistr/u8-strnlen.c: New file.
74891         * lib/unistr/u16-strnlen.c: New file.
74892         * lib/unistr/u32-strnlen.c: New file.
74893         * lib/unistr/u-strnlen.h: New file.
74894
74895         * modules/unistr/u8-strpbrk: New file.
74896         * modules/unistr/u16-strpbrk: New file.
74897         * modules/unistr/u32-strpbrk: New file.
74898         * lib/unistr/u8-strpbrk.c: New file.
74899         * lib/unistr/u16-strpbrk.c: New file.
74900         * lib/unistr/u32-strpbrk.c: New file.
74901         * lib/unistr/u-strpbrk.h: New file.
74902
74903         * modules/unistr/u8-strrchr: New file.
74904         * modules/unistr/u16-strrchr: New file.
74905         * modules/unistr/u32-strrchr: New file.
74906         * lib/unistr/u8-strrchr.c: New file.
74907         * lib/unistr/u16-strrchr.c: New file.
74908         * lib/unistr/u32-strrchr.c: New file.
74909
74910         * modules/unistr/u8-strspn: New file.
74911         * modules/unistr/u16-strspn: New file.
74912         * modules/unistr/u32-strspn: New file.
74913         * lib/unistr/u8-strspn.c: New file.
74914         * lib/unistr/u16-strspn.c: New file.
74915         * lib/unistr/u32-strspn.c: New file.
74916         * lib/unistr/u-strspn.h: New file.
74917
74918         * modules/unistr/u8-strstr: New file.
74919         * modules/unistr/u16-strstr: New file.
74920         * modules/unistr/u32-strstr: New file.
74921         * lib/unistr/u8-strstr.c: New file.
74922         * lib/unistr/u16-strstr.c: New file.
74923         * lib/unistr/u32-strstr.c: New file.
74924         * lib/unistr/u-strstr.h: New file.
74925
74926         * modules/unistr/u8-strtok: New file.
74927         * modules/unistr/u16-strtok: New file.
74928         * modules/unistr/u32-strtok: New file.
74929         * lib/unistr/u8-strtok.c: New file.
74930         * lib/unistr/u16-strtok.c: New file.
74931         * lib/unistr/u32-strtok.c: New file.
74932         * lib/unistr/u-strtok.h: New file.
74933
74934         * modules/unistr/u8-uctomb: New file.
74935         * modules/unistr/u16-uctomb: New file.
74936         * modules/unistr/u32-uctomb: New file.
74937         * lib/unistr/u8-uctomb.c: New file.
74938         * lib/unistr/u16-uctomb.c: New file.
74939         * lib/unistr/u32-uctomb.c: New file.
74940
74941         * MODULES.html.sh (Unicode string functions): Add the new modules.
74942
74943 2007-01-08  Bruno Haible  <bruno@clisp.org>
74944
74945         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74946         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74947         subdirectories.
74948
74949 2007-01-08  Karl Berry  <karl@gnu.org>
74950
74951         * doc/error.texi: mention that main() fns must set program_name
74952         when progname is used.
74953
74954 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74957         WCTYPE_H is empty, for the benefit of builds from non-distclean
74958         directories.  Problem reported by Eric Blake in
74959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74960
74961 2007-01-08  Bruno Haible  <bruno@clisp.org>
74962
74963         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74964         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74965         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74966         PROVIDE_CANONICALIZE_FILENAME_MODE.
74967         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74968
74969 2007-01-08  Bruno Haible  <bruno@clisp.org>
74970
74971         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74972         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74973         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74974         * lib/fts.c: Likewise.
74975         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74976
74977 2006-12-25  Bruno Haible  <bruno@clisp.org>
74978
74979         * modules/utf8-ucs4-safe: New file.
74980         * lib/utf8-ucs4-safe.h: New file.
74981         * lib/unistr/utf8-ucs4-safe.c: New file.
74982
74983         * modules/utf16-ucs4-safe: New file.
74984         * lib/utf16-ucs4-safe.h: New file.
74985         * lib/unistr/utf16-ucs4-safe.c: New file.
74986
74987         * MODULES.html.sh (Unicode string functions): Add the new modules.
74988
74989 2007-01-08  Bruno Haible  <bruno@clisp.org>
74990
74991         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74992         (Depends-on): Add unitypes.
74993         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74994         (u8_mbtouc_aux): Move out to separate file.
74995         (u8_mbtouc): Use ucs4_t, uint8_t types.
74996         * lib/unistr/utf8-ucs4.c: New file.
74997
74998         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74999         (Depends-on): Add unitypes.
75000         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75001         (u16_mbtouc_aux): Move out to separate file.
75002         (u16_mbtouc): Use ucs4_t, uint16_t types.
75003         * lib/unistr/utf16-ucs4.c: New file.
75004
75005         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75006         (Depends-on): Add unitypes.
75007         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75008         (u8_uctomb_aux): Move out to separate file.
75009         (u8_uctomb): Use ucs4_t, uint8_t types.
75010         * lib/unistr/ucs4-utf8.c: New file.
75011
75012         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75013         (Depends-on): Add unitypes.
75014         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75015         (u16_uctomb_aux): Move out to separate file.
75016         (u16_uctomb): Use ucs4_t, uint16_t types.
75017         * lib/unistr/ucs4-utf16.c: New file.
75018
75019 2006-12-25  Bruno Haible  <bruno@clisp.org>
75020
75021         * modules/unitypes: New file.
75022         * lib/unitypes.h: New file.
75023         * MODULES.html.sh (func_all_modules): New section "Unicode string
75024         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75025         this section. Add unitypes.
75026
75027 2007-01-08  Bruno Haible  <bruno@clisp.org>
75028
75029         Avoid variable names that conflict with those from libtool.
75030         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75031         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75032         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75033         library_names_spec to acl_library_names_spec, hardcode_* to
75034         acl_hardcode_*.
75035         Reported by Ralf Wildenhues.
75036
75037 2007-01-08  Bruno Haible  <bruno@clisp.org>
75038
75039         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75040         definition.
75041         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75042         definition.
75043         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75044         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75045         definition.
75046         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75047         definition.
75048         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75049         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75050         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75051         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75052         definition.
75053         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75054         definition.
75055         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75056         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75057         GC_USE_<algorithm>.
75058         * lib/gc-libgcrypt.c: Likewise.
75059         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75060         * modules/gc-arctwo (configure.ac): Likewise.
75061         * modules/gc-des (configure.ac): Likewise.
75062         * modules/gc-hmac-md5 (configure.ac): Likewise.
75063         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75064         * modules/gc-md2 (configure.ac): Likewise.
75065         * modules/gc-md4 (configure.ac): Likewise.
75066         * modules/gc-md5 (configure.ac): Likewise.
75067         * modules/gc-random (configure.ac): Likewise.
75068         * modules/gc-rijndael (configure.ac): Likewise.
75069         * modules/gc-sha1 (configure.ac): Likewise.
75070
75071 2007-01-08  Bruno Haible  <bruno@clisp.org>
75072
75073         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75074         macro definition.
75075         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75076         definition.
75077         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75078         definition.
75079         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75080         * modules/fcntl-safer (configure.ac): Likewise.
75081         * modules/fopen-safer (configure.ac): Likewise.
75082         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75083         GNULIB_FWRITEERROR macro definition.
75084
75085 2007-01-08  Bruno Haible  <bruno@clisp.org>
75086
75087         * m4/gnulib-common.m4: New file.
75088         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75089         (func_get_filelist): Add m4/gnulib-common.m4.
75090
75091 2007-01-08  Bruno Haible  <bruno@clisp.org>
75092
75093         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75094         command.
75095
75096 2007-01-08  Jim Meyering  <jim@meyering.net>
75097
75098         Use a more robust test for a "can't happen" condition.
75099         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75100         narrowed the st_size value.  Presuming the "can't happen" condition
75101         is true, that narrowing could conceivably convert an invalid st_size
75102         value into a valid one.  Instead, use a change based on Matthew
75103         Woehlke's original patch.
75104
75105         Slight readability improvement: use an assert-like macro
75106         in place of literal "abort ()" uses.
75107         * lib/fts.c (fts_assert): Define.
75108         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75109         Use this macro instead of a bare 'abort'.
75110
75111 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75114         simply work around them.
75115         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75116         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75117         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75118         declaring.
75119         Don't bother to define as macros, since the standard doesn't require it.
75120         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75121         longer worry about IRIX 5.3.
75122         (HAVE_WCTYPE_CTMP_BUG): Remove.
75123
75124 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75127         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75128         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75129         Problems reported by Georg Schwarz for IRIX 5.3.
75130
75131         * gnulib-tool (autoconf_minversion): Take the maximum version number
75132         found, not the minimum.  Problem reported by James Youngman.
75133
75134 2007-01-03  Karl Berry  <karl@gnu.org>
75135
75136         * doc/error.texi: new file, explaining interaction with progname.
75137         * doc/gnulib.texi: include it.  Update copyright.
75138
75139 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75140
75141         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75142         AC_CANONICAL_HOST, to improve autobuild outputs.
75143
75144 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75145             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75146
75147         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75148         sockets, server sockets, and other file descriptors.  Count errors
75149         to compute the return value.  Reorder the code a bit to be easier
75150         to follow.  Don't set event bits that were not requested (except
75151         POLLERR and POLLHUP).
75152
75153 2007-01-01  Bruno Haible  <bruno@clisp.org>
75154
75155         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75156
75157 2007-01-03  Jim Meyering  <jim@meyering.net>
75158
75159         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75160
75161 2007-01-02  Bruno Haible  <bruno@clisp.org>
75162
75163         * modules/settime (Include): Require timespec.h.
75164         * modules/nanosleep (Include): Likewise.
75165
75166 2007-01-01  Bruno Haible  <bruno@clisp.org>
75167
75168         * gnulib-tool (func_emit_copyright_notice): Bump year.
75169         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75170
75171 2007-01-01  Bruno Haible  <bruno@clisp.org>
75172
75173         Improve support for OpenBSD.
75174         * build-aux/config.rpath (libname_spec): Export.
75175         (library_names_spec): New variable. Export.
75176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75177         library_names_spec from the config.rpath output. Locate shared library
75178         through the name pattern in library_names_spec.
75179
75180 2007-01-01  Eric Blake  <ebb9@byu.net>
75181
75182         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75183
75184 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75185
75186         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75187         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75188         assume the C locale, and avoid an "eval" that could cause trouble.
75189         Problem with SORT reported by Bob Proulx.
75190
75191         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75192         Define.  Trivial patch from Henning Nielsen Lund, originally
75193         sent to bug-grep@gnu.org today.
75194
75195 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75198         struct stat.  Problem reported by Henning Nielsen Lund.
75199         * lib/acl.c: Include acl.h first, to check interface.  Don't
75200         bother to include sys/types.h and sys/stat.h again.
75201
75202 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         Import the following change from libc; problem reported by
75205         Sven Verdoolaege.
75206
75207         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75208
75209         [BZ #1373]
75210         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75211
75212 2006-12-28  Jim Meyering  <jim@meyering.net>
75213
75214         * build-aux/announce-gen: Do not assume that the package
75215         builds any of tar.gz, tar.bz2, and .xdelta files.
75216         Suggestion from Simon Josefsson.
75217
75218 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75219
75220         * modules/announce-gen: New file.
75221
75222 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75225         handles its gotchas now.
75226         * lib/mbswidth.c: Likewise.
75227         * lib/wcwidth.h: Likewise.
75228         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75229         and iswcntrl; the wctype module does this stuff now.
75230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75232         * modules/mbchar (Depends-on): Add wctype.
75233         * modules/mbswidth (Depends-on): Likewise.
75234         * modules/wcwidth (Depends-on): Likewise.
75235
75236 2006-12-27  Eric Blake  <ebb9@byu.net>
75237
75238         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75239         module uses more than what <wctype.h> is required to provide.
75240
75241 2006-12-26  Eric Blake  <ebb9@byu.net>
75242
75243         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75244
75245 2006-12-26  Eric Blake  <ebb9@byu.net>
75246
75247         * modules/absolute-header: New module.
75248         * modules/fcntl (Depends-on): Depend on it.
75249         * modules/inttypes (Depends-on): Likewise.
75250         * modules/stdint (Depends-on): Likewise.
75251         * modules/sys_stat (Depends-on): Likewise.
75252         * modules/wctype (Depends-on): Likewise.
75253         * MODULES.html.sh (Support for building libraries and
75254         executables): Document it.
75255
75256 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * gnulib-tool (SED): Remove, undoing previous change.
75259         The problem was that it broke coreutils on Solaris, because
75260         "sed --posix" leaked into a makefile.
75261         (sed): New alias, if 'alias' and GNU sed.
75262
75263 2006-12-24  Jim Meyering  <jim@meyering.net>
75264
75265         Work around an fchownat bug in glibc-2.4:
75266         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75267         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75268         in spite of the -P option.
75269         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75270         New macros.
75271         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75272         * modules/openat (Files): Add lib/fchownat.c.
75273         * lib/openat.c (fchownat): Don't define here.  Move to...
75274         * lib/fchownat.c: ...this new file.
75275
75276 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75277
75278         Fix bug reported by Bruno Haible in
75279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75280         where quotearg.c didn't compile on Mac OS X 10.2 because it
75281         lacks <wchar.h> and wint_t.
75282         * lib/wctype_.h (__wctype_wint_t): New type.
75283         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75284         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75285         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75286         Arg is now of type __wctype_wint_t, not wint_t.
75287         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75288         substitute HAVE_WINT_T.
75289         * modules/wctype (Files): Add m4/wint_t.m4.
75290         (wctype.h): Substitute HAVE_WINT_T.
75291
75292 2006-12-23  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75295
75296 2006-12-23  Bruno Haible  <bruno@clisp.org>
75297
75298         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75299         S_ISLNK.
75300         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75301         mingw.
75302
75303 2006-12-22  Bruno Haible  <bruno@clisp.org>
75304
75305         * lib/copy-file.c: Include acl.h.
75306         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75307         Close the file descriptors only after being done with copy_acl.
75308         * modules/copy-file (Depends-on): Add acl.
75309
75310 2006-12-22  Bruno Haible  <bruno@clisp.org>
75311
75312         * gnulib-tool (SED): New variable.
75313         Use $SED instead of sed everywhere.
75314
75315 2006-12-22  Bruno Haible  <bruno@clisp.org>
75316
75317         * modules/no-c++: New file.
75318         * m4/no-c++.m4: New file.
75319         * MODULES.html.sh (Support for building libraries and executables):
75320         Add no-c++.
75321
75322 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75325         Include <limits.h>, and use its INT_MAX to rewrite the
75326         j loop so that it does not overflow 'int'.  Problem reported by
75327         Ralf Wildenhues in
75328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75329         Play it safe by shifting left by 1 rather than multiplying by 2,
75330         as GCC is less likely to optimize this away when the value
75331         is signed (when it assumes overflow leads to undefined behavior).
75332         Also, don't assume time_t uses two's complement.
75333
75334 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * MODULES.html.sh: New module wctype.
75337         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75338         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75339         <wctype.h>, since the new wctype module should fix this.
75340         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75341         the wctype module should arrange for it.
75342         * lib/regex_internal.h: Likewise.
75343         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75344         since the wctype module should handle this now.
75345         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75346         * modules/fnmatch (Depends-on): Add wctype.
75347         * modules/quotearg (Depends-on): Likewise.
75348         * modules/regex (Depends-on): Likewise.
75349
75350 2006-12-19  Bruno Haible  <bruno@clisp.org>
75351
75352         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75353         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75354
75355 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75356
75357         * modules/savewd (Depends-on): Fix dependency on fcntl.
75358
75359 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75362         conforms to C99, rather than relying on the user's environment
75363         setting of STDINT_H.
75364
75365 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75366         and Eric Blake  <ebb9@byu.net>
75367
75368         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75369         This is more consistent with the other defines here.
75370         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75371         Port to z/OS.  Problem reported by Paul Gilmartin.
75372         Change local vars to use gl_ prefix rather than ac_.
75373         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75374         with other defines.
75375         * modules/double-slash-root: New module.
75376         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75377         (Depends-on): Add double-slash-root.
75378         * MODULES.html.sh (File system functions): Mention new module.
75379
75380 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75383         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75384         This is for the benefit of gzip, which doesn't do i18n.
75385
75386 2006-12-12  Jim Meyering  <jim@meyering.net>
75387
75388         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75389         Reported by Andreas Schwab <schwab@suse.de>.
75390
75391 2006-12-12  Bruno Haible  <bruno@clisp.org>
75392
75393         Merge these changes.
75394         2006-09-05  Bruno Haible  <bruno@clisp.org>
75395         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75396         iconv_alloc succeeded.
75397         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75398         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75399         test for " && dest " at the end - dest is always != NULL there. Call
75400         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75401         with 2xNULL arguments, also to flush the state storage. Handle the
75402         IRIX iconv behaviour. Realloc the final result, to throw away unused
75403         memory.
75404
75405 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75408         and fchmodat unconditionally, since glibc 2.4 has them.
75409         Problem reported by Arkadiusz Miskiewicz.
75410
75411 2006-12-10  Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_import): Show the include files only for those
75414         modules that are copied and specified.
75415         Reported by Karl Berry.
75416
75417 2006-12-08  Jim Meyering  <jim@meyering.net>
75418
75419         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75420         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75421
75422         * build-aux/announce-gen: Add two new options, both optional:
75423         --bootstrap-tools=TOOL_LIST
75424               a comma-separated list of tools, e.g.,
75425               autoconf,automake,bison,gnulib
75426         --gnulib-snapshot-date=DATE
75427               if gnulib is in the bootstrap tool list,
75428               then report this as the snapshot date.
75429               If not specified, use the current date/time.
75430               If you specify a date here, be sure it's UTC.
75431
75432 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75433
75434         * tests/test-argp-2.sh: Fix test to match actual output.
75435         (func_compare): Fix sed script to be portable.
75436
75437 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75440         workaround for this case.  It is not autoconfigured now; offhand
75441         it's hard to see how to autoconfigure it.
75442
75443 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75446         a directory that is about to be chowned.  Such a directory's
75447         initial file permissions should permit the owner only and this
75448         should not be changed until after the chown, since the group and
75449         other bits would be incorrect if they granted permission before
75450         the chown.
75451
75452         Fix porting problem for iswctype reported by Georg Schwarz in:
75453         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75454         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75455         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75457         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75458
75459 2006-12-03  Jim Meyering  <jim@meyering.net>
75460
75461         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75462         p->fts_statp may not yet be defined.
75463         (fts_read): Instead, set it in the caller, once p->fts_statp is
75464         sure to be defined, and corresponds to a top-level directory.
75465         This bug made du -x fail.  Here's the coreutils test case:
75466         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75467         Reported by Mike Frysinger.
75468
75469 2006-12-01  Jim Meyering  <jim@meyering.net>
75470
75471         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75472         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75473         Reported by Simon Josefsson.
75474
75475 2006-11-30  Jim Meyering  <jim@meyering.net>
75476
75477         * m4/warning.m4: Use the all-permissive copyright notice
75478         recommended by RMS (rather than LGPL).
75479         * m4/vararrays.m4: Likewise.
75480         * m4/flexmember.m4: Likewise.
75481
75482 2006-11-29  Bruno Haible  <bruno@clisp.org>
75483
75484         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75485         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75486         using +=.
75487         Reported by Simon Josefsson <simon@josefsson.org>.
75488
75489 2006-11-28  James Youngman <jay@gnu.org>
75490
75491         * README: Advise users that they might find the bug-gnulib@gnu.org
75492         and autotools-announce@gnu.org mailing lists useful.
75493
75494 2006-11-28  Bruno Haible  <bruno@clisp.org>
75495
75496         * m4/ptrdiff_max.m4: Remove file.
75497
75498 2006-11-21  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75501         _AC_COMPUTE_INT.
75502         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75503         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75504         _AC_COMPUTE_INT.
75505         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75506         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75507         _AC_COMPUTE_INT.
75508         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75509
75510 2006-11-28  Jim Meyering  <jim@meyering.net>
75511
75512         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75513         warning from "gcc -Wshadow" about shadowing the builtin.
75514
75515 2006-11-27  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75518         _AC_COMPUTE_INT.
75519         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75520
75521 2006-11-27  Bruno Haible  <bruno@clisp.org>
75522             Paul Eggert  <eggert@cs.ucla.edu>
75523
75524         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75525
75526 2006-11-26  Bruno Haible  <bruno@clisp.org>
75527
75528         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75529         noinst_LTLIBRARIES.
75530
75531 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75532             Bruno Haible  <bruno@clisp.org>
75533
75534         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75535         if compiling with "gcc -ansi".
75536
75537 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         Fix some incompatibilities with gcc -ansi -pedantic.
75540         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75541         if compiling pedantically with GCC, unless it's C99 or later.
75542         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75543         it mishandles gcc -ansi -pedantic as well.
75544         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75545         if gcc -pedantic.
75546         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75547         initializers for struct if -pedantic, unless it's C99 or later.
75548
75549 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75550
75551         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75552         Don't close an fd more than once. Identical atimes indicate
75553         success, not failure.
75554
75555 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75556
75557         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75558
75559 2006-11-23  Jim Meyering  <jim@meyering.net>
75560
75561         * build-aux/announce-gen: New file.  From coreutils.
75562
75563 2006-11-22  Jim Meyering  <jim@meyering.net>
75564
75565         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75566         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75567         (fts_read): Use a temporary to narrow the overused st_size member
75568         before using it in a switch statement.  Reported by Matthew Woehlke.
75569
75570         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75571         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75572
75573 2006-11-20  Bruno Haible  <bruno@clisp.org>
75574
75575         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75576         changequote instead of pairs of brackets.
75577         Reported by Andreas Schwab <schwab@suse.de>.
75578
75579 2006-11-21  Jim Meyering  <jim@meyering.net>
75580
75581         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75582         so as to remain compatible with older compilers.
75583         Patch from Michael Deutschmann.
75584
75585 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * MODULES.html.sh (File system functions): Add openat.
75588
75589         * lib/openat.h (rpl_fstatat): New macro, if
75590         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75591         (fstatat): Define to rpl_fstatat under the same conditions,
75592         unless COMPILING_FSTATAT.
75593         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75594         seems to have the bug.
75595         * lib/fstatat.c: New file.
75596         * modules/openat (Files): Add it.
75597
75598 2006-11-20  Bruno Haible  <bruno@clisp.org>
75599
75600         * Makefile: New file.
75601
75602 2006-11-20  Jim Meyering  <jim@meyering.net>
75603
75604         The beginnings of syntax-related checks for gnulib.
75605         * lib/Makefile: New file.
75606         * lib/t-idcache: New script.  Ensure that the two halves of
75607         idcache.c stay in sync.
75608
75609         * lib/idcache.c: Adjust comments in user- and group- portions to
75610         be more accurate, and to be consistent with one another.
75611
75612 2006-11-20  Jim Meyering  <jim@meyering.net>
75613
75614         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75615         continue using the flexible array member (thus, this module performs
75616         half as many malloc calls), with the addition that...
75617         (getgroup, getuser): Consistently record a non-match via an empty
75618         "name" string, and map an empty string match to a NULL return value.
75619         * modules/idcache (Depends-on): Re-add flexmember.
75620
75621         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75622         (getuidbyname, getgroup, getgidbyname): Likewise.
75623
75624         Use cleaner syntax: NULL rather than 0.
75625         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75626
75627 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75630         It mishandled the case where the group was missing.
75631         Problem reported by Greg Schafer.
75632         * modules/idcache: Likewise.
75633
75634 2006-11-18  Jim Meyering  <jim@meyering.net>
75635
75636         * check-module (%exempt_header): Add exception for some
75637         conditionally-included headers.
75638
75639         * modules/i-ring (Depends-on): Add verify.
75640         (License): Change to LGPL.
75641
75642 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75645         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75646         and inttostr.h.  Use snprintf rather than uinttostr, so that
75647         LGPLed code doesn't depend on GPLed.
75648
75649 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75650
75651         * modules/inline (License): Change from GPL to LGPL.
75652
75653 2006-11-17  Jim Meyering  <jim@meyering.net>
75654
75655         * modules/d-type (License): Switch to LGPL.
75656
75657 2006-11-15  Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75660
75661 2006-11-15  Eric Blake  <ebb9@byu.net>
75662
75663         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75664         the module dependency.
75665
75666 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75667             Bruno Haible  <bruno@clisp.org>
75668
75669         * gnulib-tool (func_create_testdir): Add license consistency check.
75670
75671 2006-11-15  Eric Blake  <ebb9@byu.net>
75672
75673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75674         random "(cached)" in configure output.
75675
75676 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75677
75678         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75679         test for conforming inttypes.h is both announced and cached.
75680
75681         * MODULES.html.sh (seen_modules, seen_files): New variables.
75682         (func_module): Rewrite to use a few less gnulib-tool and sed
75683         invocations.  Avoid a couple of quadratic algorithms for ...
75684         (missed_modules, missed_files): ... these, with ...
75685         (func_append, func_tmpdir): ... these new functions, from
75686         gnulib-tool.  Analogously, install traps for cleanup.
75687
75688         * tests/test-gc.c (main): Remove unused variables.
75689         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75690
75691 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * modules/inttostr (License): Change to LGPL.
75694
75695 2006-11-14  Eric Blake  <ebb9@byu.net>
75696
75697         * modules/tempname (License): Change to LGPL.
75698
75699 2006-11-14  Eric Blake  <ebb9@byu.net>
75700
75701         * doc/functions.texi (Function Portability): *printf functions on
75702         Cygwin now understand all POSIX size specifiers.
75703
75704 2006-11-14  Bruno Haible  <bruno@clisp.org>
75705
75706         * modules/c-ctype (License): Change to LGPL.
75707
75708 2006-11-12  Bruno Haible  <bruno@clisp.org>
75709
75710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75711         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75712         for GNOME libraries, for which the include files are installed in
75713         subdirectories of $prefix/include.
75714
75715 2006-11-12  Bruno Haible  <bruno@clisp.org>
75716
75717         * m4/lib-link.m4: Require at least autoconf-2.54.
75718         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75719         name to underscores for the --with option.
75720
75721 2006-11-13  Bruno Haible  <bruno@clisp.org>
75722
75723         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75724         the tests directory.
75725         Reported by Ralf Wildenhues.
75726
75727 2006-11-13  Bruno Haible  <bruno@clisp.org>
75728
75729         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75730         (func_emit_initmacro_end): Undo the override here.
75731         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75732         Works around the famous automake error in coreutils.
75733
75734 2006-11-13  Eric Blake  <ebb9@byu.net>
75735
75736         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75737         element, not its node.
75738
75739 2006-11-12  Bruno Haible  <bruno@clisp.org>
75740
75741         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75742         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75743
75744 2006-11-12  Bruno Haible  <bruno@clisp.org>
75745
75746         * gnulib-tool: New option --local-symlink.
75747         (func_usage): Document it.
75748         (lsymbolic): New variable.
75749         (func_import, func_create_testdir): If --symlink was not specified,
75750         test whether --local-symlink was specified and the file comes from
75751         the local_gnulib_dir.
75752
75753 2006-11-12  Bruno Haible  <bruno@clisp.org>
75754
75755         * gnulib-tool (func_ln): New function.
75756         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75757
75758 2006-11-12  Bruno Haible  <bruno@clisp.org>
75759
75760         Finish support for source files in subdirectories.
75761         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75762         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75763         AUTOMAKE_OPTIONS.
75764         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75765
75766 2006-11-12  Bruno Haible  <bruno@clisp.org>
75767
75768         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75769         EXTRA_lib_SOURCES augmentation.
75770         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75771
75772 2006-11-12  Jim Meyering  <jim@meyering.net>
75773
75774         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75775         file descriptors.  This also averts a failure on systems with
75776         native openat support when a traversed directory lacks "x" access.
75777         * lib/fts_.h: Include "i-ring.h"
75778         (struct FTS) [fts_fd_ring]: New member.
75779         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75780         (FCHDIR): Add parentheses.
75781         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75782         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75783         When descending, rather than simply closing the previous
75784         fts_cwd_fd value, push that file descriptor onto the ring.
75785         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75786         (fts_open): Initialize the new fd_ring member.
75787         (fts_close): Clear the ring.
75788         (fts_safe_changedir): When possible, use our new fd_ring to skip
75789         the diropen and fstat and dev/ino comparison that would normally
75790         accompany a virtual `chdir ("..")'.
75791
75792         * modules/fts (Depends-on): Add i-ring.
75793         * modules/i-ring: New module.
75794         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75795         * m4/i-ring.m4: New file.
75796
75797 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75798
75799         * gnulib-tool (func_create_testdir): Fix replacement of
75800         `build-aux' in configure.ac.  Run autotools in gltests
75801         subdirectory.
75802         (func_create_testdir, func_create_megatestdir, test): There is
75803         no need for '--force' in most autotool invocations in a new
75804         tree.  Actually fail the whole test if any of the tools, or the
75805         configure or make stages fail.
75806
75807         Sync from Automake.
75808         * build-aux/gnupload: Revert last change.  Add pointer to upload
75809         instructions of the GNU Maintenance Instructions.
75810         Suggestion by Karl Berry.
75811
75812 2006-11-10  Jim Meyering  <jim@meyering.net>
75813
75814         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75815
75816 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75819         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75820         (bind_textdomain_codeset) [! ENABLE_NLS]:
75821         Evaluate all the arguments.  That way, callers get compatible behavior
75822         if the arguments have side effects.  Also, it avoids some GCC
75823         diagnostics in some cases; Joel E. Denny reported problems when Bison
75824         was configured with --enable-gcc-warnigs.
75825
75826 2006-11-10  Jim Meyering  <jim@meyering.net>
75827
75828         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75829         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75830         account.
75831
75832 2006-11-10  Jim Meyering  <jim@meyering.net>
75833
75834         * modules/inline: New file/module.
75835         * modules/xalloc (Files): Remove m4/inline.m4.
75836         (Depends-on): Add inline, instead.
75837         * modules/oset: Likewise.
75838         * modules/list: Likewise.
75839
75840 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75843         Problem reported by Matthew Woehlke.
75844
75845 2006-11-09  Bruno Haible  <bruno@clisp.org>
75846
75847         * lib/tempname.c (gen_tempname): Remove variant that invokes
75848         __gen_tempname.
75849         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75850         __gen_tempname.
75851
75852 2006-11-08  Bruno Haible  <bruno@clisp.org>
75853
75854         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75855         to 'yes' instead of 'cross-compiling'.
75856
75857 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * lib/quotearg.h (quotearg_free): New decl.
75860         * lib/quotearg.c (quotearg_free): New function.
75861         (slot0, nslots, slotvec0, slotvec):
75862         Now file-scope so that quotearg_free can get at them.
75863
75864 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75865
75866         Sync from Automake.
75867         * build-aux/gnupload: Add missing 'gnu' to example URL.
75868         Report by Karl Berry.
75869
75870 2006-11-08  Bruno Haible  <bruno@clisp.org>
75871
75872         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75873         Suggested by Paul Eggert.
75874
75875 2006-11-08  Jim Meyering  <jim@meyering.net>
75876
75877         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75878         It's already included if !_LIBC.
75879         (fts_safe_changedir): Add a comment.
75880
75881 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75884         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75885         Matthew Woehlke.
75886
75887         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75888         definitions up, to avoid colliding with change below.
75889         (static_inline) [HAVE_INLINE]: New macro.
75890         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75891         Provide extern decls when !HAVE_INLINE.  Do not define unless
75892         static_inline is defined, either by us or by xmalloc.c.  Use
75893         static_inline rather than static inline.
75894         (XCALLOC): Optimize sizeof(T) = 1 case.
75895         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75896
75897 2006-11-07  Bruno Haible  <bruno@clisp.org>
75898
75899         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75900         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75901         AC_C_INLINE.
75902         * modules/xalloc (Files): Add m4/inline.m4.
75903
75904 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75905
75906         * README: Fix typo.
75907         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75908         (Miscellanous Notes): ...from this.
75909
75910 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75913         Mention that offsetof should be used instead of sizeof.
75914         From Bruno Haible.
75915
75916 2006-11-07  Bruno Haible  <bruno@clisp.org>
75917
75918         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75919
75920 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75923         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75924         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75925         (gl_tree_add_before, gl_tree_add_after):
75926         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75927         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75928         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75929         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75930         (gl_linked_add_after, gl_linked_add_at): Likewise.
75931         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75932         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75933         (gl_tree_add_before, gl_tree_add_after): Likewise.
75934         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75935         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75936         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75937
75938 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75939
75940         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75941
75942 2006-11-06  Bruno Haible  <bruno@clisp.org>
75943
75944         * m4/inline.m4: New file.
75945         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75946         * modules/list (Files): Add m4/inline.m4.
75947         * modules/oset (Files): Likewise.
75948
75949 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * lib/idcache.c: Include <stddef.h>, for offsetof.
75952         (struct userid.name): Change from char * to a flexible array member.
75953         All uses changed.
75954         * modules/idcache (Depends-on): Add flexmember.
75955
75956         * MODULES.html.sh (Core language properties): New module flexmember.
75957         * modules/flexmember, m4/flexmember.m4: New files.
75958
75959         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75960         inline functions that are identical with the old xnmalloc_inline,
75961         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75962         that we can avoid some unnecessary integer multiplications and
75963         divisions in the common case where the element size is known at
75964         compile time.
75965         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75966         needed.
75967         (xnboundedmalloc): Remove.
75968         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75969         arguments, for consistency with rest of this header.
75970         (xcharalloc): Rewrite using XNMALLOC.
75971         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75972         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75973         versions have been moved to lib/xalloc.h and renamed to be the
75974         non-*_inline versions.
75975         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75976         and xnrealloc functions, since those functions are now inline and
75977         now call us.
75978         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75979         renaming described above.
75980         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75981         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75982         captures the dependency in AC_C_INLINE.
75983
75984         New module canonicalize-lgpl, proposed by Charles Wilson in
75985         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75986         with a few small changes afterwards.
75987         * MODULES.html.sh (File system functions): New module
75988         canonicalize-lgpl.
75989         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75990         and canonicalize_file_name.
75991         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75992         * modules/canonicalize-lgpl: New files.
75993
75994 2006-11-05  Bruno Haible  <bruno@clisp.org>
75995
75996         * gnulib-tool (func_import, func_create_testdir): Create directories
75997         also for files in subdirectories of lib/.
75998
75999 2006-11-05  Bruno Haible  <bruno@clisp.org>
76000
76001         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76002         ANSI C compliant.
76003
76004 2006-11-03  Bruno Haible  <bruno@clisp.org>
76005
76006         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76007         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76008         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76009         (xnboundedmalloc): New inline function.
76010         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76011         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76012         xmalloc.
76013         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76014         xmalloc.
76015         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76016         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76017         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76018         xmalloc.
76019         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76020         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76021         xmalloc.
76022         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76023         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76024         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76025         xmalloc.
76026         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76027         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76028         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76029         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76030         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76031         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76032         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76033
76034 2006-11-03  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/c-ctype.h [C++]: Define functions without name mangling.
76037         * lib/fwriteerror.h [C++]: Likewise.
76038         * lib/gcd.h [C++]: Likewise.
76039         * lib/linebreak.h [C++]: Likewise.
76040
76041 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76044         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76045         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76047         Check for functions and headers just once.
76048         Check for declaration of canonicalize_file_name.
76049         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76050
76051 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76052
76053         * gnulib-tool (func_import): Fix typo in actioncmd.
76054
76055 2006-11-02  Bruno Haible  <bruno@clisp.org>
76056
76057         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76058         newline sequence in the Makefile.am snippet as a space, like "make"
76059         does.
76060         Reported by Roger Persson <perrog@gmail.com>.
76061
76062 2006-11-01  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76065         already declared in <string.h>.
76066         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76067
76068 2006-11-01  Bruno Haible  <bruno@clisp.org>
76069
76070         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76071         * lib/strcase.h: Include <string.h>.
76072         (strcasecmp): Define to rpl_strcasecmp here.
76073
76074 2006-11-01  Bruno Haible  <bruno@clisp.org>
76075
76076         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76077
76078 2006-11-01  Eric Blake  <ebb9@byu.net>
76079
76080         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76081
76082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76083
76084 2006-10-29  Bruno Haible  <bruno@clisp.org>
76085
76086         Make it compile in C++ mode.
76087         * lib/full-write.c (full_rw): Add a cast.
76088
76089 2006-11-01  Bruno Haible  <bruno@clisp.org>
76090
76091         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76092         be POSIX compliant.
76093         Reported by Roger Persson <perrog@gmail.com>.
76094
76095 2006-11-01  Eric Blake  <ebb9@byu.net>
76096
76097         * lib/getopt_.h: Fix comments.
76098
76099 2006-10-31  Eric Blake  <ebb9@byu.net>
76100
76101         * modules/tmpdir (Depends-on): Add sys_stat.
76102         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76103         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76104         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76105         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76106         tempname.
76107
76108 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         Avoid some C++ diagnostics reported by Bruno Haible.
76111         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76112         xmalloc.
76113         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76114         (struct slotvec): Move to top level.
76115         (quotearg_n_options): Rewrite to avoid xmalloc.
76116         * lib/xalloc.h (xcharalloc): New function.
76117         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76118         [defined __cplusplus]: Add function template that provides result
76119         type propagation.  This part of the change is from Bruno Haible.
76120
76121 2006-10-29  Bruno Haible  <bruno@clisp.org>
76122
76123         Make it compile in C++ mode.
76124         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76125         * lib/strnlen1.c (strnlen1): Cast memchr result.
76126         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76127         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76128         (create_temp_dir): Rename local variable 'template'.
76129         (compile_csharp_using_sscli): Add cast.
76130         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76131         * lib/findprog.c (find_in_path): Likewise.
76132         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76133         * lib/wait-process.c (register_slave_subprocess): Likewise.
76134
76135 2006-10-22  Bruno Haible  <bruno@clisp.org>
76136
76137         * modules/tsearch: New file.
76138         * lib/tsearch.h: New file.
76139         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76140         * m4/tsearch.m4: New file.
76141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76142
76143 2006-10-29  Eric Blake  <ebb9@byu.net>
76144
76145         * lib/arcfour.c: Assume config.h.
76146         * lib/arctwo.c: Likewise.
76147         * lib/base64.c: Likewise.
76148         * lib/check-version.c: Likewise.
76149         * lib/crc.c: Likewise.
76150         * lib/des.c: Likewise.
76151         * lib/gc-gnulib.c: Likewise.
76152         * lib/gc-libgcrypt.c: Likewise.
76153         * lib/gc-pbkdf2-sha1.c: Likewise.
76154         * lib/getaddrinfo.c: Likewise.
76155         * lib/getdelim.c: Likewise.
76156         * lib/getline.c: Likewise.
76157         * lib/hmac-md5.c: Likewise.
76158         * lib/hmac-sha1.c: Likewise.
76159         * lib/iconvme.c: Likewise.
76160         * lib/md2.c: Likewise.
76161         * lib/md4.c: Likewise.
76162         * lib/memxor.c: Likewise.
76163         * lib/read-file.c: Likewise.
76164         * lib/readline.c: Likewise.
76165         * lib/rijndael-alg-fst.c: Likewise.
76166         * lib/rijndael-api-fst.c: Likewise.
76167         * lib/xgetdomainname.c: Likewise.
76168
76169 2006-10-28  Eric Blake  <ebb9@byu.net>
76170
76171         * lib/xstrndup.c: Assume config.h.
76172
76173 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76176         stat-macros.h is now for our own macros, whereas stat_h is for
76177         macros in the <sys/stat.h> name space.
76178         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76179         (STAT_MACROS_H): Remove.
76180         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76181         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76182         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76183         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76184         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76185         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76186         Move these macros to ...
76187         * lib/stat_.h: here.  Don't include stat-macros.h.
76188         * lib/canonicalize.c: Don't include stat-macros.h.
76189         * lib/chown.c: Likewise.
76190         * lib/euidaccess.c: Likewise.
76191         * lib/file-type.c: Likewise.
76192         * lib/filemode.c: Likewise.
76193         * lib/glob.c: Likewise.
76194         * lib/isapipe.c: Likewise.
76195         * lib/lchown.c: Likewise.
76196         * lib/lstat.c: Likewise.
76197         * lib/mkdir-p.c: Likewise.
76198         * lib/rmdir.c: Likewise.
76199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76201         unless mkdir isn't declared, to speed up 'configure'.
76202         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76203         would define all the S_* symbols.
76204         * modules/canonicalize (Depends-on):
76205         Depend on sys_stat, not stat-macros.
76206         * modules/chown: Likewise.
76207         * modules/euidaccess: Likewise.
76208         * modules/filemode: Likewise.
76209         * modules/file-type: Likewise.
76210         * modules/glob: Likewise.
76211         * modules/isapipe: Likewise.
76212         * modules/lchown: Likewise.
76213         * modules/lstat: Likewise.
76214         * modules/mkancesdirs: Likewise.
76215         * modules/rmdir: Likewise.
76216         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76217         * modules/modechange: Likewise.
76218         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76219         (configure.ac): Remove gl_STAT_MACROS.
76220         * modules/sys_stat (Depends-on): Remove stat-macros.
76221
76222 2006-10-27  Bruno Haible  <bruno@clisp.org>
76223
76224         * m4/signed.m4: Remove file.
76225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76226         invocation.
76227         * modules/vasnprintf (Files): Remove m4/signed.m4.
76228
76229 2006-10-27  Bruno Haible  <bruno@clisp.org>
76230
76231         Update to GNU gettext 0.16.
76232         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76233         m4/inttypes-h.m4, m4/signed.m4.
76234         * m4/gettext.m4: Update to GNU gettext 0.16.
76235         * m4/intl.m4: New file, from GNU gettext.
76236         * m4/intldir.m4: New file, from GNU gettext.
76237         * config/srclist.txt: Update
76238
76239 2006-10-27  Eric Blake  <ebb9@byu.net>
76240
76241         * MODULES.html.sh: Document tempname.
76242         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76243         dependencies.
76244         (Files): Move lib/tempname.c...
76245         * modules/tempname: ...to this new module.
76246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76247         (gl_PREREQ_TEMPNAME): Move...
76248         * m4/tempname.m4: ...to this new file.
76249         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76250         * modules/sys_stat (Depends-on): Add stat-macros.
76251         * lib/stat_.h (includes): Pick up stat macros.
76252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76253         if stat macros are broken.
76254         * lib/tempname.c (includes): No need to include "stat-macros.h".
76255         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76256         (direxists, __path_search) [!_LIBC]: Don't compile these in
76257         gnulib; the tmpdir module covers that.
76258         * lib/tempname.h: New file.
76259
76260 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * COPYING: Explain how gnulib-tool converts licence headers.
76263         Almost all wording by Eric Blake.
76264
76265 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/mbchar.h (is_basic_table): Make read-only.
76268         * lib/mbchar.c (is_basic_table): Likewise.
76269         Reported by John Darrington.
76270
76271 2006-10-25  Bruno Haible  <bruno@clisp.org>
76272
76273         * lib/progname.h (set_program_name): Undefine before defining.
76274
76275 2006-10-25  Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76278         false for non-gcc C++ compilers.
76279         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76280
76281 2006-10-24  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76284         iconv implementations like Irix iconv.
76285
76286 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * modules/vararrays: New file.
76289         * m4/vararrays.m4: New file, taken from diffutils.
76290         * MODULES.html.sh: New module vararrays.
76291
76292 2006-10-24  Karl Berry  <karl@gnu.org>
76293
76294         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76295         Don't call GNU Unix.
76296
76297 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76298
76299         * users.txt: Add Libtool.
76300
76301         Sync from Libtool:
76302
76303         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76306         to gnulib's policy of including config.h unconditionally.
76307
76308 2006-10-24  Bruno Haible  <bruno@clisp.org>
76309
76310         * modules/wcwidth (Files): Add m4/wint_t.m4.
76311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76312         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76313
76314 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76317         to pacify GCC with some -W flags enabled.  Problem reported by
76318         Bruno Haible.
76319
76320 2006-10-24  Jim Meyering  <jim@meyering.net>
76321
76322         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76323         Reported by Karl Berry.
76324
76325 2006-10-23  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76328
76329 2006-10-24  Bruno Haible  <bruno@clisp.org>
76330
76331         * lib/gl_list.h: Use C comment style, not C++ comment style.
76332
76333 2006-10-23  Eric Blake  <ebb9@byu.net>
76334
76335         * lib/getaddrinfo.c (includes): Add missing include.
76336
76337 2006-10-23  Bruno Haible  <bruno@clisp.org>
76338             Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         Ability to rename obstack_free.
76341         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76342         obstack_free.
76343         (obstack_free): Invoke the __obstack_free macro.
76344         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76345
76346 2006-10-23  Bruno Haible  <bruno@clisp.org>
76347             Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76350         __argc, __argv from the declaration. (They are defined as macros on
76351         mingw.)
76352
76353 2006-10-22  Bruno Haible  <bruno@clisp.org>
76354
76355         * doc/gnulib-intro.texi: New file.
76356         * doc/gnulib.texi: Include it.
76357
76358 2006-10-21  Bruno Haible  <bruno@clisp.org>
76359
76360         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76361         "Introduction", "Miscellanous Notes", "Particular Modules".
76362
76363 2006-10-21  Bruno Haible  <bruno@clisp.org>
76364
76365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76366         Change mostlyclean-local rule to avoid sh syntax error from bash
76367         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76368
76369 2006-10-23  Jim Meyering  <jim@meyering.net>
76370
76371         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76372         in place of snprintf.
76373
76374         * modules/inttostr (Files): Add lib/uinttostr.c.
76375         * lib/uinttostr.c (inttostr): New file/function.
76376         * lib/inttostr.h (uinttostr): Declare.
76377         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76378         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76379         Add uinttostr.
76380         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76381
76382 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * lib/canonicalize.c (ELOOP): Define if not already defined.
76385         Problem reported by Bruno Haible in
76386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76387
76388 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76391         Problem reported by Perry Smith and Ville Laurikari.
76392
76393         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76394         uses.
76395
76396 2006-10-19  Bruno Haible  <bruno@clisp.org>
76397
76398         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76399         for mingw.
76400
76401 2006-10-19  Bruno Haible  <bruno@clisp.org>
76402
76403         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76404         Needed for mingw.
76405
76406 2006-10-19  Bruno Haible  <bruno@clisp.org>
76407
76408         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76409
76410 2006-10-19  Bruno Haible  <bruno@clisp.org>
76411
76412         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76413         it.
76414
76415 2006-10-19  Bruno Haible  <bruno@clisp.org>
76416
76417         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76418         invocation.
76419
76420 2006-10-19  Bruno Haible  <bruno@clisp.org>
76421
76422         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76423         mountlist by default.
76424
76425 2006-10-16  Bruno Haible  <bruno@clisp.org>
76426
76427         * lib/c-strstr.c: Include c-strstr.h.
76428
76429 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76430
76431         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76432         in a slash.
76433
76434 2006-10-18  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/lock.h [C++]: Wrap definitions in extern "C".
76437
76438 2006-10-18  Bruno Haible  <bruno@clisp.org>
76439
76440         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76441         gl_LIBOBJS list.
76442
76443 2006-10-18  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76446
76447 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * lib/xstrtol.h: Include gettext.h.
76450         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76451         Problem reported by Eric Blake.
76452         * modules/xstrtol (Depends-on): Add gettext-h.
76453
76454 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76455
76456         * lib/strftime.c (advance): New macro.
76457         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76458         incomplete type, so you can't add 0 to it.  Problem and patch
76459         reported by Eelco Dolstra for dietlibc.
76460
76461 2006-10-18  Jim Meyering  <jim@meyering.net>
76462
76463         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76464         type for a local, and rename it: s/up/user_proc/.
76465
76466 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76467
76468         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76469         READ_UTMP_USER_PROCESS.
76470         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76471
76472 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76475         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76476
76477 2006-10-17  Eric Blake  <ebb9@byu.net>
76478
76479         * lib/sigprocmask.c (sigprocmask): Fix typo.
76480
76481         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76482
76483         * modules/clean-temp (Makefile.am): Don't add to make output...
76484         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76485         config.h.
76486
76487 2006-10-17  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76490         differently if DEFAULT_TEXT_DOMAIN is set.
76491
76492 2006-10-16  Bruno Haible  <bruno@clisp.org>
76493
76494         * lib/clean-temp.c: Include fwriteerror.h.
76495
76496 2006-10-16  Bruno Haible  <bruno@clisp.org>
76497
76498         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76499
76500 2006-10-16  Bruno Haible  <bruno@clisp.org>
76501
76502         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76503         * lib/sigprocmask.h: Include <sys/types.h>.
76504         (sigset_t): Use the system's definition if present.
76505
76506 2006-10-17  Eric Blake  <ebb9@byu.net>
76507
76508         * lib/xvasprintf.c (includes): Assume config.h.
76509         * lib/xasprintf.c (includes): Likewise.
76510
76511 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76514         at least as wide as intmax_t.
76515
76516 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76517
76518         (Imported from Automake.)
76519         * build-aux/gnupload: Update to version 1.1 of directive file.
76520
76521 2006-10-16  Eric Blake  <ebb9@byu.net>
76522
76523         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76524         match Automake 1.10a.
76525
76526 2006-10-14  Bruno Haible  <bruno@clisp.org>
76527
76528         * modules/sigprocmask: New file.
76529         * lib/sigprocmask.h: New file.
76530         * lib/sigprocmask.c: New file.
76531         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76532         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76533         request sigprocmask.o.
76534         (gl_PREREQ_SIGPROCMASK): New macro.
76535         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76536         (Depends-on): Add sigprocmask.
76537         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76538         gt_SIGNALBLOCKING. Test for 'raise' only once.
76539         * lib/fatal-signal.c: Include sigprocmask.h.
76540         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76541         unblock_fatal_signals): Define always.
76542         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76543         sigprocmask.
76544
76545 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         Sync from Automake.
76548         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76549         which incorrectly sets the mode of an existing destination
76550         directory.  In some cases the unpatched install-sh could do the
76551         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76552         system.  We hope this is rare in practice, but it's clearly worth
76553         fixing.  Problem reported by Alex Unleashed in
76554         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76555         Also, don't bother to check for -m bugs unless we're using -m;
76556         suggested by Stepan Kasal.
76557
76558 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76559
76560         Sync from Automake.
76561         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76562         `-c' flag, so they appear at the same position as in %FASTDEP%
76563         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76564         which ignores unknown options only after the first non-option.
76565         Bug report against M4 by Nelson H. F. Beebe.
76566
76567 2006-10-13  Jim Meyering  <jim@meyering.net>
76568
76569         Fix a bug in yesterday's change.
76570         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76571         p->fts_statp->st_dev would be used uninitialized.
76572         Ensures that we always call fts_stat on the very first entry.
76573         Miklos Szeredi reported that find -xdev stopped working.
76574
76575 2006-10-12  Bruno Haible  <bruno@clisp.org>
76576
76577         * gnulib-tool (func_get_automake_snippet): Append an automatically
76578         computed EXTRA_DIST augmentation.
76579         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76580         * modules/alloca-opt (Makefile.am): Likewise.
76581         * modules/allocsa (Makefile.am): Likewise.
76582         * modules/arcfour (Makefile.am): Likewise.
76583         * modules/arctwo (Makefile.am): Likewise.
76584         * modules/argmatch (Makefile.am): Likewise.
76585         * modules/argz (Makefile.am): Likewise.
76586         * modules/atexit (Makefile.am): Likewise.
76587         * modules/backupfile (Makefile.am): Likewise.
76588         * modules/byteswap (Makefile.am): Likewise.
76589         * modules/c-strtod (Makefile.am): Likewise.
76590         * modules/c-strtold (Makefile.am): Likewise.
76591         * modules/calloc (Makefile.am): Likewise.
76592         * modules/canon-host (Makefile.am): Likewise.
76593         * modules/canonicalize (Makefile.am): Likewise.
76594         * modules/chdir-long (Makefile.am): Likewise.
76595         * modules/chdir-safer (Makefile.am): Likewise.
76596         * modules/check-version (Makefile.am): Likewise.
76597         * modules/chown (Makefile.am): Likewise.
76598         * modules/cloexec (Makefile.am): Likewise.
76599         * modules/close-stream (Makefile.am): Likewise.
76600         * modules/closeout (Makefile.am): Likewise.
76601         * modules/crc (Makefile.am): Likewise.
76602         * modules/csharpexec (Makefile.am): Likewise.
76603         * modules/cycle-check (Makefile.am): Likewise.
76604         * modules/des (Makefile.am): Likewise.
76605         * modules/dev-ino (Makefile.am): Likewise.
76606         * modules/dirfd (Makefile.am): Likewise.
76607         * modules/dirname (Makefile.am): Likewise.
76608         * modules/dup2 (Makefile.am): Likewise.
76609         * modules/eealloc (Makefile.am): Likewise.
76610         * modules/error (Makefile.am): Likewise.
76611         * modules/euidaccess (Makefile.am): Likewise.
76612         * modules/exclude (Makefile.am): Likewise.
76613         * modules/exitfail (Makefile.am): Likewise.
76614         * modules/fcntl-safer (Makefile.am): Likewise.
76615         * modules/fcntl (Makefile.am): Likewise.
76616         * modules/file-type (Makefile.am): Likewise.
76617         * modules/fileblocks (Makefile.am): Likewise.
76618         * modules/filemode (Makefile.am): Likewise.
76619         * modules/filenamecat (Makefile.am): Likewise.
76620         * modules/fnmatch (Makefile.am): Likewise.
76621         * modules/fopen-safer (Makefile.am): Likewise.
76622         * modules/fpending (Makefile.am): Likewise.
76623         * modules/fprintftime (Makefile.am): Likewise.
76624         * modules/free (Makefile.am): Likewise.
76625         * modules/fsusage (Makefile.am): Likewise.
76626         * modules/ftruncate (Makefile.am): Likewise.
76627         * modules/fts (Makefile.am): Likewise.
76628         * modules/gc-arcfour (Makefile.am): Likewise.
76629         * modules/gc-des (Makefile.am): Likewise.
76630         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76631         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76632         * modules/gc-md4 (Makefile.am): Likewise.
76633         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76634         * modules/gc-sha1 (Makefile.am): Likewise.
76635         * modules/gc (Makefile.am): Likewise.
76636         * modules/getaddrinfo (Makefile.am): Likewise.
76637         * modules/getcwd (Makefile.am): Likewise.
76638         * modules/getdelim (Makefile.am): Likewise.
76639         * modules/getdomainname (Makefile.am): Likewise.
76640         * modules/getgroups (Makefile.am): Likewise.
76641         * modules/gethostname (Makefile.am): Likewise.
76642         * modules/gethrxtime (Makefile.am): Likewise.
76643         * modules/getline (Makefile.am): Likewise.
76644         * modules/getloadavg (Makefile.am): Likewise.
76645         * modules/getlogin_r (Makefile.am): Likewise.
76646         * modules/getndelim2 (Makefile.am): Likewise.
76647         * modules/getopt (Makefile.am): Likewise.
76648         * modules/getpagesize (Makefile.am): Likewise.
76649         * modules/getpass-gnu (Makefile.am): Likewise.
76650         * modules/getpass (Makefile.am): Likewise.
76651         * modules/getsubopt (Makefile.am): Likewise.
76652         * modules/gettime (Makefile.am): Likewise.
76653         * modules/gettimeofday (Makefile.am): Likewise.
76654         * modules/getugroups (Makefile.am): Likewise.
76655         * modules/getusershell (Makefile.am): Likewise.
76656         * modules/glob (Makefile.am): Likewise.
76657         * modules/group-member (Makefile.am): Likewise.
76658         * modules/hard-locale (Makefile.am): Likewise.
76659         * modules/hash (Makefile.am): Likewise.
76660         * modules/hmac-md5 (Makefile.am): Likewise.
76661         * modules/hmac-sha1 (Makefile.am): Likewise.
76662         * modules/human (Makefile.am): Likewise.
76663         * modules/idcache (Makefile.am): Likewise.
76664         * modules/imaxabs (Makefile.am): Likewise.
76665         * modules/imaxdiv (Makefile.am): Likewise.
76666         * modules/inet_ntop (Makefile.am): Likewise.
76667         * modules/inet_pton (Makefile.am): Likewise.
76668         * modules/intprops (Makefile.am): Likewise.
76669         * modules/inttostr (Makefile.am): Likewise.
76670         * modules/inttypes (Makefile.am): Likewise.
76671         * modules/isapipe (Makefile.am): Likewise.
76672         * modules/javaversion (Makefile.am): Likewise.
76673         * modules/lchmod (Makefile.am): Likewise.
76674         * modules/lchown (Makefile.am): Likewise.
76675         * modules/localcharset (Makefile.am): Likewise.
76676         * modules/long-options (Makefile.am): Likewise.
76677         * modules/lstat (Makefile.am): Likewise.
76678         * modules/malloc (Makefile.am): Likewise.
76679         * modules/mathl (Makefile.am): Likewise.
76680         * modules/mbchar (Makefile.am): Likewise.
76681         * modules/md2 (Makefile.am): Likewise.
76682         * modules/md4 (Makefile.am): Likewise.
76683         * modules/md5 (Makefile.am): Likewise.
76684         * modules/memcasecmp (Makefile.am): Likewise.
76685         * modules/memchr (Makefile.am): Likewise.
76686         * modules/memcmp (Makefile.am): Likewise.
76687         * modules/memcoll (Makefile.am): Likewise.
76688         * modules/memcpy (Makefile.am): Likewise.
76689         * modules/memmem (Makefile.am): Likewise.
76690         * modules/memmove (Makefile.am): Likewise.
76691         * modules/mempcpy (Makefile.am): Likewise.
76692         * modules/memrchr (Makefile.am): Likewise.
76693         * modules/memset (Makefile.am): Likewise.
76694         * modules/memxor (Makefile.am): Likewise.
76695         * modules/mkancesdirs (Makefile.am): Likewise.
76696         * modules/mkdir-p (Makefile.am): Likewise.
76697         * modules/mkdir (Makefile.am): Likewise.
76698         * modules/mkdtemp (Makefile.am): Likewise.
76699         * modules/mkstemp (Makefile.am): Likewise.
76700         * modules/mktime (Makefile.am): Likewise.
76701         * modules/modechange (Makefile.am): Likewise.
76702         * modules/mountlist (Makefile.am): Likewise.
76703         * modules/nanosleep (Makefile.am): Likewise.
76704         * modules/obstack (Makefile.am): Likewise.
76705         * modules/openat (Makefile.am): Likewise.
76706         * modules/pagealign_alloc (Makefile.am): Likewise.
76707         * modules/pathmax (Makefile.am): Likewise.
76708         * modules/physmem (Makefile.am): Likewise.
76709         * modules/poll (Makefile.am): Likewise.
76710         * modules/posixtm (Makefile.am): Likewise.
76711         * modules/posixver (Makefile.am): Likewise.
76712         * modules/putenv (Makefile.am): Likewise.
76713         * modules/quote (Makefile.am): Likewise.
76714         * modules/quotearg (Makefile.am): Likewise.
76715         * modules/raise (Makefile.am): Likewise.
76716         * modules/read-file (Makefile.am): Likewise.
76717         * modules/readline (Makefile.am): Likewise.
76718         * modules/readlink (Makefile.am): Likewise.
76719         * modules/readtokens (Makefile.am): Likewise.
76720         * modules/readutmp (Makefile.am): Likewise.
76721         * modules/realloc (Makefile.am): Likewise.
76722         * modules/regex (Makefile.am): Likewise.
76723         * modules/rename-dest-slash (Makefile.am): Likewise.
76724         * modules/rename (Makefile.am): Likewise.
76725         * modules/rijndael (Makefile.am): Likewise.
76726         * modules/rmdir (Makefile.am): Likewise.
76727         * modules/rpmatch (Makefile.am): Likewise.
76728         * modules/safe-read (Makefile.am): Likewise.
76729         * modules/safe-write (Makefile.am): Likewise.
76730         * modules/same-inode (Makefile.am): Likewise.
76731         * modules/same (Makefile.am): Likewise.
76732         * modules/save-cwd (Makefile.am): Likewise.
76733         * modules/savedir (Makefile.am): Likewise.
76734         * modules/setenv (Makefile.am): Likewise.
76735         * modules/settime (Makefile.am): Likewise.
76736         * modules/sha1 (Makefile.am): Likewise.
76737         * modules/sig2str (Makefile.am): Likewise.
76738         * modules/snprintf (Makefile.am): Likewise.
76739         * modules/stat-macros (Makefile.am): Likewise.
76740         * modules/stat-time (Makefile.am): Likewise.
76741         * modules/stdbool (Makefile.am): Likewise.
76742         * modules/stdint (Makefile.am): Likewise.
76743         * modules/stdlib-safer (Makefile.am): Likewise.
76744         * modules/stpcpy (Makefile.am): Likewise.
76745         * modules/stpncpy (Makefile.am): Likewise.
76746         * modules/strcase (Makefile.am): Likewise.
76747         * modules/strcasestr (Makefile.am): Likewise.
76748         * modules/strchrnul (Makefile.am): Likewise.
76749         * modules/strcspn (Makefile.am): Likewise.
76750         * modules/strdup (Makefile.am): Likewise.
76751         * modules/strerror (Makefile.am): Likewise.
76752         * modules/strftime (Makefile.am): Likewise.
76753         * modules/strndup (Makefile.am): Likewise.
76754         * modules/strnlen (Makefile.am): Likewise.
76755         * modules/strpbrk (Makefile.am): Likewise.
76756         * modules/strsep (Makefile.am): Likewise.
76757         * modules/strstr (Makefile.am): Likewise.
76758         * modules/strtod (Makefile.am): Likewise.
76759         * modules/strtoimax (Makefile.am): Likewise.
76760         * modules/strtok_r (Makefile.am): Likewise.
76761         * modules/strtol (Makefile.am): Likewise.
76762         * modules/strtoll (Makefile.am): Likewise.
76763         * modules/strtoul (Makefile.am): Likewise.
76764         * modules/strtoull (Makefile.am): Likewise.
76765         * modules/strtoumax (Makefile.am): Likewise.
76766         * modules/strverscmp (Makefile.am): Likewise.
76767         * modules/sys_socket (Makefile.am): Likewise.
76768         * modules/sys_stat (Makefile.am): Likewise.
76769         * modules/sysexits (Makefile.am): Likewise.
76770         * modules/time_r (Makefile.am): Likewise.
76771         * modules/timegm (Makefile.am): Likewise.
76772         * modules/timespec (Makefile.am): Likewise.
76773         * modules/tmpfile-safer (Makefile.am): Likewise.
76774         * modules/trim (Makefile.am): Likewise.
76775         * modules/unistd-safer (Makefile.am): Likewise.
76776         * modules/unlinkdir (Makefile.am): Likewise.
76777         * modules/unlocked-io (Makefile.am): Likewise.
76778         * modules/userspec (Makefile.am): Likewise.
76779         * modules/utime (Makefile.am): Likewise.
76780         * modules/utimecmp (Makefile.am): Likewise.
76781         * modules/utimens (Makefile.am): Likewise.
76782         * modules/vasnprintf (Makefile.am): Likewise.
76783         * modules/vasprintf (Makefile.am): Likewise.
76784         * modules/vsnprintf (Makefile.am): Likewise.
76785         * modules/xalloc (Makefile.am): Likewise.
76786         * modules/xgetcwd (Makefile.am): Likewise.
76787         * modules/xnanosleep (Makefile.am): Likewise.
76788         * modules/xreadlink (Makefile.am): Likewise.
76789         * modules/xstrtod (Makefile.am): Likewise.
76790         * modules/xstrtol (Makefile.am): Likewise.
76791         * modules/xstrtold (Makefile.am): Likewise.
76792         * modules/yesno (Makefile.am): Likewise.
76793         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76794
76795 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * modules/error (Makefile.am): Distribute files through
76798         EXTRA_DIST, not lib_SOURCES.
76799
76800 2006-10-12  Eric Blake  <ebb9@byu.net>
76801
76802         * modules/error (Makefile.am): Distribute files in /lib.
76803         * modules/obstack (Makefile.am): Likewise.
76804
76805 2006-10-12  Bruno Haible  <bruno@clisp.org>
76806
76807         * modules/acl (Makefile.am): Distribute all files in lib/ through
76808         EXTRA_DIST.
76809         * modules/arcfour (Makefile.am): Likewise.
76810         * modules/arctwo (Makefile.am): Likewise.
76811         * modules/argmatch (Makefile.am): Likewise.
76812         * modules/argz (Makefile.am): Likewise.
76813         * modules/atexit (Makefile.am): Likewise.
76814         * modules/backupfile (Makefile.am): Likewise.
76815         * modules/c-strtod (Makefile.am): Likewise.
76816         * modules/c-strtold (Makefile.am): Likewise.
76817         * modules/calloc (Makefile.am): Likewise.
76818         * modules/canon-host (Makefile.am): Likewise.
76819         * modules/canonicalize (Makefile.am): Likewise.
76820         * modules/chdir-long (Makefile.am): Likewise.
76821         * modules/chdir-safer (Makefile.am): Likewise.
76822         * modules/check-version (Makefile.am): Likewise.
76823         * modules/chown (Makefile.am): Likewise.
76824         * modules/cloexec (Makefile.am): Likewise.
76825         * modules/close-stream (Makefile.am): Likewise.
76826         * modules/closeout (Makefile.am): Likewise.
76827         * modules/crc (Makefile.am): Likewise.
76828         * modules/cycle-check (Makefile.am): Likewise.
76829         * modules/des (Makefile.am): Likewise.
76830         * modules/dirfd (Makefile.am): Likewise.
76831         * modules/dirname (Makefile.am): Likewise.
76832         * modules/dup2 (Makefile.am): Likewise.
76833         * modules/euidaccess (Makefile.am): Likewise.
76834         * modules/exclude (Makefile.am): Likewise.
76835         * modules/exitfail (Makefile.am): Likewise.
76836         * modules/fcntl-safer (Makefile.am): Likewise.
76837         * modules/file-type (Makefile.am): Likewise.
76838         * modules/fileblocks (Makefile.am): Likewise.
76839         * modules/filemode (Makefile.am): Likewise.
76840         * modules/filenamecat (Makefile.am): Likewise.
76841         * modules/fnmatch (Makefile.am): Likewise.
76842         * modules/fopen-safer (Makefile.am): Likewise.
76843         * modules/fpending (Makefile.am): Likewise.
76844         * modules/fprintftime (Makefile.am): Likewise.
76845         * modules/free (Makefile.am): Likewise.
76846         * modules/fsusage (Makefile.am): Likewise.
76847         * modules/ftruncate (Makefile.am): Likewise.
76848         * modules/fts (Makefile.am): Likewise.
76849         * modules/gc (Makefile.am): Likewise.
76850         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76851         * modules/getaddrinfo (Makefile.am): Likewise.
76852         * modules/getcwd (Makefile.am): Likewise.
76853         * modules/getdelim (Makefile.am): Likewise.
76854         * modules/getdomainname (Makefile.am): Likewise.
76855         * modules/getgroups (Makefile.am): Likewise.
76856         * modules/gethostname (Makefile.am): Likewise.
76857         * modules/gethrxtime (Makefile.am): Likewise.
76858         * modules/getline (Makefile.am): Likewise.
76859         * modules/getloadavg (Makefile.am): Likewise.
76860         * modules/getlogin_r (Makefile.am): Likewise.
76861         * modules/getopt (Makefile.am): Likewise.
76862         * modules/getpass (Makefile.am): Likewise.
76863         * modules/getpass-gnu (Makefile.am): Likewise.
76864         * modules/getsubopt (Makefile.am): Likewise.
76865         * modules/gettime (Makefile.am): Likewise.
76866         * modules/gettimeofday (Makefile.am): Likewise.
76867         * modules/getugroups (Makefile.am): Likewise.
76868         * modules/getusershell (Makefile.am): Likewise.
76869         * modules/glob (Makefile.am): Likewise.
76870         * modules/group-member (Makefile.am): Likewise.
76871         * modules/hard-locale (Makefile.am): Likewise.
76872         * modules/hash (Makefile.am): Likewise.
76873         * modules/hmac-md5 (Makefile.am): Likewise.
76874         * modules/hmac-sha1 (Makefile.am): Likewise.
76875         * modules/human (Makefile.am): Likewise.
76876         * modules/idcache (Makefile.am): Likewise.
76877         * modules/imaxabs (Makefile.am): Likewise.
76878         * modules/imaxdiv (Makefile.am): Likewise.
76879         * modules/inet_ntop (Makefile.am): Likewise.
76880         * modules/inet_pton (Makefile.am): Likewise.
76881         * modules/inttostr (Makefile.am): Likewise.
76882         * modules/isapipe (Makefile.am): Likewise.
76883         * modules/lchown (Makefile.am): Likewise.
76884         * modules/long-options (Makefile.am): Likewise.
76885         * modules/lstat (Makefile.am): Likewise.
76886         * modules/malloc (Makefile.am): Likewise.
76887         * modules/mathl (Makefile.am): Likewise.
76888         * modules/mbchar (Makefile.am): Likewise.
76889         * modules/md2 (Makefile.am): Likewise.
76890         * modules/md4 (Makefile.am): Likewise.
76891         * modules/md5 (Makefile.am): Likewise.
76892         * modules/memcasecmp (Makefile.am): Likewise.
76893         * modules/memchr (Makefile.am): Likewise.
76894         * modules/memcmp (Makefile.am): Likewise.
76895         * modules/memcoll (Makefile.am): Likewise.
76896         * modules/memcpy (Makefile.am): Likewise.
76897         * modules/memmem (Makefile.am): Likewise.
76898         * modules/memmove (Makefile.am): Likewise.
76899         * modules/mempcpy (Makefile.am): Likewise.
76900         * modules/memrchr (Makefile.am): Likewise.
76901         * modules/memset (Makefile.am): Likewise.
76902         * modules/memxor (Makefile.am): Likewise.
76903         * modules/mkancesdirs (Makefile.am): Likewise.
76904         * modules/mkdir (Makefile.am): Likewise.
76905         * modules/mkdir-p (Makefile.am): Likewise.
76906         * modules/mkdtemp (Makefile.am): Likewise.
76907         * modules/mkstemp (Makefile.am): Likewise.
76908         * modules/mktime (Makefile.am): Likewise.
76909         * modules/modechange (Makefile.am): Likewise.
76910         * modules/mountlist (Makefile.am): Likewise.
76911         * modules/nanosleep (Makefile.am): Likewise.
76912         * modules/openat (Makefile.am): Likewise.
76913         * modules/pagealign_alloc (Makefile.am): Likewise.
76914         * modules/physmem (Makefile.am): Likewise.
76915         * modules/poll (Makefile.am): Likewise.
76916         * modules/posixtm (Makefile.am): Likewise.
76917         * modules/posixver (Makefile.am): Likewise.
76918         * modules/putenv (Makefile.am): Likewise.
76919         * modules/quote (Makefile.am): Likewise.
76920         * modules/quotearg (Makefile.am): Likewise.
76921         * modules/raise (Makefile.am): Likewise.
76922         * modules/read-file (Makefile.am): Likewise.
76923         * modules/readline (Makefile.am): Likewise.
76924         * modules/readlink (Makefile.am): Likewise.
76925         * modules/readtokens (Makefile.am): Likewise.
76926         * modules/readutmp (Makefile.am): Likewise.
76927         * modules/realloc (Makefile.am): Likewise.
76928         * modules/regex (Makefile.am): Likewise.
76929         * modules/rename (Makefile.am): Likewise.
76930         * modules/rename-dest-slash (Makefile.am): Likewise.
76931         * modules/rijndael (Makefile.am): Likewise.
76932         * modules/rmdir (Makefile.am): Likewise.
76933         * modules/rpmatch (Makefile.am): Likewise.
76934         * modules/safe-read (Makefile.am): Likewise.
76935         * modules/safe-write (Makefile.am): Likewise.
76936         * modules/same (Makefile.am): Likewise.
76937         * modules/save-cwd (Makefile.am): Likewise.
76938         * modules/savedir (Makefile.am): Likewise.
76939         * modules/setenv (Makefile.am): Likewise.
76940         * modules/settime (Makefile.am): Likewise.
76941         * modules/sha1 (Makefile.am): Likewise.
76942         * modules/sig2str (Makefile.am): Likewise.
76943         * modules/snprintf (Makefile.am): Likewise.
76944         * modules/stdlib-safer (Makefile.am): Likewise.
76945         * modules/stpcpy (Makefile.am): Likewise.
76946         * modules/stpncpy (Makefile.am): Likewise.
76947         * modules/strcase (Makefile.am): Likewise.
76948         * modules/strcasestr (Makefile.am): Likewise.
76949         * modules/strchrnul (Makefile.am): Likewise.
76950         * modules/strcspn (Makefile.am): Likewise.
76951         * modules/strdup (Makefile.am): Likewise.
76952         * modules/strerror (Makefile.am): Likewise.
76953         * modules/strftime (Makefile.am): Likewise.
76954         * modules/strndup (Makefile.am): Likewise.
76955         * modules/strnlen (Makefile.am): Likewise.
76956         * modules/strpbrk (Makefile.am): Likewise.
76957         * modules/strsep (Makefile.am): Likewise.
76958         * modules/strstr (Makefile.am): Likewise.
76959         * modules/strtod (Makefile.am): Likewise.
76960         * modules/strtoimax (Makefile.am): Likewise.
76961         * modules/strtok_r (Makefile.am): Likewise.
76962         * modules/strtol (Makefile.am): Likewise.
76963         * modules/strtoll (Makefile.am): Likewise.
76964         * modules/strtoul (Makefile.am): Likewise.
76965         * modules/strtoull (Makefile.am): Likewise.
76966         * modules/strtoumax (Makefile.am): Likewise.
76967         * modules/strverscmp (Makefile.am): Likewise.
76968         * modules/time_r (Makefile.am): Likewise.
76969         * modules/timegm (Makefile.am): Likewise.
76970         * modules/tmpfile-safer (Makefile.am): Likewise.
76971         * modules/unistd-safer (Makefile.am): Likewise.
76972         * modules/unlinkdir (Makefile.am): Likewise.
76973         * modules/userspec (Makefile.am): Likewise.
76974         * modules/utime (Makefile.am): Likewise.
76975         * modules/utimecmp (Makefile.am): Likewise.
76976         * modules/utimens (Makefile.am): Likewise.
76977         * modules/vasnprintf (Makefile.am): Likewise.
76978         * modules/vasprintf (Makefile.am): Likewise.
76979         * modules/vsnprintf (Makefile.am): Likewise.
76980         * modules/xalloc (Makefile.am): Likewise.
76981         * modules/xgetcwd (Makefile.am): Likewise.
76982         * modules/xnanosleep (Makefile.am): Likewise.
76983         * modules/xreadlink (Makefile.am): Likewise.
76984         * modules/xstrtod (Makefile.am): Likewise.
76985         * modules/xstrtol (Makefile.am): Likewise.
76986         * modules/xstrtold (Makefile.am): Likewise.
76987         * modules/yesno (Makefile.am): Likewise.
76988
76989 2006-10-12  Jim Meyering  <jim@meyering.net>
76990
76991         * m4/getloadavg.m4: Revert the change below.
76992
76993         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76994         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76995         fail with a symlink, which is what coreutils' ./bootstrap now
76996         creates by default.
76997
76998 2006-10-12  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77001         mingw.
77002         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77003         MSVC and mingw explicitly.
77004
77005 2006-10-11  Simon Josefsson  <jas@extundo.com>
77006             Bruno Haible  <bruno@clisp.org>
77007
77008         Add support for multiple gnulib-tool invocations in the scope of a
77009         single configure.ac file.
77010         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77011         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77012         with the same contents as the _LIBADD variable.
77013         (func_emit_initmacro_start, func_emit_initmacro_end,
77014         func_emit_initmacro_done): New functions.
77015         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77016         gl_LIBOBJS and gl_LTLIBOBJS.
77017
77018 2006-10-11  Bruno Haible  <bruno@clisp.org>
77019
77020         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77021         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77022         autoreconf. Instead, invoke autopoint explicitly but move back the
77023         *.m4 files from gnulib.
77024
77025 2006-10-11  Bruno Haible  <bruno@clisp.org>
77026
77027         * gnulib-tool (func_usage): Make module names after --create-testdir
77028         optional.
77029         (func_create_testdir): If no module was specified, use nearly all
77030         modules.
77031
77032 2006-10-12  Jim Meyering  <jim@meyering.net>
77033
77034         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77035         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77036         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77037         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77038         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77039         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77040         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77041         (fts_set_stat_required): New function.
77042         (fts_open): Defer the calls to fts_stat, if possible or requested.
77043         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77044         into fts_stat itself.
77045         (fts_read): Perform any required (deferred) fts_stat call.
77046         (fts_build): Likewise, for the directory we're about to open and read.
77047         In the readdir loop, carefully decide whether each entry will require
77048         an eventual call to fts_stat, using dirent.d_type info if available.
77049         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77050         a command line argument into this function.  Update all callers.
77051         Map a return value of FTS_DOT to FTS_D for a command line argument.
77052         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77053         Thanks to Miklos Szeredi for his tenacity and for the initial
77054         bug report about "find" failing on a FUSE-based file system.
77055
77056         * lib/fts.c (fts_open): Use consistent indentation.
77057
77058 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77061         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77062         reported by Jim Meyering.  All uses of cache variables renamed
77063         to match Autoconf's.
77064         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77065         the other one.
77066
77067         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77068         Fix misspelling in diagnostic.
77069
77070 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77073         defined.  Problem reported by Matthew Woehlke.
77074
77075         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77076         Add support for Tandem NonStop R series.
77077         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77078         Use new macro.
77079
77080         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77081         (has_trailing_slash): Omit size arg; all callers changed.
77082         Omit 'inline', since it doesn't help performance and we'd
77083         need to configure it.
77084         Don't count //, ///, etc. as having a trailing slash.
77085         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77086         (rpl_rename_dest_slash): On failure, use rename's errno rather
77087         than (in some cases) an incorrect or junk errno.
77088         Simplify code by removing need to compute length; this does
77089         cause it to make two passes instead of one over the file name,
77090         but it's worth it.
77091
77092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77093         change, since Autoconf's version may no longer be appropriate now
77094         that we are using CVS Autoconf's version.  Add support for Tandem.
77095
77096 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77097             Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77100         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77101         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77102         gl_AC_TYPE_LONG_LONG.
77103
77104         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77105         instead of HAVE_LONG_LONG.
77106         * lib/printf-args.c (printf_fetchargs): Likewise.
77107         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77108         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77109         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77110         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77111         gl_AC_TYPE_LONG_LONG.
77112
77113 2006-10-11  Bruno Haible  <bruno@clisp.org>
77114
77115         * m4/longlong.m4: Add comments.
77116         * m4/ulonglong.m4: Likewise.
77117
77118 2006-10-10  Bruno Haible  <bruno@clisp.org>
77119
77120         Make it possible to #define stpcpy, strdup to aliases.
77121         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77122         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77123
77124 2006-10-10  Bruno Haible  <bruno@clisp.org>
77125
77126         Make it possible to #define gcd to an alias.
77127         * lib/gcd.c: Include config.h.
77128
77129 2006-10-10  Bruno Haible  <bruno@clisp.org>
77130
77131         Make it possible to #define c_isascii to an alias.
77132         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77133         defined. Undefine the macros before defining them, to avoid gcc
77134         warnings.
77135         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77136         define NO_C_CTYPE_MACROS early.
77137
77138 2006-10-10  Bruno Haible  <bruno@clisp.org>
77139
77140         Make it possible to #define set_program_name to an alias.
77141         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77142         ENABLE_RELOCATABLE early.
77143
77144 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77147         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77148         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77149         More generally, don't assume that 64-bit signed int is available
77150         if unsigned int is, and vice versa.
77151         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77152         unsigned symbols, not on their signed counterparts.
77153         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77154         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77155         (UINT64_C, UINTMAX_C):
77156         Likewise.
77157         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77158         unsigned counterparts.
77159         (Have_long_long, Unsigned): New macros.
77160         (Int): Renamed from INT.
77161         (strtoimax): Use the new macros.
77162         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77163         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77164         * modules/inttypes (inttypes.h): Substitute
77165         HAVE_UNSIGNED_LONG_LONG_INT.
77166         * modules/stdint (stdint.h): Likewise.
77167         (Files): Add m4/ulonglong.m4.
77168
77169 2006-10-10  Bruno Haible  <bruno@clisp.org>
77170
77171         Fix a gcc -Wshadow warning.
77172         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77173         to 'bucket'.
77174         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77175         gl_linked_indexof_from_to): Likewise.
77176         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77177         Likewise.
77178         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77179         Likewise.
77180         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77181         Reported by Eric Blake.
77182
77183 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77186         for NetBSD.  Problem reported by Bruno Haible.
77187
77188 2006-10-09  Jim Meyering  <jim@meyering.net>
77189
77190         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77191         Patch from Bruno Haible.
77192
77193 2006-10-09  Jim Meyering  <jim@meyering.net>
77194
77195         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77196         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77197         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77198
77199 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77200
77201         Don't include <config.h> twice; this doesn't work in some cases,
77202         e.g., when config.h has "#define intmax_t long long int" and
77203         we include <config.h>, <inttypes.h>, <config.h> in that order.
77204         Problem reported by Matthew Woehlke in:
77205         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77206         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77207         * lib/fts-cycle.c: Don't include config.h.
77208         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77209         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77210         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77211         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77212         inttypes.h.
77213         * lib/xstrtoumax.c: Likewise.
77214         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77215         __strtol and the like, so that this module is more like its siblings.
77216         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77217         Remove; no longer needed now that we assume gnulib inttypes.h.
77218
77219 2006-10-08  Bruno Haible  <bruno@clisp.org>
77220
77221         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77222         option.
77223
77224 2006-10-07  Jim Meyering  <jim@meyering.net>
77225
77226         * modules/inttypes (inttypes.h): Revert what seems to have been
77227         an inadvertent part of today's change: use "|", not "/" in the
77228         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77229
77230 2006-10-07  Bruno Haible  <bruno@clisp.org>
77231
77232         * modules/sublist: New file.
77233
77234 2006-10-07  Bruno Haible  <bruno@clisp.org>
77235
77236         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77237         * modules/argz (argz.h): Likewise.
77238         * modules/arpa_inet (arpa/inet.h): Likewise.
77239         * modules/byteswap (byteswap.h): Likewise.
77240         * modules/configmake (configmake.h): Likewise.
77241         * modules/fcntl (fcntl.h): Likewise.
77242         * modules/fnmatch (fnmatch.h): Likewise.
77243         * modules/getopt (getopt.h): Likewise.
77244         * modules/glob (glob.h): Likewise.
77245         * modules/inttypes (inttypes.h): Likewise.
77246         * modules/netinet_in (netinet/in.h): Likewise.
77247         * modules/poll (poll.h): Likewise.
77248         * modules/stdbool (stdbool.h): Likewise.
77249         * modules/stdint (stdint.h): Likewise.
77250         * modules/sys_select (sys/select.h): Likewise.
77251         * modules/sys_socket (sys/socket.h): Likewise.
77252         * modules/sys_stat (sys/stat.h): Likewise.
77253         * modules/sysexits (sysexits.h): Likewise.
77254         * modules/unistd (unistd.h): Likewise.
77255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77256         Add a "DO NOT EDIT" comment to the generated file.
77257         (func_import): Likewise for gnulib-comp.m4.
77258
77259 2006-10-07  Bruno Haible  <bruno@clisp.org>
77260
77261         * lib/gl_sublist.h: New file.
77262         * lib/gl_sublist.c: New file.
77263
77264 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77267         name (relative to the original working directory) and the file
77268         name component (relative to the temporary working directory).  All
77269         callers changed.
77270         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77271         * lib/mkdir-p.c (make_dir_parents): Likewise.
77272         * lib/mkdir-p.h (make_dir_parents): Likewise.
77273
77274 2006-10-06  Eric Blake  <ebb9@byu.net>
77275
77276         Define several macros for use by the clean-temp module.
77277         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77278         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77279         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77280
77281         * lib/clean-temp.h (close_stream_temp): New declaration.
77282         * lib/clean-temp.c (includes): Pull in headers according to what
77283         other modules are in use.
77284         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77285
77286 2006-10-06  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77289         instead of fopen, fwriteerror.
77290
77291 2006-10-06  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77294         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77295         int.
77296         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77297         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77298         Return an error indicator.
77299         Suggested by Eric Blake.
77300
77301 2006-10-06  Bruno Haible  <bruno@clisp.org>
77302
77303         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77304         Reported by Eric Blake.
77305
77306 2006-10-06  Bruno Haible  <bruno@clisp.org>
77307
77308         * modules/closeout (Description): Mention stderr too.
77309
77310 2006-10-06  Bruno Haible  <bruno@clisp.org>
77311         and Paul Eggert  <eggert@cs.ucla.edu>
77312
77313         * lib/closeout.c (close_stdout): Also close stderr.
77314         * lib/closeout.h: Update comment.
77315
77316 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77319         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77320         * lib/dirchownmod.c: Include lchown.h.
77321         * lib/lchown.c: Don't include files that lchown.h now includes.
77322         Don't declare chown, since lchown.h now does that.
77323         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77324         (lchown): Define to rpl_chown if lchown is declared but
77325         does not exist.  Declare using a prototype if lchown is not
77326         declared.  Add a copyright notice.
77327         * lib/mkstemp.h: Include <unistd.h>.
77328         * lib/openat.c: Include lchown.h.
77329
77330         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77331         we now test for that separately.
77332         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77333         rather than O_NOFOLLOW, when testing whether it's possible to
77334         avoid a race condition reliably.
77335         * lib/savewd.c (savewd_chdir): Likewise.
77336
77337         Remove macros that are no longer needed now that stdint.h is
77338         reliable.
77339         * lib/fsusage.c (UINTMAX_MAX): Remove.
77340         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77341         * lib/utimecmp.c (SIZE_MAX): Remove.
77342
77343         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77344
77345         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77346         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77347         O_NOATIME works.
77348
77349 2006-10-05  Bruno Haible  <bruno@clisp.org>
77350
77351         * lib/gl_list.h (gl_sortedlist_search_from_to,
77352         gl_sortedlist_indexof_from_to): New declarations.
77353         (gl_list_implementation): New fields sortedlist_search_from_to,
77354         sortedlist_indexof_from_to.
77355         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77356         inline functions.
77357         * lib/gl_list.c (gl_sortedlist_search_from_to,
77358         gl_sortedlist_indexof_from_to): New functions.
77359         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77360         function.
77361         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77362         (gl_array_sortedlist_search_from_to): New function.
77363         (gl_array_list_implementation): Update.
77364         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77365         function.
77366         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77367         (gl_carray_sortedlist_search_from_to): New function.
77368         (gl_carray_list_implementation): Update.
77369         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77370         gl_linked_sortedlist_indexof_from_to): New functions.
77371         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77372         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77373         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77374         gl_tree_sortedlist_indexof_from_to): New functions.
77375         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77376         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77377         Update.
77378         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77379         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77380         Update.
77381
77382 2006-10-05  Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77385         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77386         (struct gl_list_implementation): Add fields search_from_to,
77387         indexof_from_to. Remove fields search, indexof.
77388         (gl_list_search): Use the search_from_to method.
77389         (gl_list_search_from, gl_list_search_from_to): New functions.
77390         (gl_list_indexof): Use the indexof_from_to method.
77391         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77392         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77393         (gl_list_search_from, gl_list_search_from_to): New functions.
77394         (gl_list_indexof): Use the indexof_from_to method.
77395         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77396         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77397         gl_array_indexof. Add start_index, end_index arguments.
77398         (gl_array_search_from_to): Renamed from gl_array_search. Add
77399         start_index, end_index arguments.
77400         (gl_array_remove, gl_array_list_implementation): Update.
77401         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77402         gl_carray_indexof. Add start_index, end_index arguments.
77403         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77404         start_index, end_index arguments.
77405         (gl_carray_remove, gl_carray_list_implementation): Update.
77406         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77407         gl_linked_search. Add start_index, end_index arguments.
77408         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77409         start_index, end_index arguments.
77410         (gl_linked_remove): Update.
77411         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77412         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77413         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77414         field to 'size_t'.
77415         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77416         gl_tree_search. Add start_index, end_index arguments.
77417         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77418         start_index, end_index arguments.
77419         (gl_tree_remove): Update.
77420         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77421         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77422         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77423         function.
77424         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77425         gl_tree_search. Add start_index, end_index arguments.
77426         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77427         start_index, end_index arguments.
77428         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77429         Update.
77430         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77431
77432 2006-10-05  Bruno Haible  <bruno@clisp.org>
77433
77434         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77435
77436         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77437         fwriteerror_temp): New declarations.
77438         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77439         (descriptors): New variable.
77440         (cleanup): First, close the descriptors.
77441         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77442         fclose_temp, fwriteerror_temp): New functions.
77443
77444 2006-10-04  Jim Meyering  <jim@meyering.net>
77445
77446         * lib/fts.c (fts_open): Tiny comment change.
77447
77448 2006-10-04  Bruno Haible  <bruno@clisp.org>
77449
77450         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77451         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77452         gl_LOCK_BODY.
77453         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77454         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77455         gl_LOCK_EARLY_BODY.
77456         (gl_LOCK): Require gl_LOCK_BODY.
77457
77458 2006-10-04  Bruno Haible  <bruno@clisp.org>
77459
77460         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77461         (gl_oset_search_atleast): New declaration.
77462         (struct gl_oset_implementation): Add field 'search_atleast'.
77463         (gl_oset_search_atleast): New inline function.
77464         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77465         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77466         (gl_array_oset_implementation): Update.
77467         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77468         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77469         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77470
77471 2006-10-04  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77474
77475 2006-10-03  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77478         from gl_avltreehash_list_implementation.
77479
77480 2006-10-03  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/gl_oset.c (gl_oset_add): Fix return type.
77483
77484 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77485
77486         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77487
77488 2006-10-02  Eric Blake  <ebb9@byu.net>
77489
77490         * modules/strnlen (Depends-on): Add extensions.
77491
77492 2006-10-02  Eric Blake  <ebb9@byu.net>
77493
77494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77495         definition in 2.60+.
77496
77497 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77498
77499         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77500         checks.
77501
77502 2006-10-02  Bruno Haible  <bruno@clisp.org>
77503
77504         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77505         to the AUTOMAKE_OPTIONS.
77506         Reported by Jim Meyering.
77507
77508 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         Work around bug in Solaris 10 /proc file system:
77511         /proc/self/fd/NNN/.. isn't the parent directory of
77512         the directory whose file descriptor is NNN.  This needs to
77513         be worked around at run time, not compile time, since a
77514         program might be built on Solaris 8, where things work, and
77515         run on Solaris 10.
77516         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77517         to use the following interface instead:
77518         (OPENAT_BUFFER_SIZE): New macro.
77519         (openat_proc_name): New function.
77520         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77521         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77522         Likewise.
77523         * lib/openat-proc.c: New file.
77524         * modules/openat (Files): Add lib/openat-proc.c.
77525         (Depends-on): Add same-inode, stdbool.
77526         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77527
77528 2006-09-29  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77531         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77532         argument. Set stdout_closed before testing for ferror, not after.
77533         (fwriteerror, fwriteerror_no_ebadf): New functions.
77534
77535 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77536
77537         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77538
77539 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77540
77541         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77542         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77543
77544 2006-09-28  Jim Meyering  <jim@meyering.net>
77545
77546         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77547         Include <unistd.h>.
77548
77549 2006-09-28  Bruno Haible  <bruno@clisp.org>
77550
77551         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77552         * modules/linkedhash-list (Depends-on): Likewise.
77553         * modules/rbtreehash-list (Depends-on): Likewise.
77554
77555 2006-09-28  Bruno Haible  <bruno@clisp.org>
77556
77557         * lib/strndup.h: Simplify the redefinition of strndup.
77558         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77559         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77560
77561 2006-09-28  Bruno Haible  <bruno@clisp.org>
77562
77563         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77564         * lib/gl_linkedhash_list.c: Likewise.
77565         * lib/gl_rbtreehash_list.c: Likewise.
77566
77567 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77570         getaddrinfo.
77571
77572         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77573         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77574         it causes <stdio_ext.h> to cause a compile-time error.
77575         Problem reported by Nelson H. F. Beebe.
77576         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77577         of HAVE_DECL___PENDING.
77578
77579         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77580         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77581         declaration.
77582
77583 2006-09-27  Jim Meyering  <jim@meyering.net>
77584
77585         This file could end up with a definition for a function
77586         named __strndup, rather than rpl_strndup on a system with
77587         incomplete weak_alias support.
77588         * lib/strndup.c (strndup): Rename from __strndup.
77589         Remove #defines that used to map __strndup to strndup.
77590         Don't use K&R prototypes.
77591         Remove LIBC-related code, since this file is not sync'd with glibc.
77592         * lib/strndup.h: Revamp, accordingly.
77593         * m4/strndup.m4: Modernize.
77594
77595 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * modules/savewd (Depends-on): Add 'raise'.
77598         * lib/savewd.c: Include <signal.h>, for 'raise'.
77599
77600 2006-09-26  Jim Meyering  <jim@meyering.net>
77601
77602         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77603         when we detect Darwin 8.7.0's acl_get_file bug.
77604         Rearrange to perform the new (below) run-test while $LIBS
77605         contains any acl-related library.  Set USE_ACL at the end.
77606         (gl_ACL_GET_FILE): New function.
77607
77608 2006-09-26  Eric Blake  <ebb9@byu.net>
77609
77610         * lib/verror.c: Include <config.h> unconditionally.
77611
77612 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * modules/clock-time (Maintainer): Add self.
77615         * modules/getlogin_r (Depends-on): Add extensions.
77616
77617 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77618
77619         * modules/clock-time: New module.
77620         * modules/nanosleep (Depends-on): Add clock-time.
77621         * modules/gethrxtime (Depends-on): Likewise.
77622         * modules/gettime (Depends-on): Likewise.
77623         * modules/settime (Depends-on): Likewise.
77624
77625         * modules/fts-lgpl: Depend on openat.
77626         * modules/mkancesdirs: Depend on savewd.
77627         * modules/mkdir-p: Likewise.
77628
77629 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77630
77631         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77632
77633         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77634         `gl_have_arbitrary_file_name_length_limit' to
77635         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77636         actually works between configure runs.
77637
77638 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77639             Bruno Haible  <bruno@clisp.org>
77640
77641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77642
77643 2006-09-25  Jim Meyering  <jim@meyering.net>
77644
77645         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77646         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77647
77648 2006-09-25  Eric Blake  <ebb9@byu.net>
77649
77650         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77651         exec's in 2006-09-18 patch when shuffling fds.
77652
77653 2006-09-25  Bruno Haible  <bruno@clisp.org>
77654
77655         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77656         Reported by Jim Meyering.
77657
77658 2006-09-24  Jim Meyering  <jim@meyering.net>
77659
77660         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77661         compare a pointer against a literal "0".  That caused failures with
77662         at least HP-UX's hpcc.
77663
77664 2006-09-22  Simon Josefsson  <jas@extundo.com>
77665
77666         * modules/gc-sha1:
77667         * modules/gc-md4:
77668         * modules/gc-hmac-sha1:
77669         * modules/gc-hmac-md5:
77670         * modules/gc-des:
77671         * modules/gc-arcfour: Distribute more files.
77672
77673 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77674
77675         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77676         (gl_linked_iterator_from_to): Initialize struct completely.
77677         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77678         (gl_tree_iterator_from_to): Likewise
77679         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77680         * lib/gl_array_list.c [lint] (gl_array_iterator)
77681         (gl_array_iterator_from_to): Likewise.
77682         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77683         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77684         (gl_carray_iterator_from_to): Likewise.
77685
77686         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77687         * lib/md4.c (md4_process_block): Remove unused variable.
77688         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77689         parentheses for clarity.
77690
77691 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77692
77693         * modules/bison-i18n (Depends-on): Add gettext.
77694
77695 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77696
77697         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77698         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77699         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77700         also add missing comma that caused broken test.
77701         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77702         stdlib.h, for `abort'.
77703         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77704         variables.
77705         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77706         include unistd.h if present, for `rmdir'.
77707         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77708         variables.
77709         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77710         in the process include standard headers for prototypes.
77711         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77712         gets declared on GNU/Linux.
77713         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77714         unistd.h, for `rmdir'.
77715         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77716
77717         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77718         always true.
77719         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77720
77721         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77722
77723 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77724
77725         * gnulib-tool (func_version): Create output all at once.  This
77726         may help avoid triggering unnecessary SIGPIPEs, and at any
77727         rate it doesn't hurt.
77728
77729 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77730             Bruno Haible  <bruno@clisp.org>
77731
77732         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77733         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77734         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77735
77736         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77737         (gl_FUNC_VASPRINTF): Invoke it.
77738
77739 2006-09-22  Bruno Haible  <bruno@clisp.org>
77740
77741         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77742         getloadavg.c as first argument.
77743
77744 2006-09-22  Bruno Haible  <bruno@clisp.org>
77745
77746         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77747         at the beginning of the gl_INIT macro.
77748         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77749         gl_GETLOADAVG.
77750
77751 2006-09-22  Bruno Haible  <bruno@clisp.org>
77752
77753         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77754         module.
77755         Suggested by Ralf Wildenhues.
77756
77757 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         Import this patch from libc:
77760
77761         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77762
77763         * lib/regex_internal.c (re_string_reconstruct): Handle
77764         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77765         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77766         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77767         re_string_context_at.
77768
77769         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77770         now requires it.
77771         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77772         gl_REGEX now does it for us.
77773         (gl_REGEX): Add test taken from
77774         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77775
77776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77777         Check that large offsets work.  Modernize Autoconf usages.
77778         Prefer "yes" to mean a good thing rather than a bad.
77779         Don't put "#define mkstemp" in config.h, as this might interfere
77780         with standard system headers that "#define mkstemp mkstemp64".
77781
77782         * modules/mkstemp (Depends-on): Add extensions, so that
77783         mkstemp is visible on some platforms.
77784         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77785         (Include): Change to "mkstemp.h" from <stdlib.h>.
77786         (Files): Add mkstemp.h.
77787
77788         * lib/mkstemp.h: New file, since some standard headers
77789         #define mkstemp.
77790         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77791         Include "mkstemp.h".
77792         Make the _LIBC code resemble glibc original more,
77793         e.g., use K&R style.
77794         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77795         (mkstemp): Remove, since mkstemp.h does this for us.
77796         * lib/stdlib--.h: Include mkstemp.h.
77797
77798         Import this patch from libc:
77799
77800         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77801
77802         * lib/tempname.c (__gen_tempname): Change attempts_min
77803         into a macro.  Use preprocessor to decide how to initialize
77804         attempts [Coverity CID 67].
77805
77806 2006-09-20  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/mkdtemp.c: Import from libc.
77809         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77810                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77811                 attempts_min into a macro.  Use preprocessor to decide how to
77812                 initialize attempts [Coverity CID 67].
77813         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77814                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77815                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77816
77817 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77818
77819         * gnulib-tool (func_exit): New function, to allow to pass the
77820         exit status portably through the trap.  Use everywhere.
77821         (--help, --version): Signal a write error.
77822         (trap): catch SIGPIPE, for write errors.
77823         Exit at the end of the trap, with the correct exit status.
77824
77825 2006-09-19  Karl Berry  <karl@gnu.org>
77826
77827         * doc/gnulib.texi: note about the license texinfo files.
77828
77829 2006-09-19  Eric Blake  <ebb9@byu.net>
77830
77831         * gnulib-tool: Avoid space-tab.
77832
77833 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77836         that prevented coreutils 6.1 from building.  Problem reported
77837         by Petter Reinholdtsen.
77838
77839 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * gnulib-tool (avoidlist): Fix typo that broke options like
77842         --avoid=lock that are used by coreutils bootstrap.
77843
77844 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77845
77846         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77847         more systematically.
77848
77849 2006-09-18  Jim Meyering  <jim@meyering.net>
77850
77851         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77852
77853 2006-09-18  Bruno Haible  <bruno@clisp.org>
77854
77855         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77856
77857 2006-09-18  Bruno Haible  <bruno@clisp.org>
77858
77859         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77860         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77861         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77862         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77863         * m4/gettext.m4: Require autoconf >= 2.52.
77864         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77865         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77866         of gl_cv_header_inttypes_h.
77867
77868 2006-09-18  Bruno Haible  <bruno@clisp.org>
77869
77870         * lib/javaversion.c: Include configmake.h.
77871
77872 2006-09-18  Bruno Haible  <bruno@clisp.org>
77873
77874         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77875         avoid that the while loops be executed in a subshell.
77876
77877 2006-09-18  Bruno Haible  <bruno@clisp.org>
77878
77879         * MODULES.html.sh (func_module): Break long lines.
77880         Suggested by Bruce Korb <bkorb@gnu.org>.
77881
77882 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77883
77884         Speed up by a factor of 1.12.
77885         * gnulib-tool (nl): New variable.
77886         (func_import): Rewrite include directive extraction to only read each
77887         directive once.
77888
77889 2006-09-17  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/javaversion (Makefile.am): Remove DEFS setting.
77892         (Depends-on): Add configmake, for PKGDATADIR definition.
77893
77894 2006-09-17  Bruno Haible  <bruno@clisp.org>
77895
77896         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77897
77898 2006-09-17  Bruno Haible  <bruno@clisp.org>
77899
77900         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77901         (func_modules_transitive_closure, func_modules_add_dummy,
77902         func_modules_to_filelist, func_import, func_create_testdir,
77903         func_create_megatestdir, ...): Use it wherever possible.
77904         Suggested by Ralf Wildenhues.
77905
77906 2006-09-16  Karl Berry  <karl@gnu.org>
77907
77908         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77909         to avoid sectioning errors.
77910         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77911         [ifinfo]: blank line after @center-ed titles.
77912         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77913         Spell FSF address consistently with others.
77914         (These changes approved by rms.)
77915
77916 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77917
77918         Speed up by a factor of 1.61.
77919         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77920         already checked module names again.
77921
77922 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77923
77924         Speed up by a factor of 1.13.
77925         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77926         for new_files, and the input to func_add_or_update.
77927
77928 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77929
77930         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77931         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77932
77933 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * modules/mkancesdirs (Depends-on): Add fcntl.
77936         * modules/savewd: New file.
77937         * MODULES.html.sh (File system functions): Add savewd.
77938
77939         * modules/configmake (Makefile.am): Add support for the
77940         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77941
77942 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77943
77944         * m4/savewd.m4: New file.
77945
77946 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77949         (dirchownmod): New arg FD.  All callers changed.
77950         Use FD rather than opening the directory ourself, as opening is
77951         now the caller's responsibility.
77952         * lib/dirchownmod.h: Likewise.
77953         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77954         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77955         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77956         (test_dir): Remove.
77957         (mkancesdirs): Return length of prefix of FILE that has already
77958         been made, or -2 if there is a child doing the work.  Redo
77959         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77960         ".", and treat ".." specially since it might stray back into
77961         already-created areas.  Use a subprocess if necessary.  New arg
77962         WD; all users changed.  MAKE_DIR function should now return 1
77963         if it creates a directory that is not readable.  Return -2 if
77964         a child process is spun off.
77965         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77966         Adjust signature to match code.
77967         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77968         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77969         all users changed.
77970         * lib/savewd.c, lib/savewd.h: New files.
77971
77972 2006-09-15  Jim Meyering  <jim@meyering.net>
77973
77974         * modules/rename-dest-slash: New module.
77975         * MODULES.html.sh (posix_compat): Add it here.
77976
77977         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77978
77979 2006-09-15  Jim Meyering  <jim@meyering.net>
77980
77981         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77982         file.
77983
77984         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77985
77986 2006-09-15  Jim Meyering  <jim@meyering.net>
77987
77988         * lib/rename-dest-slash.c (has_trailing_slash): Use
77989         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77990         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77991         test before testing whether SRC is a directory.
77992         Suggestions from Bruno Haible.
77993
77994         Avoid a warning about an unused variable.
77995         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77996         into the #ifdef block where it's used.
77997
77998         * lib/rename-dest-slash.c: New file.
77999
78000 2006-09-14  Bruno Haible  <bruno@clisp.org>
78001
78002         * lib/allocsa.c: Include <config.h> unconditionally.
78003         * lib/asnprintf.c: Likewise.
78004         * lib/asprintf.c: Likewise.
78005         * lib/c-strcasecmp.c: Likewise.
78006         * lib/c-strcasestr.c: Likewise.
78007         * lib/c-strncasecmp.c: Likewise.
78008         * lib/c-strstr.c: Likewise.
78009         * lib/classpath.c: Likewise.
78010         * lib/clean-temp.c: Likewise.
78011         * lib/concatpath.c: Likewise.
78012         * lib/copy-file.c: Likewise.
78013         * lib/csharpcomp.c: Likewise.
78014         * lib/csharpexec.c: Likewise.
78015         * lib/execute.c: Likewise.
78016         * lib/fatal-signal.c: Likewise.
78017         * lib/findprog.c: Likewise.
78018         * lib/fwriteerror.c: Likewise.
78019         * lib/gl_array_list.c: Likewise.
78020         * lib/gl_array_oset.c: Likewise.
78021         * lib/gl_avltree_list.c: Likewise.
78022         * lib/gl_avltree_oset.c: Likewise.
78023         * lib/gl_avltreehash_list.c: Likewise.
78024         * lib/gl_carray_list.c: Likewise.
78025         * lib/gl_linked_list.c: Likewise.
78026         * lib/gl_linkedhash_list.c: Likewise.
78027         * lib/gl_list.c: Likewise.
78028         * lib/gl_oset.c: Likewise.
78029         * lib/gl_rbtree_list.c: Likewise.
78030         * lib/gl_rbtree_oset.c: Likewise.
78031         * lib/gl_rbtreehash_list.c: Likewise.
78032         * lib/imaxabs.c: Likewise.
78033         * lib/imaxdiv.c: Likewise.
78034         * lib/javacomp.c: Likewise.
78035         * lib/javaexec.c: Likewise.
78036         * lib/javaversion.c: Likewise.
78037         * lib/linebreak.c: Likewise.
78038         * lib/localcharset.c: Likewise.
78039         * lib/lock.c: Likewise.
78040         * lib/mbchar.c: Likewise.
78041         * lib/mbswidth.c: Likewise.
78042         * lib/mkdtemp.c: Likewise.
78043         * lib/pipe.c: Likewise.
78044         * lib/printf-args.c: Likewise.
78045         * lib/printf-parse.c: Likewise.
78046         * lib/progname.c: Likewise.
78047         * lib/progreloc.c: Likewise.
78048         * lib/readlink.c: Likewise.
78049         * lib/sh-quote.c: Likewise.
78050         * lib/stpcpy.c: Likewise.
78051         * lib/stpncpy.c: Likewise.
78052         * lib/strcasecmp.c: Likewise.
78053         * lib/strcasestr.c: Likewise.
78054         * lib/strcspn.c: Likewise.
78055         * lib/striconv.c: Likewise.
78056         * lib/strncasecmp.c: Likewise.
78057         * lib/strnlen1.c: Likewise.
78058         * lib/strstr.c: Likewise.
78059         * lib/strtok_r.c: Likewise.
78060         * lib/tls.c: Likewise.
78061         * lib/tmpdir.c: Likewise.
78062         * lib/unicodeio.c: Likewise.
78063         * lib/unsetenv.c: Likewise.
78064         * lib/vasnprintf.c: Likewise.
78065         * lib/vasprintf.c: Likewise.
78066         * lib/wait-process.c: Likewise.
78067         * lib/xallocsa.c: Likewise.
78068         * lib/xsetenv.c: Likewise.
78069         * lib/xstriconv.c: Likewise.
78070
78071 2006-09-13  Simon Josefsson  <jas@extundo.com>
78072
78073         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78074         that internally, suggested by Ralf Wildenhues
78075         <Ralf.Wildenhues@gmx.de>.
78076
78077 2006-09-13  Simon Josefsson  <jas@extundo.com>
78078
78079         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78080         @LIBOBJS@.
78081         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78082
78083 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78086         longer worry about uses that don't define HAVE_CONFIG_H.
78087         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78088         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78089         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78090         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78091         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78092         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78093         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78094         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78095         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78096         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78097         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78098         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78099         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78100         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78101         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78102         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78103         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78104         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78105         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78106         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78107         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78108         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78109         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78110         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78111         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78112         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78113         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78114         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78115         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78116         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78117         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78118         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78119         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78120         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78121         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78122         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78123         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78124         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78125         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78126         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78127         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78128         Likewise.
78129
78130 2006-09-13  Eric Blake  <ebb9@byu.net>
78131
78132         * lib/getopt.c: Fix typo in last commit.
78133
78134 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78135
78136         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78137         dgettext.
78138
78139 2006-09-12  Jim Meyering  <jim@meyering.net>
78140
78141         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78142         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78143         Reported by Nelson H. F. Beebe.
78144
78145 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78146
78147         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78148         program_invocation_name and program_invocation_short_name are
78149         initialized.
78150         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78151         and program_invocation_short_name to argp.h, so they are visible
78152         to user programs.
78153         * lib/argp.h: Likewise
78154
78155 2006-09-10  Bruno Haible  <bruno@clisp.org>
78156
78157         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78158         m4/inttypes_h.m4, m4/uintmax_t.m4.
78159
78160 2006-09-10  Bruno Haible  <bruno@clisp.org>
78161
78162         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78163         gl_AC_TYPE_UINTMAX_T.
78164
78165 2006-09-10  Bruno Haible  <bruno@clisp.org>
78166
78167         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78168
78169 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78170
78171         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78172         convention.  Text proposed by Bruno Haible.
78173         (struct argp_option): Document the use of N_() wrappers.
78174
78175         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78176         '\v', and translate the two parts separately, instead of feeding
78177         the whole string to gettext.  This allows to exclude
78178         '\v' from the strings visible to the translator by writing doc
78179         strings as N_("..") "\v" N_("..").
78180
78181 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * config/srclist.txt: Undo latest change; the bug was fixed.
78184
78185 2006-09-09  Bruno Haible  <bruno@clisp.org>
78186
78187         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78188         assignments if building a library without libtool.
78189         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78190         in func_emit_lib_Makefile_am.
78191         (func_import): When building a static library libfoo.a, arrange to
78192         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78193         (func_create_testdir): Likewise.
78194         * modules/gc (configure.ac, Makefile.am): If building statically,
78195         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78196         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78197         * modules/striconv (configure.ac, Makefile.am): Likewise.
78198         Based on a suggestion by Ralf Wildenhues.
78199
78200 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78203         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78204         Also:
78205
78206         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78207         Add year_2050_test to catch glibc bug 2821
78208         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78209
78210         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78211         Prefer #ifdef to #if.
78212
78213         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78214         Return from 'main' instead of calling 'exit'.
78215
78216 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78219         returned the maximum time_t value rather than (time_t) -1.
78220         Problem originally reported by William Bardwell
78221         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78222
78223         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78224         Moved to here ...
78225         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78226         ... from here.
78227
78228 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78231         2821 is fixed.
78232
78233 2006-09-08  Jim Meyering  <jim@meyering.net>
78234
78235         Don't make generated files read-only.  That would bother too many
78236         people.  However, do retain the ability to work when targets are
78237         read-only: remove the destination and temporary files before writing
78238         them (when generated via sed or echo), or by using the -f option for
78239         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78240         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78241         * modules/byteswap, modules/configmake, modules/fcntl:
78242         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78243         * modules/localcharset, modules/netinet_in, modules/poll:
78244         * modules/stdbool, modules/stdint, modules/sys_select:
78245         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78246
78247 2006-09-08  Jim Meyering  <jim@meyering.net>
78248
78249         Avoid new build failure on FreeBSD 6.0.
78250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78251         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78252         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78253
78254 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78255
78256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78257
78258 2006-09-07  Jim Meyering  <jim@meyering.net>
78259
78260         Fix global typo in last change: use chmod u-w, not chmod u-x.
78261         Spotted by Paul Eggert and Bruce Korb.
78262         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78263         * modules/byteswap, modules/configmake, modules/fcntl:
78264         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78265         * modules/localcharset, modules/netinet_in, modules/poll:
78266         * modules/stdbool, modules/stdint, modules/sys_select:
78267         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78268
78269 2006-09-06  Jim Meyering  <jim@meyering.net>
78270
78271         Make generated files be read-only.
78272         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78273         Ensure that each generated file is now read-only.
78274         * modules/argz: Likewise.
78275         * modules/arpa_inet: Likewise.
78276         * modules/byteswap: Likewise.
78277         * modules/configmake: Likewise.
78278         * modules/fcntl: Likewise.
78279         * modules/fnmatch: Likewise.
78280         * modules/getopt: Likewise.
78281         * modules/glob: Likewise.
78282         * modules/inttypes: Likewise.
78283         * modules/netinet_in: Likewise.
78284         * modules/poll: Likewise.
78285         * modules/stdbool: Likewise.
78286         * modules/stdint: Likewise.
78287         * modules/sys_select: Likewise.
78288         * modules/sys_socket: Likewise.
78289         * modules/sys_stat: Likewise.
78290         * modules/sysexits: Likewise.
78291         * modules/localcharset: Same as above, but continue using temporary
78292         file named "t-$@" (why different?) rather than the "$@-t" used
78293         everywhere else.
78294
78295         * modules/sysexits (Makefile.am): Replace literal occurrences
78296         of "sysexit.h" more readable, and more consistent, "$@".
78297
78298 2006-09-06  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/striconv: New file.
78301         * modules/xstriconv: New file.
78302         * MODULES.html.sh (Internationalization functions): Add striconv,
78303         xstriconv.
78304
78305 2006-09-06  Bruno Haible  <bruno@clisp.org>
78306
78307         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78308         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78309         not using libtool correctly.
78310
78311 2006-09-06  Bruno Haible  <bruno@clisp.org>
78312
78313         * lib/striconv.h: New file.
78314         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78315         iconvstring.c.
78316         * lib/xstriconv.h: New file.
78317         * lib/xstriconv.c: New file.
78318
78319 2006-09-06  Bruno Haible  <bruno@clisp.org>
78320
78321         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78322         lib_..._LDFLAGS.
78323
78324 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78325
78326         * lib/argz_.h: Sync from Libtool.
78327
78328         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78329                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78330
78331         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78332
78333 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78334
78335         * modules/trim: New file.
78336
78337 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78338
78339         * lib/trim.h: New file.
78340         * lib/trim.c: New file.
78341
78342 2006-09-05  Bruno Haible  <bruno@clisp.org>
78343
78344         * MODULES.html.sh (String handling): Add trim.
78345
78346 2006-09-04  Karl Berry  <karl@gnu.org>
78347
78348         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78349         until next release.
78350
78351 2006-09-03  Bruno Haible  <bruno@clisp.org>
78352
78353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78354         correctly.
78355
78356 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78359         not gl_GETLOADAVG.  Omit unneeded semicolons.
78360         Problems reported by Ralf Wildenhues in
78361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78362         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78363         at the end, which is the usual gnulib style.
78364
78365         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78366         of doing all the work ourselves.
78367         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78368         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78369
78370 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78373         Problem reported by Ralf Wildenhues in
78374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78375
78376         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78377         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78378
78379 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78382         yesterday's patch by changing test -n to test -z.
78383
78384 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78387         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78388         the former is now obsolescent.
78389
78390         * modules/chdir-long (Depends-on): Add fcntl.
78391
78392 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78395         obsolescent, and programs should use gnulib instead.
78396         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78397         but with prefixes changed.
78398
78399 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78402         or stdbool.h, because they might not exist while configuring.
78403
78404         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78405         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78406         does that for us.
78407         (O_DIRECTORY): Remove.
78408
78409 2006-08-31  Eric Blake  <ebb9@byu.net>
78410
78411         * gnulib-tool: Don't let emacs change spaces to TAB.
78412
78413 2006-08-31  Bruno Haible  <bruno@clisp.org>
78414
78415         * gnulib-tool: When calling func_import more than once, do it in a
78416         subshell.
78417         Reported by Eric Blake <ebb9@byu.net>.
78418
78419 2006-08-31  Bruno Haible  <bruno@clisp.org>
78420
78421         * gnulib-tool (nl): Remove variable.
78422         (sed_transform_lib_file): Use more robust test for config-h module.
78423         (func_import): Fix typo in 2006-08-25 patch.
78424
78425 2006-08-31  Bruno Haible  <bruno@clisp.org>
78426
78427         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78428         specified, augment Makefile.am variables instead of assigning them.
78429
78430 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         Work around a bug in both the Linux and SunOS 64-bit kernels:
78433         nanosleep mishandles sleeps for longer than 2**31 seconds.
78434         Problem reported by Frank v Waveren in
78435         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78437         Check for nanosleep bug.
78438         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78439
78440 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         Work around a bug in both the Linux and SunOS 64-bit kernels:
78443         nanosleep mishandles sleeps for longer than 2**31 seconds.
78444         Problem reported by Frank v Waveren in
78445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78446         * lib/nanosleep.c (BILLION): New constant.
78447         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78448         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78449         implementation.
78450
78451 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * modules/nanosleep (Depends-on): Add gettime.
78454
78455 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78456         and Simon Josefsson  <jas@extundo.com>
78457         and Oskar Liljeblad  <oskar@osk.mine.nu>
78458
78459         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78460         * gnulib-tool (func_import): New license type 'unmodifiable license
78461         text'.
78462         * modules/fdl: Use it.  Longer description.
78463         * module/gpl, module/lgpl: New files.
78464
78465 2006-08-30  Jim Meyering  <jim@meyering.net>
78466
78467         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78468         shadowing the parameter.
78469
78470 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78471
78472         Sync from Libtool:
78473
78474         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78475
78476         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78477         sharing with gnulib.  Report by Eric Blake.
78478
78479 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         * modules/isapipe: New file.
78482         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78483
78484 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * modules/configmake (Makefile.am): Add a comment, and omit
78487         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78488         by Bruno Haible.
78489
78490 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         * m4/isapipe.m4: New file.
78493
78494 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * lib/isapipe.c, lib/isapipe.h: New files.
78497
78498 2006-08-29  Jim Meyering  <jim@meyering.net>
78499
78500         * modules/configmake (Makefile.am): Make configmake.h depend on
78501         Makefile.  Otherwise, a stale configmake.h could hang around.
78502
78503 2006-08-29  Eric Blake  <ebb9@byu.net>
78504
78505         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78506         resolution of upstream bug 3044.
78507
78508 2006-08-29  Bruno Haible  <bruno@clisp.org>
78509
78510         * modules/localcharset (Depends-on): Add configmake.
78511         (Makefile.am): Remove setting of LIBDIR through DEFS.
78512
78513 2006-08-29  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78516         defined.
78517
78518 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * modules/fcntl: New file.
78521         * modules/chdir-safer (Depends-on): Add fcntl.
78522         * modules/fts: Likewise.
78523         * modules/mkdir-p: Likewise.
78524
78525         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78526         This undoes the most recent change, since we're now addressing the
78527         problem in a different way.
78528
78529         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78530         into output, since the output might be called Makefile.am even
78531         if $makefile_name is something different.
78532         (func_import): Use $makefile_am rather than
78533         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78534         empty.
78535
78536         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78537
78538 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78541         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78542         recent change to stdint.m4, since we're now addressing the problem in a
78543         different way.
78544
78545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * m4/fcntl_h.m4: New file.
78548
78549 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78550
78551         * lib/fcntl_.h: New file.
78552         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78553         the fcntl module.
78554         * lib/dirchownmod.c: Likewise.
78555         * lib/fts.c: Likewise.
78556
78557         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78558         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78559         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78560         just before including <inttypes.h>, to avoid circular inclusion.
78561
78562 2006-08-28  Jim Meyering  <jim@meyering.net>
78563
78564         * doc/visibility.texi: Actually read and correct the grammar of the
78565         sentence affected by yesterday's change.
78566
78567 2006-08-28  Eric Blake  <ebb9@byu.net>
78568
78569         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78570         needs wrapper.
78571
78572 2006-08-28  Eric Blake  <ebb9@byu.net>
78573
78574         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78575
78576 2006-08-28  Eric Blake  <ebb9@byu.net>
78577
78578         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78579
78580 2006-08-28  Bruno Haible  <bruno@clisp.org>
78581
78582         * modules/c-strstr: New file, from GNU gettext.
78583         * MODULES.html.sh (String handling): Add c-strstr.
78584
78585 2006-08-28  Bruno Haible  <bruno@clisp.org>
78586
78587         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78588         macros.
78589         Reported by Eric Blake.
78590
78591 2006-08-28  Bruno Haible  <bruno@clisp.org>
78592
78593         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78594         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78595         * lib/vasprintf.c: Include errno.h, limits.h.
78596         (EOVERFLOW): New fallback definition.
78597         (vasprintf): Test here whether the string length is > INT_MAX.
78598         * lib/vsnprintf.c: Include errno.h, limits.h.
78599         (EOVERFLOW): New fallback definition.
78600         (vsnprintf): Fix bug when generated string was too long for the buffer.
78601         Test here whether the string length is > INT_MAX.
78602
78603 2006-08-28  Bruno Haible  <bruno@clisp.org>
78604
78605         * lib/inttypes_.h (SCNX*): Remove definitions.
78606         Reported by Eric Blake.
78607
78608 2006-08-28  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/c-strstr.h: New file, from GNU gettext.
78611         * lib/c-strstr.c: New file, from GNU gettext.
78612
78613 2006-08-28  Bruno Haible  <bruno@clisp.org>
78614
78615         * gnulib-tool: Reorder some statements.
78616
78617 2006-08-28  Bruno Haible  <bruno@clisp.org>
78618
78619         * gnulib-tool: New option --makefile-name.
78620         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78621         $makefile_name.
78622         (func_import): Write $makefile_name to the cache file, and read it from
78623         there unless explicitly specified. Use $makefile_name as file name
78624         instead of Makefile.am. Adjust the recommendations accordingly.
78625
78626 2006-08-28  Bruno Haible  <bruno@clisp.org>
78627
78628         * gnulib-tool (func_verify_module): Check against misapplying patch.
78629
78630 2006-08-28  Bruno Haible  <bruno@clisp.org>
78631
78632         * gnulib-tool (func_relativize, func_relconcat): New functions.
78633         Give an error if --local-dir is given with --update.
78634         Remove trailing slashes from $local_gnulib_dir.
78635         (func_import): Store the relativized $local_gnulib_dir in
78636         gnulib-cache.m4, and read it from there if not specified explicitly.
78637
78638 2006-08-28  Bruno Haible  <bruno@clisp.org>
78639
78640         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78641         is the current directory. Respect also $local_gnulib_dir.
78642
78643 2006-08-28  Bruno Haible  <bruno@clisp.org>
78644             Simon Josefsson  <jas@extundo.com>
78645
78646         BeOS portability.
78647         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78648
78649 2006-08-27  Jim Meyering  <jim@meyering.net>
78650
78651         * doc/visibility.texi: Remove duplicate word: "pointer".
78652
78653 2006-08-26  Bruno Haible  <bruno@clisp.org>
78654
78655         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78656         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78657         (Makefile.am): Create inttypes.h from inttypes_.h.
78658         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78659
78660         * modules/imaxabs: New file.
78661
78662         * modules/imaxdiv: New file.
78663
78664 2006-08-26  Bruno Haible  <bruno@clisp.org>
78665
78666         * m4/inttypes.m4: New file.
78667         * m4/_inttypes_h.m4: Remove file.
78668         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78669         PRI_MACROS_BROKEN.
78670         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78671
78672         * m4/imaxabs.m4: New file.
78673
78674         * m4/imaxdiv.m4: New file.
78675
78676 2006-08-26  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/inttypes_.h: New file.
78679         * lib/inttypes.h: Remove file.
78680         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78681
78682         * lib/imaxabs.c: New file.
78683
78684         * lib/imaxdiv.c: New file.
78685
78686 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         New config-h module, so that "make" output needn't be cluttered
78689         by -DHAVE_CONFIG_H.
78690         * MODULES.html.sh (Support for building libraries and executables):
78691         Add config-h.
78692         * modules/config-h: New file.
78693         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78694         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78695         the config-h module is used.
78696
78697         New configmake module, so that "make" output needn't be cluttered
78698         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78699         * MODULES.html.sh (Support for building libraries and executables):
78700         Add configmake.
78701         * modules/configmake: New file.
78702
78703 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * m4/config-h.m4: New file.
78706
78707 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * config/srclist.txt: Add elisp-comp.
78710
78711 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * MODULES.html.sh (Support for building libraries and executables):
78714         Add elisp-comp.
78715         * build-aux/elisp-comp: New file.
78716         * modules/elisp-comp: New file.
78717
78718 2006-08-24  Bruno Haible  <bruno@clisp.org>
78719
78720         * gnulib-tool (func_create_testdir): Use non-default values of
78721         sourcebase and m4base.
78722
78723 2006-08-24  Bruno Haible  <bruno@clisp.org>
78724
78725         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78726         HTML structure.
78727
78728 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * modules/openat (Depends-on): Add lchown.
78731
78732 2006-08-23  Bruno Haible  <bruno@clisp.org>
78733
78734         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78735         of gl_LOCK_EARLY instead of gl_LOCK.
78736
78737 2006-08-23  Bruno Haible  <bruno@clisp.org>
78738
78739         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78740         on OSF/1 to no.
78741         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78742
78743 2006-08-23  Bruno Haible  <bruno@clisp.org>
78744
78745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78746         as unusable.
78747
78748         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78749         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78750         (gl_LOCK): New macro.
78751
78752 2006-08-22  Simon Josefsson  <jas@extundo.com>
78753
78754         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78755         to md5 module.
78756
78757 2006-08-22  Simon Josefsson  <jas@extundo.com>
78758
78759         * MODULES.html.sh: Add "Support for maintaining and release
78760         projects".
78761
78762         * build-aux/gnupload: New file, from coreutils.
78763
78764 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         Avoid the need for AC_LIBSOURCES in m4 macros.
78767         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78768         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78769         * modules/check-version (EXTRA_DIST): Add check-version.h.
78770         * modules/crc (EXTRA_DIST): Add crc.h.
78771         * modules/des (EXTRA_DIST): Add des.h.
78772         * modules/gc (EXTRA_DIST): Add gc.h.
78773         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78774         * modules/getline (EXTRA_DIST): Add getline.h.
78775         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78776         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78777         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78778         * modules/md2 (EXTRA_DIST): Add md2.h.
78779         * modules/md4 (EXTRA_DIST): Add md4.h.
78780         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78781         * modules/read-file (EXTRA_DIST): Add read-file.h.
78782         * modules/readline (EXTRA_DIST): Add readline.h.
78783         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78784         rijndael-api-fst.h.
78785
78786 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * m4/rijndael.m4 (gl_ARCFOUR):
78789         * m4/arctwo.m4 (gl_ARCTWO):
78790         * m4/check-version.m4 (gl_CHECK_VERSION):
78791         * m4/crc.m4 (gl_CRC):
78792         * m4/des.m4 (gl_DES):
78793         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78794         * m4/gc.m4 (gl_GC):
78795         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78796         * m4/getline.m4 (gl_FUNC_GETLINE):
78797         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78798         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78799         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78800         * m4/md2.m4 (gl_MD2):
78801         * m4/md4.m4 (gl_MD4):
78802         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78803         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78804         * m4/readline.m4 (gl_FUNC_READLINE):
78805         * m4/rijndael.m4 (gl_RIJNDAEL):
78806         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78807         to get the necessary .h files and whatnot.
78808
78809 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78812         gnulib rather than the other way around.
78813         * config/srclistvars.sh (COREUTILS): Remove.
78814
78815 2006-08-22  Jim Meyering  <jim@meyering.net>
78816
78817         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78818
78819         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78820
78821 2006-08-22  Eric Blake  <ebb9@byu.net>
78822
78823         * modules/regexprops-generic: New file.
78824         * MODULES.html.sh (Support for building documentation): List it.
78825
78826 2006-08-22  Eric Blake  <ebb9@byu.net>
78827
78828         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78829         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78830         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78831         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78832
78833 2006-08-22  Bruno Haible  <bruno@clisp.org>
78834
78835         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78836         and lib_LTLIBRARIES like the other lib_* variables.
78837
78838 2006-08-22  Bruno Haible  <bruno@clisp.org>
78839
78840         * build-aux/x-to-1.in: New file, from GNU gettext.
78841
78842 2006-08-22  Bruno Haible  <bruno@clisp.org>
78843
78844         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78845         <utmpx.h> exists.
78846
78847 2006-08-22  Bruno Haible  <bruno@clisp.org>
78848
78849         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78850         <utmpx.h> exists.
78851
78852 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         BeOS portability.
78855         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78856         exist.
78857         Problem reported by Bruno Haible.
78858
78859 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78860
78861         Avoid the need for AC_LIBSOURCES in m4 macros.
78862         * modules/acl (EXTRA_DIST): Add acl.h.
78863         * modules/argmatch (Files): Add m4/argmatch.m4.
78864         (configure.ac): Add gl_ARGMATCH.
78865         (EXTRA_DIST): Renamed from lib_SOURCES, for
78866         consistency with the other modules.  Remove argmatch.c.
78867         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78868         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78869         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78870         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78871         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78872         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78873         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78874         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78875         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78876         * modules/closeout (EXTRA_DIST): Add closeout.h.
78877         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78878         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78879         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78880         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78881         dirname.h; remove basename.c and stripslash.c.
78882         * modules/exclude (EXTRA_DIST): Add exclude.h.
78883         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78884         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78885         * modules/file-type (EXTRA_DIST): Add file-type.h.
78886         * modules/filemode (EXTRA_DIST): Add filemode.h.
78887         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78888         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78889         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78890         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78891         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78892         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78893         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78894         * modules/getdate (EXTRA_DIST): Add getdate.c.
78895         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78896         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78897         * modules/getpass (EXTRA_DIST): Add getpass.h.
78898         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78899         * modules/group-member (EXTRA_DIST): Add group-member.h.
78900         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78901         * modules/hash (EXTRA_DIST): Add hash.h.
78902         * modules/human (EXTRA_DIST): Add human.h.
78903         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78904         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78905         * modules/lchown (EXTRA_DIST): Add lchown.h.
78906         * modules/long-options (EXTRA_DIST): Add long-options.h.
78907         * modules/lstat (EXTRA_DIST): Add lstat.h.
78908         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78909         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78910         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78911         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78912         * modules/memxor (EXTRA_DIST): Add memxor.h.
78913         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78914         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78915         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78916         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78917         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78918         * modules/physmem (EXTRA_DIST): Add physmem.h.
78919         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78920         * modules/posixver (EXTRA_DIST): Add posixver.h.
78921         * modules/quote (EXTRA_DIST): Add quote.h.
78922         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78923         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78924         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78925         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78926         regex_internal.h regexec.c.
78927         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78928         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78929         * modules/same (EXTRA_DIST): Add same.h.
78930         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78931         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78932         * modules/savedir (EXTRA_DIST): Add savedir.h.
78933         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78934         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78935         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78936         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78937         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78938         * modules/strdup (EXTRA_DIST): Add strdup.h.
78939         * modules/strftime (EXTRA_DIST): Add strftime.h.
78940         * modules/strndup (EXTRA_DIST): Add strndup.h.
78941         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78942         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78943         * modules/time_r (EXTRA_DIST): Add time_r.h.
78944         * modules/timespec (EXTRA_DIST): Add timespec.h.
78945         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78946         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78947         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78948         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78949         * modules/userspec (EXTRA_DIST): Add userspec.h.
78950         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78951         * modules/utimens (EXTRA_DIST): Add utimens.h.
78952         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78953         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78954         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78955         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78956         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78957         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78958         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78959         * modules/yesno (EXTRA_DIST): Add yesno.h.
78960
78961 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78964
78965         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78966         * m4/dev-ino.m4, same-inode.m4: Remove.
78967
78968         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78969         * m4/acl.m4 (AC_FUNC_ACL):
78970         * m4/backupfile.m4 (gl_BACKUPFILE):
78971         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78972         * m4/canon-host.m4 (gl_CANON_HOST):
78973         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78974         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78975         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78976         * m4/cloexec.m4 (gl_CLOEXEC):
78977         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78978         * m4/closeout.m4 (gl_CLOSEOUT):
78979         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78980         * m4/dirname.m4 (gl_DIRNAME):
78981         * m4/exclude.m4 (gl_EXCLUDE):
78982         * m4/exitfail.m4 (gl_EXITFAIL):
78983         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78984         * m4/file-type.m4 (gl_FILE_TYPE):
78985         * m4/filemode.m4 (gl_FILEMODE):
78986         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78987         * m4/fpending.m4 (gl_FUNC_FPENDING):
78988         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78989         * m4/fts.m4 (gl_FUNC_FTS):
78990         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78991         * m4/getdate.m4 (gl_GETDATE):
78992         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78993         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78994         * m4/getpass.m4 (gl_FUNC_GETPASS):
78995         * m4/gettime.m4 (gl_GETTIME):
78996         * m4/getugroups.m4 (gl_GETUGROUPS):
78997         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78998         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78999         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79000         * m4/hash.m4 (gl_HASH):
79001         * m4/idcache.m4 (gl_IDCACHE):
79002         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79003         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79004         * m4/long-options.m4 (gl_LONG_OPTIONS):
79005         * m4/lstat.m4 (gl_FUNC_LSTAT):
79006         * m4/md5.m4 (gl_MD5):
79007         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79008         * m4/memcoll.m4 (gl_MEMCOLL):
79009         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79010         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79011         * m4/memxor.m4 (gl_MEMXOR):
79012         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79013         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79014         * m4/modechange.m4 (gl_MODECHANGE):
79015         * m4/mountlist.m4 (gl_MOUNTLIST):
79016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79017         * m4/openat.m4 (gl_FUNC_OPENAT):
79018         * m4/pathmax.m4 (gl_PATHMAX):
79019         * m4/physmem.m4 (gl_PHYSMEM):
79020         * m4/posixtm.m4 (gl_POSIXTM):
79021         * m4/posixver.m4 (gl_POSIXVER):
79022         * m4/quote.m4 (gl_QUOTE):
79023         * m4/quotearg.m4 (gl_QUOTEARG):
79024         * m4/readtokens.m4 (gl_READTOKENS):
79025         * m4/readutmp.m4 (gl_READUTMP):
79026         * m4/regex.m4 (gl_REGEX):
79027         * m4/safe-read.m4 (gl_SAFE_READ):
79028         * m4/safe-write.m4 (gl_SAFE_WRITE):
79029         * m4/same.m4 (gl_SAME):
79030         * m4/save-cwd.m4 (gl_SAVE_CWD):
79031         * m4/savedir.m4 (gl_SAVEDIR):
79032         * m4/settime.m4 (gl_SETTIME):
79033         * m4/sha1.m4 (gl_SHA1):
79034         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79035         * m4/stat-macros.m4 (gl_STAT_MACROS):
79036         * m4/stat-time.m4 (gl_STAT_TIME):
79037         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79038         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79039         * m4/strdup.m4 (gl_FUNC_STRDUP):
79040         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79041         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79042         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79043         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79044         * m4/time_r.m4 (gl_TIME_R):
79045         * m4/timespec.m4 (gl_TIMESPEC):
79046         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79047         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79048         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79049         * m4/userspec.m4 (gl_USERSPEC):
79050         * m4/utimecmp.m4 (gl_UTIMECMP):
79051         * m4/utimens.m4 (gl_UTIMENS):
79052         * m4/xalloc.m4 (gl_XALLOC):
79053         * m4/xgetcwd.m4 (gl_XGETCWD):
79054         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79055         * m4/xreadlink.m4 (gl_XREADLINK):
79056         * m4/xstrtod.m4 (gl_XSTRTOD):
79057         * m4/yesno.m4 (gl_YESNO):
79058         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79059         to get the necessary .h files and whatnot.
79060
79061 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79062             Bruno Haible  <bruno@clisp.org>
79063
79064         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79065         /bin/sh understanding of '!' conditional negation.
79066
79067 2006-08-21  Jim Meyering  <jim@meyering.net>
79068
79069         * modules/openat (Depends-on): Really alphabetize.
79070
79071         * modules/acl (Depends-on): Add error and quote.
79072
79073         * check-module (find_included_lib_files): Add at-func.c to the
79074         ok-to-include-more-than-once white list.
79075
79076         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79077
79078 2006-08-21  Bruno Haible  <bruno@clisp.org>
79079
79080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79081         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79082         Reported by Martin Lambers <marlam@marlam.de>.
79083
79084 2006-08-21  Bruno Haible  <bruno@clisp.org>
79085
79086         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79087         specify an installation location, don't emit a noinst_LIBRARIES or
79088         noinst_LTLIBRARIES assignment.
79089
79090 2006-08-21  Bruno Haible  <bruno@clisp.org>
79091
79092         BeOS portability.
79093         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79094         BeOS has mbrtowc() but no <wctype.h>.
79095
79096 2006-08-21  Bruno Haible  <bruno@clisp.org>
79097
79098         BeOS portability.
79099         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79100         exist.
79101
79102 2006-08-21  Bruno Haible  <bruno@clisp.org>
79103
79104         BeOS portability.
79105         * lib/mbchar.h: Include <wctype.h> only if it exists.
79106
79107 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         Remove files that are no longer needed by their respective modules.
79110         * m4/obstack.m4: Remove.
79111         * m4/strerror_r.m4: Remove.
79112         * m4/uint32_t.m4: Remove.
79113         * m4/uintptr_t.m4: Remove.
79114         * m4/ullong_max.m4: Remove.
79115         * m4/xstrtoimax.m4: Remove.
79116         * m4/xstrtoumax.m4: Remove.
79117
79118         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79119         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79120         dependencies now capture this.
79121
79122         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79123         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79124         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79125         * m4/human.m4 (gl_HUMAN): Likewise.
79126         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79127         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79128
79129         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79130
79131         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79132         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79133         stdint.
79134         * m4/human.m4 (gl_HUMAN): Likewise.
79135         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79136         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79137         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79138         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79139         * m4/xstrtol (gl_XSTRTOL): Likewise.
79140
79141         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79142         AC_TYPE_LONG_LONG_INT.
79143         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79144         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79145         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79146         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79147
79148         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79149         on stdbool.
79150
79151         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79152         (gl_PREREQ_XSTRTOUL): Remove.
79153
79154         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79155
79156         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79157         mode.
79158
79159 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         Add and change modules to make it easier for coreutils to use
79162         gnulib-tool.
79163         * modules/backupfile (Files): Remove m4/d-ino.m4.
79164         (Depends-on): Add d-ino.
79165         * modules/cycle-check (Depends-on): Add stdint.
79166         (lib_SOURCES): Add cycle-check.h.
79167         * modules/d-ino: New module.
79168         * modules/d-type: New module.
79169         * modules/error (Files): Remove m4/strerror_r.m4.
79170         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79171         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79172         m4/inttypes_h.m4, m4/uintmax_t.m4.
79173         (Depends-on): Add stdint.
79174         (lib_SOURCES): Add fsusage.h.
79175         * modules/getcwd (Files): Remove d-ino.m4.
79176         (Depends-on): Add d-ino.
79177         * modules/getndelim2 (Depends-on): Add stdint.
79178         * modules/glob (Files): Remove m4/d-type.m4.
79179         (Depends-on): Add d-type.
79180         * modules/host-os: New module.
79181         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79182         m4/inttypes_h.m4, m4/uintmax_t.m4.
79183         * Depends-on: Add stdint.
79184         (lib_SOURCES): Add human.h.
79185         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79186         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79187         m4/uintmax_t.m4, m4/ulonglong.m4.
79188         (Depends-on): Add stdint.
79189         (EXTRA_DIST): Add inttostr.h.
79190         * modules/lchmod: New module.
79191         * modules/link-follow: New module.
79192         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79193         (Depends-on): Add lchmod.
79194         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79195         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79196         (Depends-on): Add stdint.
79197         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79198         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79199         (Depends-on): Add stdint.
79200         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79201         * modules/perl: New module.
79202         * modules/regex (Depends-on): Add stdint.
79203         * modules/rmdir-errno: New module.
79204         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79205         m4/intmax_t.m4.
79206         (Depends-on): Add stdint.
79207         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79208         m4/uintmax_t.m4.
79209         (Depends-on): Add stdint.
79210         * modules/unlink-busy: New module.
79211         * modules/utimecmp (Depends-on): Add stdint.
79212         * modules/uptime: New module.
79213         * modules/winsz-ioctl: New module.
79214         * modules/winsz-termios: New module.
79215         * modules/xnanosleep (Depends-on): Add nanosleep.
79216         * modules/ullong_max: Remove.
79217         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79218         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79219         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79220         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79221         (Depends-on): Add inttypes.
79222         (lib_SOURCES): Add xstrtol.h.
79223         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79224         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79225         * MODULES.html.sh: Move 'assert' into the assert section.
79226         Move 'dummy' into the linking section.
79227         Remove ullong_max.
79228         Add section for compatibility checks for POSIX:2001 functions,
79229         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79230         winsz-ioctl, and winsz-termios into it.
79231         Add lchmod.
79232         Add top-level Misc section and put host-os, perl, and uptime
79233         into it.
79234
79235 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79238         now assume the stdint module.  Do not include inttypes.h.
79239         * lib/fsusage.h: Likewise.
79240         * lib/getndelim2.c: Likewise.
79241         * lib/human.h: Likewise.
79242         * lib/inttostr.h: Likewise.
79243         * lib/obstack.c: Likewise.
79244         * lib/regex_internal.h: Likewise.
79245         * lib/tempname.c: Likewise.
79246         * lib/utimecmp.c: Likewise.
79247         * lib/xstrtol.h: Likewise.
79248
79249         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79250
79251         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79252         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79253         * lib/xtime.h: Likewise.
79254
79255 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         * modules/openat (Files): Add lib/fchmodat.c.
79258         Fixes problem reported by Jay Youngman.
79259
79260 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79261
79262         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79263         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79264
79265 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79266             Bruno Haible  <bruno@clisp.org>
79267
79268         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79269         and is a script that invokes bison. Tighten the code. Add comments.
79270
79271 2006-08-18  Jim Meyering  <jim@meyering.net>
79272
79273         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79274         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79275         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79276         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79277
79278 2006-08-18  Bruno Haible  <bruno@clisp.org>
79279
79280         * modules/bison-i18n: New file.
79281         * MODULES.html.sh (Internationalization functions): Add it.
79282
79283 2006-08-18  Bruno Haible  <bruno@clisp.org>
79284
79285         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79286         sys/statvfs.h. When getmntinfo was found, check its declaration and
79287         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79288
79289 2006-08-18  Bruno Haible  <bruno@clisp.org>
79290
79291         * m4/bison-i18n.m4: New file, from bison.
79292
79293 2006-08-18  Bruno Haible  <bruno@clisp.org>
79294
79295         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79296         (ME_DUMMY): Treat "kernfs" as a dummy.
79297         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79298
79299 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         Update from coreutils.
79302
79303         2006-08-15  Jim Meyering  <jim@meyering.net>
79304
79305         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79306
79307         2006-01-17  Jim Meyering  <jim@meyering.net>
79308
79309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79310
79311         2006-01-11  Jim Meyering  <jim@meyering.net>
79312
79313         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79314         Check for the lchmod function.
79315
79316 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         Update from coreutils.
79319
79320         * lib/__fpending.h: Add copyright notice.
79321         * lib/fprintftime.h: Likewise.
79322         * lib/savedir.c: Use (C) in copyright notice.
79323         * lib/savedir.h: Likewise.
79324
79325         2006-08-15  Jim Meyering  <jim@meyering.net>
79326
79327         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79328         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79329         in support of the EXPECTED_ERRNO macro.
79330         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79331         definitions.  Instead, define the appropriate symbols and include
79332         "at-func.c".
79333         * lib/mkdirat.c (mkdirat): Likewise.
79334         * lib/fchmodat.c (fchmodat): Likewise.
79335         (ENOSYS): Remove definition.
79336         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79337         it.  Don't include "unistd--.h" -- it wasn't ever used.
79338
79339         2006-01-17  Jim Meyering  <jim@meyering.net>
79340
79341         Rewrite fts.c not to change the current working directory,
79342         by using openat, fstatat, fdopendir, etc..
79343
79344         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79345         (HAVE_OPENAT_SUPPORT): Define.
79346         [_LIBC] (fchdir): Don't undef or define; no longer used.
79347         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79348         Now, this `function' always succeeds, and consumes its file descriptor
79349         parameter -- so callers must not close such FDs.  Update callers.
79350         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79351         (diropen): Add parameter, SP.  Adjust all callers.
79352         Implement using diropen_fd, rather than open.
79353         (fts_open): Initialize new member, fts_cwd_fd.
79354         Remove fts_rft-setting code.
79355         (fts_close): Close fts_cwd_fd, if necessary.
79356         (__opendir2): Define in terms of opendir or opendirat,
79357         depending on whether the FST_NOCHDIR flag is set.
79358         (fts_build): Since fts_safe_changedir consumes its FD, and since
79359         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79360         and close the dup'd file descriptor upon failure.
79361         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79362         (fts_safe_changedir): Tweak semantics to reflect that this function
79363         now calls cwd_advance_fd and hence consumes its FD argument.
79364         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79365         [struct FTS] (fts_rft): Remove now-unused member.
79366         [struct FTS] (fts_cycle.state): Improve comment.
79367
79368         * lib/openat.c (openat_needs_fchdir): New function.
79369         * lib/openat.h (openat_needs_fchdir): Declare it.
79370
79371 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79374         Problem and fix reported by Pádraig Brady in
79375         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79376
79377 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79380
79381 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79382
79383         * lib/memcoll.c (memcoll): Optimize for the common case where the
79384         arguments are bytewise equal.
79385
79386 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * doc/regexprops-generic.texi: Add a copyright notice.
79389
79390 2006-08-15  Bruno Haible  <bruno@clisp.org>
79391
79392         * modules/tmpdir (License): Change to LGPL.
79393
79394 2006-08-15  Bruno Haible  <bruno@clisp.org>
79395
79396         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79397         module.
79398
79399 2006-08-14  Simon Josefsson  <jas@extundo.com>
79400
79401         * config/srclist.txt: Add gnupload.
79402
79403 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         Change copyright notice from LGPL 2 to GPL 2, since that's the
79406         standard form used in the gnulib repository.
79407         * tests/test-lock.c: Likewise.
79408         * tests/test-stdint.c: Likewise.
79409         * tests/test-tls.c: Likewise.
79410
79411         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79412         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79413         Add copyright notice.
79414
79415         * check-module: Add copyright notice.  Output a copyright
79416         notice if "--version" is specified.
79417         * modules/COPYING: New file.
79418         * tests/test-getaddrinfo.c: Add copyright notice.
79419         * tests/test-verify.c: Likewise.
79420
79421 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         Change copyright notice from LGPL 2 to GPL 2, since that's the
79424         standard form used in the gnulib repository.
79425         * lib/lock.c: LGPL -> GPL.
79426         * lib/lock.h: Likewise.
79427         * lib/strnlen1.c: Likewise.
79428         * lib/strnlen1.h: Likewise.
79429         * lib/tls.c: Likewise.
79430         * lib/tls.h: Likewise.
79431         * lib/tmpdir.c: Likewise.
79432
79433         * lib/TODO: Remove; this belongs only in coreutils.
79434
79435 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         Add copyright notices to long-enough files that lack them, since
79438         otherwise the files aren't clearly free.  Use the same notice that
79439         getdate.texi already uses.
79440         * doc/alloca-opt.texi: Add copyright notice.
79441         * doc/alloca.texi: Likewise.
79442         * doc/ctime.texi: Likewise.
79443         * doc/functions.texi: Likewise.
79444         * doc/gcd.texi: Likewise.
79445         * doc/gnulib-tool.texi: Likewise.
79446         * doc/inet_ntoa.texi: Likewise.
79447         * doc/visibility.texi: Likewise.
79448
79449         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79450         * doc/quote.texi: Add copyright notice.
79451
79452         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79453         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79454         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79455         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79456         is now obsolete, and give a pointer to the Sun list.
79457         Add copyright notice.
79458
79459 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * config/srclistvars.sh: Add copyright notice.
79462
79463 2006-08-14  Eric Blake  <ebb9@byu.net>
79464
79465         Import the following change from libc:
79466
79467         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79468
79469         Upstream bug 2997.
79470         * lib/misc/error.c: Add space between program name and message if file
79471         name is missing.
79472
79473 2006-08-12  Karl Berry  <karl@gnu.org>
79474
79475         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79476         remove, these originate in gnulib now.
79477
79478 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79479
79480         * doc/Makefile (standards.info standards.html standards.dvi):
79481         Also depend on make-stds.texi.
79482
79483 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79486         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79487
79488         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79489         in wchar_t.  Problem reported by Eric Blake.
79490
79491         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79492         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79493         Also, help the compiler to keep LEN in a register.
79494
79495 2006-08-11  Eric Blake  <ebb9@byu.net>
79496
79497         * users.txt: Sort.  Add tar.
79498
79499 2006-08-11  Bruno Haible  <bruno@clisp.org>
79500
79501         * users.txt: New file.
79502
79503 2006-08-11  Bruno Haible  <bruno@clisp.org>
79504
79505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79506         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79507
79508 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * modules/snprintf (Depends-on): Remove minmax.
79511         (Maintainer): Add self and Bruno.
79512
79513 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79516         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79517         (EOVERFLOW): Define if the system does not.
79518         Do not include "minmax.h"; it wasn't used.
79519         (snprintf): Don't assume size_t promotes to an unsigned type.
79520         Fix bug when generated string was too long for the buffer: the
79521         buffer's contents are supposed to be the initial prefix of the
79522         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79523         exceeds INT_MAX; do the check ourselves.
79524
79525         Import the following changes from libc:
79526
79527         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79528
79529         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79530         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79531         set wc to the byte which couldn't be converted.
79532         (re_string_reconstruct): Don't clear valid_raw_len before calling
79533         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79534         tip_context using re_string_context_at.
79535
79536         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79537
79538         * lib/posix/regex.h: g++ still cannot handled [restrict].
79539
79540         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79541
79542         * lib/posix/regex.h: Remove special handling for VMS.
79543
79544 2006-08-10  Jim Meyering  <jim@meyering.net>
79545
79546         * modules/same-inode: New module.
79547         * modules/dev-ino: New module.
79548         * modules/cycle-check: Depend on these modules, rather than simply
79549         including their .h files.
79550         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79551         required via m4/cycle-check.m4.
79552         * modules/same: Depend on new same-inode module, rather than
79553         including same-inode.h.
79554         * modules/chdir-safer: New file.
79555
79556         * modules/chown (Depends-on): Add stat-macros.
79557
79558 2006-08-10  Jim Meyering  <jim@meyering.net>
79559
79560         * m4/cycle-check.m4: New file.
79561         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79562         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79563
79564 2006-08-10  Eric Blake  <ebb9@byu.net>
79565
79566         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79567         in from original proposal.
79568
79569 2006-08-10  Eric Blake  <ebb9@byu.net>
79570         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79571
79572         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79573         namespace.
79574
79575 2006-08-10  Bruno Haible  <bruno@clisp.org>
79576
79577         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79578         as well.
79579
79580 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         Sync from coreutils.
79583
79584         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79585
79586         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79587         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79588
79589 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * modules/restrict: Remove; no longer needed now that we assume
79592         Autoconf 2.59 or later.
79593         * MODULES.html.sh: Remove 'restrict'.
79594         * modules/argp (Depends-on): Remove 'restrict'.
79595         * modules/base64 (Depends-on): Likewise.
79596         * modules/gc (Depends-on): Likewise.
79597         * modules/getaddrinfo (Depends-on): Likewise.
79598         * modules/glob (Depends-on): Likewise.
79599         * modules/inet_ntop (Depends-on): Likewise.
79600         * modules/inet_pton (Depends-on): Likewise.
79601         * modules/memxor (Depends-on): Likewise.
79602         * modules/regex (Depends-on): Likewise.
79603         * modules/strtok_r (Depends-on): Likewise.
79604         * modules/time_r (Depends-on): Likewise.
79605
79606 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79609         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79610         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79611         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79612         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79613         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79614         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79615         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79616
79617         Merge from coreutils.
79618         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79619         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79620         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79621         * m4/time_r.m4 (gl_TIME_R): Likewise.
79622
79623 2006-08-09  Karl Berry  <karl@gnu.org>
79624
79625         * config/srclist.txt: no more gettext-tools, per Bruno.
79626
79627 2006-08-08  Eric Blake  <ebb9@byu.net>
79628
79629         * modules/verror: New module.
79630         * MODULES.html.sh: Document it.
79631
79632 2006-08-08  Eric Blake  <ebb9@byu.net>
79633
79634         * lib/verror.h, lib/verror.c: New files.
79635
79636 2006-08-08  Eric Blake  <ebb9@byu.net>
79637
79638         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79639         verror_at_line output complies with GNU Coding Standards even when
79640         file is NULL.
79641
79642 2006-08-07  Bruno Haible  <bruno@clisp.org>
79643
79644         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79645         versions of AIX.
79646         Reported by Ralf Wildenhues.
79647
79648 2006-08-07  Bruno Haible  <bruno@clisp.org>
79649
79650         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79651         in an AC_DEFUN. Needed so that the autoconf snippets can use
79652         AC_REQUIRE.
79653
79654 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79655
79656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79657         Initialize pkgdata_DATA.
79658         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79659         overriding it.
79660
79661 2006-08-06  Eric Blake  <ebb9@byu.net>
79662
79663         * lib/error.h: Fold in some upstream changes from glibc.
79664         * lib/error.c: Likewise.
79665
79666 2006-08-04  Bruno Haible  <bruno@clisp.org>
79667
79668         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79669         Make the mostlyclean-local rule depend on mostlyclean-generic.
79670         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79671
79672 2006-07-31  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79675         <stdlib.h>, <string.h>.
79676
79677 2006-07-30  Bruno Haible  <bruno@clisp.org>
79678
79679         * modules/readlink (License): Change to LGPL.
79680
79681 2006-07-30  Bruno Haible  <bruno@clisp.org>
79682
79683         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79684         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79685         set PKGDATADIR to point to it.
79686
79687 2006-07-30  Bruno Haible  <bruno@clisp.org>
79688
79689         * modules/csharpexec (configure.ac): Comment out macro invocation.
79690         * modules/javaexec (configure.ac): Likewise.
79691         * modules/javacomp-script (configure.ac): Likewise.
79692
79693         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79694
79695 2006-07-30  Bruno Haible  <bruno@clisp.org>
79696
79697         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79698         linked-list.
79699
79700 2006-07-30  Bruno Haible  <bruno@clisp.org>
79701
79702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79703
79704 2006-07-30  Bruno Haible  <bruno@clisp.org>
79705
79706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79707         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79708         get removed.
79709
79710 2006-07-29  Bruno Haible  <bruno@clisp.org>
79711
79712         Make it possible for gnulib-tool to work with locally modified or
79713         augmented gnulib repositories.
79714         * gnulib-tool (func_usage): Document --local-dir option.
79715         (local_gnulib_dir): New variable.
79716         Handle --local-dir option.
79717         (func_lookup_file): New function.
79718         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79719         (func_get_description, func_get_filelist, func_get_description,
79720         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79721         func_get_automake_snippet, func_get_include_directive,
79722         func_get_license, func_get_maintainer): Use func_lookup_file.
79723         (func_import, func_create_testdir): Use func_lookup_file.
79724
79725 2006-07-29  Bruno Haible  <bruno@clisp.org>
79726
79727         * modules/setenv (Depends-on): Add unistd.
79728
79729 2006-07-29  Bruno Haible  <bruno@clisp.org>
79730
79731         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79732
79733 2006-07-29  Bruno Haible  <bruno@clisp.org>
79734
79735         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79736
79737 2006-07-29  Bruno Haible  <bruno@clisp.org>
79738
79739         * gnulib-tool (import, update): If there is no Makefile.am, look at
79740         aclocal.m4, instead of bailing out.
79741
79742 2006-07-29  Bruno Haible  <bruno@clisp.org>
79743
79744         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79745         Categorize the options by when they are useful.
79746
79747 2006-07-29  Bruno Haible  <bruno@clisp.org>
79748
79749         * gnulib-tool (func_usage): Document option --no-libtool.
79750         Handle option --no-libtool.
79751         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79752         for changed semantics of $libtool variable.
79753         (func_import): Likewise. If libtool is not used, show this through
79754         an option --no-libtool.
79755         (func_create_testdir): Update.
79756
79757 2006-07-29  Bruno Haible  <bruno@clisp.org>
79758
79759         * gnulib-tool (func_import): Extend error message about missing
79760         --doc-base.
79761
79762 2006-07-29  Bruno Haible  <bruno@clisp.org>
79763
79764         * gnulib-tool (func_import): Don't create the $docbase directory if
79765         there is no file to store there.
79766
79767 2006-07-29  Bruno Haible  <bruno@clisp.org>
79768
79769         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79770         relevant, look for configure.ac there, not in the current directory.
79771         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79772
79773 2006-07-29  Bruno Haible  <bruno@clisp.org>
79774
79775         * gnulib-tool (SORT): New variable.
79776         (func_usage): Undocument --assume-autoconf option.
79777         Remove --assume-autoconf option handling.
79778         (autoconf_minversion): Determine from the contents of configure.ac.
79779         (func_import): Remove autoconf_minversion handling.
79780         Suggested by Eric Blake.
79781
79782 2006-07-29  Bruno Haible  <bruno@clisp.org>
79783
79784         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79785
79786 2006-07-29  Bruno Haible  <bruno@clisp.org>
79787
79788         * config/srclist.txt (*setenv.[ch]): Remove rules.
79789
79790 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79791
79792         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79793
79794 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79795
79796         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79797         arpa/inet.h.
79798
79799 2006-07-28  Simon Josefsson  <jas@extundo.com>
79800
79801         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79802         * modules/inet_pton (Depends-on): Likewise.
79803
79804 2006-07-28  Simon Josefsson  <jas@extundo.com>
79805
79806         * m4/netinet_in_h.m4: New file.
79807
79808 2006-07-28  Simon Josefsson  <jas@extundo.com>
79809
79810         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79811         #include's.
79812
79813 2006-07-28  Simon Josefsson  <jas@extundo.com>
79814
79815         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79816         #include's.
79817
79818 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79821         setgid on directories only if they set these bits.
79822         * lib/modechange.h: Remove obsolete comment about masks.
79823
79824 2006-07-28  Eric Blake  <ebb9@byu.net>
79825
79826         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79827         macro expansion.
79828
79829 2006-07-28  Bruno Haible  <bruno@clisp.org>
79830
79831         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79832
79833 2006-07-28  Bruno Haible  <bruno@clisp.org>
79834
79835         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79836
79837 2006-07-28  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79840         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79841         Define fallbacks.
79842         Avoids link error on FreeBSD 4.x.
79843         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79844
79845         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79846         encoding.
79847         * lib/mbswidth.c (iswcntrl): Likewise.
79848
79849 2006-07-27  Bruno Haible  <bruno@clisp.org>
79850
79851         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79852         test.
79853
79854 2006-07-27  Bruno Haible  <bruno@clisp.org>
79855
79856         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79857         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79858         defined.
79859
79860 2006-07-26  Eric Blake  <ebb9@byu.net>
79861
79862         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79863
79864 2006-07-26  Eric Blake  <ebb9@byu.net>
79865
79866         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79867         like mingw that lack mkstemp.
79868         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79869         avoid compilation warning on mingw.
79870
79871 2006-07-26  Bruno Haible  <bruno@clisp.org>
79872
79873         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79874         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79875         INT_FAST*_MIN, INTPTR_MIN.
79876
79877 2006-07-25  Bruno Haible  <bruno@clisp.org>
79878
79879         * modules/version-etc (Depends-on): Add stdarg.
79880
79881 2006-07-25  Bruno Haible  <bruno@clisp.org>
79882
79883         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79884         complex commands.
79885
79886 2006-07-25  Bruno Haible  <bruno@clisp.org>
79887
79888         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79889         defined in <stdarg.h> or config.h.
79890
79891 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79894         (gl_STDIO_SAFER): Remove.
79895
79896 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * MODULES.html.sh (File stream based Input/Output):
79899         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79900         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79901         * modules/fopen-safer, modules/tmpfile-safer: New files.
79902         * modules/stdio-safer: Remove.
79903
79904 2006-07-24  Bruno Haible  <bruno@clisp.org>
79905
79906         * modules/tmpdir: New file.
79907         * MODULES.html.sh (File system functions): Add it.
79908
79909 2006-07-24  Bruno Haible  <bruno@clisp.org>
79910
79911         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79912         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79913
79914 2006-07-24  Bruno Haible  <bruno@clisp.org>
79915
79916         * modules/clean-temp: New file.
79917
79918 2006-07-24  Bruno Haible  <bruno@clisp.org>
79919
79920         * m4/tmpdir.m4: New file, from GNU gettext.
79921
79922 2006-07-24  Bruno Haible  <bruno@clisp.org>
79923
79924         * lib/tmpdir.h: New file, from GNU gettext.
79925         * lib/tmpdir.c: New file, from GNU gettext.
79926
79927 2006-07-24  Bruno Haible  <bruno@clisp.org>
79928
79929         * lib/clean-temp.h: New file, from GNU gettext.
79930         * lib/clean-temp.c: New file, from GNU gettext.
79931
79932 2006-07-23  Eric Blake  <ebb9@byu.net>
79933
79934         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79935         (Depends-on): Add binary-io.
79936
79937 2006-07-23  Eric Blake  <ebb9@byu.net>
79938
79939         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79940
79941 2006-07-23  Eric Blake  <ebb9@byu.net>
79942
79943         * lib/tmpfile-safer.c: New file.
79944         * lib/stdio-safer.h (fopen_safer): Add prototype.
79945         * lib/stdio--.h (tmpfile): Make safer.
79946
79947 2006-07-23  Bruno Haible  <bruno@clisp.org>
79948
79949         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79950         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79951         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79952         gl_linked_remove_at): Use it.
79953
79954 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79955         and Simon Josefsson <jas@extundo.com>
79956
79957         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79958
79959         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79960
79961 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79962
79963         * modules/close-stream: New file.
79964         * modules/closeout (Description): Make it clear that it exits
79965         with a diagnostic on error.
79966         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79967         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79968
79969 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * m4/close-stream.m4: New file.
79972
79973 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * lib/close-stream.c, lib/close-stream.h: New files.
79976
79977 2006-07-22  Bruno Haible  <bruno@clisp.org>
79978
79979         Merge from GNU gettext 0.15.
79980
79981         2006-05-01  Bruno Haible  <bruno@clisp.org>
79982
79983                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79984
79985         2006-07-22  Bruno Haible  <bruno@clisp.org>
79986
79987                 * modules/javaversion: New file.
79988                 * MODULES.html.sh (Java): Add javaversion.
79989
79990         2006-03-12  Bruno Haible  <bruno@clisp.org>
79991
79992                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79993
79994         2005-12-04  Bruno Haible  <bruno@clisp.org>
79995
79996                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79997                 (untested).
79998
79999         2006-06-21  Bruno Haible  <bruno@clisp.org>
80000
80001                 Avoid warnings from recent versions of mcs.
80002                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80003                 -o, -L, -r any more. Use options documented since mcs-1.0
80004                 instead. Similarly for -g.
80005
80006         2005-12-04  Bruno Haible  <bruno@clisp.org>
80007
80008                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80009                 .resources, not .resource.
80010
80011         2005-07-09  Bruno Haible  <bruno@clisp.org>
80012
80013                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80014                 add a .dll suffix.
80015                 Reported by Mark Junker <mjscod@gmx.de>.
80016
80017         2006-07-22  Bruno Haible  <bruno@clisp.org>
80018
80019                 * modules/gettext: Upgrade to gettext-0.15.
80020                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80021                 m4/visibility.m4.
80022                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80023
80024 2006-07-22  Bruno Haible  <bruno@clisp.org>
80025
80026         Merge from GNU gettext 0.15.
80027
80028         2006-03-25  Bruno Haible  <bruno@clisp.org>
80029
80030                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80031
80032         2006-07-21  Bruno Haible  <bruno@clisp.org>
80033
80034                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80035                 "1.1".
80036
80037         2006-05-09  Bruno Haible  <bruno@clisp.org>
80038
80039                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80040                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80041                 for the conftestver execution.
80042
80043         2006-05-01  Bruno Haible  <bruno@clisp.org>
80044
80045                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80046                 optional target-version argument. Verify that the compiler
80047                 groks source of the specified source-version, or add -source
80048                 option as necessary. Verify that the compiler produces
80049                 bytecode in the specified target-version, or add -target and
80050                 -source options as necessary. Make the result of the test
80051                 available as variable CONF_JAVAC. Also log error output in
80052                 config.log.
80053
80054         2006-03-11  Bruno Haible  <bruno@clisp.org>
80055
80056                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80057
80058         2006-05-09  Bruno Haible  <bruno@clisp.org>
80059
80060                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80061                 CLASSPATH_SEPARATOR to a semicolon.
80062
80063         2006-03-12  Bruno Haible  <bruno@clisp.org>
80064
80065                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80066                 available as variable CONF_JAVA, for subsequent autoconf
80067                 tests. Also log error output in config.log.
80068
80069         2006-07-19  Bruno Haible  <bruno@clisp.org>
80070
80071                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80072                 that getline works on glibc2 systems. Needed to avoid trouble
80073                 in relocatable.c.
80074                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80075
80076         2005-12-04  Bruno Haible  <bruno@clisp.org>
80077
80078                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80079                 launcher (untested).
80080
80081         2005-12-04  Bruno Haible  <bruno@clisp.org>
80082
80083                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80084
80085         2006-07-22  Bruno Haible  <bruno@clisp.org>
80086
80087                 * gettext.m4: Update from GNU gettext-0.15.
80088                 * nls.m4: Likewise.
80089                 * po.m4: Likewise.
80090                 * inttypes-pri.m4: Likewise.
80091                 * inttypes-h.m4: Renamed from inttypes.m4.
80092                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80093
80094 2006-07-22  Bruno Haible  <bruno@clisp.org>
80095
80096         Merge from GNU gettext 0.15.
80097
80098         2005-07-05  Bruno Haible  <bruno@clisp.org>
80099
80100                 * printf-args.c (printf_fetchargs): Work around broken
80101                 definition of wint_t on mingw.
80102
80103         2005-02-12  Bruno Haible  <bruno@clisp.org>
80104
80105                 * xallocsa.h: Add extern "C" for C++.
80106
80107         2006-05-17  Bruno Haible  <bruno@clisp.org>
80108
80109                 Cygwin portability.
80110                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80111
80112         2006-04-30  Bruno Haible  <bruno@clisp.org>
80113
80114                 * progreloc.c: Include <mach-o/dyld.h> if available.
80115                 (find_executable): Use _NSGetExecutablePath when possible.
80116
80117         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80118
80119                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80120                 function.
80121
80122         2005-12-29  Bruno Haible  <bruno@clisp.org>
80123
80124                 * progreloc.c (set_program_name_and_installdir): Fix
80125                 compilation error.
80126
80127         2005-12-04  Bruno Haible  <bruno@clisp.org>
80128
80129                 Cygwin portability.
80130                 * progreloc.c: Include <windows.h> also on Cygwin.
80131                 (find_executable): Add support for Cygwin.
80132                 (set_program_name_and_installdir): Handle also platforms with
80133                 nonempty EXEEXT.
80134
80135         2006-07-11  Bruno Haible  <bruno@clisp.org>
80136
80137                 * javacomp.c: Fix a comment.
80138                 Reported by Jim Meyering.
80139
80140         2006-04-30  Bruno Haible  <bruno@clisp.org>
80141
80142                 * javacomp.h (compile_java_class): Add source_version,
80143                 target_version arguments.
80144                 * javacomp.c: Rewritten to choose only a compiler that
80145                 respects the specified source_version and target_version.
80146
80147         2006-06-27  Bruno Haible  <bruno@clisp.org>
80148
80149                 Assume correct S_ISDIR macro.
80150                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80151
80152         2006-07-22  Bruno Haible  <bruno@clisp.org>
80153
80154                 * javaversion.h: New file, from GNU gettext.
80155                 * javaversion.c: New file, from GNU gettext.
80156                 * javaversion.java: New file, from GNU gettext.
80157                 * javaversion.class: New file, from GNU gettext.
80158
80159         2006-05-17  Bruno Haible  <bruno@clisp.org>
80160
80161                 Cygwin portability.
80162                 * javaexec.c (execute_java_class): Test for jview program
80163                 also on Cygwin.
80164
80165         2006-04-09  Bruno Haible  <bruno@clisp.org>
80166
80167                 * fatal-signal.c: Don't include string.h.
80168                 (at_fatal_signal): Use a copying loop instead of memcpy.
80169
80170         2005-12-04  Bruno Haible  <bruno@clisp.org>
80171
80172                 * csharpexec.c: Add support for 'clix' launcher (untested).
80173                 (execute_csharp_using_sscli): New function.
80174                 (execute_csharp_program): Call it.
80175
80176         2006-06-21  Bruno Haible  <bruno@clisp.org>
80177
80178                 Avoid warnings from recent versions of mcs.
80179                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80180                 -o, -L, -r any more. Use options documented since mcs-1.0
80181                 instead. Similarly for -g.
80182
80183         2005-07-09  Bruno Haible  <bruno@clisp.org>
80184
80185                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80186                 add a .dll suffix.
80187                 Reported by Mark Junker <mjscod@gmx.de>.
80188
80189         2006-06-17  Bruno Haible  <bruno@clisp.org>
80190
80191                 * config.charset: Update for NetBSD 3.0.
80192
80193         2006-05-17  Bruno Haible  <bruno@clisp.org>
80194
80195                 Cygwin portability.
80196                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80197
80198         2006-05-16  Bruno Haible  <bruno@clisp.org>
80199
80200                 * localcharset.c [CYGWIN]: Include <windows.h>.
80201                 (get_charset_aliases): For Cygwin, return the same CPxxx
80202                 aliases list as under WIN32.
80203                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80204                 the environment variables. Fall back to GetACP().
80205
80206         2006-04-05  Bruno Haible  <bruno@clisp.org>
80207
80208                 * config.charset: Update Juan Manuel Guerrero's address.
80209
80210         2005-02-12  Bruno Haible  <bruno@clisp.org>
80211
80212                 * allocsa.h: Add extern "C" for C++.
80213
80214         2005-02-10  Bruno Haible  <bruno@clisp.org>
80215
80216                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80217                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80218
80219         2006-07-22  Bruno Haible  <bruno@clisp.org>
80220
80221                 * gettext.h: Update to GNU gettext-0.15.
80222
80223 2006-07-22  Bruno Haible  <bruno@clisp.org>
80224
80225         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80226         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80227         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80228
80229 2006-07-21  Eric Blake  <ebb9@byu.net>
80230
80231         * modules/stdlib-safer: New file.
80232         * MODULES.html.sh (File stream based Input/Output): Add
80233         stdlib-safer.
80234
80235 2006-07-21  Eric Blake  <ebb9@byu.net>
80236
80237         * lib/stdlib-safer.h: New file from coreutils, required by
80238         stdlib--.h.
80239
80240 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80243
80244 2006-07-20  Bruno Haible  <bruno@clisp.org>
80245
80246         * gnulib-tool: Recognize new option --assume-autoconf.
80247         (autoconf_minversion): New variable.
80248         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80249
80250 2006-07-20  Bruno Haible  <bruno@clisp.org>
80251
80252         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80253
80254 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80255
80256         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80257         Reindent and repaginate.
80258
80259 2006-07-19  Derek Price  <derek@ximbiot.com>
80260
80261         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80262         Correct grammar.
80263
80264 2006-07-17  Bruno Haible  <bruno@clisp.org>
80265
80266         * modules/list: New file.
80267         * modules/array-list: New file.
80268         * modules/carray-list, modules/carray-list-tests: New files.
80269         * modules/linked-list, modules/linked-list-tests: New files.
80270         * modules/avltree-list, modules/avltree-list-tests: New files.
80271         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80272         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80273         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80274         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80275         * modules/oset: New file.
80276         * modules/array-oset: New file.
80277         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80278         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80279         * tests/test-carray_list.c: New file.
80280         * tests/test-linked_list.c: New file.
80281         * tests/test-avltree_list.c: New file.
80282         * tests/test-rbtree_list.c: New file.
80283         * tests/test-linkedhash_list.c: New file.
80284         * tests/test-avltreehash_list.c: New file.
80285         * tests/test-rbtreehash_list.c: New file.
80286         * tests/test-avltree_oset.c: New file.
80287         * tests/test-rbtree_oset.c: New file.
80288         * MODULES.html.sh (Container data structures): New section.
80289
80290 2006-07-17  Bruno Haible  <bruno@clisp.org>
80291
80292         * m4/gl_list.m4: New file.
80293
80294 2006-07-17  Bruno Haible  <bruno@clisp.org>
80295
80296         * lib/gl_list.h: New file.
80297         * lib/gl_list.c: New file.
80298         * lib/gl_array_list.h: New file.
80299         * lib/gl_array_list.c: New file.
80300         * lib/gl_carray_list.h: New file.
80301         * lib/gl_carray_list.c: New file.
80302         * lib/gl_linked_list.h: New file.
80303         * lib/gl_linked_list.c: New file.
80304         * lib/gl_anylinked_list1.h: New file.
80305         * lib/gl_anylinked_list2.h: New file.
80306         * lib/gl_avltree_list.h: New file.
80307         * lib/gl_avltree_list.c: New file.
80308         * lib/gl_anyavltree_list1.h: New file.
80309         * lib/gl_anyavltree_list2.h: New file.
80310         * lib/gl_rbtree_list.h: New file.
80311         * lib/gl_rbtree_list.c: New file.
80312         * lib/gl_anyrbtree_list1.h: New file.
80313         * lib/gl_anyrbtree_list2.h: New file.
80314         * lib/gl_anytree_list1.h: New file.
80315         * lib/gl_anytree_list2.h: New file.
80316         * lib/gl_linkedhash_list.h: New file.
80317         * lib/gl_linkedhash_list.c: New file.
80318         * lib/gl_anyhash_list1.h: New file.
80319         * lib/gl_anyhash_list2.h: New file.
80320         * lib/gl_avltreehash_list.h: New file.
80321         * lib/gl_avltreehash_list.c: New file.
80322         * lib/gl_rbtreehash_list.h: New file.
80323         * lib/gl_rbtreehash_list.c: New file.
80324         * lib/gl_anytreehash_list1.h: New file.
80325         * lib/gl_anytreehash_list2.h: New file.
80326
80327         * lib/gl_oset.h: New file.
80328         * lib/gl_oset.c: New file.
80329         * lib/gl_array_oset.h: New file.
80330         * lib/gl_array_oset.c: New file.
80331         * lib/gl_avltree_oset.h: New file.
80332         * lib/gl_avltree_oset.c: New file.
80333         * lib/gl_rbtree_oset.h: New file.
80334         * lib/gl_rbtree_oset.c: New file.
80335         * lib/gl_anytree_oset.h: New file.
80336
80337 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * m4/mkancesdirs.m4: New file.
80340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80341         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80342         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80343         it.
80344
80345 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80348         * lib/mkancesdirs.h: New files.
80349         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80350         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80351         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80352         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80353         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80354         callers changed.  Revamp internals significantly, by not
80355         attempting to create directories that are temporarily more
80356         permissive than the final results.  Do not attempt to use
80357         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80358         This removes some race conditions, fixes some bugs, and simplifies
80359         things.  Use new dirchownmod function to do owner and mode changes.
80360         * lib/mkdir-p.h: Likewise.
80361         * lib/modechange.c (octal_to_mode): New function.
80362         (struct mode_change): New member mentioned.
80363         (make_node_op_equals): New arg mentioned.  All callers changed.
80364         (mode_compile): Keep track of which mode bits the user has explicitly
80365         mentioned.
80366         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80367         New arg PMODE_BITS, to keep track of which mode bits the user
80368         mentioned; it treats S_ISUID and S_ISGID speciall.
80369         All callers changed.
80370         * lib/modechange.h: Likewise.
80371
80372 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80373
80374         * MODULES.html.sh: Add mkancestors.
80375         * modules/mkancesdirs: New module.
80376         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80377         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80378         The chdir-safer and afs files are now orphans; I'll remove them
80379         unless someone speaks up.
80380         Add lib/dirchownmod.c, lib/dirchownmod.h.
80381         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80382         Add lchown, mkancesdirs.
80383         (Maintainer): Add self.
80384
80385 2006-07-15  Karl Berry  <karl@gnu.org>
80386
80387         * gnulib-tool: help message wording/arrangement.
80388
80389 2006-07-14  Simon Josefsson  <jas@extundo.com>
80390
80391         * doc/gnulib.texi (Libtool and Windows): New section.
80392
80393 2006-07-12  Simon Josefsson  <jas@extundo.com>
80394
80395         * modules/gendocs (License): Fix license, approved by Karl.
80396
80397 2006-07-12  Eric Blake  <ebb9@byu.net>
80398
80399         * MODULES.html.sh: Add gendocs.
80400
80401 2006-07-11  Eric Blake  <ebb9@byu.net>
80402
80403         * modules/fdl: New module, to install doc/fdl.texi.
80404         * MODULES.html.sh: Add new section for documentation modules.
80405         * gnulib-tool: Avoid space-tab.
80406         (--doc-base): New option, to manage files from doc.
80407
80408 2006-07-11  Eric Blake  <ebb9@byu.net>
80409
80410         * m4/absolute-header.m4: Fix comments to match recent change.
80411
80412 2006-07-11  Eric Blake  <ebb9@byu.net>
80413
80414         * gnulib-tool: List --doc-base before --tests-base.
80415
80416 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80417
80418         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80419
80420 2006-07-11  Bruno Haible  <bruno@clisp.org>
80421
80422         * README: Mention where to put documentation.
80423
80424 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80425
80426         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80427
80428 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80431         to stdint.m4.
80432
80433 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80436         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80437         "no/such/file/stdint.h" when there is no such file, so that
80438         the resulting C code can be parsed by dodgy compilers.
80439         Problems reported by Bob Proulx.
80440
80441 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80442
80443         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80444         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80445         macros into the GNU _D_EXACT_NAMLEN.
80446         * lib/savedir.c:  Likewise.
80447         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80448
80449 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80450         and Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80453         * m4/savedir.m4:
80454         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80455         macros into the GNU _D_EXACT_NAMLEN.
80456
80457 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80458
80459         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80460         around the absolute name, to work around a problem with the HP-UX
80461         11.23 native C compiler, reported by Bob Proulx.
80462
80463 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * doc/maintain.texi, make-stds.texi: Sync from
80466         <http://savannah.gnu.org/projects/gnustandards>.
80467
80468 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80469
80470         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80471
80472 2006-07-09  Jim Meyering  <jim@meyering.net>
80473
80474         * m4/glob.m4: Remove a doubled word in a comment.
80475
80476 2006-07-09  Jim Meyering  <jim@meyering.net>
80477
80478         * lib/argp-pv.c: Remove a doubled word in a comment.
80479         * lib/check-version.c (check_version): Likewise.
80480         * lib/javacomp.c (compile_java_class): Likewise.
80481
80482 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80485         for the benefit of people using Autoconf 2.60.  If you want to
80486         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80487         (or m4/onceonly.m4, if pre-2.57) manually.
80488
80489 2006-07-08  Jim Meyering  <jim@meyering.net>
80490
80491         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80492         comment.
80493         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80494         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80495         comment.
80496
80497 2006-07-08  Jim Meyering  <jim@meyering.net>
80498
80499         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80500
80501 2006-07-07  Simon Josefsson  <jas@extundo.com>
80502
80503         * tests/test-crc.c: Change expected crc value, the test vector
80504         were probably computed using the old broken crc.c?
80505
80506 2006-07-06  Simon Josefsson  <jas@extundo.com>
80507
80508         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80509         now the canonical place for the M4 file).
80510
80511         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80512         from the sys_socket dependency now.
80513
80514         * modules/inet_pton (Files): Ditto.
80515
80516         * modules/inet_ntop (Files): Ditto.
80517
80518 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80519
80520         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80521         not gl_PREREQ_GETUSERSHELL.
80522
80523 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80524
80525         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80526         with only one argument, for Autoconf 2.60.
80527         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80528         expand to nothing, so add a shell command to avoid syntax error.
80529         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80530
80531 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80532
80533         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80534
80535 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80538         no longer needed.  Check for isblank decl.
80539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80540         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80541         of existence.
80542
80543 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80544
80545         * lib/getloadavg.c: Use __VMS, not VMS.
80546         * lib/getopt.c: Likewise.
80547         * lib/getpagesize.h: Likewise.
80548         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80549         and probably does not work.
80550
80551 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * lib/.cppi-disable: Add wcwidth.
80554         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80555         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80556         (ISGRAPH): Remove.  All uses changed to isgraph.
80557         (FOLD) [!defined _LIBC]: Remove special case.
80558         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80559         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80560         HAVE_ISBLANK.
80561         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80562         case.
80563
80564 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80565
80566         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80567         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80568         brackets.  Other minor changes to suppress some compiler
80569         warnings.
80570
80571 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80572         and Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80575         of invoking obsolescent AC_HEADER_DIRENT macro.
80576         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80577         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80580         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80581         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80582         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80583         * m4/readdir.m4: Remove; no longer needed.
80584
80585 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80586         and Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80589         Don't worry about this obsolete case any more.
80590         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80591         directories.
80592         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80593         worry about this obsolete case any more.
80594         * lib/fts.c: Likewise.
80595         * lib/getcwd.c: Likewise.
80596         * lib/glob.h: Likewise.
80597         * lib/savedir.c: Likewise.
80598
80599 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80602         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80603         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80604         needed.
80605         All uses removed.
80606         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80607         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80608         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80609         needed.
80610         * m4/getdate.m4 (gl_GETDATE): Likewise.
80611         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80612         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80613         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80614         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80615         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80617         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80618         needed.
80619
80620 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * lib/memcasecmp.c: Include <limits.h>.
80623         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80624         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80625         Don't assume isdigit succeeds only on '0' through '9'.
80626
80627 2006-07-05  Eric Blake  <ebb9@byu.net>
80628
80629         * modules/getaddrinfo (Depends-on): Add snprintf.
80630
80631 2006-07-05  Eric Blake  <ebb9@byu.net>
80632
80633         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80634         to avoid 'header present but could not be compiled' on cygwin.
80635
80636 2006-07-05  Eric Blake  <ebb9@byu.net>
80637
80638         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80639         missing from netdb.h.
80640         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80641
80642 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80643
80644         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80645         no longer needed.
80646         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80647         * m4/getdate.m4 (gl_GETDATE): Likewise.
80648         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80649         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80650         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80651         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80652         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80653
80654 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80655
80656         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80657         All uses of is_space replaced by isspace.
80658         * lib/exit.h: Don't talk about STDC_HEADERS.
80659         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80660         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80661         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80662         replaced by isprint etc.
80663         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80664         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80665         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80666         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80667         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80668         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80669
80670 2006-07-05  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80673         the function exists, before testing against AIX.
80674         Reported by Martin Lambers <marlam@marlam.de>.
80675
80676 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80679         From Mark D. Baushke.
80680
80681 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80684         to the absolute name, not just one, to bypass Sun C 5.8's
80685         "warning: #include of /usr/include/... may be non-portable".
80686
80687 2006-07-04  Eric Blake  <ebb9@byu.net>
80688
80689         * modules/dirname-tests: New test module.
80690         * tests/test-dirname.c: New file, replacing dirname.c
80691         TEST_DIRNAME section that was recently deleted.
80692
80693 2006-07-04  Bruno Haible  <bruno@clisp.org>
80694
80695         Assume ANSI C header files and <ctype.h> functions.
80696         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80697         (mbsnwidth): Use isprint, iscntrl instead.
80698
80699 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         Merge from coreutils.
80702         * MODULES.html.sh: Add xstrtold.
80703         * modules/xstrtold: New file.
80704         * modules/cycle-check (Files): Add lib/same-inode.h.
80705         * modules/dirname (Files): Add m4/double-slash-root.m4.
80706         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80707         * modules/mkdir-p (Files): Add lib/same-inode.h.
80708         * modules/same (Files): Add lib/same-inode.h.
80709
80710 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80713         This is to keep the terminology clean; POSIX talks about
80714         "absolute pathnames", not "full pathnames", but the GNU
80715         Coding Standards say to use "path" for something else;
80716         so use "absolute" to keep both sides happy.
80717         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80718         Set gl_absolute_header, not gl_full_header_path.
80719         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80720         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80721         All uses changed.
80722
80723         Merge from coreutils.
80724
80725         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80728         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80729         want to require the building of c-strtod.o.
80730         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80731         needs -lm directly.
80732         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80733
80734         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80737         --as-needed option if available.  Problem reported by Albert Chin in
80738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80739         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80740         cc merely issues a bunch of annoying warnings for --as-needed
80741         (this problem was reported by Bob Proulx).  Also, try linking with
80742         -lm to detect a bug in binutils 2.16 (this problem was reported
80743         by Ralf Wildenhues).
80744
80745         2006-06-18  Jim Meyering  <jim@meyering.net>
80746
80747         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80748         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80749         macro.
80750         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80751         also check for glibc-2.4's abort-inducing bug.
80752
80753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80754         Low-probability clean-up should be to use rmdir to get rid of
80755         the just-created directory, not unlink.
80756
80757         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80758         configure fail, and request a bug report to inform us about it.
80759         Add a comment that, barring reports to the contrary, in 2007 we'll
80760         assume ftruncate is universally available.
80761
80762         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80763
80764         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80765
80766         2006-03-12  Jim Meyering  <jim@meyering.net>
80767
80768         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80769         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80770         * m4/same.m4 (gl_SAME): Likewise.
80771         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80772
80773         2006-03-11  Eric Blake  <ebb9@byu.net>
80774
80775         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80776         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80777         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80778         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80779
80780 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80783         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80784         reported by Mark D. Baushke, one in
80785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80786
80787         Merge from coreutils.
80788
80789         * lib/.cppi-disable: Add stdint_.h.
80790         * lib/.cvsignore: Add stdint.h.
80791
80792         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80795         both double and long double versions.
80796         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80797         * lib/xstrtold.c: New file.
80798         * lib/xstrtod.h (xstrtold): New decl.
80799
80800         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80801
80802         * lib/filemode.c (setst): Remove.
80803         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80804         (arguably) clearer, and the generated code is a bit smaller on my
80805         Debian GNU/Linux stable x86 host.
80806
80807         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80808
80809         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80810         Assume that filemode.h includes sys/types.h and sys/stat.h.
80811         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80812         (ftypelet): Reorder to put common cases first, for efficiency.
80813         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80814         to do 'M'.
80815         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80816         of 10, for compatibility with FreeBSD.  All callers changed.
80817         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80818         types that can't be deduced solely from st_mode.  First arg is now a
80819         const pointer.
80820         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80821         (strmode): Renamed from mode_string.
80822         (filemodestring): New decl.
80823         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80824         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80825         needed.
80826         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80827
80828         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80829
80830         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80831         fsusage.h now does that.  Include fsusage.h first, to test interface.
80832         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80833         at most one method (the old code could have generated decls that
80834         didn't conform to C89, not that this was ever exercised).
80835         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80836
80837         2006-03-19  Jim Meyering  <jim@meyering.net>
80838
80839         Work even in a chroot where d_ino values for entries in "/"
80840         don't match the stat.st_ino values for the same names.
80841         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80842         number, iterate through all entries again, using lstat instead.
80843         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80844         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80845
80846         * lib/getcwd.c (__getcwd): Clarify a comment.
80847         Use memcpy in place of a call to strcpy.
80848
80849         2006-03-12  Jim Meyering  <jim@meyering.net>
80850
80851         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80852         matches that of the current directory (which we're about to chdir ".."
80853         out of), then save the dev-ino of the parent, instead.
80854
80855         * lib/same-inode.h (SAME_INODE): New file/macro.
80856         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80857         Include "same-inode.h", instead.
80858         * lib/same.c: Likewise.
80859         * lib/cycle-check.h: Include "same-inode.h".
80860         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80861         * lib/cycle-check.c (SAME_INODE): Remove definition.
80862         * lib/root-dev-ino.h: Include "same-inode.h".
80863
80864         2006-03-11  Eric Blake  <ebb9@byu.net>
80865
80866         * lib/same.c (same_name): s/base_name/last_component/
80867         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80868         * lib/filenamecat.c (file_name_concat): Likewise.
80869
80870         2006-03-11  Eric Blake  <ebb9@byu.net>,
80871                     Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80874         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80875         drive prefix.
80876         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80877         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80878         (last_component): New method.
80879         * lib/dirname.c (dir_len): Determine when drive letters need a
80880         subsequent slash.  Preserve // when it is special.
80881         (dir_name): Don't append dot when drive letter is absolute.
80882         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80883         * lib/basename.c (base_name): New semantics - malloc the result.
80884         Preserve // when it is special.  Preserve relative files that look
80885         like drive letters.
80886         (base_len): Preserve // when it is special.
80887         (last_component): New method, similar to old base_name semantics.
80888         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80889         base_name.  Strip redundant slashes from ///.
80890
80891 2006-07-03  Jim Meyering  <jim@meyering.net>
80892
80893         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80894         macro is used before the first cycle_check call.
80895
80896 2006-07-03  Eric Blake  <ebb9@byu.net>
80897
80898         * modules/dirname (Depends-on): Add xstrndup.
80899
80900 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80903         test cases, so that config.log is a bit easier to follow.
80904
80905 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80908         both are 64 bits, since this seems to be the tradition, and this
80909         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80910         we ever run into a host that prefers long long to long in this
80911         case, we'll need another configure-time test.  Problem reported by
80912         Jim Meyering.
80913
80914 2006-07-02  Eric Blake  <ebb9@byu.net>
80915
80916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80917
80918 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80919
80920         * modules/inttypes (Depends-on): No longer depends on stdint.
80921         * modules/stdint (Description): Say more about assumptions.
80922         Say that the fast types might differ.  Say macros are used.
80923         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80924         (Makefile.am): Revise list of substituted symbols to match
80925         new stdint.m4.
80926         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80927         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80928         * tests/test-stdint.c (verify_same_types)
80929         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80930         the code conforms to C99/C89.
80931         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80932         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80933
80934 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80937         but fix a bug, by requiring at least 64 bits.
80938         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80939         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80940         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80941         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80942
80943         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80944         changes.  Make 2.59 a prerequisite.  Check and substitute for
80945         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80946         inttypes.h.  Do not use special include files; just use the
80947         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80948         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80949         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80950         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80951         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80952         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80953         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80954         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80955         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80956         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80957         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80958         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80959         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80960         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80961         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80962         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80963         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80964         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80965         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80966         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80967         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80968         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80969         not check for things that C99 does not require, e.g., int8_t.  If
80970         a test isn't needed unless <stdint.h> isn't working, and is
80971         unlikely to be needed for any other reason, then don't do it
80972         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80973         size_t, since we assume C89 freestanding at least.  Do not check
80974         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80975         the right thing even if the types are not defined.  Instead use:
80976         (gl_STDINT_TYPE_PROPERTIES): New macro.
80977         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80978         testing whether <sys/types.h> clashes, as Autoconf does this for
80979         us now.  All uses removed.
80980         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80981         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80982         (gl_CHECK_TYPE_SAME):
80983         Remove; no longer needed.
80984         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80985         exists, since we'll return 0 anyway in that case.
80986         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80987
80988 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80989
80990         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80991         possible collision with system files.
80992         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80993         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80994         WCHAR_MIN and WCHAR_MAX in this case.
80995         (<stddef.h>): Do not include; no longer needed.
80996         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80997         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80998         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80999         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81000         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81001         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81002         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81003         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81004         !defined(__c99))]: Include in this case too, since it's harmless
81005         now.
81006         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81007         dangerous to do so.
81008         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81009         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81010         (_STDINT_MIN, _STDINT_MAX): New macros.
81011         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81012         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81013         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81014         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81015         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81016         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81017         macros, not typedefs; this simplifies things quite a bit.
81018         Use long int for all types narrower than int64_t.
81019         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81020         Define in terms of long long int or int64_t or long int,
81021         not int64_t or int32_t.  This saves some compile-time testing.
81022         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81023         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81024         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81025         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81026         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81027         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81028         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81029         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81030         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81031         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81032         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81033         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81034         undef any previous version and define our own version, for
81035         simplicity and consistency with the new macros for types.
81036         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81037         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81038         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81039         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81040         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81041         @WINT_T_SUFFIX@ to keep things simple here.
81042         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81043         Simplify by assuming typical 8/16/32/64 host, since we're
81044         already doing that elsewhere anyway.
81045         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81046         and assume long long int is 64 bits if available.  This
81047         speeds up 'configure'.
81048
81049 2006-07-01  Eric Blake  <ebb9@byu.net>
81050
81051         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81052         Reported by Andreas Buening.
81053
81054 2006-07-01  Eric Blake  <ebb9@byu.net>
81055
81056         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81057
81058 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81059
81060         * lib/getaddrinfo.c: fixed typo
81061
81062 2006-06-29  Jim Meyering  <jim@meyering.net>
81063
81064         * modules/strftime (Maintainer): Add my name, since with the
81065         FPRINTFTIME changes strftime.c has forked from glibc.
81066
81067 2006-06-29  Eric Blake  <ebb9@byu.net>
81068
81069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81070
81071 2006-06-29  Eric Blake  <ebb9@byu.net>
81072
81073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81074
81075 2006-06-29  Eric Blake  <ebb9@byu.net>
81076
81077         * lib/stat_.h: New file.
81078
81079 2006-06-29  Eric Blake  <ebb9@byu.net>
81080
81081         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81082         unused static function.
81083
81084 2006-06-29  Eric Blake  <ebb9@byu.net>
81085
81086         * doc/functions.texi (Function Portability): Document missing lstat
81087         on mingw.
81088
81089 2006-06-29  Eric Blake  <ebb9@byu.net>
81090
81091         * MODULES.html.sh: Add sys_stat.
81092         * modules/sys_stat: New module.
81093         * modules/mkstemp (Depends-on): Add sys_stat.
81094
81095 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81096
81097         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81098
81099 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81100
81101         * m4/c-bs-a.m4: Removed.
81102
81103 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81104
81105         * lib/strftime.c: Assume strftime() exists.
81106
81107 2006-06-29  Derek Price  <derek@ximbiot.com>
81108
81109         * modules/c-bs-a: Removed - \a is C89.
81110         * MODULES.html.sh: Remove c-bs-a.
81111
81112 2006-06-29  Bruno Haible  <bruno@clisp.org>
81113
81114         * modules/wcwidth (License): Change to LGPL.
81115
81116 2006-06-28  Simon Josefsson  <jas@extundo.com>
81117
81118         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81119         on _WIN32.
81120
81121         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81122         getnameinfo.
81123
81124 2006-06-28  Simon Josefsson  <jas@extundo.com>
81125
81126         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81127
81128 2006-06-28  Simon Josefsson  <jas@extundo.com>
81129
81130         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81131         functions there.  It will succeed on Windows XP, but on Windows
81132         2000 and (presumably) earlier, it will fail, and use the internal
81133         re-implementation.
81134         (use_win32_p): New function.
81135         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81136         Support AI_NUMERICSERV to disable getservbyname.
81137         (getnameinfo): New function, only supports
81138         NI_NUMERICHOST|NI_NUMERICSERV for now.
81139
81140         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81141         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81142         getnameinfo.
81143
81144 2006-06-28  Eric Blake  <ebb9@byu.net>
81145
81146         * modules/wcwidth: New file.
81147         * modules/mbchar (Depends-on): Add wcwidth.
81148         * modules/mbswidth (Depends-on): Add wcwidth.
81149         * MODULES.html.sh: Add wcwidth.
81150
81151 2006-06-28  Eric Blake  <ebb9@byu.net>
81152
81153         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81155
81156 2006-06-28  Eric Blake  <ebb9@byu.net>
81157
81158         * lib/xvasprintf.h: Fix comments.
81159
81160 2006-06-28  Eric Blake  <ebb9@byu.net>
81161
81162         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81163         * lib/mbswidth.c (wcwidth): Move from here...
81164         * lib/wcwidth.h: ...to this new file.
81165
81166 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81167
81168         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81169
81170         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81171         it's obsolete.
81172         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81173
81174 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81175
81176         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81177         Autoconf 2.60 says this stuff was obsolete.
81178
81179 2006-06-28  Bruno Haible  <bruno@clisp.org>
81180
81181         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81182
81183 2006-06-28  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81186         gt_TYPE_WCHAR_T.
81187
81188 2006-06-28  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81191         declaration for wcwidth.
81192         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81193
81194 2006-06-28  Bruno Haible  <bruno@clisp.org>
81195
81196         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81197         (mkdir): Define using _mkdir.
81198
81199 2006-06-28  Bruno Haible  <bruno@clisp.org>
81200
81201         * lib/getaddrinfo.h: Fix POSIX URL.
81202         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81203         _WIN32.
81204         (use_win32_p): Make static.
81205         (getaddrinfo): Reject service name if it is empty or does not consist
81206         solely of decimal digits, or if its value is > 65535.
81207         (getnameinfo): Remove useless casts.
81208
81209 2006-06-27  Simon Josefsson  <jas@extundo.com>
81210
81211         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81212         Eggert and Martin Lambers.
81213
81214 2006-06-27  Simon Josefsson  <jas@extundo.com>
81215
81216         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81217         Eggert and Martin Lambers.
81218
81219 2006-06-27  Bruno Haible  <bruno@clisp.org>
81220
81221         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81222         result to 0, not to empty.
81223         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81224
81225 2006-06-27  Bruno Haible  <bruno@clisp.org>
81226
81227         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81228
81229 2006-06-26  Simon Josefsson  <jas@extundo.com>
81230
81231         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81232         present.
81233
81234 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81235
81236         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81237         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81238         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81239
81240 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81241
81242         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81243
81244 2006-06-26  Bruno Haible  <bruno@clisp.org>
81245
81246         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81247
81248 2006-06-26  Bruno Haible  <bruno@clisp.org>
81249
81250         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81251
81252 2006-06-26  Bruno Haible  <bruno@clisp.org>
81253
81254         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81255         SGI C compiler in pre-C99 mode.
81256         Suggested by Mark D. Baushke and Larry Jones.
81257
81258 2006-06-26  Bruno Haible  <bruno@clisp.org>
81259
81260         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81261         WCHAR_MAX.
81262         Reported by Mark D. Baushke and Larry Jones.
81263
81264 2006-06-26  Bruno Haible  <bruno@clisp.org>
81265
81266         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81267         in pre-C99 mode.
81268         Suggested by Mark D. Baushke and Larry Jones.
81269
81270 2006-06-23  Simon Josefsson  <jas@extundo.com>
81271             Bruno Haible  <bruno@clisp.org>
81272
81273         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81274         Emit mostlyclean-local rule.
81275         (func_emit_tests_Makefile_am): Likewise.
81276         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81277
81278 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81279
81280         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81281
81282 2006-06-23  Bruno Haible  <bruno@clisp.org>
81283
81284         * tests/test-stdint.c: Update to match ISO C 99 Technical
81285         Corrigendum 1.
81286
81287 2006-06-23  Bruno Haible  <bruno@clisp.org>
81288
81289         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81290
81291 2006-06-23  Bruno Haible  <bruno@clisp.org>
81292
81293         * lib/stdint_.h: Treat IRIX like OpenBSD.
81294
81295 2006-06-23  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81298         ISO C 99 Technical Corrigendum 1.
81299
81300 2006-06-22  Simon Josefsson  <jas@extundo.com>
81301
81302         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81303         MinGW.
81304
81305 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81306
81307         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81308         needed.  Some compiler complained about some of them.  Problem reported
81309         by Larry Jones in
81310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81311
81312 2006-06-21  Simon Josefsson  <jas@extundo.com>
81313
81314         * tests/test-getaddrinfo.c: New file.
81315
81316         * modules/getaddrinfo-tests: New file.
81317
81318         * MODULES.html.sh: Add inet_pton.
81319
81320         * modules/inet_pton: New file.
81321
81322 2006-06-21  Simon Josefsson  <jas@extundo.com>
81323
81324         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81325         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81326         of using the (limited) gnulib implementation on Windows XP.
81327
81328         * m4/inet_pton.m4: New file.
81329
81330 2006-06-21  Simon Josefsson  <jas@extundo.com>
81331
81332         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81333         variable.
81334
81335         * lib/socket_.h: Don't define WINVER.
81336
81337         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81338         slightly modified to work in gnulib.
81339
81340 2006-06-21  Simon Josefsson  <jas@extundo.com>
81341
81342         * doc/gnulib.texi (Windows sockets): Add.
81343
81344 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * lib/read-file.c (fread_file): Start with buffer allocation of
81347         0 bytes rather than 1 byte; this simplifies the code.
81348         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81349         code to free buffer and save/restore errno.
81350         (internal_read_file): Remove unused local.
81351
81352 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81355         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81356         Problem reported by Denis Excoffier in
81357         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81358
81359 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81360
81361         * modules/sys_socket, modules/socklen: Include sys/types since
81362         FreeBSD 4.x's sys/socket.h needs it.
81363
81364 2006-06-19  Simon Josefsson  <jas@extundo.com>
81365
81366         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81367
81368 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81369
81370         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81371
81372 2006-06-19  Bruno Haible  <bruno@clisp.org>
81373
81374         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81375         and FULL_PATH_INTTYPES_H in angle brackets.
81376         Reported by Mark D. Baushke <mdb@gnu.org>.
81377
81378 2006-06-17  Eric Blake  <ebb9@byu.net>
81379
81380         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81381         errno.
81382
81383 2006-06-17  Bruno Haible  <bruno@clisp.org>
81384
81385         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81386         <sys/inttypes.h>.
81387
81388 2006-06-17  Bruno Haible  <bruno@clisp.org>
81389
81390         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81391         whether errno is declared. Assume <errno.h> declares errno.
81392
81393 2006-06-17  Bruno Haible  <bruno@clisp.org>
81394
81395         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81396
81397 2006-06-17  Bruno Haible  <bruno@clisp.org>
81398
81399         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81400         problem on Solaris 2.5.1.
81401
81402 2006-06-16  Eric Blake  <ebb9@byu.net>
81403
81404         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81405         * lib/unicodeio.c [!defined errno]: Likewise.
81406         * lib/strtol.c [!defined errno]: Likewise.
81407         * lib/strtod.c [!defined errno]: Likewise.
81408
81409 2006-06-15  Eric Blake  <ebb9@byu.net>
81410
81411         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81412
81413 2006-06-15  Eric Blake  <ebb9@byu.net>
81414
81415         * config/srclist.txt (ssize_t.m4): Lose sync.
81416
81417 2006-06-15  Bruno Haible  <bruno@clisp.org>
81418
81419         * modules/stdint (Files): Include m4/full-header-path.m4,
81420         m4/size_max.m4, m4/wchar_t.m4.
81421         (Makefile.am): Many more substitutions.
81422         * modules/stdint-tests: New file.
81423         * tests/test-stdint.c: New file.
81424
81425 2006-06-15  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81428         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81429         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81430         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81431         gl_CHECK_TYPE_SAME): New macros.
81432
81433 2006-06-15  Bruno Haible  <bruno@clisp.org>
81434
81435         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81436
81437 2006-06-15  Bruno Haible  <bruno@clisp.org>
81438
81439         * lib/stdint_.h: Rewritten to be fully auto-configured.
81440         Fixes bug on HP-UX/IA64.
81441
81442 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * lib/getdate.y (__attribute__): Don't define if already defined.
81445         Problem reported by Larry Jones.
81446         * lib/utimens.c (__attribute__): Likewise.
81447
81448 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81451         reported by Andreas Schwab.
81452
81453 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81454             Bruno Haible  <bruno@clisp.org>
81455
81456         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81457         check for the declaration of strnlen and a run test that exposes the
81458         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81459         rpl_strndup.
81460
81461 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81462             Bruno Haible  <bruno@clisp.org>
81463
81464         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81465
81466 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81467
81468         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81469         compile test, for Tru64 4.0D.
81470
81471 2006-05-28  Karl Berry  <karl@gnu.org>
81472
81473         * config/srclist.txt (printf-args.c): lose sync.
81474
81475 2006-05-26  Martin Lambers  <marlam@marlam.de>
81476
81477         * lib/getpass.c: Updates the test for the native W32 API, and adds
81478         missing includes, thus fixing compilation warnings.
81479
81480 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81481
81482         * lib/exclude.c (exclude_fnmatch): New function.
81483         (excluded_file_name): Call exclude_fnmatch.
81484         * lib/exclude.h (excluded_file_name): New prototype
81485
81486 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * lib/tempname.c (small_open, large_open): New macros.
81489         (__open, __open64) [!_LIBC]: Remove.
81490         (__gen_tempname): Use small_open and large_open instead of __open
81491         and __open64.  This fixes a portability bug on HP-UX 11.11i
81492         reported by Simon Wing-Tang in
81493         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81494
81495 2006-05-24  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81498         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81499         Reported by Thorsten Maerz <torte@netztorte.de> via
81500         Aaron Stone <aaron@serendipity.cx>.
81501
81502 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81505         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81506         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81507         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81508         not really conditional on the cache.
81509         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81510
81511 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81512
81513         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81514         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81515         (my_usleep): Don't mishandle maximum value.
81516
81517 2006-05-19  Jim Meyering  <jim@meyering.net>
81518
81519         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81520
81521 2006-05-17  Bruno Haible  <bruno@clisp.org>
81522
81523         Cygwin portability.
81524         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81525
81526 2006-05-17  Bruno Haible  <bruno@clisp.org>
81527
81528         * lib/stdint_.h: Fix recognition of Cygwin.
81529
81530 2006-05-15  Bruno Haible  <bruno@clisp.org>
81531
81532         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81533         on libtool patch by Ralf Wildenhues.
81534
81535 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81538         test for C99 conformance; (bool) 0.5 is an integer constant
81539         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81540         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81541
81542 2006-05-11  Simon Josefsson  <jas@extundo.com>
81543
81544         * m4/xvasprintf.m4: Fix obvious typo.
81545
81546 2006-05-11  Jim Meyering  <jim@meyering.net>
81547
81548         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81549         James Lemley.
81550
81551 2006-05-10  Simon Josefsson  <jas@extundo.com>
81552
81553         * lib/md4.c: Typo fix, update copyright years.
81554         (K1, K2): Don't use L because it turn computations into 64-bit on
81555         64-bit platforms.
81556
81557 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81560         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81561         unwanted sign propagation, e.g., on hosts with 64-bit int.
81562         There still are some problems with reeelly weird theoretical hosts
81563         (e.g., 33-bit int) but it's not worth worrying about now.
81564         * lib/sha1.c (rol): Likewise.
81565         (K1, K2, K3, K4): Remove unnecessary L suffix.
81566
81567 2006-05-10  Bruno Haible  <bruno@clisp.org>
81568
81569         * lib/des.c: Cast to avoid warnings.
81570
81571 2006-05-09  Bruno Haible  <bruno@clisp.org>
81572
81573         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81574         (Depends-on): Depend also on xsize, stdarg.
81575         (configure.ac): Add gl_XVASPRINTF.
81576
81577 2006-05-09  Bruno Haible  <bruno@clisp.org>
81578
81579         * m4/xvasprintf.m4: New file.
81580
81581 2006-05-09  Bruno Haible  <bruno@clisp.org>
81582
81583         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81584         (EOVERFLOW): Define fallback value.
81585         (xstrcat): New function.
81586         (xvasprintf): Recognize the special case of a string concatenation.
81587
81588 2006-05-08  Eric Blake  <ebb9@byu.net>
81589
81590         * gnulib-tool (func_version): Base copyright year on CVS date.
81591         (func_emit_copyright_notice): New function.
81592         (func_emit_lib_Makefile_am): Use it.
81593         (func_emit_tests_Makefile_am): Likewise.
81594         (func_import): Likewise.
81595
81596 2006-05-08  Bruno Haible  <bruno@clisp.org>
81597
81598         * modules/stdarg: New file.
81599         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81600
81601 2006-05-08  Bruno Haible  <bruno@clisp.org>
81602
81603         * m4/stdarg.m4: New file, from GNU gettext.
81604
81605 2006-05-08  Bruno Haible  <bruno@clisp.org>
81606
81607         * config/srclist.txt (build-aux/config.rpath): different from latest
81608         release.
81609
81610 2006-05-08  Bruno Haible  <bruno@clisp.org>
81611
81612         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81613
81614 2006-05-05  Jim Meyering  <jim@meyering.net>
81615
81616         * m4/warning.m4: New file, derived from bison's file by the same name.
81617
81618 2006-05-03  Bruno Haible  <bruno@clisp.org>
81619
81620         * lib/stdint_.h: Shorter URL.
81621         * lib/inttypes.h: Likewise.
81622
81623 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81624
81625         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81626
81627 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * lib/verify.h: Document the internals better.  Most of this change
81630         was written by Bruno Haible.
81631
81632 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81633
81634         * doc/verify.texi: New file, partly based on a proposal by
81635         Bruno Haible.
81636
81637 2006-05-02  Bruno Haible  <bruno@clisp.org>
81638
81639         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81640         test from here...
81641         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81642
81643 2006-04-29  Bruno Haible  <bruno@clisp.org>
81644
81645         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81646         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81647
81648 2006-04-29  Bruno Haible  <bruno@clisp.org>
81649
81650         * gnulib-tool: Make --update option actually work.
81651
81652 2006-04-29  Bruno Haible  <bruno@clisp.org>
81653
81654         * doc/gcd.texi: New file.
81655         * doc/gnulib.texi: Include it.
81656
81657 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81658
81659         * lib/getdate.y (get_date): When adding relative date, start with the
81660         initial time, not with the result of the first mktime call.
81661
81662 2006-04-25  Bruno Haible  <bruno@clisp.org>
81663
81664         * gnulib-tool (func_import): Output the include directives in three
81665         blocks, sorted separately.
81666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81667
81668 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81669
81670         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81671         to define main with arguments, for C++.  Reported by Eric Blake.
81672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81673         Prefer 'int main ()' to 'int main (void)', for C++.
81674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81676         for 'main', for C99 and C++.
81677
81678 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81681         Don't assume that exit status -1 is valid.
81682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81683         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81684         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81685         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81686         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81687         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81688         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81689         functions can be used without declaring them, or that you can
81690         exit with status -1.
81691         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81692
81693 2006-04-24  Karl Berry  <karl@gnu.org>
81694
81695         * config/srclist.txt (longdouble.m4): sync lost.
81696
81697 2006-04-24  Eric Blake  <ebb9@byu.net>
81698
81699         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81700
81701 2006-04-24  Bruno Haible  <bruno@clisp.org>
81702
81703         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81704         poll() implementation in AIX.
81705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81706
81707 2006-04-24  Bruno Haible  <bruno@clisp.org>
81708
81709         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81710         assigned exactly once.
81711
81712 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81713             Bruno Haible  <bruno@clisp.org>
81714
81715         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81716         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81717         for AM_CPPFLAGS.
81718
81719 2006-04-23  Bruno Haible  <bruno@clisp.org>
81720
81721         * modules/copy-file: Depend on unistd.
81722         * modules/execute: Likewise.
81723         * modules/fatal-signal: Likewise.
81724         * modules/findprog: Likewise.
81725         * modules/mkdtemp : Likewise.
81726         * modules/pipe: Likewise.
81727         * modules/wait-process: Likewise.
81728
81729 2006-04-23  Bruno Haible  <bruno@clisp.org>
81730
81731         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81732         condition was already detected.
81733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81734
81735 2006-04-23  Bruno Haible  <bruno@clisp.org>
81736
81737         * lib/copy-file.c: Include <unistd.h> unconditionally.
81738         * lib/execute.c: Likewise.
81739         * lib/fatal-signal.c: Likewise.
81740         * lib/findprog.c: Likewise.
81741         * lib/mkdtemp.c: Likewise.
81742         * lib/pipe.h: Likewise.
81743         * lib/pipe.c: Likewise.
81744         * lib/wait-process.h: Likewise.
81745
81746 2006-04-23  Bruno Haible  <bruno@clisp.org>
81747
81748         * gnulib-tool (func_usage): Fix --import description. Document
81749         --update.
81750         (func_import): Create temporary file in a temporary directory, if
81751         --dry-run is specified. Silence errors from 'grep' when there are no
81752         m4 files in $m4dir.
81753         (func_create_testdir): Silence errors from 'grep' when there are no
81754         m4 files in $m4dir.
81755         Reported by Karl Berry <karl@freefriends.org>.
81756
81757 2006-04-20  Bruno Haible  <bruno@clisp.org>
81758
81759         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81760         one argument, so that the code will be portable to Autoconf 2.60.
81761         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81762         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81763         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81764
81765 2006-04-19  Derek Price  <derek@ximbiot.com>
81766             Eric Blake  <ebb9@byu.net>
81767
81768         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81769         rather than "/full/path.h".  Update comment to match.  Shorten &
81770         generalize m4_translit call via AS_TR_CPP.
81771
81772 2006-04-19  Derek Price  <derek@ximbiot.com>
81773             Eric Blake  <ebb9@byu.net>
81774
81775         * lib/inttypes.h: Correct grammar in comment.
81776
81777 2006-04-18  Derek Price  <derek@ximbiot.com>
81778             Paul Eggert  <eggert@cs.ucla.edu>
81779
81780         * modules/inttypes: New file.
81781         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81782
81783 2006-04-18  Derek Price  <derek@ximbiot.com>
81784             Paul Eggert  <eggert@cs.ucla.edu>
81785
81786         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81787         New files.
81788
81789 2006-04-18  Derek Price  <derek@ximbiot.com>
81790             Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         * lib/inttypes.h: New file.
81793         * lib/strtoimax.c: Assume <inttypes.h>.
81794
81795 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81798         isn't mounted.  Problem reported by Kir Kolyshkin.
81799
81800 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81801
81802         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81803         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81804         Derek R. Price.
81805         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81806         implementation.
81807
81808 2006-04-12  Eric Blake  <ebb9@byu.net>
81809
81810         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81811         is now done automatically by the corresponding Autoconf macro.
81812
81813 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81816         time_r.h.
81817
81818 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         Merge regex changes from libc, removing some of our
81821         POSIX-conformance changes that were rejected and redoing them in a
81822         less-intrusive way.
81823
81824         * lib/regcomp.c (re_compile_internal, init_dfa):
81825         Length arg is now size_t, not Idx.  All uses changed.
81826         (peek_token): Forward decl now says internal_function.
81827         (__re_error_msgid, __re_error_msgid_idx):
81828         Now static rather than extern with attribute_hidden.
81829         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81830         For some reason libc prefers K&R style defns for external functions.
81831         (regerror) [!defined _LIBC]: Likewise.
81832         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81833         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81834         (build_range_exp, build_collating_symbol):
81835         Use K&R-style defn.
81836         (re_compile_fastmap): Use '\0' to memset, not 0.
81837         (utf8_sb_map): Make the calculations more obvious.
81838         (init_dfa, parse_bracket_exp, build_charclass_op):
81839         Call calloc and cast result, as glibc does.
81840         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81841         (build_range_exp, build_collating_symbol):
81842         Now internal functions.
81843
81844         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81845
81846         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81847         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81848         Don't depend on VMS; depend on __VMS instead, for POSIX
81849         namespace cleanness.
81850         (regoff_t): Define to ssize_t, not long int.
81851
81852         Remove the REG_ macros named below.  Instead, make the old names
81853         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81854         __USE_GNU_REGEX.
81855         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81856         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81857         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81858         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81859         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81860         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81861         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81862         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81863         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81864         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81865         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81866         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81867         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81868         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81869         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81870         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81871         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81872         (REG_NREGS):
81873         Remove.  All uses replaced by the old RE_* names.
81874         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81875         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81876         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81877         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81878         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81879         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81880         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81881         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81882         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81883         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81884         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81885         Don't bother having these macros be independent of each others'
81886         values, since they no longer exist in the POSIX name space.
81887
81888         Rename the following member names back to their old names,
81889         unless !__USE_GNU_REGEX.  All uses changed back.
81890         (buffer): Renamed from re_buffer.
81891         (allocated): Renamed from re_allocated.
81892         (used): Renamed from re_used.
81893         (syntax): Renamed from re_syntax.
81894         (fastmap): Renamed from re_fastmap.
81895         (translate): Renamed from re_translate.
81896         (can_be_null): Renamed from re_can_be_null.
81897         (regs_allocated): Renamed from re_regs_allocated.
81898         (fastmap_accurate): Renamed from re_fastmap_accurate.
81899         (no_sub): Renamed from re_no_sub.
81900         (not_bol): Renamed from re_not_bol.
81901         (not_eol): Renamed from re_not_eol.
81902         (newline_anchor): Renamed from re_newline_anchor.
81903         (num_regs): Renamed from rm_num_regs.
81904         (start): Renamed from rm_start.
81905         (end): Renamed from rm_end.
81906
81907         (free_state): Move up a bit.
81908
81909         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81910         #define to be empty.
81911         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81912         when that is what is intended.
81913         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81914         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81915         (MAX): New macro.
81916         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81917         All uses changed back to re_malloc, etc.  It's now the caller's
81918         responsibility to check for overflow; all callers changed.
81919         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81920         (re_x2nrealloc): Remove.
81921         (free_state): Remove decl.
81922
81923         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81924         (re_set_registers, re_exec):
81925         Use K&R-style defn.
81926
81927         2006-01-31  Roland McGrath  <roland@redhat.com>
81928
81929         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81930         Reported by Mike Frysinger <vapier@gentoo.org>.
81931
81932         2006-01-15  Andreas Jaeger  <aj@suse.de>
81933
81934         [BZ #1950]
81935         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81936         build_wcs_upper_buffer change.
81937         (build_wcs_upper_buffer): Change return type.
81938
81939         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81940
81941         * lib/regex_internal.h: Include <stdint.h> if available.
81942
81943         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81944
81945         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81946
81947         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81948
81949         * lib/regcomp.c: Adjust for changed secondary hash function.
81950
81951         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81952
81953         * lib/regex.h: Pretty printing.
81954         Clean up namespace a bit.
81955
81956         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81957
81958         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81959         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81960
81961         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81962                     Ulrich Drepper  <drepper@redhat.com>
81963
81964         [BZ #1302]
81965         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81966         changed.
81967         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81968
81969         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81970
81971         [BZ #281]
81972         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81973         * lib/regcomp.c: Remove unnecessary uses of
81974         unsigned RE_TRANSLATE_TYPE.
81975         * lib/regex_internal.h: Likewise.
81976         * lib/regex_internal.c: Likewise.
81977         * lib/regexec.c: Likewise.
81978         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81979
81980         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81981
81982         * lib/regexec.c (find_recover_state): Remove unnecessary
81983         initialization.
81984         (transit_state_bkref): Make DFA a const pointer.
81985         (get_subexp): Likewise.
81986         (check_arrival): Likewise.
81987         (update_cur_sifted_state): Likewise.
81988         (re_search_internal): Likewise.
81989         (prune_impossible_nodes): Likewise.
81990         (acquire_init_state_context): Likewise.
81991         (proceed_next_node): Likewise.
81992         (set_regs): Likewise.
81993         (free_fail_stack_return): Likewise.
81994         (check_arrival_expand_ecl): Mark DFA parameter as const.
81995         (check_arrival_expand_ecl_sub): Likewise.
81996         (check_subexp_limits): Likewise.
81997         (sub_epsilon_src_nodes):  Likewise.
81998         (add_epsilon_src_nodes):  Likewise.
81999         (merge_state_array): Likewise.
82000         (update_regs): Likewise.
82001         (build_trtable): Likewise.
82002         (sift_states_backward): Mark MCTX parameter as const.
82003         (build_sifted_states): Likewise.
82004         (update_cur_sifted_state): Likewise.
82005         (sift_states_mkref): Likewise.
82006         (check_arrival_expand_ecl): Mark eclosure as const.
82007         (check_dst_limits_calc_pos_1): Likewise.
82008         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82009         pointer.
82010
82011         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82012
82013         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82014         (transit_state_sb): Likewise.
82015         (transit_state_mb): Likewise.
82016         (sift_states_iter_mb): Likewise.
82017         (check_arrival_add_next_nodes): Likewise.
82018         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82019         [_LIBC] (re_search_2_stub): Use mempcpy.
82020
82021         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82022         mbrtowc for very simple UTF-8 case.
82023
82024         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82025         a pointer-to-const.
82026         (re_acquire_state_context): Likewise.
82027         * lib/regex_internal.h: Adjust prototypes.
82028
82029         * lib/regex.c: Prevent using C++ compilers.
82030
82031         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82032         (re_acquire_state_context): Likewise.
82033
82034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         * modules/regex (Depends-on): Add ssize_t.
82037
82038 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82039
82040         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82041         translation table.
82042
82043 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82046
82047 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82048             Bruno Haible  <bruno@clisp.org>
82049
82050         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82051         <sys/types.h> and <inttypes.h>.
82052
82053 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82054
82055         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82056         `__error_t_defined', so argp.h will not typedef the former.
82057
82058 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82059
82060         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82061         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82062         glibc names.  Even if glibc is changed to conform to POSIX, the
82063         traditional names will be available anyway, since regex depends on
82064         the extensions module.  Also, fix a longstanding typo in the
82065         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82066         reported by Emanuele Giaquinta.  Also, change sense of cached
82067         variable, so that the message makes sense.
82068
82069 2006-03-24  Simon Josefsson  <jas@extundo.com>
82070
82071         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82072         including some doc fixes.
82073         (base64_encode_alloc): Fix +1 bug on allocation failures.
82074
82075 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82076
82077         * lib/base64.c (base64_encode): Do not read past end of array with
82078         unsanitized input on systems with CHAR_BIT > 8.
82079
82080 2006-03-24  Eric Blake  <ebb9@byu.net>
82081
82082         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82083
82084 2006-03-22  Karl Berry  <karl@gnu.org>
82085
82086         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82087         * config/srclistvars.sh (COREUTILS): new var.
82088
82089 2006-03-17  Jim Meyering  <jim@meyering.net>
82090
82091         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82092         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82093
82094 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82095
82096         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82097         no longer needs it.  Instead, check that regoff_t is as least
82098         as wide as ptrdiff_t.
82099
82100         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82101         so that our regex.h stays compatible with the installed regex.
82102         This is helpful for installers who configure --without-included-regex.
82103         Problem reported by Emanuele Giaquinta.
82104
82105 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82108         Typedef to long int, not to off_, as POSIX will likely change
82109         in that direction.
82110
82111 2006-03-15  Eric Blake  <ebb9@byu.net>
82112
82113         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82114
82115 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82116
82117         * lib/argp-help.c (validate_uparams): Fix typo
82118         * lib/argp-parse.c (argp_default_options): Consistently begin help
82119         messages with a lowercase letter.
82120
82121 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82122
82123         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82124         overrun buffers and shouldn't be used (much as gets shouldn't be
82125         used).
82126         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82127
82128 2006-03-08  Simon Josefsson  <jas@extundo.com>
82129
82130         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82131         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82132
82133 2006-03-08  Simon Josefsson  <jas@extundo.com>
82134
82135         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82136         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82137
82138 2006-03-08  Simon Josefsson  <jas@extundo.com>
82139
82140         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82141         signal that configure disabled the device.
82142
82143 2006-03-08  Simon Josefsson  <jas@extundo.com>
82144
82145         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82146         languages.
82147
82148 2006-03-07  Simon Josefsson  <jas@extundo.com>
82149
82150         * modules/getopt (Depends-on): Add unistd.
82151
82152         * modules/unistd: New file.
82153
82154 2006-03-07  Simon Josefsson  <jas@extundo.com>
82155
82156         * modules/gc-random: New file.
82157
82158 2006-03-07  Simon Josefsson  <jas@extundo.com>
82159
82160         * m4/unistd_h.m4: New file.
82161
82162 2006-03-07  Simon Josefsson  <jas@extundo.com>
82163
82164         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82165         test to be side-effect free by storing the result in the cache
82166         variable gl_cv_lib_readline, and moving the assignment of
82167         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82168         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82169
82170 2006-03-07  Simon Josefsson  <jas@extundo.com>
82171
82172         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82173         error on missing devices (the functions will return an error).
82174
82175         * m4/gc.m4: Move random stuff to gc-random.m4
82176
82177 2006-03-07  Simon Josefsson  <jas@extundo.com>
82178
82179         * lib/unistd_.h: New file.
82180
82181 2006-03-07  Simon Josefsson  <jas@extundo.com>
82182
82183         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82184
82185 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82188         Problem reported by Juan Manuel Guerrero.
82189
82190 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82193         the unistd module.
82194         * lib/getlogin_r.c: Likewise.
82195         * lib/getlogin_r.h: Likewise.
82196         * lib/glob.c: Likewise.
82197         * lib/pagealign_alloc.c: Likewise.
82198         * lib/unistd_.h: Remove; no longer needed.
82199
82200 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82201
82202         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82203         Add unistd.
82204         * modules/c-stack (Depends-on): Add unistd.
82205         * modules/getlogin_r: Likewise.
82206         * modules/glob: Likewise.
82207         * modules/pagealign_alloc: Likewise.
82208         * modules/unistd (Files): Remove lib/unistd_.h.
82209         (EXTRA_DIST): Remove.
82210         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82211         need unistd_.h.
82212         (MOSTLYCLEANFILES): Remove unistd.h-t.
82213
82214 2006-03-03  Simon Josefsson  <jas@extundo.com>
82215
82216         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82217
82218 2006-03-03  Simon Josefsson  <jas@extundo.com>
82219
82220         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82221         libidn and bison.
82222
82223 2006-03-03  Simon Josefsson  <jas@extundo.com>
82224
82225         * build-aux/maint.mk: Add indent target.
82226
82227 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82228
82229         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82230         our replacement poll.h in any case, to avoid a differing
82231         declaration from a system header.  Seen on AIX.
82232
82233 2006-03-01  Simon Josefsson  <jas@extundo.com>
82234
82235         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82236         <kasal@ucw.cz>.
82237
82238 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * modules/gettime (Depends-on): Add extensions module.
82241         * modules/nanosleep (Depends-on): Likewise.
82242         * modules/settime (Depends-on): Likewise.
82243
82244 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82247         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82248         pedantically.
82249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82250         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82251
82252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82253         not "==".  Reported by Ralf Wildenhues.
82254
82255 2006-03-01  Karl Berry  <karl@gnu.org>
82256
82257         * doc/Copyright/request-*: new files, synced from gnuorg.
82258
82259 2006-03-01  Karl Berry  <karl@gnu.org>
82260
82261         * config/srclist.txt (Copyright/*): new entries.
82262
82263 2006-02-28  Simon Josefsson  <jas@extundo.com>
82264
82265         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82266
82267 2006-02-27  Simon Josefsson  <jas@extundo.com>
82268
82269         * lib/base64.h: Indent #define's.  From Jim Meyering
82270         <jim@meyering.net>.
82271
82272 2006-02-27  Jim Meyering  <jim@meyering.net>
82273
82274         Revert the change of 2006-02-24, so these files can continue
82275         to be sync'd from gettext.
82276         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82277         of `config.h'.
82278
82279 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * modules/intprops: New file.
82282         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82283         Add intprops.
82284         * modules/getloadavg (Files): Remove lib/intprops.h.
82285         (Depends-on): Add intprops.
82286         * modules/human: Likewise.
82287         * modules/inttostr: Likewise.
82288         * modules/openat: Likewise.
82289         * modules/sig2str: Likewise.
82290         * modules/userspec: Likewise.
82291         * modules/utimecmp: Likewise.
82292         * modules/xnanosleep: Likewise.
82293         * modules/xstrtol: Likewise.
82294
82295 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82296
82297         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82298         * modules/lock-tests (TESTS): Use $(EXEEXT).
82299         * modules/tls-tests: Likewise.
82300         * modules/argp-tests: Likewise.
82301         (check_PROGRAMS): New var, replacing...
82302         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82303
82304 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82305
82306         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82307         `config.h'.
82308
82309 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82312
82313 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82314
82315         Sync from coreutils.
82316         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82317         gl_CHDIR_SAFER.
82318
82319 2006-02-22  Jim Meyering  <jim@meyering.net>
82320
82321         Sync from coreutils.
82322         * m4/chdir-safer.m4: New file.
82323
82324 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82327         AT_FDCWD exceeds INT_MAX.
82328         * lib/openat.h (AT_FDCWD): Likewise.
82329
82330 2006-02-17  Eric Blake  <address@hidden>
82331
82332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82333
82334 2006-02-16  Simon Josefsson  <jas@extundo.com>
82335
82336         * modules/getaddrinfo (Depends-on): Add sys_socket.
82337
82338 2006-02-15  Simon Josefsson  <jas@extundo.com>
82339
82340         * build-aux/maint.mk: Add dsyntax-check rule.
82341
82342 2006-02-15  Eric Blake  <ebb9@byu.net>
82343
82344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82345         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82346         'present but cannot compile' warnings on cygwin.
82347         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82348         use ws2tcpip.h if sys/socket.h works.
82349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82350         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82351
82352 2006-02-14  Simon Josefsson  <jas@extundo.com>
82353
82354         * modules/maintainer-makefile (Files): Rename.
82355
82356         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82357         and (the local) Makefile.cfg to maint-cfg.mk.
82358
82359         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82360         to the latter.
82361
82362         * modules/maintainer-makefile: New module.
82363
82364         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82365         severaly stripped to make it possible to build it up from scratch
82366         with reliable tests.
82367
82368         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82369         fixes to permit overriding the default actions when configure and
82370         makefile are not available.
82371
82372 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         Sync from coreutils.
82375         * modules/lstat (Depends-on): Don't depend on xalloc.
82376         (License): Change from GPL to LGPL, since this is now simply a
82377         replacement for a libc function.
82378
82379 2006-02-14  Jim Meyering  <jim@meyering.net>
82380
82381         Sync from coreutils.
82382
82383         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82384         failure on deficient systems, and simplify gnulib lgpl dependencies.
82385         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82386         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82387
82388         * lib/xalloc-die.c: Remove unused definition of N_.
82389
82390 2006-02-14  Jim Meyering  <jim@meyering.net>
82391
82392         Sync from coreutils.
82393         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82394         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82395         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82396         double-quote uses of that variable, to accommodate the rare case in
82397         which getmntent is available in none of the libraries checked.  This
82398         happens at least on FreeBSD 5.0.
82399
82400 2006-02-13  Simon Josefsson  <jas@extundo.com>
82401
82402         * gnulib-tool (Usage): Fix --import, from
82403         karl@freefriends.org (Karl Berry).
82404
82405 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82406
82407         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82408
82409 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82410
82411         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82412         "autoupdate" on 2005-12-12.
82413
82414 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * modules/closeout (Depends-on): Remove atexit.
82417
82418 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82421         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82422
82423 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82426         __EXTENSIONS__ if this causes compilation to fail.  Problem
82427         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82428         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82429
82430 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82431
82432         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82433         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82434         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82435         All uses changed.
82436
82437 2006-01-26  Simon Josefsson  <jas@extundo.com>
82438
82439         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82440         prototype is visible on mingw32.
82441
82442         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82443         for mingw32.
82444
82445         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82446         mingw32).
82447
82448 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82449
82450         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82451         attempt to open for write; this always fails, at least on POSIX
82452         hosts.  This reinstates the 2006-01-09 change, which was
82453         inadvertently removed.
82454
82455 2006-01-26  Bruno Haible  <bruno@clisp.org>
82456
82457         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82458         Reported by Paul Eggert.
82459
82460 2006-01-26  Bruno Haible  <bruno@clisp.org>
82461             Paul Eggert  <eggert@cs.ucla.edu>
82462
82463         * lib/stdbool_.h (_Bool)
82464         [(! (defined __cplusplus || defined __BEOS__)
82465           && !defined __GNUC__
82466           && !(defined __HP_cc || defined __xlc__
82467                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82468                || defined __sgi))]:
82469         #define to signed char in these cases too; this simplifies
82470         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82471         etc., separately) and makes it more conservative.
82472
82473 2006-01-25  Simon Josefsson  <jas@extundo.com>
82474
82475         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82476         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82477         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82478
82479 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82480
82481         * lib/argp-namefrob.h: Bugfix. Remove stray #
82482
82483 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82486         so that we test the test.
82487         Check for yet another HP-UX cc bug involving *bool |= bool.
82488
82489 2006-01-25  Karl Berry  <karl@gnu.org>
82490
82491         * config/srclist.txt (vasnprintf.c): sync lost.
82492
82493 2006-01-25  Jim Meyering  <jim@meyering.net>
82494
82495         Sync from the stable (b5) branch of coreutils:
82496
82497         * lib/fts.c (fts_children): Don't let close() clobber errno from
82498         failed fchdir().
82499
82500         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82501         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82502         a dangling symlink.  That can also happen at least for ELOOP.
82503         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82504         FYI, this bug predates the inclusion of fts.c in coreutils.
82505
82506         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82507         in their own block, so pre-c99 compilers don't object.
82508
82509         Avoid the double-free (first in fts_read, second in fts_close) that
82510         would occur when an `active' directory is made inaccessible (e.g.,
82511         via chmod a-x) during a traversal.
82512         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82513         before returning.  Reproduce this failure by
82514         mkdir -p a/b; cd a; chmod a-x . b
82515         Reported by Stavros Passas.
82516
82517 2006-01-25  Jim Meyering  <jim@meyering.net>
82518
82519         * lib/fileblocks.c: Remove more useless parentheses.
82520         * lib/readutmp.h: Likewise.
82521
82522 2006-01-25  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82525         warnings.
82526         Reported by Paul Eggert.
82527
82528 2006-01-25  Bruno Haible  <bruno@clisp.org>
82529
82530         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82531         rid of a trap command. For Solaris sh.
82532         Reported by Mark D. Baushke <mdb@gnu.org>.
82533
82534 2006-01-24  Simon Josefsson  <jas@extundo.com>
82535
82536         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82537         Bruno.
82538
82539 2006-01-24  Karl Berry  <karl@gnu.org>
82540
82541         * config/srclist.txt (argp-namefrob.h): sync lost.
82542
82543 2006-01-24  Jim Meyering  <jim@meyering.net>
82544
82545         * modules/openat (Files): Add lib/intprops.h.
82546         From Mark D. Baushke.
82547
82548 2006-01-24  Jim Meyering  <jim@meyering.net>
82549
82550         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82551         Reported by Mark D. Baushke.
82552
82553 2006-01-24  Jim Meyering  <jim@meyering.net>
82554
82555         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82556
82557 2006-01-24  Bruno Haible  <bruno@clisp.org>
82558
82559         * modules/strnlen (Maintainer): Change from glibc to all.
82560
82561 2006-01-24  Bruno Haible  <bruno@clisp.org>
82562
82563         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82564         Patch by Paul Eggert.
82565
82566 2006-01-24  Bruno Haible  <bruno@clisp.org>
82567
82568         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82569         already has it.
82570         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82571         2005-11-26.
82572
82573         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82574         'signed char' to avoid problems with the built-in _Bool type.
82575         Reported by Paul Eggert on 2005-11-26.
82576
82577 2006-01-24  Bruno Haible  <bruno@clisp.org>
82578
82579         * gnulib-tool (func_import): Avoid constructing complicated sed
82580         expressions inside backquote.
82581         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82582
82583 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82584
82585         These changes imported from libc.
82586         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82587         test and two separate function calls.
82588         * lib/strndup.c (__strndup): Add libc_hidden_def.
82589
82590 2006-01-23  Simon Josefsson  <jas@extundo.com>
82591
82592         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82593         Remove the test_*_SOURCES variable: automake infers it by default.
82594         * modules/tls-tests: Likewise.
82595
82596 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82597
82598         Work around porting bugs reported by Dieter in
82599         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82600         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82601         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82602         Include "getopt.h" first, to check interface.
82603         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82604         !HAVE_DECL_GETENV.
82605         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82606         (__strndup): Revert to K&R-style function dfns, the glibc style.
82607         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82608         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82609         Include strnlen.h first, to get prototype properly.
82610         (strnlen): Renamed from __strnlen.
82611         Remove weak alias.
82612
82613 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82614
82615         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82616
82617 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82618
82619         * config/srclist.txt: Adjust to reflect glibc reorganization.
82620         This affects only comments.
82621
82622 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82623
82624          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82625          Reported by Bruce Korb <bkorb@gnu.org>.
82626
82627 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82628
82629         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82630         to pacify gcc -Wswitch-default.
82631
82632 2006-01-22  Bruno Haible  <bruno@clisp.org>
82633
82634         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82635         temporary buffer for sprintf, take into account the precision also
82636         for 'd', 'i', 'u', 'o', 'x', 'X'.
82637
82638 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82639
82640         * modules/argp-tests: New module
82641         * tests/test-argp.c: New file
82642         * tests/test-argp-2.sh: New file
82643
82644 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82645
82646         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82647         (__argp_base_name): Removed
82648         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82649         typo.
82650         (__argp_base_name): Provide macro definition or extern declaration
82651         depending on the configuration
82652
82653 2006-01-20  Simon Josefsson  <jas@extundo.com>
82654
82655         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82656
82657 2006-01-20  Simon Josefsson  <jas@extundo.com>
82658
82659         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82660
82661 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82664         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82665         Suggested by Bruno Haible.
82666
82667 2006-01-20  Karl Berry  <karl@gnu.org>
82668
82669         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82670         until changes propagate, I guess.
82671
82672 2006-01-19  Simon Josefsson  <jas@extundo.com>
82673
82674         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82675
82676 2006-01-19  Simon Josefsson  <jas@extundo.com>
82677
82678         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82679
82680 2006-01-19  Simon Josefsson  <jas@extundo.com>
82681
82682         * gnulib-tool: Set check_PROGRAMS.
82683
82684         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82685         modules/des-tests, modules/gc-arcfour-tests,
82686         modules/gc-arctwo-tests, modules/gc-des-tests,
82687         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82688         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82689         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82690         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82691         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82692         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82693         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82694         test_*_SOURCES.
82695
82696 2006-01-18  Simon Josefsson  <jas@extundo.com>
82697
82698         * modules/socklen (Depends-on): Depend on sys_socket.
82699
82700 2006-01-18  Simon Josefsson  <jas@extundo.com>
82701
82702         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82703         modules/des-tests, modules/gc-arcfour-tests,
82704         modules/gc-arctwo-tests, modules/gc-des-tests,
82705         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82706         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82707         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82708         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82709         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82710         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82711         $(EXEEXT) to automake TESTS variable, for mingw32.
82712
82713 2006-01-17  Simon Josefsson  <jas@extundo.com>
82714
82715         * modules/socklen (Include): Need sys/socket.h.
82716
82717 2006-01-17  Bruno Haible  <bruno@clisp.org>
82718
82719         * modules/ssize_t (Include): Add <sys/types.h>.
82720
82721 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82724         it's not portable and it doesn't work with cross-compiles.
82725         Problem reported by Bruno Haible.  Fix missing-$ typo in
82726         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82727         -zignore from being used with Sun's C compiler.
82728
82729 2006-01-12  Simon Josefsson  <jas@extundo.com>
82730
82731         * lib/base64.c: Fix warning, reported by Bruno Haible
82732         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82733
82734 2006-01-12  Bruno Haible  <bruno@clisp.org>
82735
82736         * modules/ldd: New file.
82737         * build-aux/ldd.sh.in: New file.
82738         * MODULES.html.sh (Support for building libraries and executables): Add
82739         ldd.
82740
82741 2006-01-12  Bruno Haible  <bruno@clisp.org>
82742
82743         * m4/ldd.m4: New file.
82744
82745 2006-01-12  Bruno Haible  <bruno@clisp.org>
82746
82747         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82748         endless loop while replacing $auxdir with build-aux.
82749
82750 2006-01-11  Simon Josefsson  <jas@extundo.com>
82751
82752         * lib/stdint_.h (SIZE_MAX): Add missing (.
82753
82754 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         Sync from coreutils.
82757         * lib/md5.c: Fix commentary typos.
82758         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82759         * lib/md5.h (__attribute__): Remove; unused.
82760         * lib/sha1.c: Fix commentary to match md5 better.
82761         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82762         so that we don't need to worry about alignment.  All uses changed.
82763         This merges the 2005-10-28 md5 change into sha1.
82764
82765 2006-01-11  Jim Meyering  <jim@meyering.net>
82766
82767         Sync from coreutils.
82768         * lib/md5.c (OP): Fix spacing.
82769
82770 2006-01-11  Bruno Haible  <bruno@clisp.org>
82771
82772         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82773         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82774         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82775
82776 2006-01-11  Bruno Haible  <bruno@clisp.org>
82777
82778         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82779         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82780         the "early" section as well.
82781
82782 2006-01-11  Bruno Haible  <bruno@clisp.org>
82783
82784         Avoid "ar: no archive members specified" error on MacOS X.
82785         * gnulib-tool (func_modules_add_dummy): New function.
82786         (func_import, func_create_testdir): Invoke it.
82787
82788 2006-01-11  Bruno Haible  <bruno@clisp.org>
82789
82790         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82791         with $auxdir in AC_CONFIG_FILES statements.
82792
82793 2006-01-11  Bruno Haible  <bruno@clisp.org>
82794
82795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82796         Initialize also noinst_HEADERS to empty.
82797
82798 2006-01-11  Bruno Haible  <bruno@clisp.org>
82799
82800         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82801         variables.
82802         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82803         autoreconf.
82804
82805 2006-01-11  Bruno Haible  <bruno@clisp.org>
82806
82807         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82808         overridable by the user.
82809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82810
82811 2006-01-10  Simon Josefsson  <jas@extundo.com>
82812
82813         * modules/sys_socket: New file.
82814
82815 2006-01-10  Simon Josefsson  <jas@extundo.com>
82816
82817         * m4/sys_socket_h.m4: New file.
82818
82819 2006-01-10  Simon Josefsson  <jas@extundo.com>
82820
82821         * lib/socket_.h: New file.
82822
82823 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82824
82825         * modules/readutmp (Maintainer): Add myself.
82826
82827 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82828
82829         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82830         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82831         People who are still concerned with buggy memcmp implementations
82832         can invoke gl_FUNC_MEMCMP themselves.
82833
82834 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * lib/regex_internal.h (BITSET_WORD_BITS):
82837         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82838         preprocessor mishandles large unsigned values as if they were signed.
82839         Problem reported by Claudio Fontana in
82840         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82841
82842 2006-01-10  Jim Meyering  <jim@meyering.net>
82843
82844         Avoid the double-free (first in fts_read, second in fts_close) that
82845         would occur when an `active' directory is made inaccessible (e.g.,
82846         via chmod a-x) during a traversal.
82847         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82848         before returning.  Reproduce this failure by
82849         mkdir -p a/b; cd a; chmod a-x . b
82850         Reported by Stavros Passas.
82851
82852         Sync from coreutils.
82853         * lib/sha1.c: Tweak grammar in a comment.
82854
82855 2006-01-10  Jim Meyering  <jim@meyering.net>
82856
82857         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82858         Patch by Joerg Sonnenberger.
82859
82860 2006-01-10  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/readutmp: Depend on module free.
82863         * modules/strtok_r: Depend on module restrict.
82864
82865 2006-01-10  Bruno Haible  <bruno@clisp.org>
82866
82867         * modules/gettext (configure.ac): Add an invocation of
82868         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82869
82870 2006-01-10  Bruno Haible  <bruno@clisp.org>
82871
82872         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82873         Reported by Werner Lemberg <wl@gnu.org>.
82874
82875 2006-01-10  Bruno Haible  <bruno@clisp.org>
82876
82877         * lib/localcharset.c: Update from GNU gettext.
82878
82879 2006-01-10  Bruno Haible  <bruno@clisp.org>
82880
82881         * lib/argp.h (__const): Remove macro. Use const instead.
82882         * lib/argp-fmtstream.h (__const): Likewise.
82883         * lib/glob_.h (__const): Remove macro.
82884         * lib/glob-libc.h: Use const instead of __const.
82885
82886 2006-01-10  Bruno Haible  <bruno@clisp.org>
82887
82888         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82889         variable.
82890         Needed to avoid an automake error regarding the 'gettext' module.
82891
82892 2006-01-09  Simon Josefsson  <jas@extundo.com>
82893
82894         * modules/inet_ntop (Depends-on): Add restrict.
82895
82896 2006-01-09  Simon Josefsson  <jas@extundo.com>
82897
82898         * modules/gc-rijndael-tests (License): Put under LGPL.
82899
82900         * modules/gc-des-tests (License): Likewise.
82901
82902         * modules/gc-arcfour-tests (License): Likewise.
82903
82904         * modules/gc-arctwo-tests (License): Likewise.
82905
82906         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82907
82908         * modules/gc-hmac-sha1-tests (Files): Likewise.
82909
82910         * modules/gc-hmac-md5-tests (License): Likewise.
82911
82912         * modules/gc-sha1-tests (License): Likewise.
82913
82914         * modules/gc-md5-tests (License): Likewise.
82915
82916         * modules/gc-md4-tests (License): Likewise.
82917
82918         * modules/gc-md2-tests (License): Likewise.
82919
82920         * modules/gc-tests (License): Likewise.
82921
82922         * modules/des-tests (License): Likewise.
82923
82924         * modules/md4-tests (License): Likewise.
82925
82926         * modules/md2-tests (License): Likewise.
82927
82928 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         Sync from coreutils:
82931
82932         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82933         * modules/lib-ignore: New file.
82934         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82935         chdir-safer.m4, lchmod.m4.
82936         * modules/openat: Add mkdirat.c, openat-priv.h.
82937
82938 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         Sync from coreutils.
82941         * m4/lib-ignore.m4: New file.
82942         * m4/lchmod.m4: New file.
82943
82944 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         Sync from coreutils.
82947         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82948         for write access: POSIX says that must fail.
82949         * lib/fts.c (diropen): Likewise.
82950         * lib/save-cwd.c (save_cwd): Likewise.
82951         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82952         well, for minor improvements on hosts that lack O_DIRECTORY.
82953         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82954         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82955         Fall back on chown if open failed with EACCES.
82956
82957         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82958         Report an error at compile-time if only a 1-second nominal clock
82959         resolution is found.
82960
82961         * lib/lchmod.h: New file.
82962         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82963         (make_dir_parents): Use lchown rather than chown, and
82964         lchmod rather than chmod.
82965
82966         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82967         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82968         "proc" reported by n0dalus.
82969
82970         * lib/mountlist.c: Include <limits.h>.
82971         (dev_from_mount_options)
82972         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82973         New function.  It no longer assumes "dev=" has the System V meaning
82974         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82975         (read_file_system_list)
82976         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82977         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82978         dev= in that case.
82979
82980         * lib/posixtm.h (PDS_PRE_2000): New macro.
82981         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82982         allow_century.  All usages changed.  Reject dates outside the range
82983         1969-1999 if PDS_PRE_2000 is used.
82984
82985 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82986
82987         Sync from coreutils.
82988         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82989         (Time of day items): Mention the possibility of leap seconds.
82990         Problem reported by Dr. David Alan Gilbert.
82991
82992 2006-01-09  Jim Meyering  <jim@meyering.net>
82993
82994         Sync from coreutils.
82995
82996         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82997
82998         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82999
83000         * lib/modechange.c (mode_compile): Reject an invalid mode string
83001         that starts with an octal digit.  From Andreas Gruenbacher.
83002
83003         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83004         and dup to open_safer and dup_safer, respectively.
83005         (openat_permissive): Fix typo in comment.
83006
83007         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83008         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83009         (_): Remove; no longer needed.
83010         (openat): Renamed from rpl_openat; no need for rpl_openat
83011         since openat.h renames openat for us.
83012         Replace most of the body with a call to openat_permissive,
83013         to avoid duplicate code.
83014         Port to (probably hypothetical) environments were mode_t is
83015         wider than int.
83016         (openat_permissive): Require mode arg, so that we can check
83017         types better.  Put it just after flags.  Change cwd failure
83018         indicator from pointer-to-bool to pointer-to-errno-value.
83019         All callers changed.
83020         Invoke openat_save_fail and/or openat_restore_fail if
83021         cwd_errno is null, so that openat can call us.
83022         (openat_permissive, fdopendir, fstatat, unlinkat):
83023         Simplify errno handling to avoid some duplicate code,
83024         as it's OK to set errno on success.
83025         * lib/openat.h: Revamp code so that function macros depend on
83026         __OPENAT_PREFIX only, not also on AT_FDCWD.
83027         (openat_ro): Remove.  Caller changed to use openat_permissive.
83028         (openat_permissive): Now a macro, if not a function.
83029         (openat_restore_fail, openat_save_fail): Now always functions,
83030         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83031
83032         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83033         and openat.c.
83034         * lib/mkdirat.c: Include openat-priv.h.
83035         Remove definitions of macros defined therein.
83036         * lib/openat.c: Likewise.
83037
83038         * lib/mkdirat.c (mkdirat): New file and function.
83039         * lib/openat.h (mkdirat): Declare.
83040
83041         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83042
83043         * lib/openat.h (openat_permissive): Declare.
83044         (openat_ro): Define.
83045
83046         * lib/openat.c (EXPECTED_ERRNO): New macro.
83047         (openat_permissive): New function -- used in remove.c rewrite.
83048         (all functions): Set errno just before returning, only if there
83049         was an actual failure.
83050         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83051
83052         Emulate openat-family functions using Linux's procfs, if possible.
83053         Idea and some code based on Ulrich Drepper's glibc changes.
83054
83055         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83056         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83057         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83058         before falling back on save_cwd and restore_cwd.
83059         (fdopendir, fstatat, unlinkat): Likewise.
83060
83061         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83062         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83063
83064         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83065         as second argument to va_arg.  Otherwise, some versions of gcc
83066         warn that `if this code is reached, the program will abort'.
83067
83068 2006-01-09  Jim Meyering  <jim@meyering.net>
83069
83070         Sync from coreutils.
83071         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83072         Require openat-priv.h.
83073
83074 2006-01-09  Bruno Haible  <bruno@clisp.org>
83075
83076         * modules/strnlen (Include): Use strnlen.h.
83077
83078 2006-01-09  Bruno Haible  <bruno@clisp.org>
83079
83080         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83081
83082 2006-01-09  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/sysexit_.h (EX_OK): New macro.
83085         Suggested by Martin Lambers <marlam@marlam.de>.
83086
83087 2006-01-09  Bruno Haible  <bruno@clisp.org>
83088
83089         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83090         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83091
83092 2006-01-09  Bruno Haible  <bruno@clisp.org>
83093
83094         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83095         numbers.
83096
83097 2006-01-09  Bruno Haible  <bruno@clisp.org>
83098
83099         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83100         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83101         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83102         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83103
83104 2006-01-09  Bruno Haible  <bruno@clisp.org>
83105
83106         * build-aux/javacomp.sh.in: New file, moved from lib/.
83107         * modules/javacomp-script (Files): Update.
83108         (configure.ac): Add AC_CONFIG_FILES invocation.
83109         (EXTRA_DIST): Remove variable.
83110
83111         * build-aux/javaexec.sh.in: New file, moved from lib/.
83112         * modules/javaexec (Files): Update.
83113         (configure.ac): Add AC_CONFIG_FILES invocation.
83114         (EXTRA_DIST): Remove javaexec.sh.in.
83115
83116         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83117         * modules/csharpcomp-script (Files): Update.
83118         (configure.ac): Add AC_CONFIG_FILES invocation.
83119         (EXTRA_DIST): Remove variable.
83120
83121         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83122         * modules/csharpexec (Files): Update.
83123         (configure.ac): Add AC_CONFIG_FILES invocation.
83124         (EXTRA_DIST): Remove csharpexec.sh.in.
83125
83126 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83127
83128         Sync from coreutils.
83129
83130         Add POSIX ACL support
83131         * lib/acl.h (copy_acl, set_acl): Add declarations.
83132         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83133         systems other than Linux.
83134         (chmod_or_fchmod): New function: use fchmod when possible,
83135         and chmod otherwise.
83136         (file_has_acl): Add a POSIX ACL implementation, with a
83137         Linux-specific subcase.
83138         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83139         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83140         acls are unsupported.
83141         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83142         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83143         are unsupported.
83144
83145 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83146
83147         Sync from coreutils.
83148         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83149
83150 2006-01-07  Bruno Haible  <bruno@clisp.org>
83151
83152         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83153         gl_EARLY.
83154
83155 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83156
83157         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83158         Problem reported for Mingw by Mark Junker.
83159
83160 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         * README: Gnulib normally doesn't generate a tarball.
83163
83164 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83165
83166         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83167         long int, not int, for nanosecond counts, so that people who are
83168         used to POSIX struct timespec won't be surprised.  Reported by Jim
83169         Meyering.
83170
83171 2005-12-28  Bruno Haible  <bruno@clisp.org>
83172
83173         * build-aux/config.rpath: Update from GNU gettext.
83174
83175 2005-12-16  Jim Meyering  <jim@meyering.net>
83176
83177         * modules/fprintftime: New module.
83178         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83179
83180 2005-12-16  Jim Meyering  <jim@meyering.net>
83181
83182         * m4/fprintftime.m4: New file.
83183
83184 2005-12-16  Jim Meyering  <jim@meyering.net>
83185
83186         * lib/fprintftime.c, lib/fprintftime.h: New files.
83187
83188 2005-12-15  Simon Josefsson  <jas@extundo.com>
83189
83190         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83191         new m4/socklen.m4.
83192
83193 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83194
83195         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83196         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83197
83198 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83199
83200         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83201         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83202         struct uparams is valid. Fall back to the default values if it is
83203         not.
83204
83205 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83206
83207         * modules/argp (Files): Add argp-pin.c
83208         (Depends-on): dirname
83209         (lib_SOURCES): Add argp-pin.c
83210
83211 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83212
83213         * m4/argp.m4:  Check if program_invocation_name and
83214         program_invocation_short_name are declared and define appropriate
83215         macros if they are not.
83216
83217 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83218
83219         * lib/argp-help.c (__argp_base_name): New function
83220         (__argp_short_program_name): Rewrite using __argp_base_name
83221         * lib/argp-namefrob.h: Define program_invocation_name and
83222         program_invocation_short_name if requested
83223         (__argp_base_name): Add prototype
83224         * lib/argp-parse.c (argp_def): Use gettext wrappers
83225         (argp_default_parser): Use __argp_base_name
83226         * lib/argp-pin.c: New file. Defines program_invocation_name and
83227         program_invocation_short_name on systems that lack them.
83228
83229 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83232         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83233         porting problem reported by Georg Schwarz in
83234         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83235
83236 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83239         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83240         porting problem reported by Georg Schwarz in
83241         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83242
83243 2005-12-05  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83246         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83247         Reported by Mark Junker <mjscod@gmx.de>.
83248
83249 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83252         Use implementation from Albert Chin, with some
83253         comments/corrections by Stepan Kasal and myself.
83254
83255 2005-12-02  Bruno Haible  <bruno@clisp.org>
83256
83257         * gnulib-tool (func_import): Accept GPLed build tool modules when
83258         --lgpl is given.
83259         * modules/csharpcomp-script: New file.
83260         * modules/csharpcomp: Depend on it.
83261         * modules/javacomp-script: New file.
83262         * modules/javacomp: Depend on it.
83263         Suggested by Simon Josefsson.
83264
83265 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83266
83267         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83268         statement, to work around an HP-UX 10.20 compiler bug reported by
83269         Peter O'Gorman.
83270
83271 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         * modules/savedir (Depends-on): Add openat.
83274
83275 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83278         (uintmax_t) [defined uintmax_t]: Do not declare.
83279         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83280         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83281         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83282         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83283         sake of portability to weird hosts that C allows (though we don't
83284         know of any practical examples).
83285
83286         * lib/savedir.h (fdsavedir): New decl.
83287         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83288         contains most of the former guts of savedir.
83289         (savedir): Use savedirstream.
83290         Include "openat.h".
83291
83292 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * modules/obstack (Files): Add m4/ulonglong.m4.
83295         Problem reported by Davide Angelocola.
83296
83297 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83298
83299         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83300         coreutils no longer futzes with rounding modes.
83301
83302 2005-11-14  Jim Meyering  <jim@meyering.net>
83303
83304         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83305         replacement of mkstemp.
83306
83307 2005-11-10  Simon Josefsson  <jas@extundo.com>
83308
83309         * lib/readline.c: Remove EOL.
83310
83311 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         * modules/gethrxtime (Depends-on): Add gettime.
83314
83315 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83316
83317         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83318         or gettimeofday; no longer needed.
83319
83320 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83323         time business.
83324         (gethrxtime) [! (HAVE_NANOUPTIME
83325         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83326         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83327         our own approximation.
83328
83329 2005-11-08  Eric Blake  <ebb9@byu.net>
83330
83331         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83332
83333 2005-11-08  Eric Blake  <ebb9@byu.net>
83334
83335         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83336
83337 2005-11-04  Bruno Haible  <bruno@clisp.org>
83338
83339         * gnulib-tool: Implement --update mode.
83340
83341 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83342
83343         Fix porting problem reported by Theodoros V. Kalamatianos.
83344         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83345         Don't assume that futimes failing means we must fail.
83346
83347 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83348
83349         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83350         variables to suggest the intended function of the PATH_MAX check.
83351
83352 2005-10-30  Kean Johnston  <jkj@sco.com>
83353
83354         Trivial changes to support SCO systems.
83355         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83356         as PATH_MAX.
83357         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83358         where __ptr is null when no I/O is pending.
83359
83360 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83361
83362         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83363         leave errno alone.  Problem reported by Dmitry V. Levin.
83364
83365 2005-10-28  Simon Josefsson  <jas@extundo.com>
83366
83367         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83368         Test more.
83369
83370         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83371
83372         * modules/md2, modules/md2-tests: New files.
83373
83374 2005-10-28  Simon Josefsson  <jas@extundo.com>
83375
83376         * m4/inet_ntop.m4: More tests.
83377
83378         * m4/gc-md2.m4, md2.m4: New file.
83379
83380 2005-10-28  Simon Josefsson  <jas@extundo.com>
83381
83382         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83383         "restrict" keywords, as per POSIX.  Protect the function
83384         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83385         Don't use K&R prototypes.  Check the sprintf return values.
83386         Re-define EAFNOSUPPORT if not present.  Indent.
83387
83388         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83389         suggested by Bruno Haible <bruno@clisp.org>.
83390
83391         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83392
83393         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83394
83395         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83396         libgcrypt).
83397
83398         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83399
83400         * lib/md2.h, lib/md2.c: New files.
83401
83402 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83405         errno alone.  Problem reported by Frederic Jolliton.
83406
83407 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         * modules/verify (License): Change from GPL to LGPL.  This is a
83410         tiny module and there are apparently near-equivalents that are
83411         under the BSD license.
83412
83413 2005-10-24  Simon Josefsson  <jas@extundo.com>
83414
83415         * modules/sha1: Relicense to LGPL.
83416
83417 2005-10-24  Simon Josefsson  <jas@extundo.com>
83418
83419         * lib/md4.h: Shrink buffer size, now that we changed the type.
83420
83421 2005-10-23  Simon Josefsson  <jas@extundo.com>
83422
83423         * gnulib-tool (func_import): Fix --tests-base.
83424
83425 2005-10-22  Simon Josefsson  <jas@extundo.com>
83426
83427         * modules/arcfour (Depends-on): Need stdint.
83428
83429 2005-10-22  Simon Josefsson  <jas@extundo.com>
83430
83431         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83432         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83433
83434 2005-10-22  Simon Josefsson  <jas@extundo.com>
83435
83436         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83437         suggested by Bruno Haible <bruno@clisp.org>.
83438
83439 2005-10-22  Simon Josefsson  <jas@extundo.com>
83440
83441         * lib/crc.h: Include stddef.h, for size_t.
83442
83443 2005-10-22  Simon Josefsson  <jas@extundo.com>
83444
83445         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83446         arcfour_context struct (simplify test vector testing in GNU
83447         Shishi).
83448
83449 2005-10-21  Simon Josefsson  <jas@extundo.com>
83450
83451         * modules/des, modules/des-tests: New files.
83452
83453         * modules/gc-des, modules/gc-des-tests: New files.
83454
83455         * tests/test-des.c, tests/test-gc-des.c: New file.
83456
83457 2005-10-21  Simon Josefsson  <jas@extundo.com>
83458
83459         * modules/arctwo, modules/arctwo-tests: New files.
83460
83461         * tests/test-arctwo.c: New file.
83462
83463         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83464
83465         * tests/test-gc-arctwo.c: New file.
83466
83467 2005-10-21  Simon Josefsson  <jas@extundo.com>
83468
83469         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83470         Bruno Haible <bruno@clisp.org>.
83471
83472         * m4/gc-des.m4: New file.
83473
83474 2005-10-21  Simon Josefsson  <jas@extundo.com>
83475
83476         * m4/arctwo.m4: New file.
83477
83478         * m4/gc-arctwo.m4: New file.
83479
83480 2005-10-21  Simon Josefsson  <jas@extundo.com>
83481
83482         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83483         block.
83484
83485 2005-10-21  Simon Josefsson  <jas@extundo.com>
83486
83487         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83488         <bruno@clisp.org>.
83489
83490         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83491
83492         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83493         Bruno Haible <bruno@clisp.org>.
83494
83495         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83496         <bruno@clisp.org>.
83497
83498 2005-10-21  Simon Josefsson  <jas@extundo.com>
83499
83500         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83501
83502 2005-10-21  Simon Josefsson  <jas@extundo.com>
83503
83504         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83505
83506 2005-10-21  Simon Josefsson  <jas@extundo.com>
83507
83508         * lib/des.h, lib/des.c: New files.
83509
83510         * lib/gc-gnulib.c: Support DES.c
83511
83512 2005-10-21  Simon Josefsson  <jas@extundo.com>
83513
83514         * lib/arctwo.h, lib/arctwo.c: New files.
83515
83516         * lib/gc-gnulib.c: Support ARCTWO.
83517
83518 2005-10-21  Simon Josefsson  <jas@extundo.com>
83519
83520         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83521         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83522
83523 2005-10-21  Simon Josefsson  <jas@extundo.com>
83524
83525         * gnulib-tool (func_import, func_create_testdir): Define automake
83526         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83527         Makefile.am snippet),
83528         suggested by Bruno Haible <bruno@clisp.org>.
83529
83530         * modules/gc (Makefile.am): Use it.
83531
83532 2005-10-21  Bruno Haible  <bruno@clisp.org>
83533
83534         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83535         patch.
83536
83537 2005-10-19  Simon Josefsson  <jas@extundo.com>
83538
83539         * tests/test-gc-rijndael.c: New file.
83540
83541         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83542
83543 2005-10-19  Simon Josefsson  <jas@extundo.com>
83544
83545         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83546         interface too.
83547
83548 2005-10-19  Simon Josefsson  <jas@extundo.com>
83549
83550         * tests/test-gc-arcfour.c: New file.
83551
83552         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83553
83554 2005-10-19  Simon Josefsson  <jas@extundo.com>
83555
83556         * modules/gc-md4, modules/gc-md4-tests: New file.
83557
83558         * tests/test-gc-md4.c: New file.
83559
83560 2005-10-19  Simon Josefsson  <jas@extundo.com>
83561
83562         * m4/gc-md4.m4: New file.
83563
83564 2005-10-19  Simon Josefsson  <jas@extundo.com>
83565
83566         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83567         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83568         <kasal@ucw.cz>.
83569
83570 2005-10-19  Simon Josefsson  <jas@extundo.com>
83571
83572         * m4/gc-arcfour.m4: New file.
83573
83574         * m4/gc-rijndael.m4: New file.
83575
83576 2005-10-19  Simon Josefsson  <jas@extundo.com>
83577
83578         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83579
83580 2005-10-19  Simon Josefsson  <jas@extundo.com>
83581
83582         * lib/gc-gnulib.c: Support ARCFOUR.
83583
83584 2005-10-19  Simon Josefsson  <jas@extundo.com>
83585
83586         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83587         support.
83588
83589         * lib/gc.h: Add ECB enum type.
83590
83591         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83592
83593 2005-10-18  Simon Josefsson  <jas@extundo.com>
83594
83595         * tests/test-md5.c: New file.
83596
83597         * modules/md5-tests: New file.
83598
83599 2005-10-18  Simon Josefsson  <jas@extundo.com>
83600
83601         * tests/test-md4.c: New file.
83602
83603         * modules/md4, modules/md4-tests: New files.
83604
83605 2005-10-18  Simon Josefsson  <jas@extundo.com>
83606
83607         * m4/md4.m4: New file.
83608
83609 2005-10-18  Simon Josefsson  <jas@extundo.com>
83610
83611         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83612
83613 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83614
83615         * gnulib-tool (func_create_testdir): Omit the second check whether
83616         BUILT_SOURCES in nonempty.
83617
83618 2005-10-17  Simon Josefsson  <jas@extundo.com>
83619
83620         * tests/test-rijndael.c: New file.
83621
83622 2005-10-17  Simon Josefsson  <jas@extundo.com>
83623
83624         * modules/sha1: Depend on stdint instead of md5.
83625
83626         * modules/md5: Depend on stdint, remove uint32_t.
83627
83628 2005-10-17  Simon Josefsson  <jas@extundo.com>
83629
83630         * modules/gc-sha1-tests: New file.
83631
83632         * tests/test-gc-sha1.c: New file.
83633
83634 2005-10-17  Simon Josefsson  <jas@extundo.com>
83635
83636         * m4/md5.m4: Remove call to uint32_t.m4.
83637
83638 2005-10-17  Simon Josefsson  <jas@extundo.com>
83639
83640         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83641
83642         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83643         md5.h.
83644
83645         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83646
83647         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83648
83649 2005-10-17  Simon Josefsson  <jas@extundo.com>
83650
83651         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83652
83653 2005-10-17  Simon Josefsson  <jas@extundo.com>
83654
83655         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83656
83657 2005-10-17  Simon Josefsson  <jas@extundo.com>
83658
83659         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83660
83661         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83662
83663 2005-10-17  Bruno Haible  <bruno@clisp.org>
83664
83665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83666         that it can also be used in a test.
83667
83668 2005-10-16  Bruno Haible  <bruno@clisp.org>
83669
83670         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83671         TESTS_ENVIRONMENT, so that individual tests can augment it.
83672
83673         * gnulib-tool (func_create_testdir): Use an intermediate target for
83674         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83675         macros, like $(ALLOCA_H), which cannot be passed through the command
83676         line.
83677
83678 2005-10-15  Simon Josefsson  <jas@extundo.com>
83679
83680         * modules/rijndael-tests: New file.
83681
83682         * modules/rijndael: New file.
83683
83684 2005-10-15  Simon Josefsson  <jas@extundo.com>
83685
83686         * m4/rijndael.m4: New file.
83687
83688 2005-10-15  Simon Josefsson  <jas@extundo.com>
83689
83690         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83691
83692         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83693
83694 2005-10-14  Simon Josefsson  <jas@extundo.com>
83695
83696         * tests/test-arcfour.c: New file.
83697
83698         * modules/arcfour, modules/arcfour-tests: New files.
83699
83700 2005-10-14  Simon Josefsson  <jas@extundo.com>
83701
83702         * m4/arcfour.m4: New file.
83703
83704 2005-10-14  Simon Josefsson  <jas@extundo.com>
83705
83706         * lib/arcfour.h, lib/arcfour.c: New files.
83707
83708 2005-10-14  Roland McGrath  <roland@redhat.com>
83709
83710         Import from libc.  [BZ #1331]
83711         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83712         macro argument.
83713         Reported by Matej Vela <vela@debian.org>.
83714
83715 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83718         include <wchar.h>; no longer needed.
83719
83720 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83721
83722         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83723
83724 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83725         and  Ulrich Drepper  <drepper@redhat.com>
83726
83727         Import from libc.
83728         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83729         instead of inline stream orientation test and two separate
83730         function calls.  Pay no attention to USE_IN_LIBIO.
83731
83732 2005-10-13  Simon Josefsson  <jas@extundo.com>
83733
83734         * modules/gc-hmac-md5-tests: New file.
83735
83736         * tests/test-gc-hmac-sha1.c: New file.
83737
83738         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83739
83740         * modules/gc-hmac-md5-tests: New file.
83741
83742         * tests/test-gc-md5.c: New file.
83743
83744         * modules/gc-md5-tests: New file.
83745
83746 2005-10-13  Simon Josefsson  <jas@extundo.com>
83747
83748         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83749         Move memory allocation outside of loop.
83750
83751 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83752
83753         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83754         intermediate directory is in a read-only file system.  Problem
83755         reported by Eric Blake.
83756
83757 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83758
83759         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83760
83761 2005-10-12  Simon Josefsson  <jas@extundo.com>
83762
83763         * tests/test-hmac-sha1.c: New file.
83764
83765         * modules/hmac-sha1-tests: New file.
83766
83767         * modules/hmac-sha1: New file.
83768
83769 2005-10-12  Simon Josefsson  <jas@extundo.com>
83770
83771         * modules/gc-sha1: New file.
83772
83773 2005-10-12  Simon Josefsson  <jas@extundo.com>
83774
83775         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83776
83777         * tests/test-gc-pbkdf2-sha1.c: New file.
83778
83779 2005-10-12  Simon Josefsson  <jas@extundo.com>
83780
83781         * modules/gc-md5, modules/gc-hmac-md5: New files.
83782
83783         * modules/gc (Files): Remove md5, memxor and hmac files.
83784
83785 2005-10-12  Simon Josefsson  <jas@extundo.com>
83786
83787         * m4/gc-pbkdf2-sha1.m4: New file.
83788
83789         * m4/gc-hmac-sha1.m4: New file.
83790
83791         * m4/gc-sha1: New file.
83792
83793         * m4/hmac-sha1.m4: New file.
83794
83795 2005-10-12  Simon Josefsson  <jas@extundo.com>
83796
83797         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83798
83799         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83800
83801 2005-10-12  Simon Josefsson  <jas@extundo.com>
83802
83803         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83804         suggested by Bruno Haible <bruno@clisp.org>.
83805
83806 2005-10-12  Simon Josefsson  <jas@extundo.com>
83807
83808         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83809
83810 2005-10-12  Simon Josefsson  <jas@extundo.com>
83811
83812         * lib/gc-pbkdf2-sha1.c: New file.
83813
83814         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83815
83816 2005-10-12  Simon Josefsson  <jas@extundo.com>
83817
83818         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83819
83820         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83821
83822 2005-10-12  Simon Josefsson  <jas@extundo.com>
83823
83824         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83825         GC_USE_HMAC_MD5, respectively.
83826
83827         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83828         (gc_md5): Fix typo.
83829
83830         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83831
83832         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83833
83834         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83835
83836 2005-10-12  Bruno Haible  <bruno@clisp.org>
83837
83838         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83839         Reported by Stepan Kasal <kasal@ucw.cz>.
83840
83841 2005-10-11  Simon Josefsson  <jas@extundo.com>
83842
83843         * tests/test-crc.c: New file.
83844
83845         * modules/crc, modules/crc-tests: New files.
83846
83847 2005-10-11  Simon Josefsson  <jas@extundo.com>
83848
83849         * m4/crc.m4: New file.
83850
83851 2005-10-11  Simon Josefsson  <jas@extundo.com>
83852
83853         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83854
83855         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83856
83857         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83858
83859 2005-10-11  Simon Josefsson  <jas@extundo.com>
83860
83861         * lib/crc.h, lib/crc.c: New files.
83862
83863         * lib/gc.h (gc_hash_buffer): Add doc.
83864
83865 2005-10-11  Bruno Haible  <bruno@clisp.org>
83866
83867         * modules/c-strcasestr: New file.
83868         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83869
83870 2005-10-11  Bruno Haible  <bruno@clisp.org>
83871
83872         * modules/c-strcase: New file.
83873         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83874
83875 2005-10-11  Bruno Haible  <bruno@clisp.org>
83876
83877         * lib/strcasecmp.c: Include limits.h.
83878         (strcasecmp): Avoid integer overflow on exotic platforms.
83879         * lib/strncasecmp.c: Include limits.h.
83880         (strncasecmp): Avoid integer overflow on exotic platforms.
83881         Reported by Paul Eggert.
83882
83883 2005-10-11  Bruno Haible  <bruno@clisp.org>
83884
83885         * lib/c-strcasestr.h: New file, from GNU gettext.
83886         * lib/c-strcasestr.c: New file, from GNU gettext.
83887
83888 2005-10-11  Bruno Haible  <bruno@clisp.org>
83889
83890         * lib/c-strcase.h: New file, from GNU gettext.
83891         * lib/c-strcasecmp.c: New file, from GNU gettext.
83892         * lib/c-strncasecmp.c: New file, from GNU gettext.
83893
83894 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83895
83896         * modules/mempcpy (License): GPL -> LGPL.
83897         * modules/strchrnul (License): Likewise.
83898         * modules/sysexits (License): Likewise.
83899
83900 2005-10-08  Simon Josefsson  <jas@extundo.com>
83901
83902         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83903
83904 2005-10-07  Simon Josefsson  <jas@extundo.com>
83905
83906         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83907
83908 2005-10-06  Simon Josefsson  <jas@extundo.com>
83909
83910         * tests/test-hmac-md5.c: New file.
83911
83912         * modules/hmac-md5-tests: New file.
83913
83914         * modules/hmac-md5: New file.
83915
83916 2005-10-06  Simon Josefsson  <jas@extundo.com>
83917
83918         * m4/hmac-md5.m4: New file.
83919
83920         * m4/memxor.m4: Require gl_C_RESTRICT.
83921
83922 2005-10-06  Simon Josefsson  <jas@extundo.com>
83923
83924         * lib/memxor.c (memxor): Avoid casts and warnings.
83925
83926 2005-10-06  Simon Josefsson  <jas@extundo.com>
83927
83928         * lib/hmac-md5.c: New file.
83929
83930         * lib/hmac.h: New file.
83931
83932 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83935         promotes to int, not unsigned int, to catch the AIX 5.3
83936         compiler bug.
83937
83938 2005-10-05  Simon Josefsson  <jas@extundo.com>
83939
83940         * modules/memxor: New file.
83941
83942         * modules/iconv (Files): Move config.rpath to havelib, it is used
83943         there.
83944
83945         * modules/havelib (Files): Add config.rpath.
83946
83947 2005-10-05  Simon Josefsson  <jas@extundo.com>
83948
83949         * m4/memxor.m4: New file.
83950
83951 2005-10-05  Simon Josefsson  <jas@extundo.com>
83952
83953         * lib/memxor.c (memxor): Fix compiler error.
83954
83955         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83956         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83957
83958         * lib/memxor.h, lib/memxor.c: New files.
83959
83960         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83961         we assume all systems have it, suggested by Jim Meyering
83962         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83963         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83964         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83965         same reasons.
83966
83967 2005-10-05  Simon Josefsson  <jas@extundo.com>
83968
83969         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83970
83971 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83974         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83975         needed, since the source code now assumes these .h files.
83976
83977 2005-10-05  Derek Price  <derek@ximbiot.com>
83978
83979         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83980
83981 2005-10-05  Bruno Haible  <bruno@clisp.org>
83982
83983         * modules/stdint (License): Change to LGPL.
83984
83985 2005-10-04  Simon Josefsson  <jas@extundo.com>
83986
83987         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83988         D. Baushke" <mdb@gnu.org>.
83989
83990 2005-10-04  Bruno Haible  <bruno@clisp.org>
83991
83992         * lib/verify.h (verify_true): Provide alternative definition for C++.
83993
83994 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83995
83996         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83997         (SSIZE_MAX): New macro, if not already defined.
83998         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83999         than 2 GiB.
84000
84001 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84002
84003         Sync from coreutils.
84004         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84005         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84006         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84007         ULLONG_MAX doesn't work with 2.7.2.1.
84008
84009 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84012         From Ben Pfaff.
84013
84014         * modules/exclude (Depends-on): Depend on verify.
84015         * modules/strtoimax (Depends-on): Likewise.
84016         * modules/utimecmp (Depends-on): Likewise.
84017
84018 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84019
84020         * lib/exclude.c: Include verify.h.
84021         (verify): Remove.  All callers changed to use verify.h's version.
84022         * lib/strtoimax.c: Likewise.
84023         * lib/utimecmp.c: Likewis.e
84024
84025         Sync from coreutils.
84026         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84027         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84028         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84029         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84030         bother returning ENOSYS if settimeofday or stime fails; just let
84031         them return whatever errno they want to return.
84032         * lib/utimens.c: Include unistd.h, for dup2.
84033         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84034         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84035
84036 2005-10-02  Jim Meyering  <jim@meyering.net>
84037
84038         Sync from coreutils.
84039         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84040         from glibc-2.2.5 that fails for read-only files.
84041
84042 2005-10-02  Jim Meyering  <jim@meyering.net>
84043
84044         Sync from coreutils.
84045         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84046         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84047         `#if HAVE_CONFIG_H'.
84048         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84049         Remove AT_FDCWD test.
84050         Do not consume the fd unless successful.
84051         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84052         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84053         block, so that we don't even try to compile it if settimeofday is
84054         available.  This works around a compilation failure on OSF1 V5.1,
84055         due to stime requiring a `long int*' while tv_sec is `int'.
84056
84057 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84058
84059         Sync from coreutils.
84060         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84061         against `yes', rather than just testing for nonempty.
84062
84063 2005-10-01  Simon Josefsson  <jas@extundo.com>
84064
84065         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84066         and Darwin.
84067
84068         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84069         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84070         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84071         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84072         Check if struct addrinfo is declared.
84073
84074 2005-10-01  Simon Josefsson  <jas@extundo.com>
84075
84076         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84077         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84078         AI_* and EAI_* definitions.  Protect function declarations.
84079
84080 2005-10-01  Jim Meyering  <jim@meyering.net>
84081
84082         Sync from coreutils.
84083
84084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84085         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84086         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84088         in the inet and nsl libraries.  Required on Solaris 5.7.
84089
84090 2005-10-01  Jim Meyering  <jim@meyering.net>
84091
84092         Sync from coreutils.
84093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84094         in the inet and nsl libraries.  Required on Solaris 5.7.
84095
84096 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84097
84098         * lib/getdelim.c (getdelim): Remove unused variables.
84099
84100 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84101
84102         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84103         so that the code works even with ancient cpp.  Portability problem
84104         with GCC 2.7.2.1 reported by Thomas M.Ott.
84105
84106 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84107
84108         * modules/regex (Depends-on): Add strcase.
84109
84110         * modules/gethostname (Licence): Change from GPL to LGPL, since
84111         gethostname.c is a trivial implementation of a standard library
84112         function.
84113         * modules/poll (License): Change from GPL to LGPL, since it's
84114         derived from LGPL code.
84115
84116 2005-09-27  Jim Meyering  <jim@meyering.net>
84117
84118         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84119         HAVE_CONFIG_H.
84120
84121         * lib/intprops.h (signed_type_or_expr__): Define.
84122         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84123         for unsigned types.
84124
84125 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84126
84127         * lib/verify.h (verify_expr): Remove, replacing with:
84128         (verify_true): New macro that returns true instead of void.
84129         (verify_type__): Remove.
84130         (verify): Use verify_true rather than verify_type__.
84131
84132 2005-09-26  Bruno Haible  <bruno@clisp.org>
84133
84134         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84135         is necessary.
84136         (lib_SOURCES): Remove mbchar.c.
84137         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84138         (Files): Add m4/mbrtowc.m4.
84139         * modules/mbiter: Likewise.
84140         * modules/mbuiter: Likewise.
84141
84142 2005-09-26  Bruno Haible  <bruno@clisp.org>
84143
84144         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84145         compile mbchar.c if they are not both present.
84146         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84147         * m4/mbiter.m4 (gl_MBITER): Likewise.
84148         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84149         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84150         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84151
84152 2005-09-25  Jim Meyering  <jim@meyering.net>
84153
84154         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84155         also uses socklen_t.
84156
84157 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * lib/utimens.c (ENOSYS): Define if not already defined.
84160         (futimens): Support having a null PATH if the file descriptor
84161         is nonnegative.
84162
84163         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84164         Remove.
84165         (__attribute): Define to empty unless GCC 3.1 or later.
84166         This works around a core dump on OpenBSD 3.4, which has GCC
84167         2.95.3, which dumps core when given __attribute__(()).  It also
84168         simplifies other tests, since we really don't want to bother with
84169         worrying about which ancient version of GCC supported what.
84170         Original problem reported by Yoann Vandoorselaere, with part of
84171         the fix suggested by Derek Price.
84172
84173 2005-09-24  Jim Meyering  <jim@meyering.net>
84174
84175         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84176         so we can once again use a positive bitfield width of 1 -- now we
84177         don't have to explain why we were using a bitfield width of 2.
84178
84179 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84182         and similarly for the other external symbols.  Problem reported
84183         by James Gallager.
84184
84185         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84186         bug reported by Jim Meyering.
84187
84188         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84190         not needed, since socklen is a prerequisite module.
84191
84192 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84193
84194         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84195         Problem reported by Eric Blake.
84196         (getaddrinfo): Initialize se so that it's not garbage.
84197         Redo internal storage allocation so that it doesn't make unportable
84198         assumptions about alignment.
84199         Fix a memory leak.
84200
84201         * lib/utimens.c (futimens): Use futimesat if available.
84202         Prefer it to futimes since it doesn't have the futimes bug.
84203
84204         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84205         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84206         Instead, declare a function that returns a pointer to an array,
84207         and use verify_type__ to declare the size of the array.
84208         Problem and germ of a solution reported by Bruno Haible.
84209         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84210         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84211
84212 2005-09-23  Jim Meyering  <jim@meyering.net>
84213
84214         Sync from coreutils.
84215         Correct build failure (socklen_t not defined) on at least
84216         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84217         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84218
84219 2005-09-23  Jim Meyering  <jim@meyering.net>
84220
84221         * modules/getaddrinfo (Depends-on): Add socklen.
84222
84223 2005-09-23  Bruno Haible  <bruno@clisp.org>
84224
84225         * tests/test-verify.c: New file.
84226
84227 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         Sync from coreutils.
84230
84231         * modules/argmatch (Depends-on): Add verify.
84232         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84233         unistd-safer.
84234         * modules/save-cwd (Depends-on): Likewise.
84235
84236         * modules/openat (Files): Add lib/openat-die.c.
84237         (Depends-on): Remove error, exitfail.
84238         Add dirname.
84239
84240         * modules/verify: New file.
84241         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84242         with "verify" module.
84243
84244 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         Sync from coreutils.
84247
84248         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84249         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84250         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84251         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84252         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84253         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84254         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84255         Don't bother checking for string.h, stdlib.h, unistd.h.
84256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84257         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84258         module's job.
84259         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84260         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84261
84262         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84263         (gl_GETDATE): Use it.
84264
84265         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84266
84267 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         Sync from coreutils.
84270
84271         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84272         stat-time.h.
84273         * lib/argmatch.h: Include verify.h
84274         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84275         (ARGMATCH_ASSERT): Remove; unused.
84276         * lib/canonicalize.c: Assume STDC_HEADERS.
84277         * lib/exclude.c: Include "strcase.h".
84278         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84279         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84280         and stdio-safer.h.
84281         (getusershell): Call fopen, not fopen_safer.
84282         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84283         Do not include unistd-safer.h.
84284         (save_cwd): Don't call fd_safer; no longer needed
84285         now that we include fcntl--.h.
84286
84287         * lib/getdate.y (relative_time): New type.
84288         (RELATIVE_TIME_0): New constant.
84289         (parser_control): Use relative_time instead of doing it ourselves.
84290         (%union): Add new relative_time rel member.
84291         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84292         Now typeless.
84293         (relunit, relunit_snumber): Now of type rel.
84294         (zone, rel, relunit, get_date): Adjust to above changes.
84295
84296         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84297         Do not include unistd-safer.h.
84298         (getloadavg): Don't call fd_safer; no longer needed
84299         now that we include fcntl--.h.
84300
84301         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84302         (make_dir_parents): Treat ENOSYS like EEXIST.
84303
84304         Improve quality of diagnostics on restore_cwd failure.
84305         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84306         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84307         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84308         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84309         each time through the loop.  Do not diagnose restore_cwd failure;
84310         that is the caller's job (and perhaps the caller does not care).
84311
84312         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84313         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84314         If the file already exists but is not a directory, don't bother
84315         to try to make its parents.
84316         Close potential file descriptor leak if we can't chdir("/") (!).
84317         Don't always return true if chdir($PWD) fails; return true only
84318         if the requested action was done successfully (except for the
84319         chdir($PWD)).
84320         Don't log final directory unless we actually made it.
84321         Refactor to avoid duplicate code to fix up permissions.
84322         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84323
84324         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84325         to make it a bit faster and (I hope) clearer.
84326         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84327         Fix bug in formats like %2N.
84328
84329         * lib/verify.h: New file.
84330
84331 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         Sync from coreutils.
84334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84335
84336 2005-09-22  Jim Meyering  <jim@meyering.net>
84337
84338         Sync from coreutils.
84339
84340         * m4/lstat.m4 (gl_FUNC_LSTAT):
84341         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84342         Remove obsolete comment.
84343         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84344         * m4/xstrtod.m4: Likewise.
84345
84346         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84347
84348 2005-09-22  Jim Meyering  <jim@meyering.net>
84349
84350         Sync from coreutils.
84351
84352         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84353
84354         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84355         the .tm_year member, since otherwise gcc-4.0 would now warn about
84356         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84357
84358         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84359         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84360
84361         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84362         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84363         when run in a time zone for which daylight savings time is in effect
84364         for the starting date.
84365
84366         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84367         stop us from restricting permissions of just-created absolute-named
84368         directories.
84369         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84370         to restore initial working directory.
84371         * lib/mkdir-p.c (make_dir_parents): New parameter:
84372         different_working_dir, to tell caller if/when we change the working
84373         directory and are unable to return to the initial one.
84374         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84375         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84376         `return false'.  This fixes a bug introduced on 2004-07-30.
84377
84378         * lib/openat.c (fdopendir): Be sure to close the supplied
84379         file descriptor before returning.  This makes our replacement
84380         implementation a little closer to Solaris's, where fdopendir
84381         ties the file descriptor to the returned DIR* pointer.
84382         * lib/openat.c (unlinkat): New function.
84383         * lib/openat.h (unlinkat): Add prototype.
84384         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84385         (openat_restore_fail): Rename from openat_restore_die.
84386         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84387
84388         Provide an alternative to exiting immediately upon save_cwd or
84389         restore_cwd failure.  Now, an application can arrange e.g.,
84390         to perform a longjump in that case.
84391         * lib/openat.c: Include dirname.h.
84392         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84393         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84394         and openat_restore_die rather than calling error directly.
84395         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84396
84397         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84398         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84399         define.
84400
84401         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84402         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84403                             int utc, int nanoseconds);
84404         Background:
84405         date should not have to allocate a megabyte of virtual memory to
84406         handle a format argument like +%1048575T.  When implemented with
84407         strftime, it must allocate such a buffer, use strftime to fill it
84408         in, print it, then free it.
84409         With fprintftime, it simply prints everything and exits.
84410         With no need for memory allocation, that's one fewer way to fail.
84411         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84412         optional field width, not before, so we accept %9:z, not %:9z.
84413         (my_strftime): Be sure to use L_('x') for literals.
84414
84415         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84416         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84417         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84418         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84419         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84420         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84421         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84422         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84423         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84424         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84425         * lib/xgethostname.c, lib/xreadlink.c:
84426         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84427
84428         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84429         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84430         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84431         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84432         and don't include <sys/file.h>).
84433
84434 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84435
84436         Sync from coreutils.
84437
84438         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84439         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84440         [!LDAV_DONE]: Avoid unused variable warning.
84441
84442 2005-09-21  Bruno Haible  <bruno@clisp.org>
84443
84444         * lib/unicodeio.h (unicode_to_mb): New declaration.
84445
84446 2005-09-20  Derek Price  <derek@ximbiot.com>
84447
84448         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84449         getaddrinfo.h.
84450
84451 2005-09-20  Bruno Haible  <bruno@clisp.org>
84452
84453         * gnulib-tool: Remove trailing slashes from the values specified for
84454         --source-base, --m4-base, --tests-base, --aux-dir.
84455         Suggested by Simon Josefsson <jas@extundo.com>.
84456
84457 2005-09-20  Bruno Haible  <bruno@clisp.org>
84458
84459         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84460         func_modules_to_filelist, func_import, func_create_testdir): Make all
84461         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84462         change when gnulib-tool is invoked in a different locale.
84463
84464 2005-09-19  Simon Josefsson  <jas@extundo.com>
84465
84466         * m4/socklen.m4: Fix typo.
84467
84468 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84469
84470         Use a consistent style for including <config.h>.
84471         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84472         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84473         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84474         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84475         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84476         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84477         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84478         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84479         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84480         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84481         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84482         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84483         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84484         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84485         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84486         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84487         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84488         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84489         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84490         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84491         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84492         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84493         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84494         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84495         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84496         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84497         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84498         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84499         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84500         lib/xstrtoumax.c, lib/yesno.c:
84501         Standardize inclusion of config.h.
84502         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84503         lib/inttostr.h:  Removed inclusion of config.h from header files.
84504         * lib/inttostr.c:  Adjusted in-tree users.
84505         * lib/timespec.h: Remove superfluous warning to include config.h.
84506         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84507         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84508         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84509         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84510         config.h with HAVE_CONFIG_H.
84511
84512 2005-09-19  Jim Meyering  <jim@meyering.net>
84513
84514         * modules/pathmax (License): Change to LGPL.
84515
84516 2005-09-19  Derek Price  <derek@ximbiot.com>
84517
84518         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84519
84520 2005-09-19  Bruno Haible  <bruno@clisp.org>
84521
84522         * gnulib-tool (import): Provide default for --tests-base.
84523
84524 2005-09-19  Bruno Haible  <bruno@clisp.org>
84525
84526         * doc/quote.texi: New file, extracted from gnulib.texi.
84527         * doc/ctime.texi: New file, extracted from gnulib.texi.
84528         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84529         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84530         * doc/gnulib.texi: Include them.
84531
84532 2005-09-18  Bruno Haible  <bruno@clisp.org>
84533
84534         Portability fix.
84535         * gnulib-tool (func_readlink): New function.
84536         (func_ln_if_changed): Use it.
84537
84538 2005-09-18  Bruno Haible  <bruno@clisp.org>
84539
84540         * gnulib-tool: Support --with-tests also with --import.
84541         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84542         (func_import): Use variables $testsbase and $inctests. Emit a
84543         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84544         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84545         SUBDIRS += $testsdir.
84546         (func_create_testdir): Update.
84547
84548 2005-09-18  Bruno Haible  <bruno@clisp.org>
84549
84550         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84551         instead of $dry_run.
84552         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84553         (func_ln_if_changed): Don't handle dry-run here.
84554         (func_import): In dry-run mode, detect more precisely which actions
84555         would be performed, and don't use "...ing" verbs.
84556
84557 2005-09-18  Bruno Haible  <bruno@clisp.org>
84558
84559         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84560         (func_import): Use join on two temporary files instead of three nested
84561         loops, in order to determine which files are new or old.
84562
84563 2005-09-18  Bruno Haible  <bruno@clisp.org>
84564
84565         * gnulib-tool (func_import): Comment out code that spits out the
84566         new files with --dry-run.
84567
84568 2005-09-18  Bruno Haible  <bruno@clisp.org>
84569
84570         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84571
84572 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84573
84574         * lib/stat-time.h: New file.
84575         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84576         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84577         in a different way.
84578         (timespec_cmp): New function.
84579         * lib/utimecmp.c: Include stat-time.h.
84580         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84581         members exist, not on the obsolescent ST_MTIM_NSEC.
84582         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84583
84584 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84587
84588 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * MODULES.html.sh (File system functions): Add stat-time.
84591         * modules/stat-time: New file.
84592         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84593         is now done in a different way, by the stat-time module.
84594         * modules/utimecmp (Depends-on): Add stat-time.
84595
84596 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84597
84598         * m4/st_mtim.m4: Remove.  Superseded by...
84599         * m4/stat-time.m4: New file.
84600         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84601         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84602
84603 2005-09-15  Derek Price  <derek@ximbiot.com>
84604
84605         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84606
84607 2005-09-15  Derek Price  <derek@ximbiot.com>
84608
84609         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84610         * lib/regex_internal.c: Ditto, using this...
84611         (__GNUC_PREREQ): ...new macro.
84612         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84613         using...
84614         (__GNUC_PREREQ): ...this new macro.
84615
84616         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84617
84618 2005-09-15  Derek Price  <derek@ximbiot.com>
84619             Paul Eggert  <eggert@cs.ucla.edu>
84620
84621         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84622         changes, consolidating in...
84623         * lib/regex_internal.h: ...this file.
84624
84625 2005-09-13  Jim Meyering  <jim@meyering.net>
84626
84627         * lib/canon-host.c: Filter through gnu indent and reword comments
84628         slightly.
84629         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84630
84631 2005-09-13  Derek Price  <derek@ximbiot.com>
84632
84633         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84634         failure.
84635         Reported by Jim Meyering  <jim@meyering.net>.
84636
84637 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84638
84639         * lib/base64.c: Typo.
84640         (base64_encode): Put b64str in initialized data section.
84641
84642 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         Merge glibc and coreutils changes into gnulib, plus a few
84645         extra fixes.
84646         * lib/md5.c: Use #error rather than a string.
84647         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84648         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84649         (__attribute__): Define to empty for non recent-GCC.
84650         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84651         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84652         Renamed from their non-__ counterparts, with new macros replacing
84653         them if not _LIBC.  Add __THROW attribute.
84654         (rol): Remove.
84655         (struct md5_ctx): Align buffer if using GCC.
84656         * lib/sha1.h (struct sha1_ctx): Likewise.
84657         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84658         The old name was backwards.
84659         (NOTSWAP): Remove; not used.
84660         (rol): New macro, moved here from md5.h.
84661         (sha1_process_block): Remove a FIXME that doesn't make sense.
84662
84663 2005-09-12  Derek Price  <derek@ximbiot.com>
84664
84665         Return usable errors from canon-host.
84666         * lib/canon-host.h: New file.
84667         * lib/canon-host.c (canon_host): Wrap...
84668         (canon_host_r): ...this new function, which now relies exclusively on
84669         getaddrinfo.
84670         (ch_strerror): New function.
84671         (last_cherror): New global.
84672         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84673         interface.
84674         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84675         void *.
84676         (freeaddrinfo): Free ai->ai_canonname when set.
84677
84678 2005-09-12  Derek Price  <derek@ximbiot.com>
84679
84680         Make canon-host require getaddrinfo.
84681         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84682         AC_LIBSOURCE canon-host.h.  Call...
84683         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84684         gl_GETADDRINFO.
84685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84686
84687 2005-09-12  Derek Price  <derek@ximbiot.com>
84688
84689         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84690         LGPL.
84691         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84692
84693 2005-09-12  Derek Price  <derek@ximbiot.com>
84694
84695         * lib/gai_strerror.c: Include config.h when available.  Include
84696         getaddrinfo.h before other headers to test interface.
84697         Reported by Larry Jones <lawrence.jones@ugs.com>.
84698
84699 2005-09-12  Derek Price  <derek@ximbiot.com>
84700             Paul Eggert  <eggert@cs.ucla.edu>
84701
84702         * modules/glob (Files): Add glob-libc.h.
84703
84704 2005-09-12  Derek Price  <derek@ximbiot.com>
84705             Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84708         glob_.h, glob-libc.h.
84709         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84710
84711 2005-09-12  Derek Price  <derek@ximbiot.com>
84712             Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84715         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84716         protecting things that should be done only in gnulib contexts.
84717         * lib/glob_.h: New file, containing only the glob things needed for
84718         gnulib.
84719         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84720         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84721         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84722         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84723         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84724         and to respect the namespace rules better.
84725
84726 2005-09-08  Simon Josefsson  <jas@extundo.com>
84727
84728         * modules/socklen: New file.
84729
84730 2005-09-08  Simon Josefsson  <jas@extundo.com>
84731
84732         * m4/socklen.m4: New file.
84733
84734 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * modules/utimens (Files): Add m4/utimbuf.m4, since
84737         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84738         Reported by Sergey Poznyakoff.
84739
84740 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84741
84742         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84743         definitions, since that's the preferred style in glibc.
84744         Fix a minor spacing issue, and update copyright notice to match
84745         glibc's.
84746
84747 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84750
84751 2005-09-06  Simon Josefsson  <jas@extundo.com>
84752
84753         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84754         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84755
84756 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84759         warning.
84760
84761 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * config/srclist.txt: Add glibc bug 1302.
84764
84765 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         Change bitset word type from unsigned int to unsigned long int,
84768         as this has better performance on typical 64-bit hosts.
84769         Port bitset code to hosts with unusual word sizes.
84770         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84771         (build_collating_symbol):
84772         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84773         argument is a bitset.  This is merely a style issue, but it makes
84774         it clearer that an entire array is expected.
84775         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84776         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84777         Port to the case where bitset_word is not the same as unsigned int.
84778         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84779         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84780         Likewise.
84781         * lib/regexec.c (check_dst_limits_calc_pos_1,
84782         check_subexp_matching_top):
84783         (build_trtable, group_nodes_into_DFAstates):
84784         Likewise.
84785         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84786         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84787         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84788         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84789         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84790         * lib/regcomp.c (optimize_subexps, lower_subexp):
84791         Work even if bitset_word has holes in its bitwise representation.
84792         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84793         * lib/regexec.c (check_dst_limits_calc_pos_1,
84794         check_subexp_matching_top):
84795         Likewise.
84796         * lib/regex_internal.c (re_string_reconstruct):
84797         Don't assume UCHAR_MAX == 255.
84798         * lib/regex_internal.h (bitset_set_all): Likewise.
84799         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84800         All uses changed.
84801         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84802         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84803         All uses changed.
84804         (BITSET_WORD_MAX): New macro.
84805         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84806         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84807         (bitset_empty, bitset_copy):
84808         Prefer sizeof (bitset) to multiplying it out ourselves.
84809         (bitset_not_merge): Remove; unused.
84810         (bitset_contain): Return bool, not unsigned int with one bit on.
84811         All callers changed.
84812         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84813         alignment than re_node_set; do this by defining a new internal
84814         type struct dests_alloc and using it to allocate memory.
84815
84816 2005-09-05  Bruno Haible  <bruno@clisp.org>
84817
84818         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84819         links.
84820
84821 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84822
84823         * modules/size_max (Makefile.am): Add size_max.h
84824
84825 2005-09-04  Derek Price  <derek@ximbiot.com>
84826
84827         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84828
84829 2005-09-03  Simon Josefsson  <jas@extundo.com>
84830
84831         * gnulib-tool: Fix typo.
84832
84833 2005-09-03  Simon Josefsson  <jas@extundo.com>
84834
84835         * config/srclist.txt: Add glibc bug 1293.
84836
84837 2005-09-03  Derek Price  <derek@ximbiot.com>
84838
84839         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84840         From Larry Jones <lawrence.jones@ugs.com>.
84841
84842 2005-09-02  Simon Josefsson  <jas@extundo.com>
84843
84844         * modules/socklen: New file.
84845
84846 2005-09-02  Simon Josefsson  <jas@extundo.com>
84847
84848         * modules/havelib: New module.
84849
84850         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84851         Use havelib.
84852
84853 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84854
84855         Check for arithmetic overflow when calculating sizes, to prevent
84856         some buffer-overflow issues.  These patches are conservative, in the
84857         sense that when I couldn't determine whether an overflow was possible,
84858         I inserted a run-time check.
84859         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84860         macros.
84861         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84862         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84863         (re_xnrealloc, re_x2nrealloc): New inline functions.
84864         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84865         parse_bracket_exp):
84866         (build_equiv_class, build_charclass): Check for arithmetic overflow
84867         in size expression calculations.
84868         * lib/regex_internal.c (re_string_realloc_buffers):
84869         (build_wcs_upper_buffer, re_node_set_add_intersect):
84870         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84871         (re_dfa_add_node, register_state): Likewise.
84872         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84873         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84874         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84875         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84876
84877 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84880         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84881
84882 2005-09-02  Bruno Haible  <bruno@clisp.org>
84883
84884         Support for lib vs. lib64 distinction on biarch platforms.
84885         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84886         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84888
84889 2005-09-02  Bruno Haible  <bruno@clisp.org>
84890
84891         * gnulib-tool (import): In the other first-use case, provide defaults
84892         as well.
84893
84894 2005-09-02  Bruno Haible  <bruno@clisp.org>
84895
84896         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84897         patches not yet found in the latest gettext release.
84898
84899 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84900
84901         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84902         to avoid a collision with bits/local_lim.h in glibc.
84903         All uses changed.  Problem reported by Dmitry V. Levin in
84904         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84905
84906         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84907         bugs in int versus size_t comparisons.
84908         (re_string_context_at): Fix bug where the code assumed that
84909         Idx is signed.
84910
84911         Use bool where appropriate.
84912         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84913         All callers changed.
84914         (calc_eclosure_iter): Likewise, for ROOT arg.
84915         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84916         (build_charclass_op): Likewise, for NON_MATCH arg.
84917         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84918         (re_string_construct_common): Likewise, for ICASE arg.
84919         * lib/regexec.c (re_search_2_stub, re_search_stub):
84920         Likewise, for RET_LEN arg.
84921         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84922         (set_regs): Likewise, for FL_BACKTRACK arg.
84923         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84924         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84925         (calc_eclosure_iter, parse_bracket_exp):
84926         Use bool for internal variables that are booleans.
84927         * lib/regexec.c (re_search_internal, check_matching,
84928         proceed_next_node):
84929         (set_regs, build_sifted_states, sift_states_bkref):
84930         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84931         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84932         (find_collation_sequence_value):
84933         Likewise.
84934         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84935         (re_node_set_compare):
84936         Return bool, not int. All callers changed.
84937         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84938         (build_trtable, check_node_accept): Likewise.
84939         * lib/regex_internal.h: Include stdbool.h.
84940
84941         Fix bugs uncovered when converting to bool.
84942         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84943         failure instead of charging ahead blindly.
84944         * lib/regex_internal.c (register_state): Likewise.
84945         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84946         for freeing internal storage.
84947         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84948         bitset pieces used as boolean, to avoid undefined behavior
84949         on hosts that do int overflow checking.
84950
84951 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * config/srclist.txt: Add glibc bugs 1285-1287.
84954
84955 2005-09-01  Jim Meyering  <jim@meyering.net>
84956
84957         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84958         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84959         Require gl_STAT_MACROS, too.
84960
84961 2005-09-01  Bruno Haible  <bruno@clisp.org>
84962
84963         * gnulib-tool (import): In the first-use case, provide defaults.
84964
84965 2005-09-01  Bruno Haible  <bruno@clisp.org>
84966
84967         * gnulib-tool (func_import): Remove the .tmp files.
84968
84969 2005-09-01  Bruno Haible  <bruno@clisp.org>
84970
84971         * gnulib-tool (func_import): Fix handling of symbolic links.
84972
84973 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84974
84975         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84976         old glibc regex code mishandles strings longer than 2**31 bytes.
84977         This patch fixes this when the regex code is used in gnulib
84978         (i.e., outside glibc).
84979
84980         This patch should not affect the use of the regex code inside
84981         glibc.  No doubt this problem also needs to be handled for glibc
84982         as well, but the result will be an incompatible change to the
84983         glibc ABI, and the old ABI will have to be supported too.  That
84984         can be the the subject for another patch.
84985
84986         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84987         governing whether the rest of this patch is active.  By default,
84988         the macro is disabled and the patch has no effect.
84989         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84990         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84991         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84992         (re_match_2, re_set_registers): Use the new types.
84993         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84994         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84995         New macros.
84996         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84997         (re_string_context_at, bin_tree_t, re_dfastate_t):
84998         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84999         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85000         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85001         (re_string_char_size_at, re_string_wchar_at):
85002         (re_string_elem_size_at):
85003         Use the new types and macros to port to 64-bit hosts.
85004         Use unsigned types for internal values, so that the code
85005         mostly works even for arrays larger than SSIZE_MAX.
85006         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85007         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85008         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85009         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85010         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85011         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85012         (calc_inveclosure, parse_dup_op, build_range_exp):
85013         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85014         (fetch_number, create_token_tree, mark_opt_subexp):
85015         Likewise.
85016         * lib/regex_internal.c (re_string_construct_common,
85017         create_ci_newstate):
85018         (create_cd_newstate, re_string_allocate, re_string_construct):
85019         (re_string_realloc_buffers, build_wcs_upper_buffer):
85020         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85021         (re_string_reconstruct, re_string_peek_byte_case):
85022         (re_string_fetch_byte_case, re_string_context_at):
85023         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85024         (re_node_set_init_copy, re_node_set_add_intersect):
85025         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85026         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85027         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85028         (re_acquire_state, re_acquire_state_context, register_state):
85029         Likewise.
85030         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85031         search_cur_bkref_entry):
85032         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85033         (re_search_internal, re_search_2_stub, re_search_stub)
85034         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85035         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85036         (update_cur_sifted_state, check_dst_limits):
85037         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85038         (check_subexp_limits, sift_states_bkref, merge_state_array):
85039         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85040         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85041         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85042         (expand_bkref_cache, check_node_accept_bytes):
85043         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85044         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85045         (acquire_init_state_context, check_halt_node_context):
85046         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85047         (sift_states_backward, clean_state_log_if_needed):
85048         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85049         (find_recover_state, transit_state_sb, transit_state_mb):
85050         (transit_state_bkref, build_trtable, match_ctx_clean):
85051         Likewise.
85052         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85053         to work around an assumption that REG_MISSING is negative.
85054
85055         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85056         (seek_collating_symbol_entry) [defined _LIBC]:
85057         (lookup_collation_sequence_value) [defined _LIBC]:
85058         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85059         Use prototypes rather than old-style function definitions.
85060         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85061         (transit_state_sb) [0]:
85062         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85063
85064         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85065         rm_eo.
85066
85067         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85068         (optimize_subexps, lower_subexp):
85069         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85070         since the signed shift might overflow.  Use 1u<<31 instead.
85071         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85072         Likewise.
85073         * lib/regexec.c (check_dst_limits_calc_pos_1,
85074         check_subexp_matching_top): Likewise.
85075
85076         * lib/regcomp.c (optimize_subexps, lower_subexp):
85077         Use CHAR_BIT rather than 8, for clarity.
85078         * lib/regexec.c (check_dst_limits_calc_pos_1):
85079         (check_subexp_matching_top): Likewise.
85080         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85081         have to worry about portability issues when shifting it left.
85082         Remove no-longer-needed test for table_size > 0.
85083         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85084         in a word, as the resulting behavior is undefined.
85085         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85086         in one case, a <= should have been an <, and in another case the
85087         whole test was missing.
85088         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85089         the standard name CHAR_BIT.
85090         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85091         this is not true on one's complement and signed-magnitude hosts.
85092
85093         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85094         next_last_offset.
85095         (struct re_dfa_t): Remove unused member states_alloc.
85096         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85097
85098 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85101         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85102         and large-file glibc and in 32-bit large-file Solaris.
85103
85104 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85105
85106         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85107         lengths fit in regoff_t; this isn't true if regoff_t is the same
85108         width as size_t.
85109         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85110         (= START + RANGE) instead of RANGE.  This avoids overflow
85111         problems when regoff_t is the same width as size_t.
85112         All callers changed.
85113         (re_search_2_stub): Check for overflow when adding the
85114         sizes of the two strings.
85115         (re_search_stub): Check for overflow when adding START
85116         to RANGE; if it occurs, substitute the extreme value.
85117
85118 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85121
85122 2005-08-31  Jim Meyering  <jim@meyering.net>
85123
85124         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85125         a pointer-to-const.
85126         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85127         (register_state): Likewise.
85128         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85129         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85130         (group_nodes_into_DFAstates): Likewise.
85131
85132 2005-08-31  Jim Meyering  <jim@meyering.net>
85133
85134         * check-module: Add a FIXME comment.
85135
85136 2005-08-31  Eric Blake  <ebb9@byu.net>
85137
85138         * modules/unistd-safer (Files): Add unistd--.h.
85139         * modules/stdio-safer (Files): Add stdio--.h.
85140
85141 2005-08-31  Derek Price  <derek@ximbiot.com>
85142
85143         * lib/getdelim.c (getdelim): Return EOF on EOF.
85144         Reported by Larry Jones <lawrence.jones@ugs.com>.
85145
85146 2005-08-31  Bruno Haible  <bruno@clisp.org>
85147
85148         Avoid unnecessary diffs in the generated lib/Makefile.am.
85149         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85150         the generated files.
85151         (func_import): Don't set cmd.
85152
85153 2005-08-31  Bruno Haible  <bruno@clisp.org>
85154
85155         * lib/strstr.c: Include <stddef.h>, for NULL.
85156         * lib/strcasestr.c: Likewise.
85157         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85158
85159 2005-08-31  Bruno Haible  <bruno@clisp.org>
85160
85161         * gnulib-tool: New option --macro-prefix.
85162         (func_import): Use macro_prefix.
85163         (import): Handle option --macro-prefix.
85164
85165 2005-08-31  Bruno Haible  <bruno@clisp.org>
85166
85167         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85168         Also use new variables cached_lgpl, cached_libtool.
85169
85170 2005-08-31  Bruno Haible  <bruno@clisp.org>
85171
85172         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85173         always instantiating them.
85174
85175 2005-08-31  Bruno Haible  <bruno@clisp.org>
85176
85177         * gnulib-tool (func_import): Read the previous cached settings
85178         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85179         earlier added by gnulib but are now dropped. Warn when a gnulib file
85180         overwrites a non-gnulib file.
85181
85182 2005-08-31  Bruno Haible  <bruno@clisp.org>
85183
85184         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85185         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85186         projects that don't keep autogenerated files in CVS. Put into
85187         actioncmd only the specified modules, not the transitive closure.
85188
85189 2005-08-31  Bruno Haible  <bruno@clisp.org>
85190
85191         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85192         Create directories that shall be filled.
85193         (import): Don't look for gl_* macros in configure.ac. Recurse across
85194         all directories containing a gnulib-cache.m4 files, if meaningful.
85195
85196 2005-08-31  Bruno Haible  <bruno@clisp.org>
85197
85198         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85199         (import): Set seen_libtool when we see gl_LIBTOOL.
85200
85201 2005-08-31  Bruno Haible  <bruno@clisp.org>
85202
85203         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85204         declaration macro definitions from generated gnulib.m4.
85205
85206 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85207
85208         * lib/iconvme.h: Add prototype for iconv_alloc.
85209
85210 2005-08-29  Simon Josefsson  <jas@extundo.com>
85211
85212         * lib/iconvme.c: Fix errno.
85213
85214 2005-08-29  Bruno Haible  <bruno@clisp.org>
85215
85216         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85217         that it works when the directory contains spaces.
85218
85219 2005-08-29  Bruno Haible  <bruno@clisp.org>
85220
85221         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85222
85223 2005-08-29  Bruno Haible  <bruno@clisp.org>
85224
85225         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85226         Emit more advice.
85227
85228 2005-08-29  Bruno Haible  <bruno@clisp.org>
85229         and Stepan Kasal  <kasal@ucw.cz>
85230
85231         * check-module: If more parameters are given, check each of them
85232         separately; add more exceptions, as noted by Jim Meyering.
85233         (check_module): New procedure.
85234         (%exempt_header): Now contains all exceptions.
85235
85236 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85237
85238         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85239
85240 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85241
85242         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85243
85244 2005-08-28  Bruno Haible  <bruno@clisp.org>
85245
85246         * m4/gnulib-tool.m4: New file.
85247
85248 2005-08-27  Jim Meyering  <jim@meyering.net>
85249
85250         * modules/unistd-safer (Files): Add pipe-safer.c.
85251         * modules/fcntl-safer (Files): Add creat-safer.c.
85252
85253 2005-08-27  Jim Meyering  <jim@meyering.net>
85254
85255         * m4/stdlib-safer.m4: New file.  From coreutils.
85256         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85257         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85258         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85259         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85260         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85261
85262 2005-08-27  Jim Meyering  <jim@meyering.net>
85263
85264         * lib/fopen-safer.c: Merge minor changes from coreutils.
85265         * lib/dup-safer.c: Likewise.
85266         * lib/fd-safer.c: Likewise.
85267
85268         Merge from coreutils.
85269         * lib/stdio--.h: New file.
85270         * lib/stdlib--.h: New file.
85271         * lib/mkstemp-safer.c: New file.
85272
85273         GNU tar needs these.
85274         * lib/pipe-safer.c: New file.
85275         * lib/creat-safer.c: New file.
85276         * lib/fcntl--.h (creat): Define to creat_safer.
85277         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85278         * lib/unistd--.h (pipe): Define to pipe_safer.
85279         * lib/unistd-safer.h: Declare pipe_safer.
85280
85281 2005-08-26  Simon Josefsson  <jas@extundo.com>
85282
85283         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85284         Haible <bruno@clisp.org>.
85285
85286 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/regex_internal.h: Remove all references to
85289         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85290         or better.
85291         (bitset_not, bitset_merge, bitset_not_merge):
85292         (bitset_mask, re_string_allocate, re_string_construct):
85293         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85294         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85295         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85296         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85297         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85298         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85299         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85300         (re_acquire_state_context):
85301         Remove unnecessary forward decls.
85302         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85303         Put __attribute at function definition,
85304         now that the function decl has been removed.
85305         * lib/regex_internal.c (re_string_peek_byte_case):
85306         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85307         Likewise.
85308
85309 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85310
85311         * m4/regex.m4: Add AC_PREREQ(2.50).
85312         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85313
85314 2005-08-25  Simon Josefsson  <jas@extundo.com>
85315
85316         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85317         __fsetlocking.
85318
85319 2005-08-25  Simon Josefsson  <jas@extundo.com>
85320
85321         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85322         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85323         GLIBC specific code.
85324
85325 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85326
85327         Make regex safe for g++.  This fixes one real bug (an "err"
85328         that should have been "*err").  g++ problem reported by
85329         Sam Steingold.
85330         * lib/regex_internal.h (re_calloc): New macro, consistent with
85331         re_malloc etc.  All callers of calloc changed to use re_calloc.
85332         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85333         not int.  All callers changed.
85334         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85335         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85336         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85337         (find_recover_state): Change "err" to "*err"; this fixes what
85338         appears to be a real bug.
85339         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85340         versus int.
85341
85342 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         * modules/regex (Depends-on): Add malloc, since the code
85345         assumes that !malloc(0) means failure.
85346
85347 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85350
85351         alloca modernization/simplification for regex.
85352         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85353         needs to be at the start of the file, and can be moved into
85354         regex_internal.h and simplified.
85355         * lib/regex_internal.h: Include <alloca.h>.
85356         (__libc_use_alloca) [!defined _LIBC]: New macro.
85357         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85358         now works outside glibc.
85359
85360 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85361
85362         * config/srclist.txt: Add glibc bugs 1241, 1245.
85363
85364 2005-08-25  Jim Meyering  <jim@meyering.net>
85365
85366         * lib/open-safer.c: Include <config.h>.
85367         Otherwise, we'd lose LARGEFILE support in any file using
85368         e.g. "fcntl--.h"
85369
85370 2005-08-25  Bruno Haible  <bruno@clisp.org>
85371
85372         * m4/minmax.m4: Require autoconf 2.52.
85373         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85374         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85375         alternatives of translit over the alphabet.
85376         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85377
85378 2005-08-24  Simon Josefsson  <jas@extundo.com>
85379
85380         * tests/test-getpass.c: New file.
85381
85382 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85385         for GNU regex features.
85386
85387 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85390         * lib/regex.h (regerror): Likewise.
85391
85392         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85393         requires this.  (The code never needed it.)
85394
85395         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85396         All uses of recently-renamed identifiers changed to use the new,
85397         POSIX-compliant names.  The code will build and run just fine
85398         without these changes, but it's better to eat our own dog food
85399         and use the standard-conforming names.
85400
85401         * lib/regex.h: Fix a multitude of POSIX name space violations.
85402         These changes have an effect only for programs that define
85403         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85404         do not change anything for programs compiled in the normal way.
85405         Also, there is no effect on the ABI.
85406
85407         (_REGEX_SOURCE): New macro.
85408         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85409         defined and _GNU_SOURCE is not; this fixes a name space violation.
85410
85411         Rename the following macros to obey POSIX requirements.
85412         The old names are still visible as macros if _REGEX_SOURCE is defined.
85413         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85414         RE_BACKSLASH_ESCAPE_IN_LISTS.
85415         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85416         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85417         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85418         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85419         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85420         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85421         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85422         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85423         (REG_INTERVALS): renamed from RE_INTERVALS.
85424         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85425         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85426         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85427         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85428         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85429         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85430         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85431         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85432         RE_UNMATCHED_RIGHT_PAREN_ORD.
85433         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85434         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85435         (REG_DEBUG): renamed from RE_DEBUG.
85436         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85437         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85438         unusual, since we can't clash with the POSIX REG_ICASE.
85439         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85440         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85441         (REG_NO_SUB): renamed from RE_NO_SUB.
85442         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85443         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85444         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85445         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85446         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85447         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85448         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85449         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85450         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85451         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85452         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85453         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85454         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85455         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85456         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85457         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85458         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85459         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85460         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85461         (REG_FIXED): Renamed from REGS_FIXED.
85462         (REG_NREGS): Renamed from RE_NREGS.
85463
85464         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85465         of other REG_* macros, since POSIX says the user is allowed to
85466         #undef these macros selectively.
85467
85468         (reg_errcode_t): Update comment stating what other tables need
85469         to be consistent.
85470
85471         Rename the following enum values to obey POSIX requirements.
85472         The old names are still visible as macros.
85473         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85474         is not defined, since GNU is supposed to be a superset of POSIX as
85475         much as possible, and since we want reg_errcode_t to be a signed
85476         type for implementation consistency.
85477         (_REG_NOERROR): Renamed from REG_NOERROR.
85478         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85479         (_REG_BADPAT): Renamed from REG_BADPAT.
85480         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85481         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85482         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85483         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85484         (_REG_EBRACK): Renamed from REG_EBRACK.
85485         (_REG_EPAREN): Renamed from REG_EPAREN.
85486         (_REG_EBRACE): Renamed from REG_EBRACE.
85487         (_REG_BADBR): Renamed from REG_BADBR.
85488         (_REG_ERANGE): Renamed from REG_ERANGE.
85489         (_REG_ESPACE): Renamed from REG_ESPACE.
85490         (_REG_BADRPT): Renamed from REG_BADRPT.
85491         (_REG_EEND): Renamed from REG_EEND.
85492         (_REG_ESIZE): Renamed from REG_ESIZE.
85493         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85494         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85495         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85496         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85497         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85498
85499         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85500         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85501         changed.  But support the old name if the new one is not defined
85502         and if _REGEX_SOURCE.
85503
85504         Change the following member names in struct re_pattern_buffer.
85505         The old names are still supported if !_REGEX_SOURCE.
85506         The new names are always supported, regardless of _REGEX_SOURCE.
85507         (re_buffer): Renamed from buffer.
85508         (re_allocated): Renamed from allocated.
85509         (re_used): Renamed from used.
85510         (re_syntax): Renamed from syntax.
85511         (re_fastmap): Renamed from fastmap.
85512         (re_translate): Renamed from translate.
85513         (re_can_be_null): Renamed from can_be_null.
85514         (re_regs_allocated): Renamed from regs_allocated.
85515         (re_fastmap_accurate): Renamed from fastmap_accurate.
85516         (re_no_sub): Renamed from no_sub.
85517         (re_not_bol): Renamed from not_bol.
85518         (re_not_eol): Renamed from not_eol.
85519         (re_newline_anchor): Renamed from newline_anchor.
85520
85521         Change the following member names in struct re_registers.
85522         The old names are still supported if !_REGEX_SOURCE.
85523         The new names are always supported, regardless of _REGEX_SOURCE.
85524         (rm_num_regs): Renamed from num_regs.
85525         (rm_start): Renamed from start.
85526         (rm_end): Renamed from end.
85527
85528         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85529         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85530         Prepend __ to parameter names.
85531
85532         Undo yesterday's changes.
85533
85534 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85537         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85538         lib/regex.c.
85539
85540 2005-08-24  Jim Meyering  <jim@meyering.net>
85541
85542         Sync from coreutils.
85543         * m4/fcntl-safer.m4: New file.
85544
85545         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85546         and object files for this module.
85547
85548 2005-08-24  Jim Meyering  <jim@meyering.net>
85549
85550         Sync from coreutils.
85551         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85552
85553 2005-08-24  Jim Meyering  <jim@meyering.net>
85554
85555         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85556         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85557
85558 2005-08-24  Jim Meyering  <jim@meyering.net>
85559
85560         * modules/fcntl-safer: New module.
85561         * modules/fts (Depends-on): Add fcntl-safer.
85562         * MODULES.html.sh (File descriptor based Input/Output):
85563         Add fcntl-safer.
85564
85565 2005-08-24  Bruno Haible  <bruno@clisp.org>
85566
85567         Support for unit test modules.
85568         * modules/README: Mention tests modules.
85569         * modules/TEMPLATE-TESTS: New file.
85570         * gnulib-tool: New options --extract-tests-module, --with-tests and
85571         --tests-base (unused for the moment).
85572         (testsbase, inctests): New variables.
85573         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85574         (func_verify_module): Exclude TEMPLATE-TESTS.
85575         (func_verify_nontests_module, func_verify_tests_module): New functions.
85576         (func_get_dependencies): Add implicit dependency for tests modules.
85577         (func_get_tests_module): New function.
85578         (func_modules_transitive_closure): When --with-tests was specified,
85579         include the unit tests as well, unless explicitly avoided.
85580         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85581         (func_emit_tests_Makefile_am): New function.
85582         (func_create_testdir): When --with-tests was specified, emit a
85583         tests/ directory.
85584         * MODULES.html.sh (Future developments): Update.
85585
85586 2005-08-24  Bruno Haible  <bruno@clisp.org>
85587
85588         * modules/tls-tests: New file.
85589         * tests/test-tls.c: New file, from GNU gettext.
85590
85591 2005-08-24  Bruno Haible  <bruno@clisp.org>
85592
85593         * modules/lock-tests: New file.
85594         * tests/test-lock.c: New file, from GNU gettext.
85595
85596 2005-08-24  Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/lock.h: Add multiple inclusion guard.
85599         * lib/tls.h: Add multiple inclusion guard.
85600
85601 2005-08-24  Bruno Haible  <bruno@clisp.org>
85602
85603         * gnulib-tool: Add support for the --aux-dir option to
85604         --create-testdir, --create-megatestdir, --test, --megatest.
85605         (func_create_testdir, func_create_megatestdir): Optionally emit a
85606         AC_CONFIG_AUX_DIR directive.
85607         (create-testdir, create-megatestdir, test, megatest): Provide a
85608         default value for $auxdir.
85609
85610 2005-08-24  Bruno Haible  <bruno@clisp.org>
85611
85612         * gnulib-tool (import): Use compound statement instead of subshell
85613         where possible.
85614
85615 2005-08-24  Bruno Haible  <bruno@clisp.org>
85616
85617         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85618
85619 2005-08-24  Bruno Haible  <bruno@clisp.org>
85620
85621         * gnulib-tool (func_version): Update.
85622
85623 2005-08-24  Bruno Haible  <bruno@clisp.org>
85624
85625         * gnulib-tool (func_import, func_create_testdir,
85626         func_create_megatestdir): Quote all autoconf macro arguments.
85627
85628 2005-08-24  Bruno Haible  <bruno@clisp.org>
85629
85630         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85631         option --force, because --force causes the aclocal.m4 of each
85632         subdirectory to be newer than the corresponding config.h.in.
85633
85634 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85637         All contents moved to gl_REGEX.
85638         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85639         assume that it does.
85640
85641 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85642
85643         * lib/regex.h (REG_NOSYS)
85644         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85645         Define, since POSIX requires it as of 2001.
85646         (_REG_ENOSYS)
85647         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85648         New private symbol, used to keep the enum signed in all cases.
85649         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85650         Youngman in
85651         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85652
85653         * lib/regex_internal.c (re_string_skip_chars, register_state):
85654         (calc_state_hash):
85655         Remove forward decls; no longer needed now that we use prototypes.
85656         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85657         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85658         (clean_state_log_if_needed): Likewise.
85659
85660 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85661
85662         * config/srclist.txt: Add glibc bugs 1231-1233.
85663
85664 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85665
85666         Fix problems reported by Sam Steingold in
85667         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85668         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85669         assumed that reg_errcode_t is a signed type, which is not
85670         necessarily true if _XOPEN_SOURCE is not defined.
85671         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85672         since some compilers warn about it otherwise.
85673
85674 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85677         (init_word_char, create_initial_state, duplicate_node_closure):
85678         (fetch_token, peek_token_bracket, build_range_exp):
85679         (build_collating_symbol): Remove forward decls; no longer needed
85680         now that we use prototypes.
85681
85682         * lib/regcomp.c:
85683         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85684         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85685         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85686         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85687         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85688         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85689         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85690         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85691         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85692         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85693         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85694         (build_charclass, build_charclass_op, fetch_number, create_tree):
85695         (create_token_tree, mark_opt_subexp, duplicate_tree):
85696         Use prototypes rather than old-style definitions.
85697
85698         * lib/regex_internal.c:
85699         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85700         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85701         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85702         (re_string_reconstruct, re_string_peek_byte_case):
85703         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85704         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85705         (re_node_set_init_copy, re_node_set_add_intersect):
85706         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85707         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85708         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85709         (re_acquire_state, re_acquire_state_context, register_state):
85710         (create_ci_newstate, create_cd_newstate, free_state):
85711         Likewise.
85712         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85713         re_search_2):
85714         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85715         (re_search_internal, prune_impossible_nodes):
85716         (acquire_init_state_context, check_matching, static):
85717         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85718         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85719         (update_regs, sift_states_backward, build_sifted_states):
85720         (clean_state_log_if_needed, merge_state_array):
85721         (update_cur_sifted_state, add_epsilon_src_nodes):
85722         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85723         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85724         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85725         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85726         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85727         (check_arrival, check_arrival_add_next_nodes):
85728         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85729         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85730         (check_node_accept_bytes, check_node_accept, extend_buffers):
85731         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85732         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85733         (sift_ctx_init):
85734         Likewise.
85735
85736         * lib/regex_internal.h:
85737         (re_string_allocate, re_string_construct, re_string_reconstruct):
85738         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85739         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85740         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85741         (re_string_context_at, re_string_peek_byte_case):
85742         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85743         is defined, since we now use prototypes always.
85744
85745         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85746         C89 or better.  All uses removed.
85747
85748 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85749
85750         * config/srclist.txt: Add glibc bugs 1220-1227.
85751
85752 2005-08-20  Jim Meyering  <jim@meyering.net>
85753
85754         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85755         of unused local, dfa.
85756
85757 2005-08-20  Bruno Haible  <bruno@clisp.org>
85758
85759         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85760
85761 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85764         (re_node_set_insert_last, re_dfa_add_node):
85765         Rename local variables to avoid GCC shadowing warnings.
85766
85767 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85768
85769         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85770         [defined lint]: Suppress bogus uninitialized-variable warnings.
85771
85772         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85773         and let the caller return REG_ESPACE if out of space.  This
85774         removes an uninitialied-variable warning with GCC 4.0.1, and also
85775         avoids taking the address of a local variable.  All callers
85776         changed.
85777
85778 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85781         $LIBCSRC/posix/regexec.c.
85782         Add glibc bug 1217 for regcomp.c.
85783
85784 2005-08-19  Jim Meyering  <jim@meyering.net>
85785
85786         * lib/regexec.c (proceed_next_node): Redo local variables to
85787         avoid GCC shadowing warnings.
85788
85789 2005-08-18  Bruno Haible  <bruno@clisp.org>
85790
85791         * lib/strstr.c (strstr): Fix return value in multibyte case.
85792         * lib/strcasestr.c (strcasestr): Likewise.
85793
85794 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85797
85798 2005-08-17  Jim Meyering  <jim@meyering.net>
85799
85800         Make the %s format (seconds since the epoch) work for a negative
85801         number and when used with a zero-padded field width, e.g. %015s.
85802
85803         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85804         label so that it precedes the code to set `digits'.  Otherwise,
85805         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85806         print `00-22'.  Now, it prints `-0022', as it should.
85807
85808 2005-08-17  Bruno Haible  <bruno@clisp.org>
85809
85810         * modules/strstr (Files): Add m4/mbrtowc.m4.
85811         (Depends-on): Add mbuiter.
85812
85813 2005-08-17  Bruno Haible  <bruno@clisp.org>
85814
85815         * modules/strcasestr: New file.
85816         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85817         strcasestr.
85818
85819 2005-08-17  Bruno Haible  <bruno@clisp.org>
85820
85821         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85822
85823 2005-08-17  Bruno Haible  <bruno@clisp.org>
85824
85825         * modules/mbuiter: New file.
85826         * MODULES.html.sh (Extended multibyte and wide character utilities):
85827         Add mbuiter.
85828
85829 2005-08-17  Bruno Haible  <bruno@clisp.org>
85830
85831         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85832         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85833
85834 2005-08-17  Bruno Haible  <bruno@clisp.org>
85835
85836         * m4/strcasestr.m4: New file.
85837
85838 2005-08-17  Bruno Haible  <bruno@clisp.org>
85839
85840         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85841         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85842
85843 2005-08-17  Bruno Haible  <bruno@clisp.org>
85844
85845         * lib/strcasestr.h: New file.
85846         * lib/strcasestr.c: New file.
85847
85848 2005-08-17  Bruno Haible  <bruno@clisp.org>
85849
85850         * lib/strcasecmp.c: Use mbuiter.h.
85851
85852 2005-08-17  Bruno Haible  <bruno@clisp.org>
85853
85854         * lib/mbuiter.h: New file.
85855
85856 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85859         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85860         and gl_GETOPT are both invoked via different paths (as happens
85861         with GNU tar CVS because it uses both argp and getopt), the former
85862         wins.
85863
85864 2005-08-16  Bruno Haible  <bruno@clisp.org>
85865
85866         * modules/tls: New file.
85867         * MODULES.html.sh (Multithreading): Add tls.
85868
85869 2005-08-16  Bruno Haible  <bruno@clisp.org>
85870
85871         * modules/strnlen1: New file.
85872         * MODULES.html.sh (String handling): Add strnlen1.
85873
85874 2005-08-16  Bruno Haible  <bruno@clisp.org>
85875
85876         * modules/strcase (Files): Add m4/mbrtowc.m4.
85877         (Depends-on): Add strnlen1, mbchar.
85878
85879 2005-08-16  Bruno Haible  <bruno@clisp.org>
85880
85881         * modules/mbiter: New file.
85882         * MODULES.html.sh (Extended multibyte and wide character utilities):
85883         Add mbiter.
85884
85885 2005-08-16  Bruno Haible  <bruno@clisp.org>
85886
85887         * modules/mbfile: New file.
85888         * MODULES.html.sh (Extended multibyte and wide character utilities):
85889         Add mbfile.
85890
85891 2005-08-16  Bruno Haible  <bruno@clisp.org>
85892
85893         * modules/mbchar: New file.
85894         * MODULES.html.sh (Extended multibyte and wide character utilities):
85895         New section.
85896
85897 2005-08-16  Bruno Haible  <bruno@clisp.org>
85898
85899         * m4/tls.m4: New file, from GNU gettext.
85900
85901 2005-08-16  Bruno Haible  <bruno@clisp.org>
85902
85903         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85904         always.
85905         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85906
85907 2005-08-16  Bruno Haible  <bruno@clisp.org>
85908
85909         * m4/mbiter.m4: New file.
85910
85911 2005-08-16  Bruno Haible  <bruno@clisp.org>
85912
85913         * m4/mbfile.m4: New file.
85914
85915 2005-08-16  Bruno Haible  <bruno@clisp.org>
85916
85917         * m4/mbchar.m4: New file.
85918
85919 2005-08-16  Bruno Haible  <bruno@clisp.org>
85920
85921         * lib/tls.h: New file, from GNU gettext.
85922         * lib/tls.c: New file, from GNU gettext.
85923
85924 2005-08-16  Bruno Haible  <bruno@clisp.org>
85925
85926         * lib/strnlen1.h: New file.
85927         * lib/strnlen1.c: New file.
85928
85929 2005-08-16  Bruno Haible  <bruno@clisp.org>
85930
85931         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85932         (mbi_init): Update.
85933         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85934         NUL byte, not after it.
85935
85936 2005-08-16  Bruno Haible  <bruno@clisp.org>
85937
85938         * lib/strcase.h (strcasecmp): Add note in comments.
85939         * lib/strncasecmp.c: Use code from strcasecmp.c.
85940         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85941         (strcasecmp): Work correctly in multibyte locales.
85942
85943 2005-08-16  Bruno Haible  <bruno@clisp.org>
85944
85945         * lib/mbiter.h: New file.
85946
85947 2005-08-16  Bruno Haible  <bruno@clisp.org>
85948
85949         * lib/mbfile.h: New file.
85950
85951 2005-08-16  Bruno Haible  <bruno@clisp.org>
85952
85953         * lib/mbchar.h: New file.
85954         * lib/mbchar.c: New file.
85955
85956 2005-08-16  Bruno Haible  <bruno@clisp.org>
85957
85958         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85959         the valid ones. Makes the comparison operations transitive:
85960         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85961         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85962
85963 2005-08-15  Simon Josefsson  <jas@extundo.com>
85964
85965         * modules/ssize_t (License): Change to 'unlimited'.
85966
85967         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85968
85969 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85972         Add comments for each pending glibc patch.
85973
85974 2005-08-15  Bruno Haible  <bruno@clisp.org>
85975
85976         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85977         __cplusplus is defined.
85978
85979 2005-08-14  Jim Meyering  <jim@meyering.net>
85980
85981         Sync from coreutils.
85982
85983         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85984         Use the hash-table-based cycle-detection code not just when
85985         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85986         Reported by James Youngman in
85987         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85988         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85989         FTS_TIGHT_CYCLE_CHECK.
85990         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85991         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85992         once again.
85993         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85994         * lib/fts.c (fd_safer): Remove decl.
85995         Include fcntl--.h rather than unistd-safer.h
85996         (fts_safe_changedir): Don't call fd_safer; no longer needed
85997         now that we include fcntl--.h.
85998
85999 2005-08-12  Simon Josefsson  <jas@extundo.com>
86000
86001         * modules/getndelim2: Use ssize_t module.
86002         * modules/getnline: Likewise.
86003         * modules/safe-read: Likewise.
86004         * modules/xreadlink: Likewise.
86005
86006         * modules/ssize_t: New file.
86007
86008 2005-08-12  Simon Josefsson  <jas@extundo.com>
86009
86010         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86011
86012 2005-08-12  Simon Josefsson  <jas@extundo.com>
86013
86014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86015         ssize_t.
86016
86017 2005-08-12  Simon Josefsson  <jas@extundo.com>
86018
86019         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86020         readline, getdelim and check_version.
86021         (Support for systems lacking ISO C 99: Sizes of integer types):
86022         Add size_max.
86023
86024 2005-08-12  Bruno Haible  <bruno@clisp.org>
86025
86026         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86027
86028 2005-08-11  Simon Josefsson  <jas@extundo.com>
86029
86030         * modules/readline: New file.
86031
86032         * modules/strnlen (Files): Add strnlen.h.
86033
86034 2005-08-11  Simon Josefsson  <jas@extundo.com>
86035
86036         * m4/readline.m4: New file.
86037
86038 2005-08-11  Simon Josefsson  <jas@extundo.com>
86039
86040         * lib/readline.h, readline.c: New file.
86041
86042 2005-08-11  Simon Josefsson  <jas@extundo.com>
86043
86044         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86045         gl_AVOID.
86046
86047 2005-08-11  Bruno Haible  <bruno@clisp.org>
86048
86049         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86050
86051 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86052
86053         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86054
86055 2005-08-10  Simon Josefsson  <jas@extundo.com>
86056
86057         * tests/test-iconvme.c: New file.
86058
86059 2005-08-10  Simon Josefsson  <jas@extundo.com>
86060
86061         * m4/strnlen.m4: New file.
86062
86063         * m4/strndup.m4: Don't check for strnlen declaration, done in
86064         strnlen.m4.
86065
86066 2005-08-10  Simon Josefsson  <jas@extundo.com>
86067
86068         * lib/strndup.c: Use strnlen.h.
86069
86070         * lib/strnlen.h: New file.
86071
86072 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86073
86074         * README: Typos.
86075
86076 2005-08-02  Simon Josefsson  <jas@extundo.com>
86077
86078         * modules/readline: New file.
86079
86080 2005-08-02  Simon Josefsson  <jas@extundo.com>
86081
86082         * modules/getdelim: New file.
86083
86084         * modules/getline: Rewrite, don't use getndelim2.
86085
86086 2005-08-02  Simon Josefsson  <jas@extundo.com>
86087
86088         * m4/getline.m4: Separate out getdelim stuff into separate module.
86089
86090         * m4/getdelim.m4: New file.
86091
86092 2005-08-02  Simon Josefsson  <jas@extundo.com>
86093
86094         * lib/getline.h, getline.c: Rewrite.
86095
86096         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86097
86098 2005-07-31  Bruno Haible  <bruno@clisp.org>
86099
86100         * lib/lock.h (gl_lock_initializer): New macro.
86101         (gl_lock_define_initialized): Use it.
86102         (gl_rwlock_initializer): New macro.
86103         (gl_rwlock_define_initialized): Use it.
86104         (gl_recursive_lock_initializer): New macro.
86105         (gl_recursive_lock_define_initialized): Use it.
86106
86107 2005-07-30  Karl Berry  <karl@gnu.org>
86108
86109         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86110         Report from Ben Pfaff, regarding getopt.
86111
86112 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86115         normal way.
86116         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86117         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86118         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86119         (gl_GETOPT): Use the new macros.  Most of the implementation
86120         is moved to the new macros.  This is for programs like Emacs
86121         that don't want all the functionality of gl_GETOPT.
86122
86123 2005-07-26  Bruno Haible  <bruno@clisp.org>
86124
86125         * m4/lock.m4: Update from GNU gettext.
86126
86127 2005-07-26  Bruno Haible  <bruno@clisp.org>
86128
86129         * lib/lock.h: Update from GNU gettext.
86130         * lib/lock.c: Update from GNU gettext.
86131
86132 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86133
86134         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86135         obsolescent AC_TRY_RUN.  Include the default includes files, for
86136         'exit'.
86137
86138 2005-07-24  Bruno Haible  <bruno@clisp.org>
86139
86140         * modules/visibility: New file.
86141         * MODULES.html.sh (Misc): Add visibility.
86142
86143 2005-07-24  Bruno Haible  <bruno@clisp.org>
86144
86145         * m4/visibility.m4: New file.
86146
86147 2005-07-24  Bruno Haible  <bruno@clisp.org>
86148
86149         * doc/visibility.texi: New file.
86150
86151 2005-07-22  Bruno Haible  <bruno@clisp.org>
86152
86153         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86154         $(ALLOCA_H), redundant through BUILT_SOURCES.
86155         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86156         redundant through BUILT_SOURCES.
86157         * modules/byteswap (Makefile.am): Remove explicit dependency on
86158         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86159         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86160         $(FNMATCH_H), redundant through BUILT_SOURCES.
86161         * modules/getopt (Makefile.am): Remove explicit dependency on
86162         $(GETOPT_H), redundant through BUILT_SOURCES.
86163         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86164         redundant through BUILT_SOURCES.
86165         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86166         redundant through BUILT_SOURCES.
86167         * modules/stdbool (Makefile.am): Remove explicit dependency on
86168         $(STDBOOL_H), redundant through BUILT_SOURCES.
86169         * modules/stdint (Makefile.am): Remove explicit dependency on
86170         $(STDINT_H), redundant through BUILT_SOURCES.
86171         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86172         Remove explicit dependency on $(SYSEXITS_H).
86173         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86174
86175 2005-07-18  Simon Josefsson  <jas@extundo.com>
86176
86177         * lib/check-version.c (check_version): Accept identical versions too.
86178
86179 2005-07-18  Bruno Haible  <bruno@clisp.org>
86180
86181         * modules/lock: New file.
86182         * MODULES.html.sh (Multithreading): New section.
86183
86184 2005-07-18  Bruno Haible  <bruno@clisp.org>
86185
86186         * m4/lock.m4: New file, from GNU gettext.
86187
86188 2005-07-18  Bruno Haible  <bruno@clisp.org>
86189
86190         * lib/lock.h: New file, from GNU gettext.
86191         * lib/lock.c: New file, from GNU gettext.
86192
86193 2005-07-18  Bruno Haible  <bruno@clisp.org>
86194
86195         * lib/lock.h (gl_once_t): New type.
86196         (gl_once_define, gl_once): New macros.
86197         * lib/lock.c (fresh_once): New variable.
86198         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86199         functions.
86200
86201 2005-07-16  Simon Josefsson  <jas@extundo.com>
86202
86203         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86204         workaround, suggested by Bruno.
86205
86206 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86207
86208         * modules/xalloc (Depends-on): Add xalloc-die.
86209         * modules/xvasprintf (Depends-on): Add xalloc-die.
86210
86211 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86212
86213         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86214         with a minor change.
86215
86216 2005-07-15  Bruno Haible  <bruno@clisp.org>
86217
86218         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86219         When using lib/poll.c, define poll as rpl_poll.
86220
86221 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86222
86223         * modules/argp (Depends-on): Remove unlocked-io.
86224
86225 2005-07-14  Derek Price  <derek@ximbiot.com>
86226
86227         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86228         for glob symlink bug.
86229
86230 2005-07-14  Bruno Haible  <bruno@clisp.org>
86231
86232         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86233         Instead, test for *_unlocked function declarations directly.
86234
86235 2005-07-11  Simon Josefsson  <jas@extundo.com>
86236
86237         * modules/size_max: New file.
86238
86239         * modules/xsize: Depend on size_max module for size_max.m4.
86240
86241 2005-07-11  Simon Josefsson  <jas@extundo.com>
86242
86243         * lib/size_max.h: New file.
86244
86245 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86248         copyright symbol and the year.
86249         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86250         (version_etc_va): Use parameterized copyright notice.
86251         Reword to conform to the current GNU coding standards.
86252
86253 2005-07-11  Karl Berry  <karl@gnu.org>
86254
86255         * doc/gnulib.texi (Quoting): new node.
86256         (Initial import): more info, from Patrice.
86257
86258 2005-07-11  Bruno Haible  <bruno@clisp.org>
86259
86260         * gnulib-tool (func_usage): Document option --avoid.
86261         (Command line options): Handle --avoid.
86262         (func_acceptable): New function.
86263         (func_modules_transitive_closure): Use it.
86264
86265 2005-07-11  Bruno Haible  <bruno@clisp.org>
86266
86267         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86268         Reported by Jim Meyering.
86269
86270 2005-07-10  Bruno Haible  <bruno@clisp.org>
86271
86272         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86273         Needed when size_t is smaller than 'unsigned int'.
86274         Reported by Paul Eggert.
86275
86276 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86277
86278         * modules/argp (Depends-on): Add unlocked-io
86279
86280 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86281
86282         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86283         block of defines.
86284
86285 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86286
86287         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86288         fix now.
86289
86290 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86291         and Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86294         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86295
86296 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86297
86298         * modules/regex (Files): Add lib/regex_internal.c,
86299         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86300         (Depends-on): Add extensions.
86301         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86302
86303 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86304
86305         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86306         pathconf.
86307         * m4/same.m4 (gl_SAME): Likewise.
86308         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86309
86310         * m4/regex.m4: Adjust to new libc regex implementation.
86311         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86312         all the .c and .h parts of (the new) regex.
86313         Quote the m4 stuff better.
86314         Check for RE_ICASE bug of old gnulib.
86315         Check for REG_STARTEND of recent libc.
86316         Rename local variables from jm_* to gl_*.
86317         Quote operand of "test -f".
86318         Say "recent enough" version of libc, not "version 2".
86319         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86320         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86321         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86322         Remove check for btowc, isascii.
86323         Require AM_LANGINFO_CODESET.
86324
86325 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * lib/regex.c, regex.h: Sync from libc.
86328         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86329         * lib/regexec.c:
86330         New files, synced from libc, except that regex_internal.h
86331         currently has a small porting fix.
86332
86333 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86334
86335         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86336         regex_internal.c, regexec.c.
86337         Add regex_internal.h too, but as a comment, since the libc version
86338         is currently broken in gnulib mode.
86339
86340 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86341
86342         Support programs like Emacs that use gnulib but not gettext.
86343         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86344         * modules/gettext-h: New file.
86345         * modules/gettext (Files): Remove lib/gettext.h.
86346         (Depends-on): Add gettext-h.
86347         (Makefile.am): Remove lib_SOURCES.
86348         * modules/argmatch, modules/c-stack, modules/closeout:
86349         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86350         * modules/execute, modules/file-type, modules/getaddrinfo:
86351         * modules/getopt, modules/human, modules/javacomp:
86352         * modules/javaexec, modules/mkdir-p, modules/obstack:
86353         * modules/openat, modules/pagealign_alloc, modules/pipe:
86354         * modules/quotearg, modules/regex, modules/rpmatch:
86355         * modules/unicodeio, modules/userspec, modules/version-etc:
86356         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86357         * modules/xsetenv:
86358         Depend on gettext-h, not gettext.
86359
86360 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86361
86362         * gnulib-tool (func_import): Add support for 'public domain' license.
86363         * modules/alloca, modules/atexit, modules/memmove:
86364         Now public domain, not GPL.
86365         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86366         * modules/realloc, modules/strerror, modules/strtod:
86367         Now LGPL, not GPL.
86368
86369 2005-07-05  Bruno Haible  <bruno@clisp.org>
86370
86371         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86372         autoconf CVS. Needed for mingw.
86373
86374 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         Remove the dependency of the strftime module on the tzset module.
86377         * modules/strftime (Depends-on): Remove dependency on tzset.
86378
86379 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         Remove the dependency of the strftime module on the tzset module.
86382         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86383         gl_FUNC_TZSET_CLOBBER.
86384
86385 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         Remove the dependency of the strftime module on the tzset module.
86388         * lib/strftime.c (my_strftime)
86389         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86390         Copy the input structure, to work around some of the bug with
86391         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86392         Solaris releases, you should also use the tzset module, but we won't
86393         require it as a dependency any more since we don't want LGPLed code
86394         to depend on GPLed code.
86395
86396 2005-07-02  Jim Meyering  <jim@meyering.net>
86397
86398         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86399         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86400         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86401         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86402
86403 2005-07-02  Jim Meyering  <jim@meyering.net>
86404
86405         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86406
86407 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86410         declares only 'struct timespec;' (!).
86411
86412 2005-07-01  Jim Meyering  <jim@meyering.net>
86413
86414         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86415         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86416         * lib/save-cwd.c, tempname.c:
86417         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86418         and don't include <sys/file.h>).
86419
86420 2005-06-29  Jim Meyering  <jim@meyering.net>
86421
86422         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86423         type name.  Use the variable name instead.
86424         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86425         Likewise.
86426
86427 2005-06-28  Simon Josefsson  <jas@extundo.com>
86428
86429         * modules/check-version (Files): Add check-version.m4.
86430
86431 2005-06-28  Simon Josefsson  <jas@extundo.com>
86432
86433         * m4/check-version.m4: New file, suggested by Jim Meyering
86434         <jim@meyering.net>.
86435
86436 2005-06-28  Simon Josefsson  <jas@extundo.com>
86437
86438         * lib/check-version.h, lib/check-version.c: New files.
86439
86440 2005-06-28  Simon Josefsson  <jas@extundo.com>
86441
86442         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86443         collision with global variable.  Better indentation.  Don't
86444         increment buffer pointer beyond buffer end.  Based on comments
86445         from Paul Eggert <eggert@cs.ucla.edu>.
86446
86447         * lib/base64.h: Indent.
86448
86449 2005-06-28  Simon Josefsson  <jas@extundo.com>
86450
86451         * doc/gnulib.texi (Library version handling): New section.
86452
86453 2005-06-28  Jim Meyering  <jim@meyering.net>
86454
86455         * check-module (find_included_lib_files): Hard-code another
86456         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86457         but modules/fts-lgpl (correctly) does not list those files.
86458
86459         * modules/canonicalize (Files): Add lib/pathmax.h.
86460
86461 2005-06-25  Simon Josefsson  <jas@extundo.com>
86462
86463         * modules/check-version: New file.
86464
86465 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86466
86467         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86468         initializer of struct addrinfo, as an indication that we don't
86469         care how many members the structure has.
86470
86471 2005-06-24  Derek Price  <derek@ximbiot.com>
86472         and Bruno Haible  <bruno@clisp.org>
86473
86474         Remove stat module & update lstat.
86475         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86476         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86477         * m4/stat.m4: Remove this file.
86478
86479 2005-06-24  Derek Price  <derek@ximbiot.com>
86480         and Bruno Haible  <bruno@clisp.org>
86481
86482         Remove stat module & update lstat.
86483         * lib/stat.c: Remove this file...
86484         (slash_aware_lstat): ...moving this content and its support...
86485         * lib/lstat.c (rpl_lstat): ...into here.
86486         * lib/lstat.h: New file.
86487
86488 2005-06-24  Derek Price  <derek@ximbiot.com>
86489         and Bruno Haible  <bruno@clisp.org>
86490
86491         Remove stat module & update lstat.
86492         * config/srclist.txt (libc sources): Remove stat.
86493
86494 2005-06-24  Derek Price  <derek@ximbiot.com>
86495         and Bruno Haible  <bruno@clisp.org>
86496
86497         Remove stat module & update lstat.
86498         * MODULES.html.sh (stat): Remove.
86499         * MODULES.html: Regenerated.
86500         * modules/lstat (Description): Correct function name.
86501         (Files): Add "lstat.h".
86502         (Depends-on): Remove stat, add xalloc, stat-macros.
86503         * modules/stat: Remove this file.
86504         (Include): Add "lstat.h", remove <sys/stat.h>.
86505
86506 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86509         (ranged_convert): Don't save conversion in a temporary struct.
86510         This causes a warning with GCC 4.0.0, and anyway in the typical
86511         case it's not worth the extra 100 bytes or so of code.
86512         (ranged_convert, __mktime_internal): When calling a function via a
86513         pointer P, use P () rather than (*P) (), as we now assume C89 or
86514         better.
86515
86516 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86519         "who -r" failed to give output.  Problem reported by Tim Waugh.
86520
86521         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86522         (xcalloc): Use it to avoid needless tests.
86523         Problem reported by Jim Meyering.
86524
86525 2005-06-20  Derek Price  <derek@ximbiot.com>
86526
86527         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86528         unnecessary for Autoconfs > 2.59c.
86529
86530 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86531
86532         * lib/argp.h (__option_is_short): Check upper limit of
86533         __key. Isprint() requires its argument to have the value
86534         of an unsigned char or EOF.
86535
86536 2005-06-16  Jim Meyering  <jim@meyering.net>
86537
86538         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86539         when either N or S is zero.
86540
86541 2005-06-16  Derek Price  <derek@ximbiot.com>
86542
86543         * m4/bison.m4: Declare YACC & YFLAGS precious.
86544
86545 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86546
86547         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86548         multibyte string or pattern, fall back on unibyte matching.
86549         Problem reported by James Youngman.
86550
86551 2005-06-08  Bruno Haible  <bruno@clisp.org>
86552
86553         * modules/csharpcomp: New file.
86554         * MODULES.html.sh (C#): Add csharpcomp.
86555
86556 2005-06-08  Bruno Haible  <bruno@clisp.org>
86557
86558         * m4/csharpcomp.m4: New file, from GNU gettext.
86559
86560 2005-06-08  Bruno Haible  <bruno@clisp.org>
86561
86562         * lib/csharpcomp.h: New file, from GNU gettext.
86563         * lib/csharpcomp.c: New file, from GNU gettext.
86564         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86565
86566 2005-06-08  Bruno Haible  <bruno@clisp.org>
86567
86568         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86569         warning on mingw.
86570
86571 2005-06-07  Derek Price  <derek@ximbiot.com>
86572
86573         Sync from CVS.
86574         * lib/glob_.h: Indent nested #ifdef.
86575
86576 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86577
86578         Sync from coreutils.
86579         Use "file name" when talking about file names, instead of "filename"
86580         or "path", as per the GNU coding standards.
86581         * lib/mkdir-p.c: Renamed from makepath.c.
86582         (make_dir_parents): Renamed from make_path.  All callers changed.
86583         * lib/mkdir-p.h: Likewise.  All includers changed.
86584         * lib/filenamecat.c: Renamed from path-concat.c.
86585         (file_name_concat): Renamed from path_concat.  All callers changed.
86586         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86587         * lib/filenamecat.h: Likewise.  All includers changed.
86588         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86589         in comments or local variable names.
86590         * lib/basename.c: Likewise.
86591         * lib/canonicalize.c, canonicalize.h: Likewise.
86592         * lib/dirname.c, dirname.h: Likewise.
86593         * lib/euidaccess.c: Likewise.
86594         * lib/exclude.c: Likewise
86595         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86596         * lib/fsusage.c, fsuage.h: Likewise.
86597         * lib/fts.c, fts_.h: Likewise.
86598         * lib/getcwd.c: Likewise.
86599         * lib/getloadavg.c: Likewise.
86600         * lib/mkstemp.c: Likewise.
86601         * lib/mountlist.c, mountlist.h: Likewise.
86602         * lib/openat.c, openat.h: Likewise.
86603         * lib/readlink-stub.c: Likewise.
86604         * lib/readutmp.c, readutmp.h: Likewise.
86605         * lib/rename.c: Likewise.
86606         * lib/rmdir.c: Likewise.
86607         * lib/same.c: Likewise.
86608         * lib/savedir.c: Likewise.
86609         * lib/stripslash.c: Likewise.
86610         * lib/tempname.c: Likewise.
86611         * lib/xreadlink.c: Likewise.
86612         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86613         All uses changed.
86614         * lib/exclude.h: Likewise.
86615
86616         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86617         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86618         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86619         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86620         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86621         files have been getting away with it for years (MORE/BSD 4.3
86622         is extinct now).
86623         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86624         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86625
86626         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86627         Define to 256, not 255, as per modern POSIX.
86628
86629 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86630
86631         Sync from coreutils.
86632         Use "file name" when talking about file names, instead of "filename"
86633         or "path", as per the GNU coding standards.
86634         * MODULES.html.sh: mkdir-p renamed from makepath.
86635         filenamecat renamed from path-concat.
86636         * modules/filenamecat: Renamed from modules/path-concat.
86637         (Files): filenamecat.h and filenamecat.c renamed from
86638         path-concat.h and path-concat.c.
86639         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86640         (Include): filenamecat.h, not path-concat.h.
86641         * modules/mkdir-p: Renamed from modules/makepath.
86642         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86643         makepath.c.
86644         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86645         (Include): mkdir-p.h, not makepath.h.
86646
86647 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86648
86649         Sync from coreutils.
86650         * m4/mkdir-p.m4: Renamed from makepath.m4.
86651         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86652         Rename files from makepath.c to mkdir-p.c, and from
86653         makepath.h to mkdir-p.h.
86654         * m4/filenamecat.m4: Renamed from path-concat.m4.
86655         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86656         Rename files from path-concat.c to filenamecat.c,
86657         and from path-concat.h to filenamecat.h.
86658         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86659         "file name" in local variables or comments.
86660         * m4/rename.m4: Likewise.
86661
86662 2005-06-01  Bruno Haible  <bruno@clisp.org>
86663
86664         * modules/csharpexec: New file.
86665         * MODULES.html.sh (C#): New section.
86666
86667 2005-06-01  Bruno Haible  <bruno@clisp.org>
86668
86669         * m4/csharp.m4: New file, from GNU gettext.
86670         * m4/csharpexec.m4: New file, from GNU gettext.
86671
86672 2005-06-01  Bruno Haible  <bruno@clisp.org>
86673
86674         * lib/csharpexec.h: New file, from GNU gettext.
86675         * lib/csharpexec.c: New file, from GNU gettext.
86676         * lib/csharpexec.sh.in: New file, from GNU gettext.
86677
86678 2005-05-31  Derek Price  <derek@ximbiot.com>
86679             Paul Eggert  <eggert@cs.ucla.edu>
86680
86681         Sync from cvs.
86682         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86683
86684 2005-05-31  Derek Price  <derek@ximbiot.com>
86685             Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         Sync from cvs.
86688         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86689
86690 2005-05-29  Derek Price  <derek@ximbiot.com>
86691
86692         * config/srclist.txt (glob_.h, glob.c): Add these files.
86693
86694 2005-05-29  Derek Price  <derek@ximbiot.com>
86695
86696         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86697         * modules/glob: New file.
86698         * modules/getlogin_r: Add link to POSIX spec in description.
86699
86700 2005-05-29  Derek Price  <derek@ximbiot.com>
86701             Paul Eggert  <eggert@cs.ucla.edu>
86702
86703         * m4/glob.m4: New file.
86704
86705 2005-05-29  Derek Price  <derek@ximbiot.com>
86706             Paul Eggert  <eggert@cs.ucla.edu>
86707
86708         * lib/glob_.h, lib/glob.c: New files.
86709
86710 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86711
86712         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86713         * modules/fts-lgpl (Depends-on): Remove gettext.
86714
86715 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86718         and don't require gt_INTTYPES_PRI.
86719
86720 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86723
86724         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86725         the configuration hassle isn't worth it.
86726         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86727         (LONGEST_MODIFIER, PRIuMAX): Remove.
86728
86729 2005-05-27  Bruno Haible  <bruno@clisp.org>
86730
86731         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86732
86733 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86734
86735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86736         _POSIX_PTHREAD_SEMANTICS for Solaris.
86737
86738 2005-05-25  Derek Price  <derek@ximbiot.com>
86739
86740         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86741
86742 2005-05-25  Derek Price  <derek@ximbiot.com>
86743             Paul Eggert  <eggert@cs.ucla.edu>
86744
86745         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86746         * lib/getlogin_r.c, getlogin_r.h: New files.
86747
86748 2005-05-25  Bruno Haible  <bruno@clisp.org>
86749             Derek Price  <derek@ximbiot.com>
86750
86751         * lib/getlogin_r.h: Simplify API documentation.
86752
86753 2005-05-23  Derek Price  <derek@ximbiot.com>
86754
86755         * modules/minmax (Files): Add m4/minmax.m4.
86756         (configure.ac): Add gl_MINMAX.
86757
86758 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86761         so that unistd-safer.h (GPL'ed code) need not be included.
86762
86763 2005-05-22  Bruno Haible  <bruno@clisp.org>
86764
86765         * m4/minmax.m4: New file.
86766         Based on a patch by Derek Price <derek@ximbiot.com>.
86767
86768 2005-05-22  Bruno Haible  <bruno@clisp.org>
86769
86770         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86771         (INT64_MIN): Fix definition.
86772         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86773
86774         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86775         NEED_SIGNED_INT_TYPES.
86776
86777         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86778         HAVE_SYSTEM_INTTYPES.
86779
86780 2005-05-22  Bruno Haible  <bruno@clisp.org>
86781
86782         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86783         Also include <sys/param.h> if it defines MIN, MAX.
86784         Based on a patch by Derek Price <derek@ximbiot.com>.
86785
86786 2005-05-21  Jim Meyering  <jim@meyering.net>
86787
86788         * modules/fts (Files): Add m4/inttypes-pri.m4.
86789         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86790
86791 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86792
86793         New fts module.
86794         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86795         (setup_dir, free_dir): New functions.
86796         (enter_dir, leave_dir): Define trivial
86797         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86798         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86799         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86800         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86801         Move to fts-cycle.c.
86802         (fts_open): Use setup_dir.
86803         (fts_close): Use free_dir.
86804         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86805         This adds a label and some gotos, but the alternatives were messier.
86806         Check for memory allocation failure when entering a dir.
86807         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86808         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86809         (FTS): New member fts_cycle, that is a union that contains the
86810         old active_dir_ht and cycle_state.  All uses changed to mention
86811         fts_cycle.ht and fts_cycle.state.
86812         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86813         fts.c, with the following changes:
86814         (setup_dir, free_dir): New functions.
86815         (enter_dir): Now returns bool.  Return true if successful, false
86816         if memory exhausted.  All callers changed.
86817         Do not bother partly cleaning up on
86818         memory allocation failure; that is free_dir's job.
86819         However, free ad if hash_insert fails, to avoid memory leak.
86820         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86821         fts->fts_options to see which union member to use.
86822
86823 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86824
86825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86826         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86827
86828 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86831
86832 2005-05-20  Jim Meyering  <jim@meyering.net>
86833
86834         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86835         Now a macro, to pacify GCC.
86836
86837 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86838
86839         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86840         of -1.
86841
86842 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86843
86844         * lib/chown.c (rpl_chown): Return -1 on failure.
86845
86846 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86847
86848         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86849         Don't check for stddef.h.
86850         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86851         don't use its results.
86852         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86853         since we include them unconditionally.  Don't require
86854         AM_STDBOOL_H, since stdbool is a prerequisite.
86855         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86856         since we assume C89 or better.
86857         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86858         as we don't use their results.
86859         Don't check for fchdir, memmove, memset, strrchr, as we use
86860         them unconditionally.
86861         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86862         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86863
86864 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86865
86866         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86867         Include <stddef.h> unconditionally, since we assume C89 now.
86868         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86869         * lib/fts.c: Include fts_.h first, to check interface.
86870         Do not include intprops.h; no longer needed.
86871         Include cycle-check.h and hash.h, since fts_.h no longer does.
86872         Remove unnecessary casts of closedir to void.
86873         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86874         decide whether to decrement nlinks.
86875         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86876         (FTS): Use struct hash_table * instead of Hash_table, so that
86877         we no longer need to include hash.h here.
86878
86879 2005-05-18  Jim Meyering  <jim@meyering.net>
86880
86881         * modules/dirfd (License): Change to LGPL.  Most of the code
86882         is already in the public domain.
86883
86884 2005-05-18  Jim Meyering  <jim@meyering.net>
86885
86886         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86887         Reported by Yoann Vandoorselaere.
86888
86889 2005-05-17  Jim Meyering  <jim@meyering.net>
86890
86891         * m4/fts.m4: New file, from coreutils.
86892
86893 2005-05-17  Jim Meyering  <jim@meyering.net>
86894
86895         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86896
86897 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86898
86899         Sync from coreutils.
86900         * m4/unlinkdir.m4: New file.
86901
86902 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86903
86904         Sync from coreutils.
86905         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86906         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86907         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86908         White space changes only.
86909         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86910         special.
86911         * lib/yesno.c: Include getline.h, not ctype.h.
86912         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86913         Use getline to remove arbitrary restriction on response length.
86914
86915 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86916
86917         * config/srclist-update: Spell out "Street" in FSF postal
86918         mail address; this is the style the FSF seems to prefer.
86919
86920         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86921         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86922         this updates FSF postal mail address.
86923
86924         Sync from coreutils.
86925         * modules/unlinkdir: New file.
86926         * modules/yesno (Depends-on): Add getline.
86927         * MODULES.html.sh (File system functions): Add unlinkdir.
86928
86929 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86930
86931         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86932         lib/strsep.h:
86933         Change the initial comment to refer to GPL, not LGPL.
86934         gnulib-tool will change it to LGPL as needed.
86935
86936         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86937         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86938         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86939         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86940         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86941         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86942         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86943         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86944         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86945         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86946         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86947         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86948         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86949         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86950         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86951         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86952         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86953         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86954         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86955         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86956         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86957         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86958         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86959         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86960         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86961         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86962         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86963         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86964         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86965         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86966         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86967         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86968         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86969         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86970         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86971         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86972         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86973         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86974         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86975         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86976         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86977         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86978         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86979         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86980         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86981         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86982         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86983         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86984         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86985         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86986         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86987         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86988         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86989         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86990         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86991         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86992         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86993         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86994         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86995         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86996         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86997         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86998         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86999         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87000         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87001         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87002         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87003         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87004         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87005         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87006         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87007         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87008         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87009         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87010         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87011         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87012         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87013         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87014         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87015         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87016         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87017         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87018         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87019         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87020         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87021         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87022         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87023         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87024         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87025         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87026         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87027         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87028         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87029         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87030         lib/yesno.c, lib/yesno.h:
87031         Update FSF postal mail address.
87032
87033 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87034
87035         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87036         tests/test-memmem.c, tests/test-stpncpy.c:
87037         Update FSF postal mail address.
87038
87039 2005-05-13  Bruno Haible  <bruno@clisp.org>
87040
87041         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87042         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87043         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87044         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87045         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87046         Add support for 64-bit integers in the MSVC compiler.
87047
87048 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87049
87050         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87051
87052 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87053
87054         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87055
87056 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87057
87058         * doc/getdate.texi (General date syntax): Don't say that date
87059         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87060         Problem reported by Nic Ferrier.
87061
87062 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87063
87064         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87065         specified in ai_socktype. Fix invalid ai_protocol
87066         check. ai_protocol is usually set to 0 or depending on
87067         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87068         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87069         ai_socktype / ai_protocol in the returned addrinfo structure.
87070
87071 2005-05-10  Simon Josefsson  <jas@extundo.com>
87072
87073         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87074         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87075
87076 2005-05-10  Karl Berry  <karl@gnu.org>
87077
87078         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87079         (from http://www.gnu.org/licenses).
87080         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87081         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87082         fdl.texi suffices.
87083
87084 2005-05-10  Karl Berry  <karl@gnu.org>
87085
87086         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87087         (COPYING.DOC): remove.
87088
87089         * config/srclist-update: new FSF address.
87090
87091 2005-05-10  Derek Price  <derek@ximbiot.com>
87092
87093         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87094         possible.
87095
87096 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87097             Bruno Haible  <bruno@clisp.org>
87098
87099         * modules/inet_ntop: New file.
87100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87101         inet_ntop.
87102
87103 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87104             Bruno Haible  <bruno@clisp.org>
87105
87106         * m4/inet_ntop.m4: New file.
87107
87108 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87109             Bruno Haible  <bruno@clisp.org>
87110
87111         * lib/inet_ntop.h: New file.
87112         * lib/inet_ntop.c: New file, from glibc with modifications.
87113
87114 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87115
87116         * modules/time_r (License): Change to LGPL.
87117         * modules/extensions (License): Change to LGPL.  Actually,
87118         the license is more permissive than that, but currently gnulib-tool
87119         doesn't know how to handle more-permissive licenses.
87120
87121         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87122         Problem reported by Dave Love.
87123
87124 2005-05-08  Jim Meyering  <jim@meyering.net>
87125
87126         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87127         blank.
87128
87129 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         * modules/argmatch (Depends-on): Add stdbool.
87132         * modules/backupfile (Depends-on): Likewise.
87133         * modules/chdir-long (Depends-on): Likewise.
87134         * modules/closeout (Depends-on): Likewise.
87135         * modules/cycle-check (Depends-on): Likewise.
87136         * modules/dirname (Depends-on): Likewise.
87137         * modules/fnmatch (Depends-on): Likewise.
87138         * modules/fsusage (Depends-on): Likewise.
87139         * modules/fwriteerror (Depends-on): Likewise.
87140         * modules/getcwd (Depends-on): Likewise.
87141         * modules/getloadavg (Depends-on): Likewise.
87142         * modules/hard-locale (Depends-on): Likewise.
87143         * modules/makepath (Depends-on): Likewise.
87144         * modules/mountlist (Depends-on): Likewise.
87145         * modules/nanosleep (Depends-on): Likewise.
87146         * modules/posixtm (Depends-on): Likewise.
87147         * modules/quotearg (Depends-on): Likewise.
87148         * modules/readtokens (Depends-on): Likewise.
87149         * modules/readtokens0 (Depends-on): Likewise.
87150         * modules/readutmp (Depends-on): Likewise.
87151         * modules/save-cwd (Depends-on): Likewise.
87152         * modules/strftime (Depends-on): Likewise.
87153         * modules/userspec (Depends-on): Likewise.
87154         * modules/utimecmp (Depends-on): Likewise.
87155         * modules/xgetcwd (Depends-on): Likewise.
87156         * modules/xnanosleep (Depends-on): Likewise.
87157         * modules/xstrtod (Depends-on): Likewise.
87158         * modules/yesno (Depends-on): Likewise.
87159
87160 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87161
87162         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87163         needless checks.
87164
87165 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         Merge from coreutils.  Among other things,
87168         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87169         * lib/fd-safer.c: New file.
87170         * lib/fcntl-safer.h, open-safer.c: Remove.
87171         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87172         * lib/dup-safer.c: Include unistd-safer.h first.
87173         Don't include errno.h.
87174         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87175         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87176         * lib/file-type.c: Rely on file-type.h change.
87177         * lib/getloadavg.c: Include unistd-safer.h.
87178         (getloadavg): Use safer open.
87179         * lib/getusershell.c: Include "stdio-safer.h".
87180         (getusershell): Use safer fopen.
87181         * lib/long-options.c (long_options): Use NULL rather than 0.
87182         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87183         'free'.
87184         * lib/modechange.c: Likewise.
87185         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87186         (MODE_DONE): New constant.
87187         (struct mode_change): Remove 'next' member.
87188         (make_node_op_equals): New function; like the old one of the
87189         same name, except it allocates an array.
87190         (mode_compile, mode_create_from_ref): Use it.
87191         (mode_compile): Allocate result as an array, not a linked list.
87192         Parse octal string ourself, so that we catch mistakes like "+0".
87193         (mode_adjust): Arg is an array, not a linked list.
87194         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87195         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87196         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87197         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87198         Remove.  This is now stat-macros.h's job.
87199         (talloc): Remove.  All callers replaced by xalloc, so that
87200         our invokers don't have to worry about reporting memory failures.
87201         (make_node_op_equals): Remove.
87202         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87203         New constants.
87204         (struct mode_change): Moved here from modechange.h.
87205         (mode_append_entry): Remove.
87206         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87207         apps to have incorrect behavior.  Use simpler algorithm for head
87208         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87209         Detect more invalid usages rather than having somewhat-random behavior.
87210         Don't insert an "a=" action, as that leads to incorrect behavior.
87211         (mode_compile, mode_create_from_ref): Return NULL on error instead
87212         of an enum, since now there's only one way to have an error.  All
87213         callers changed.
87214         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87215         at the correct time.  Simplify calculation of "+u" and its ilk.
87216         Don't mishandle "+X".
87217         (mode_free): Remove "register" and localize decls.
87218         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87219         (struct mode_change): Move to modechange.c; callers don't
87220         need to see this stuff.
87221         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87222         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87223         (mode_change, mode_adjust): Reflect the new signatures noted above.
87224         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87225         that might redefine system include files.
87226         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87227         (my_usleep): Use NULL rather than (void *) 0.
87228         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87229         Use siginterrupt to specify that system calls should be interrupted.
87230         (rpl_nanosleep): Move initialization of suspended closer to call of
87231         my_usleep.
87232         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87233         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87234         (desirable_utmp_entry): New function.
87235         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87236         using x2nrealloc, to simplify logic.
87237         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87238         size calculation.  Do not assume utmp file is a regular file.
87239         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87240         (READ_UTMP_CHECK_PIDS): New constant.
87241         * lib/save-cwd.c: Include unistd-safer.h.
87242         (save_cwd): Use fd_safer.
87243         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87244         [!_LIBC] Include "stat-macros.h" instead.
87245         * lib/unistd-safer.h (fd_safer): New decl.
87246
87247 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87248
87249         * modules/getloadavg (Depends-on): Add unistd-safer.
87250         * modules/getusershell (Depends-on): Add stdio-safer.
87251         * modules/lstat (Depends-on): Remove xalloc.
87252         * modules/mkstemp (Depends-on): Add stat-macros.
87253         * modules/modechange (Depends-on): Remove xstrtol.
87254         Add stat-macros, xalloc.
87255         * modules/save-cwd (Depends-on): Add unistd-safer.
87256         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87257         * modules/unistd-safer (Files): Add lib/fd-safer.c
87258         (Makefile.am): Remove lib_SOURCES.
87259
87260         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87261         Remove fcntl-safer; unistd-safer supersedes it.
87262
87263 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87266         AC_HEADER_STAT.
87267         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87268         (gl_PREREQ_CHOWN): Remove.
87269         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87270         it.  Don't require AC_HEADER_STAT.
87271         (gl_PREREQ_LSTAT): Remove.
87272         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87273         Don't require AC_HEADER_STAT.
87274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87275         (gl_PREREQ_RMDIR): Remove.
87276         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87277         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87278         the stat-macros module a prerequisite.
87279         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87280         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87281         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87282         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87283         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87284         variable names.
87285         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87286         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87287         variable prefixes.
87288         * m4/fcntl-safer.m4: Remove.
87289         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87290         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87291         Invoke gl_PREREQ_FD_SAFER.
87292         (gl_PREREQ_FD_SAFER): New macro.
87293         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87294         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87295         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87296         Remove duplicate call to AC_LIBOBJ(readutmp).
87297         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87298
87299         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87300         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87301
87302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87303
87304         * MODULES.html.sh (Misc): Add byteswap.
87305
87306 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87307
87308         * modules/getcwd (Depends-on): Add extensions.
87309         * modules/openat (Depends-on): Likewise.
87310
87311 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87312
87313         * modules/byteswap: New file.
87314
87315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87316
87317         * m4/byteswap.m4: New file.
87318
87319 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87320
87321         * lib/byteswap_.h: New file.
87322
87323 2005-04-25  Karl Berry  <karl@gnu.org>
87324
87325         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87326
87327 2005-04-25  Albert Chin  <china@thewrittenword.com>
87328
87329         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87330         Toolkit C bug.
87331
87332 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87333
87334         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87335         (func_ln_if_changed): Remove forcibly for no error message
87336         in case file does not exist.
87337
87338 2005-04-19  Simon Josefsson  <jas@extundo.com>
87339
87340         * gnulib-tool (Options): Make --symlink mean --symbolic.
87341
87342 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87343
87344         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87345
87346 2005-04-16  Simon Josefsson  <jas@extundo.com>
87347
87348         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87349
87350 2005-04-15  Simon Josefsson  <jas@extundo.com>
87351
87352         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87353
87354 2005-04-15  Simon Josefsson  <jas@extundo.com>
87355
87356         * gnulib-tool: Rename --symlink to --symbolic.
87357
87358 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87359
87360         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87361         symbolic links to files instead of copying/moving.  Add --aux-dir,
87362         specifying directory relative --dir where auxiliary build tools
87363         are placed.
87364
87365 2005-04-14  Bruno Haible  <bruno@clisp.org>
87366
87367         * modules/allocsa (License): Change to LGPL.
87368         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87369
87370 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87371
87372         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87373         that "UTC +1 second" continues to work.  Problem reported
87374         by Dmitry V. Levin.
87375         (relunit_snumber): New rule.
87376         (relunit): Use it.
87377
87378 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87379
87380         * lib/getdate.y (universal_time_zone_table): New constant.
87381         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87382         universal_time_zone_table.
87383         (lookup_zone): Prefer universal_time_zone_table to
87384         local_time_zone_table, so that "GMT" time stamps are allowed in
87385         London during the summer.  Problem reported by Ian Abbott.
87386
87387 2005-04-12  Jim Meyering  <jim@meyering.net>
87388
87389         * lib/human.c (humblock): Set *options even when returning due to
87390         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87391         warning from gcc-4.
87392
87393 2005-04-09  Jim Meyering  <jim@meyering.net>
87394
87395         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87396         -Wuninitialized: initialize tm0.tm_year.
87397
87398 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87399
87400         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87401         count, since there's no maximum.  All uses changed.
87402         Add member dsts_seen.
87403         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87404         not being INT_MAX.
87405         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87406         Use pc_rels_seen to decide whether a date is absolute.
87407
87408         * lib/getdate.y (number): Don't overwrite year.
87409         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87410         check.
87411
87412 2005-04-02  Simon Josefsson  <jas@extundo.com>
87413
87414         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87415         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87416
87417 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87418
87419         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87420         where no absolute path name can be longer than PATH_MAX.
87421
87422 2005-03-27  Jim Meyering  <jim@meyering.net>
87423
87424         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87425
87426 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87427
87428         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87429         "one's complement" -> "ones' complement" in comment, as per Knuth.
87430         "value of type" -> "type or expression" in comment.
87431         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87432
87433 2005-03-26  Jim Meyering  <jim@meyering.net>
87434
87435         Comment nits.
87436         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87437         Correct typos: s/or/of/.
87438
87439 2005-03-26  Jim Meyering  <jim@meyering.net>
87440
87441         * modules/check-include-files: Move to ../ and rename to...
87442         * check-module: ...this.
87443
87444 2005-03-25  Jim Meyering  <jim@meyering.net>
87445
87446         * modules/xvasprintf (Files): Add xalloc.h.
87447
87448 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87449
87450         * modules/gettext (Files): config/config.rpath ->
87451         build-aux/config.rpath
87452         * modules/iconv (Files): Likewise.
87453         Problem reported by Oskar Liljeblad.
87454
87455 2005-03-23  Jim Meyering  <jim@meyering.net>
87456
87457         * modules/check-include-files: New script to check for
87458         missing dependencies, multiple includes, etc.
87459
87460         * modules/c-strtold (Depends-on): Add xalloc.
87461         * modules/c-strtod (Depends-on): Add xalloc.
87462         * modules/hash (Depends-on): Add xalloc.
87463         (Files): Remove lib/xalloc.h.
87464
87465         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87466         * modules/userspec (Files): Add lib/inttostr.h.
87467
87468 2005-03-23  Jim Meyering  <jim@meyering.net>
87469
87470         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87471
87472 2005-03-22  Jim Meyering  <jim@meyering.net>
87473
87474         * modules/stat-macros: New module.
87475         * modules/canonicalize, modules/euidaccess, modules/file-type,
87476         * modules/filemode, modules/lchown, modules/makepath,
87477         * modules/rmdir, modules/stat: Depend on new stat-macros module
87478         rather than listing lib/stat-macros.h manually.
87479         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87480
87481 2005-03-22  Jim Meyering  <jim@meyering.net>
87482
87483         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87484
87485 2005-03-22  Bruno Haible  <bruno@clisp.org>
87486
87487         * config/srclist.txt: Replace target directory 'config' with
87488         'build-aux'.
87489         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87490         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87491         ../build-aux/.
87492
87493 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87494
87495         * modules/chdir-long (Depends-on): Add mempcpy.
87496
87497         * modules/acl, modules/backupfile, modules/c-strtod,
87498         modules/c-strtold, modules/canon-host, modules/canonicalize,
87499         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87500         modules/exclude, modules/exitfail, modules/file-type,
87501         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87502         modules/getdate, modules/getline, modules/getpagesize,
87503         modules/getpass, modules/getugroups, modules/group-member,
87504         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87505         modules/inttostr, modules/long-options, modules/makepath,
87506         modules/md5, modules/memcasecmp, modules/memcoll,
87507         modules/modechange, modules/mountlist, modules/path-concat,
87508         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87509         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87510         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87511         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87512         modules/strftime, modules/strndup, modules/strverscmp,
87513         modules/timespec, modules/unlocked-io, modules/userspec,
87514         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87515         modules/yesno:
87516         Remove lib_SOURCES line from Makefile.am section, as this is now
87517         done automatically by the corresponding Autoconf macro.
87518
87519 2005-03-21  Jim Meyering  <jim@meyering.net>
87520
87521         Changes imported from coreutils.
87522
87523         * lib/cycle-check.c: Don't include xalloc.h.
87524
87525         * lib/path-concat.c: Don't include assert.h.
87526         (path_concat): Remove assertion that would have triggered
87527         for ABASE starting with more than one slash.
87528         Reported by Andreas Schwab.
87529
87530         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87531         properly when ABASE is an absolute file name.
87532         Correct the description of this function.
87533         Include <assert.h>.
87534         Add an assertion and a test driver.
87535         This fixes a bug introduced on 2004-07-02.
87536         Andreas Schwab reported the resulting failure of cp --parents:
87537         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87538
87539 2005-03-21  Jim Meyering  <jim@meyering.net>
87540
87541         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87542         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87543
87544 2005-03-21  Jim Meyering  <jim@meyering.net>
87545         and  Paul Eggert  <eggert@cs.ucla.edu>
87546
87547         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87548         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87549         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87550         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87551         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87552         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87553         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87554         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87555         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87556         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87557         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87558         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87559         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87560         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87561         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87562         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87563         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87564         for these modules.
87565
87566 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87567
87568         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87569         (which shouldn't happen), generate nothing instead of returning 0
87570         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87571
87572 2005-03-16  Bruno Haible  <bruno@clisp.org>
87573
87574         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87575         HAVE_LONGLONG_64BIT.
87576
87577 2005-03-16  Bruno Haible  <bruno@clisp.org>
87578
87579         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87580         HAVE_LONGLONG_64BIT.
87581
87582 2005-03-16  Bruno Haible  <bruno@clisp.org>
87583
87584         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87585         HAVE_LONGLONG_64BIT.
87586
87587 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87590         reliably distinguish strftime failure from empty output on POSIX
87591         hosts.
87592
87593 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87594
87595         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87596         (iconv_string): Don't guess a size-zero buffer, as that might cause
87597         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87598         result would be 'too large', where 'too large' is (heuristically)
87599         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87600         overflow concerns.  This will prevent some unwanted malloc failures
87601         when the inputs are very large.
87602
87603 2005-03-15  Karl Berry  <karl@gnu.org>
87604
87605         * config/srclist.txt (config.rpath): from gettext.
87606         * config/config.rpath: update.
87607
87608 2005-03-15  Bruno Haible  <bruno@clisp.org>
87609
87610         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87611         to 'negate'.
87612
87613         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87614         variable.
87615
87616         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87617         results.
87618
87619 2005-03-14  Simon Josefsson  <jas@extundo.com>
87620
87621         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87622         <fx@gnu.org>.
87623
87624 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87627         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87628         intprops.h.
87629         * lib/strtol.c: Likewise.
87630
87631 2005-03-14  Jim Meyering  <jim@meyering.net>
87632
87633         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87634         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87635         to be nonzero so that we (and caller) can detect the difference
87636         between a valid zero-length expansion and an error return, even
87637         when the underlying strftime fails before writing anything into
87638         that location.
87639
87640 2005-03-14  Bruno Haible  <bruno@clisp.org>
87641
87642         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87643         Update from GNU gettext 0.14.3.
87644
87645 2005-03-10  Jim Meyering  <jim@meyering.net>
87646
87647         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87648
87649 2005-03-10  Jim Meyering  <jim@meyering.net>
87650
87651         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87652         so that this module works on systems without fchdir.
87653
87654 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87655
87656         Factor int-properties macros into a single file, except for
87657         glibc-related files.
87658         * lib/intprops.h: New file.
87659         * lib/getloadavg.c: Include it instead of limits.h.
87660         (INT_STRLEN_BOUND): Remove.
87661         * lib/human.c: Include intprops.h.
87662         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87663         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87664         302/1000.
87665         * lib/inttostr.h: Include intprops.h instead of limits.h.
87666         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87667         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87668         for consistency with intprops.h.
87669         (time_t_is_integer, twos_complement_arithmetic): Use them.
87670         * lib/sig2str.h: Include <signal.h>, intprops.h.
87671         (INT_STRLEN_BOUND): Remove.
87672         * lib/strftime.c (TYPE_SIGNED): Remove.
87673         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87674         * lib/strtol.c: Adjust comments to match intprops.h.
87675         * lib/userspec.c: Include intprops.h.
87676         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87677         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87678         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87679         instead of rolling our own expressions.
87680         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87681
87682         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87683         instead of int.
87684         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87685         the right thing even if adding 1900 would overflow.  Similarly
87686         for tm_mon + 1 and tm_yday + 1.
87687         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87688         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87689         (DO_SIGNED_NUMBER): New macro.
87690         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87691
87692 2005-03-07  Bruno Haible  <bruno@clisp.org>
87693
87694         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87695
87696 2005-03-07  Bruno Haible  <bruno@clisp.org>
87697
87698         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87699
87700 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87701
87702         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87703         (func_import): Only replace files via --import when they have actually
87704         changed.
87705
87706 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87707
87708         * m4/mmap-anon.m4: New file.
87709         * m4/pagealign_alloc.m4: New file.
87710
87711 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87712             Bruno Haible  <bruno@clisp.org>
87713
87714         * modules/pagealign_alloc: New file.
87715         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87716
87717 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87718             Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/pagealign_alloc.h: New file.
87721         * lib/pagealign_alloc.c: New file.
87722
87723 2005-03-03  Bruno Haible  <bruno@clisp.org>
87724
87725         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87726         Use an all-permissive copyright notice, recommended by RMS.
87727
87728 2005-03-02  Bruno Haible  <bruno@clisp.org>
87729
87730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87731         of AIX, the replacement has to be done only after <string.h> is
87732         included, therefore not in config.h. stpncpy.h does the replacement,
87733         and stpncpy.c uses it.
87734
87735 2005-03-02  Bruno Haible  <bruno@clisp.org>
87736
87737         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87738         stpncpy.c uses it.
87739
87740 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87741
87742         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87743         The workaround isn't strictly needed for POSIX conformance, and
87744         it's too much of a pain to configure and maintain.  We'll ask
87745         people to fix their kernels instead.
87746         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87747         (NANOSLEEP_BUG_WORKAROUND): Remove.
87748         (xnanosleep): Remove the workaround.
87749
87750 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87751
87752         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87753         Reported by Derek Price.
87754         (Include): Add "timespec.h".
87755
87756         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87757
87758 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87759
87760         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87761         to detect nanosleep bug.
87762
87763 2005-03-01  Bruno Haible  <bruno@clisp.org>
87764
87765         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87766
87767 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87768
87769         * modules/gethrxtime: New file.
87770         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87771         (Depends-on): Add gethrxtime.
87772         (configure.ac): Add gl_XNANOSLEEP.
87773         (Makefile.am): Remove lib_SOURCES line.
87774
87775 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87776
87777         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87778         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87779
87780 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87781
87782         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87783         * lib/timespec.h (gettime): Return void, since it always
87784         succeeds now.  All uses changed.
87785         * lib/gettime.c (gettime): Likewise.
87786         [HAVE_NANOTIME]: Prefer nanotime.
87787         Assume gettimeofday succeeds, as POSIX requires.
87788         Assime time () succeeds, since other code already does.
87789         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87790         (timespec_subtract): Remove.
87791         (NANOSLEEP_BUG_WORKAROUND): New constant.
87792         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87793         things considerably.  Use it only on GNU/Linux hosts, since the
87794         workaround shouldn't be needed elsewhere.
87795
87796 2005-02-24  Bruno Haible  <bruno@clisp.org>
87797
87798         * modules/gettext (Files): Add m4/glibc2.m4.
87799
87800 2005-02-24  Bruno Haible  <bruno@clisp.org>
87801
87802         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87803         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87804         * m4/progtest.m4:
87805         Update from GNU gettext 0.14.2.
87806         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87807
87808 2005-02-24  Bruno Haible  <bruno@clisp.org>
87809
87810         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87811         * lib/config.charset: Update from GNU gettext 0.14.2.
87812
87813 2005-02-24  Bruno Haible  <bruno@clisp.org>
87814
87815         * lib/gettext.h: Update from GNU gettext 0.14.2.
87816
87817 2005-02-23  Simon Josefsson  <jas@extundo.com>
87818
87819         * m4/iconvme.m4: New file.
87820
87821 2005-02-23  Jim Meyering  <jim@meyering.net>
87822
87823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87824         change.
87825         Thanks to Bruno Haible for catching it.
87826
87827 2005-02-22  Simon Josefsson  <jas@extundo.com>
87828
87829         * modules/iconvme: New file.
87830
87831         * MODULES.html.sh: Add iconvme.
87832
87833 2005-02-22  Simon Josefsson  <jas@extundo.com>
87834
87835         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87836
87837 2005-02-22  Simon Josefsson  <jas@extundo.com>
87838
87839         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87840
87841 2005-02-22  Jim Meyering  <jim@meyering.net>
87842
87843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87844         s/ifndef/ifdef/.
87845
87846 2005-02-20  Neil Conway  <neilc@samurai.com>
87847
87848         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87849         returned by OSX/Darwin if the specified buffer is not large
87850         enough for the hostname.
87851
87852 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87853
87854         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87855         pass it to _help, otherwise the latter coredumps trying to
87856         dereference state.root_argp.
87857
87858 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87859
87860         * modules/chdir-long (Depends-on): Add memrchr.
87861         * modules/memrchr (Files): Add lib/memrchr.h.
87862         (Include): "memrchr.h".
87863
87864 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87865
87866         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87867
87868 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87869
87870         * lib/memrchr.h: New file.
87871         * lib/chdir-long.c: Include it.
87872         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87873         Don't bother including stddef.h.
87874
87875 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87876
87877         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87878         inclusion.
87879         Include <sys/types.h>, for dev_t.
87880         (ME_DUMMY, ME_REMOTE): Move from here....
87881         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87882         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87883         Dmitry V. Levin.
87884         Include mountlist.h first, to test the interface.
87885
87886 2005-01-29  Bruno Haible  <bruno@clisp.org>
87887
87888         * lib/progname.c (program_name): Initialize.
87889         Needed when linking statically on MacOS X.
87890
87891 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87892
87893         Sync from coreutils.
87894         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87895         (Depends-on): Add c-strtod.
87896         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87897
87898 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87899
87900         Sync from coreutils.
87901         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87902
87903         Remove files that are specific to coreutils.
87904         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87905
87906 2005-01-28  Bruno Haible  <bruno@clisp.org>
87907
87908         * modules/javacomp: New file.
87909         * MODULES.html.sh (Java): Add javacomp.
87910
87911 2005-01-28  Bruno Haible  <bruno@clisp.org>
87912
87913         * m4/javacomp.m4: New file, from GNU gettext.
87914
87915 2005-01-28  Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/javacomp.sh.in: New file, from GNU gettext.
87918         * lib/javacomp.h: New file, from GNU gettext.
87919         * lib/javacomp.c: New file, from GNU gettext.
87920
87921 2005-01-26  Simon Josefsson  <jas@extundo.com>
87922
87923         * lib/gai_strerror.c: Use GPL in header.
87924
87925 2005-01-26  Bruno Haible  <bruno@clisp.org>
87926
87927         * modules/javaexec: New file.
87928         * MODULES.html.sh (Java): Add javaexec.
87929
87930 2005-01-26  Bruno Haible  <bruno@clisp.org>
87931
87932         * m4/javaexec.m4: New file, from GNU gettext.
87933
87934 2005-01-26  Bruno Haible  <bruno@clisp.org>
87935
87936         * lib/javaexec.sh.in: New file, from GNU gettext.
87937         * lib/javaexec.h: New file, from GNU gettext.
87938         * lib/javaexec.c: New file, from GNU gettext.
87939
87940 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87941
87942         * modules/lchown (Depends-on): Remove lchown.h
87943
87944 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87945
87946         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87947         must be defined if the header file was not found, in order
87948         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87949
87950 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87951
87952         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87953         initializers for struct pentry_state.
87954         (__argp_error): Check return value of __asprintf
87955         (__argp_failure): Translate error message
87956
87957         * lib/argp-parse.c: Removed braces around the expansion of N_()
87958
87959 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87960
87961         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87962         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87963         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87964         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87965         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87966         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87967         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87968         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87969         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87970         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87971         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87972         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87973         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87974         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87975         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87976         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87977         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87978         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87979         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87980         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87981         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87982         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87983         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87984         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87985         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87986         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87987         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87988         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87989         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87990         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87991         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87992         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87993         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87994         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87995         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87996         Use an all-permissive copyright notice, recommended by RMS.
87997
87998 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         * modules/chdir-long (Depends-on): Remove mempcpy.
88001
88002 2005-01-21  Jim Meyering  <jim@meyering.net>
88003
88004         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88005         same value as for Solaris 9.
88006
88007         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88008         component length.  This included changing the parameter to be
88009         of type `char *' rather than `char const *'.
88010         * lib/chdir-long.h (chdir_long): Update prototype.
88011
88012         * lib/openat.c (fdopendir, fstatat): New functions.
88013         * lib/openat.h: Include headers required for use of DIR and struct
88014         stat.
88015         [AT_SYMLINK_NOFOLLOW]: Define.
88016         (fdopendir, fstatat): Add prototypes.
88017
88018 2005-01-21  Bruno Haible  <bruno@clisp.org>
88019
88020         * modules/classpath: New file.
88021         * MODULES.html.sh (Java): Add classpath.
88022
88023 2005-01-21  Bruno Haible  <bruno@clisp.org>
88024
88025         * lib/classpath.h: New file, from GNU gettext.
88026         * lib/classpath.c: New file, from GNU gettext.
88027
88028 2005-01-20  Simon Josefsson  <jas@extundo.com>
88029
88030         * modules/version-etc-fsf: New file.
88031
88032 2005-01-20  Simon Josefsson  <jas@extundo.com>
88033
88034         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88035         * lib/version-etc.c: Remove version_etc_copyright.
88036         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88037         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88038
88039 2005-01-20  Simon Josefsson  <jas@extundo.com>
88040
88041         * lib/base64.h (isbase64): Add.
88042
88043         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88044         using a unsigned prototype, don't inline.
88045         (base64_decode): Use it.
88046
88047 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88048
88049         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88050         it.
88051
88052 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88053
88054         * lib/save-cwd.c (save_cwd): Remove code to support the case
88055         where fchdir is missing or flaky.
88056
88057 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88058
88059         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88060
88061 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88064         AC_LIBSOURCES now does this.
88065         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88066         with new ullong_max module.
88067
88068 2005-01-19  Bruno Haible  <bruno@clisp.org>
88069
88070         * modules/sh-quote: New file.
88071         * MODULES.html.sh (Executing programs): Add sh-quote.
88072
88073 2005-01-19  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/sh-quote.h: New file, from GNU gettext.
88076         * lib/sh-quote.c: New file, from GNU gettext.
88077
88078 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88079
88080         Merge from coreutils.
88081         * m4/ullong_max.m4: New file.
88082         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88083         (gl_MACROS): Assume localeconv exists.
88084
88085 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         Merge changes from coreutils, as described below in several
88088         changelogs dated today.
88089
88090         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88091         (O_DIRECTORY): Remove; not needed here, since "." must be
88092         a directory.  All uses removed.
88093         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88094         universal on Suns, and we also need to test for IRIX.
88095         Revamp code to use 'if' rather than '#if'.
88096         Avoid unnecessary comparison of cwd->desc to 0.
88097
88098         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88099         for known valid error numbers rather than observed invalid ones.
88100
88101 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * modules/ullong_max: New file.
88104
88105         * modules/chdir-long, modules/openat: New files.
88106         * modules/save-cwd (Depends-on): Depend on chdir-long.
88107         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88108
88109 2005-01-18  Jim Meyering  <jim@meyering.net>
88110
88111         Merge from coreutils.
88112         * m4/chdir-long.m4, m4/openat.m4: New files.
88113         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88114         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88115         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88116         is sane and DOES follow symlinks.  Besides, testing 20 different
88117         systems found no broken chown implementations.
88118         Prompted by a change in rsync's copy of this macro.
88119         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88120
88121         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88122
88123         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88124         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88125         NULL-means-set-to-current-time semantics.
88126         Remove temporary file immediately, rather than waiting
88127         for configure's at-exit trap code to do it.
88128
88129 2005-01-18  Jim Meyering  <jim@meyering.net>
88130
88131         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88132
88133         * lib/utimens.c (futimens): Account for the fact that futimes
88134         can also fail with errno == ENOSYS or errno == ENOENT.
88135         Patch from Dmitry V. Levin.
88136
88137         Change the name of the robust chdir function from chdir to chdir_long.
88138         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88139         (restore_cwd): Use chdir_long, not chdir.
88140         * lib/chdir-long.c: Renamed from chdir.c.
88141         * lib/chdir-long.h: Renamed from chdir.h.
88142         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88143         Hurd.
88144
88145 2005-01-18  Bruno Haible  <bruno@clisp.org>
88146
88147         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88148         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88149         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88150         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88151         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88152         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88153         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88154         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88155         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88156         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88157         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88158         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88159         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88160         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88161         Use an all-permissive copyright notice, recommended by RMS.
88162
88163 2005-01-18  Bob Proulx  <bob@proulx.com>
88164
88165         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88166         simplify offsetof() macro construct to avoid compile failure with
88167         native HP-UX 11.0 ANSI C compiler.
88168
88169 2005-01-17  Bruno Haible  <bruno@clisp.org>
88170
88171         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88172         redundant because stpncpy.m4 takes care of it.
88173
88174 2005-01-17  Bruno Haible  <bruno@clisp.org>
88175
88176         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88177
88178 2005-01-17  Bruno Haible  <bruno@clisp.org>
88179
88180         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88181         used.
88182
88183 2005-01-17  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/fwriteerror.h (fwriteerror): Change specification to include
88186         fclose.
88187         * lib/fwriteerror.c: Include <stdbool.h>.
88188         (fwriteerror): At the end, close the file stream. Record whether
88189         stdout was already closed.
88190
88191 2005-01-17  Bruno Haible  <bruno@clisp.org>
88192
88193         * lib/execute.c (environ): Declare if needed.
88194         * lib/pipe.c (environ): Likewise.
88195         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88196
88197 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88198
88199         * modules/argp: Depend on vsnprintf
88200
88201 2005-01-10  Jim Meyering  <jim@meyering.net>
88202
88203         * modules/closeout (Depends-on): Add atexit.
88204
88205 2005-01-06  Bruno Haible  <bruno@clisp.org>
88206
88207         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88208
88209 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88212         definitions to be after all include files, to avoid collisions.
88213         Problem reported by Bob Proulx.
88214
88215 2005-01-04  Jim Meyering  <jim@meyering.net>
88216
88217         Changes imported from coreutils.
88218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88219         as the mkstemp template, use a temporary directory and an
88220         8.3-friendly template to avoid trouble on systems like DJGPP.
88221         Reported by Juan M. Guerrero via Stepan Kasal.
88222         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88223         close. Remove the temporary directory right away, rather than waiting
88224         for configure's at-exit trap code to do it.
88225         Suggestion from Stepan Kasal.
88226
88227 2005-01-01  Simon Josefsson  <jas@extundo.com>
88228
88229         * gnulib-tool: Print #include directives when --import'ing.
88230
88231 2004-12-28  Simon Josefsson  <jas@extundo.com>
88232
88233         * tests/test-base64.c: Include required header files.  Remove
88234         unused variables.
88235
88236 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88237
88238         * modules/error (Depends-on): Remove gettext.
88239
88240 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88241
88242         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88243         not needed.  This removes a dependency on the gettext module.
88244         [defined _LIBC]: Do not include <libintl.h>; not needed.
88245
88246 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88249         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88250
88251 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88252
88253         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88254         HAVE_DECL_STRTOLD.
88255
88256 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88257
88258         * modules/getdate (Depends-on): Remove alloca-opt.
88259
88260 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88261
88262         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88263
88264 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88265
88266         * lib/argp-parse.c: Include <stddef.h>.
88267         (alignof, alignto): New macros.
88268         (parser_init): Don't assume that void * is aligned sufficiently
88269         for struct option.
88270
88271         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88272         need to extend the stack.
88273         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88274         large.
88275
88276 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88277
88278         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88279
88280 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88281
88282         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88283         (2004-10-24) change.  Apparently this was a false alarm.
88284
88285         * modules/getdate: Depend on alloca-opt, not alloca.
88286
88287 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88288
88289         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88290         Remove now-obsolete comment about AIX.
88291         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88292         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88293         (YYMAXDEPTH): New macro.
88294
88295 2004-12-18  Simon Josefsson  <jas@extundo.com>
88296
88297         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88298
88299 2004-12-18  Bruno Haible  <bruno@clisp.org>
88300
88301         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88302
88303 2004-12-18  Bruno Haible  <bruno@clisp.org>
88304
88305         * lib/fatal-signal.c (fatal_signals): Make non-const.
88306         (init_fatal_signals): New function.
88307         (uninstall_handlers, install_handlers): Ignore signals that were set to
88308         SIG_IGN.
88309         (at_fatal_signal): Call init_fatal_signals.
88310         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88311         SIG_IGN.
88312         Reported by Paul Eggert.
88313
88314 2004-12-18  Bruno Haible  <bruno@clisp.org>
88315
88316         * doc/alloca.texi: New file.
88317         * doc/alloca-opt.texi: New file.
88318
88319 2004-12-17  Jim Meyering  <jim@meyering.net>
88320
88321         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88322         Otherwise, install-sh could exit with improper exit status when
88323         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88324
88325 2004-12-16  Simon Josefsson  <jas@extundo.com>
88326
88327         * tests/test-base64.c: Add license.
88328
88329 2004-12-15  Stepan Kasal  <address@hidden>
88330
88331         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88332
88333 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88334
88335         * modules/getcwd (Files): Add m4/d-ino.m4.
88336         Suggested by Mark D. Baushke.
88337
88338 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88339
88340         * lib/getdate.y (textint): New member "negative".
88341         (time_zone_hhmm): New function.
88342         Expect 14 shift-reduce conflicts, not 13.
88343         (o_colon_minutes): New rule.
88344         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88345         (yylex): Set the "negative" member of signed numbers.
88346
88347 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88348
88349         * doc/getdate.texi (Time of day items, Time zone items):
88350         Describe new formats +00:00, UTC+00:00.
88351
88352 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88353
88354         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88355         spurious "-l"s.  Problem reported by Stepan Kasal.
88356
88357 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88358
88359         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88360         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88361
88362 2004-12-04  Simon Josefsson  <jas@extundo.com>
88363
88364         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88365         Vandoorselaere <yoann@prelude-ids.org>.
88366
88367 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88368
88369         Changes imported from coreutils.
88370         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88371         exist.
88372         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88373
88374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88375
88376         Changes imported from coreutils.
88377         * lib/hard-locale.c: Assume <locale.h> exists.
88378         Include "strdup.h".
88379         (GLIBC_VERSION): New macro.
88380         (hard_locale): Assume setlocale exists.
88381         Rewrite to avoid #ifdef.
88382         Use strdup rather than malloc + strcpy.
88383         * lib/human.c: Assume <locale.h> exists.
88384         (human_readable): Assume localeconv exists.
88385
88386 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88387
88388         * modules/hard-locale (Depends-on): Add strdup.
88389
88390 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88391
88392         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88393         convert T2, not T.  (Imported from libc.)
88394
88395 2004-11-30  Simon Josefsson  <jas@extundo.com>
88396
88397         * modules/restrict (License): Change to LGPL.
88398
88399 2004-11-30  Simon Josefsson  <jas@extundo.com>
88400
88401         * m4/restrict.m4: Add copyright and copying conditions.
88402
88403 2004-11-30  Simon Josefsson  <jas@extundo.com>
88404
88405         * m4/base64.m4: New file.
88406
88407 2004-11-30  Simon Josefsson  <jas@extundo.com>
88408
88409         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88410         base64.
88411
88412         * tests/test-base64.c: New file.
88413
88414         * modules/base64: New file.
88415
88416 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88417
88418         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88419         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88420
88421         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88422
88423 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88424
88425         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88426         (__getcwd.c): Don't restore errno; glibc doesn't.
88427         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88428         first, falling back to our code only if its results look suspicious.
88429         Ensure that the resulting buffer is only as large as necessary.
88430
88431         * lib/readutmp.c: Include readutmp.h first.
88432         Include <errno.h>, since readutmp.h no longer does that.
88433         * lib/readutmp.h: Don't include <errno.h>,
88434         <sys/param.h>, <time.h>; not needed to establish interface.
88435         (errno): Remove decl.
88436         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88437         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88438         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88439
88440 2004-11-28  Simon Josefsson  <jas@extundo.com>
88441
88442         * lib/base64.h, base64.c: New file.
88443
88444 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88445
88446         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88447
88448 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88449
88450         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88451         (Depends-on): Remove pathmax, same.  Add mempcpy.
88452         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88453         (Makefile.am): Append getcwd.h to lib_SOURCES.
88454         (Include): Add getcwd.h.
88455         (Maintainer): Change from Jim Meyering to "all, glibc",
88456         since getdate now uses intended-for-glibc code.
88457         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88458         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88459
88460 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88463         HP's ANSI C compiler.
88464         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88465         Declaring int functions causes warnings on some modern systems and
88466         shouldn't be needed to compile on ancient ones.
88467         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88468         defined.
88469
88470         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88471         with the following changes.
88472         (__set_errno): Parenthesize properly.
88473         Include <stdbool.h>.
88474         (MIN, MAX, MATCHING_INO): New macros.
88475         (__getcwd): Define with prototype, not K&R form.
88476         Use heuristics to allocate default buffer on stack if possible.
88477         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88478         behavior, and to avoid the PATH_MAX limit when computing
88479         ../../../../...
88480         Use MATCHING_INO to compare inode number to file.
88481         Check for arithmetic overflow in size calculations.
88482         Fix bug in reallocation of dot array that caused getcwd to fail
88483         on directories nested deeper than 75.
88484         Be more careful about saving errno on error.
88485         Do not use realloc; use only free+malloc, as this is a bit
88486         more flexible and avoids a needless copy operation.
88487         Do not inspect st_dev and st_ino for symbolic links; POSIX
88488         doesn't specify the latter.
88489         Check for closedir errors.
88490         Avoid needless casts.
88491         Use "#ifdef weak_alias" around weak_alias, to be like other
88492         glibc code.
88493         The following changes to getcwd.c have effect only when used in
88494         gnulib; they have no effect inside glibc proper.
88495         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88496         as alloca isn't used.
88497         (alloca, __alloca): Likewise.
88498         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88499         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88500         unconditionally, as gnulib assumes C89 or better.
88501         Do not include <sys/param.h>.
88502         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88503         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88504         better.
88505         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88506         Include <dirent.h> in a way that is compatible with modern Autoconf.
88507         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88508         New macros, if not already defined.
88509         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88510         Use "_LIBC", not "defined _LIBC", for consistency.
88511         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88512         a mempcpy module.
88513         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88514         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88515         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88516         credit only to Jim Meyering and adjust the copyright dates.
88517         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88518         <stdlib.h>, <unistd.h>, "pathmax.h".
88519         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88520         (INITIAL_BUFFER_SIZE): Remove.
88521         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88522
88523 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88524
88525         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88526         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88527         Use the _ONCE methods, for efficiency.
88528         Check for fcntl.h.  In test program, include <errno.h>
88529         and <fcntl.h> if available.  Remove old K&R cruft from
88530         test program.  Check for common errors in GNU/Linux,
88531         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88532         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88533         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88534         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88535         name accordingly.
88536         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88537         accommodate new getcwd.c.
88538         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88539         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88540         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88541         that's all we need now.
88542
88543 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88544
88545         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88546         argp-parse.c depends on getopt internals, that means we should
88547         always use our getopt, to be on the safe side.
88548         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88549         order not to spoil the result of an eventual previous invocation
88550         of gl_GETOPT_SUBSTITUTE.
88551
88552 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88553
88554         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88555         redefinition warnings. To avoid them, include the defines
88556         in `#if !defined __need_getopt ... #endif'. The only place
88557         where __getopt_argv_const is used is in definitions
88558         of getopt_long and getopt_long_only below, which are as well
88559         protected by `#ifndef __need_getopt'.
88560         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88561         __need_getopt after including <stdio.h> and <unistd.h> These
88562         headers might have defined it.
88563
88564 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88565
88566         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88567
88568 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88569
88570         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88571         (futimens): New function, which uses futimes if available.
88572         (futimens, utimens): Support timespec==NULL, with same semantics
88573         as utime and utimens.
88574         * lib/utimens.h (futimens): New decl.
88575
88576 2004-11-23  Jim Meyering  <jim@meyering.net>
88577
88578         * lib/getopt_.h: Remove trailing blanks.
88579
88580 2004-11-23  Jim Meyering  <jim@meyering.net>
88581
88582         * lib/__fpending.c: Add comment.
88583
88584 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88585
88586         * modules/canonicalize (Depends-on): Add xreadlink.
88587         Problem reported by James Youngman.
88588
88589 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88590
88591         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88592         New macros.
88593         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88594         optopt): Use them instead of invoking ## directly; otherwise, the
88595         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88596
88597 2004-11-19  Bruno Haible  <bruno@clisp.org>
88598
88599         * lib/strtok_r.c: Move comments from here...
88600         * lib/strtok_r.h: ... to here.
88601
88602 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88603
88604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88605         implementations that mishandle size_t overflow.
88606
88607 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88608
88609         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88610         might fail.  Problem reported by Yoann Vandoorselaere.
88611         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88612         implementations that mishandle size_t overflow.
88613
88614 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88615
88616         * modules/canon-host (Depends-on): Add strdup.
88617
88618 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88621
88622 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * lib/canon-host.c: Include "strdup.h".
88625         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88626         Use strdup instead of malloc/strcpy to duplicate strings.
88627
88628         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88629         (human_space_before_unit): New constant.
88630         * lib/human.c (human_readable): Support it.
88631
88632         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88633         (xgetcwd): Set errno correctly when failing.
88634         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88635         the failure is actually due to a PATH_MAX problem.
88636
88637         Further getopt changes to make it more likely that glibc will
88638         buy the changes back.
88639         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88640         (getopt): Use it, so to preserve glibc semantic
88641         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88642         when compiling for libc.
88643         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88644         (getopt_long, getopt_long_only): Use it.
88645
88646         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88647         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88648         (getopt): Argv is now char * const *, as per standard.
88649         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88650         not char *__getopt_argv_const *.
88651         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88652         _getopt_long_only_r): Likewise.
88653         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88654         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88655         _getopt_long_r, _getopt_long_only_r): Likewise.
88656         * lib/getopt_.h (__getopt_argv_const): Remove.
88657         (getopt): Argv is now char * const *, as per standard.
88658
88659         * lib/getdate.y (tORDINAL): New token.
88660         (day, relunit): Allow it for relative times.
88661         (relative_time_table): Use tORDINAL for ordinals.
88662
88663 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88664
88665         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88666         Document that "second" isn't allowed as an ordinal number.
88667
88668 2004-11-16  Jim Meyering  <jim@meyering.net>
88669
88670         * modules/closeout (Depends-on): Add fpending.
88671
88672 2004-11-15  Jim Meyering  <jim@meyering.net>
88673
88674         * lib/closeout.c: Include "__fpending.h" once again.
88675         Include <stdbool.h>.
88676         (close_stdout): Don't fail just because stdout was closed initially,
88677         since some programs don't write to stdout in the normal course of
88678         operation (other than --version and --help), and we don't want this
88679         function to make e.g. `touch file >&-' fail.
88680         But do fail if it was closed and someone has tried to write to it.
88681         E.g., `printf foo >&-' must fail.
88682
88683 2004-11-13  Jim Meyering  <jim@meyering.net>
88684
88685         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88686
88687 2004-11-12  Simon Josefsson  <jas@extundo.com>
88688
88689         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88690         small doc fix is still pending.
88691
88692 2004-11-11  Simon Josefsson  <jas@extundo.com>
88693
88694         * modules/strtok_r: New file.
88695
88696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88697         strtok_r.
88698
88699 2004-11-11  Simon Josefsson  <jas@extundo.com>
88700
88701         * m4/strtok_r.m4: New file.
88702
88703         * m4/getopt.m4: Replace opterr.
88704
88705 2004-11-11  Simon Josefsson  <jas@extundo.com>
88706
88707         * lib/strtok_r.h, strtok_r.c: New file.
88708
88709 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88710
88711         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88712         of replacing opterr, getopt, etc.  This should handle the
88713         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88714
88715 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88718         we can stop lying to compilers about the constness of argv when we
88719         are compiled outside glibc.
88720         (getopt, getopt_long, getopt_long_only): Use it.
88721         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88722         _getopt_internal, getopt): Likewise.
88723         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88724         _getopt_long_only_r): Likewise.
88725         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88726         _getopt_long_r, _getopt_long_only_r): Likewise.
88727
88728         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88729         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88730         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88731         the other external symbols.
88732         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88733         declaration, since the above renaming now works around collisions.
88734
88735 2004-11-11  Jim Meyering  <jim@meyering.net>
88736
88737         * lib/linebreak.c: Remove trailing blanks.
88738         * lib/alloca_.h: Likewise.
88739         * lib/acosl.c: Likewise.
88740         * lib/euidaccess.c: Likewise.
88741         * lib/allocsa.h: Likewise.
88742
88743 2004-11-10  Simon Josefsson  <jas@extundo.com>
88744
88745         * m4/getaddrinfo.m4: New file.
88746
88747 2004-11-10  Simon Josefsson  <jas@extundo.com>
88748
88749         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88750
88751 2004-11-10  Simon Josefsson  <jas@extundo.com>
88752
88753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88754         getaddrinfo.
88755
88756         * modules/getaddrinfo: New file.
88757
88758 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88759
88760         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88761
88762 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88763
88764         * lib/mktime.c (SHR): New macro, which is a portable
88765         substitute for >> that should work even on Crays.
88766         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88767         Problem reported by Mark D. Baushke in
88768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88769         * lib/getdate.y (SHR): Likewise.
88770         (tm_diff): Use it.
88771         * lib/strftime.c (SHR): Likewise.
88772         (tm_diff): Use it.
88773         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88774         quote_these_too, so that right shifts are well defined.  All uses
88775         changed.
88776
88777 2004-11-10  Jim Meyering  <jim@meyering.net>
88778
88779         Ensure that no close failure goes unreported.
88780         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88781         return early when it seems there's nothing to flush.
88782         Don't include __fpending.h.
88783
88784 2004-11-10  Jim Meyering  <jim@meyering.net>
88785
88786         * modules/closeout (Depends-on): Remove fpending.
88787
88788 2004-11-10  Jim Meyering  <jim@meyering.net>
88789
88790         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88791
88792 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88793
88794         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88795         gl_FUNC_STRFTIME.
88796         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88797         and AC_REQUIRE when possible, to avoid duplicate checks.
88798         Check for <wchar.h>.
88799
88800 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88801
88802         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88803
88804 2004-11-09  Bruno Haible  <bruno@clisp.org>
88805
88806         * m4/sockpfaf.m4: New file.
88807
88808 2004-11-05  Bruno Haible  <bruno@clisp.org>
88809
88810         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88811         Reported by Mark D. Baushke <mdb@cvshome.org>.
88812
88813 2004-11-04  Bruno Haible  <bruno@clisp.org>
88814
88815         2004-09-11  Bruno Haible  <bruno@clisp.org>
88816                 * allocsa.valgrind: New file.
88817         2004-02-06  Bruno Haible  <bruno@clisp.org>
88818                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88819                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88820                 Reported by Christopher Seip <chris.seip@hp.com>.
88821
88822 2004-11-04  Bruno Haible  <bruno@clisp.org>
88823
88824         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88825         (Makefile.am): Distribute it.
88826
88827 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88828
88829         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88830         with errno == ERANGE if the buffer is too small.
88831         Problem reported by Mark D. Baushke.
88832
88833 2004-11-03  Albert Chin  <china@thewrittenword.com>
88834             Paul Eggert  <eggert@cs.ucla.edu>
88835
88836         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88837         equivalent, substitute $ac_type for equivalent type rather than
88838         blindly using uint32_t *always* which won't work if uint32_t is not
88839         available.  Define _UINT32_T to work around typedef of uint32_t if
88840         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88841         2.5.1.
88842
88843 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         * m4/jm-macros.m4: Sync from coreutils.
88846         (gl_MACROS): Check for mbrlen, for pathchk.
88847         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88848
88849 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88850
88851         * lib/xreadlink.c (MAXSIZE): New macro.
88852         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88853         size does not exceed MAXSIZE.  Avoid cast.
88854         As suggested by Mark D. Baushke in
88855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88856         if readlink fails with buffer size just under MAXSIZE, try again
88857         with MAXSIZE.
88858
88859 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88860
88861         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88862
88863 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88864         and  Paul Eggert  <eggert@cs.ucla.edu>
88865
88866         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88867         (get_date): Overparenthesize to avoid GCC warning.
88868
88869 2004-11-02  Bruno Haible  <bruno@clisp.org>
88870
88871         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88872         returns void.
88873
88874 2004-11-02  Bruno Haible  <bruno@clisp.org>
88875
88876         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88877         function returns void.
88878
88879 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88880
88881         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88882         fflush_unlocked, flockfile, funlockfile, funlockfile,
88883         fputs_unlocked, putc_unlocked.
88884
88885 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88886
88887         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88888         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88889         already declared.
88890
88891 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88892
88893         * modules/getdate (Files): Add doc/getdate.texi.
88894         (Depends-on): Add setenv, xalloc.
88895
88896 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * lib/getdate.y: Add support for TZ="foo" within a date string.
88899         Fix some bugs near time_t boundaries.  Reject dates with
88900         out-of-range components, e.g., "Sept 31".
88901         Include <stdlib.h>, "setenv.h", "xalloc.h".
88902         (ISDIGIT_LOCALE): Remove; unused.
88903         Note that the TZ and time functions used here are not reentrant.
88904         (mktime_ok, get_tz): New functions.
88905         (TZBUFSIZE): New constant.
88906         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88907         This requires that we sometimes generate our own TZ="XXX..." setting.
88908
88909 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88910
88911         * doc/getdate.texi: New file, from coreutils with modifications for
88912         the new TZ parsing.
88913
88914 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88915
88916         * lib/mktime.c (not_equal_tm): Remove redundant check.
88917
88918 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88919
88920         * modules/regex (lib_SOURCES): Add regex.c.
88921         Reported by James Youngman in
88922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88923
88924 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88925
88926         * lib/getdate.y: Use Bison 1.875 features, and some minor
88927         code cleanups.  This change does not affect semantics.
88928         Don't include <stdlib.h>; no longer needed.
88929         Don't include unlocked-io.h; only the "#if TEST" code uses
88930         stdio, and performance isn't crucial there.
88931         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88932         Bison 1.875 features as described below.
88933         All uses of "PC." replaced by "pc->".
88934         (YYSTYPE): Add a forward declaration.
88935         (yylex, yyerror): Use full prototypes in forward decls.
88936         Use "%pure-parser" rather than obsolescent "%pure_parser".
88937         Use %parse-param and %lex-param instead of obsolescent
88938         YYPARSE_PARAM and YYLEX_PARAM.
88939         (meridian_table, month_and_day_table, time_units_table,
88940         relative_time_table, time_zone_table, military_table,
88941         lookup_zone, lookup_word, get_date):
88942         Use NULL instead of 0 where appropriate.
88943         (to_hour): Avoid abort (), to avoid a dependency on
88944         stdlib.h.
88945         (yyerror, yylex): Now accepts parser_control * arg.
88946         (main) [TEST]: Use '\0' rather than 0 for char.
88947
88948 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88951
88952 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88953
88954         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88955         It's now the caller's responsibility to handle the case where
88956         !HAVE_GETPAGESIZE && !defined getpagesize.
88957
88958         * lib/mktime.c (leapyear): Arg is long int, not int.
88959
88960 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88961
88962         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88963
88964 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88965
88966         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88967         missing.  Problem reported by James Youngman.
88968
88969 2004-10-16  Simon Josefsson  <jas@extundo.com>
88970
88971         * gnulib-tool: Fix comments.  Fix parse problem.
88972         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88973
88974 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88975
88976         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88977         implementation of getopt_long.  Problem reported by Alexander Taler in:
88978         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88979
88980 2004-10-15  Bruno Haible  <bruno@clisp.org>
88981
88982         * gnulib-tool: Untabify. Initialize supplied_libname.
88983         (func_usage): More homogenous output.
88984         (func_modules_transitive_closure, func_modules_to_filelist,
88985         func_emit_lib_Makefile_am): New functions.
88986         (func_import): New function, extracted from big case statement. Use
88987         func_get_license, func_modules_transitive_closure,
88988         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88989         opt_lgpl. Don't use test -a, as it's not portable.
88990         (func_create_testdir): Use func_modules_transitive_closure,
88991         func_modules_to_filelist, func_emit_lib_Makefile_am.
88992
88993 2004-10-15  Bruno Haible  <bruno@clisp.org>
88994
88995         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88996
88997 2004-10-15  Bruno Haible  <bruno@clisp.org>
88998
88999         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89000         the portions belonging to each module.
89001         Suggested by Derek Robert Price <derek@ximbiot.com>.
89002
89003 2004-10-12  Simon Josefsson  <jas@extundo.com>
89004
89005         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89006         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89007         to real functions.
89008
89009 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89010
89011         * modules/vsnprintf: New file.
89012
89013 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89014
89015         * m4/vsnprintf.m4: New file.
89016
89017 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89018
89019         * lib/vsnprintf.h: New file.
89020         * lib/vsnprintf.c: New file.
89021
89022 2004-10-11  Bruno Haible  <bruno@clisp.org>
89023
89024         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89025         vsnprintf.
89026
89027 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89028
89029         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89030
89031 2004-10-07  Bruno Haible  <bruno@clisp.org>
89032
89033         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89034         fits into the provided buffer.
89035
89036 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89037
89038         * lib/diacrit.c, diacrit.h: Add GPL notice.
89039
89040         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89041         notice.
89042         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89043         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89044         This avoids a potential constant-folding bug.
89045
89046 2004-10-05  Bruno Haible  <bruno@clisp.org>
89047
89048         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89049         for the declaration of strsep.
89050
89051 2004-10-05  Bruno Haible  <bruno@clisp.org>
89052
89053         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89054
89055 2004-10-04  Simon Josefsson  <jas@extundo.com>
89056
89057         * modules/memmem: New file.
89058         * tests/test-memmem.c: New file.
89059         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89060
89061 2004-10-04  Simon Josefsson  <jas@extundo.com>
89062
89063         * m4/memmem.m4: New file.
89064
89065 2004-10-04  Simon Josefsson  <jas@extundo.com>
89066
89067         * lib/memmem.h: New file.
89068         * lib/memmem.c: New file, taken from glibc.
89069
89070 2004-10-04  Simon Josefsson  <jas@extundo.com>
89071
89072         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89073         '#ifdef USE_UNLOCKED_IO'.
89074
89075 2004-10-04  Simon Josefsson  <jas@extundo.com>
89076
89077         * config/srclist.txt: Add memmem from glibc.
89078
89079 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89080
89081         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89082
89083         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89084         modules/exclude, modules/getdate, modules/getline,
89085         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89086         modules/getusershell, modules/linebuffer, modules/md5,
89087         modules/mountlist, modules/posixtm, modules/readtokens,
89088         modules/readutmp, modules/regex, modules/sha1,
89089         modules/version-etc, modules/yesno:
89090         Remove dependency on unlocked-io.
89091
89092 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89093
89094         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89095
89096         * m4/unlocked-io.m4: Add copyright notice.
89097         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89098
89099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89100
89101         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89102         * lib/xmalloc.c (xmemdup): Likewise.
89103         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89104         XFREE): Remove these long-obsolescent macros.
89105         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89106         * lib/xstrdup.c: Remove.
89107
89108         * lib/regex.c (re_comp): Cast gettext return value to char *,
89109         Problem reported by Martin Neitzel via Mark D. Baushke.
89110
89111 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89112
89113         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89114         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89115         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89116         regex.c, sha1.c, version-etc.c, yesno.c:
89117         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89118         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89119         the includer's responsibility.
89120
89121         Sync from coreutils.
89122
89123         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89124         points to the start of a string, as the C Standard says the
89125         resulting behavior is undefined.
89126
89127         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89128         simple -> simple_backups, numbered_existing ->
89129         numbered_existing_backups, numbered -> numbered_backups
89130         to avoid shadowing problems.  All uses changed.
89131         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89132         * lib/backupfile.c (check_extension, numbered_backup):
89133         Rename locals to avoid shadowing 'basename'.
89134         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89135         once.
89136
89137         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89138         * lib/.cvsignore: Add getopt.h.
89139
89140 2004-10-04  Bruno Haible  <bruno@clisp.org>
89141
89142         * modules/README: New file.
89143         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89144         not a module.
89145
89146 2004-10-02  Jim Meyering  <jim@meyering.net>
89147
89148         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89149
89150 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89151
89152         * modules/strsep: New file.
89153
89154 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89155
89156         * m4/strsep.m4: New file.
89157
89158 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89159
89160         * lib/strsep.h: New file.
89161         * lib/strsep.c: New file.
89162
89163 2004-10-01  Simon Josefsson  <jas@extundo.com>
89164
89165         * lib/snprintf.c (snprintf): Handle size==0.
89166
89167 2004-10-01  Simon Josefsson  <jas@extundo.com>
89168             Bruno Haible  <bruno@clisp.org>
89169
89170         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89171         (snprintf): Declare 'args'.
89172
89173 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89174
89175         * lib/snprintf.c: Remove comments as to why each header is needed.
89176
89177 2004-10-01  Bruno Haible  <bruno@clisp.org>
89178
89179         * MODULES.html.sh: Add strsep.
89180
89181 2004-09-30  Simon Josefsson  <jas@extundo.com>
89182
89183         * modules/snprintf: New file.
89184
89185 2004-09-30  Simon Josefsson  <jas@extundo.com>
89186
89187         * m4/snprintf.m4: New file.
89188
89189 2004-09-30  Simon Josefsson  <jas@extundo.com>
89190
89191         * lib/snprintf.h, lib/snprintf.c: New files.
89192
89193 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89194
89195         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89196         (hol_entry_help): Never translate an empty string.
89197         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89198         * lib/argp.h (OPTION_NO_TRANS): New option.
89199
89200 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89201
89202         * modules/argp (Maintainer): Replace Simon Josefsson
89203         by Sergey Poznyakoff.
89204
89205 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89206
89207         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89208         changes merged back into glibc.
89209
89210 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89211
89212         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89213
89214 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89215
89216         * lib/xvasprintf.c: Include xalloc.h.
89217         (xvasprintf): Use xalloc_die, not xmalloc_die.
89218
89219 2004-09-29  Bruno Haible  <bruno@clisp.org>
89220
89221         * modules/alloca-opt: New file, derived from modules/alloca.
89222         * modules/allocsa: Depend on alloca-opt instead of alloca.
89223         * modules/setenv: Likewise.
89224         * modules/vasnprintf: Likewise.
89225         * MODULES.html.sh: Add alloca-opt.
89226
89227 2004-09-28  Simon Josefsson  <jas@extundo.com>
89228
89229         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89230         LGPL, and to replace license template from GPL to LGPL.
89231
89232 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89233
89234         * modules/dummy: Change license to LGPL.
89235
89236 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89237
89238         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89239
89240 2004-09-24  Simon Josefsson  <jas@extundo.com>
89241
89242         * modules/minmax (License): Change from GPL to LGPL.
89243
89244 2004-09-23  Simon Josefsson  <jas@extundo.com>
89245
89246         * gnulib-tool (--import): Typo.
89247
89248 2004-09-23  Simon Josefsson  <jas@extundo.com>
89249
89250         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89251
89252 2004-09-22  Bruno Haible  <bruno@clisp.org>
89253
89254         * modules/*: Add 'License' field.
89255         * gnulib-tool: Accept --extract-license option.
89256         (func_get_license): New function.
89257
89258 2004-09-21  Bruno Haible  <bruno@clisp.org>
89259
89260         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89261         Reported by Simon Josefsson.
89262
89263 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89264
89265         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89266         gl_AC_TYPE_LONG_LONG.
89267
89268 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89269
89270         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89271
89272 2004-09-18  Simon Josefsson  <jas@extundo.com>
89273         and  Paul Eggert  <eggert@cs.ucla.edu>
89274
89275         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89276         calls with autoreconf.  Define GL_LIB.
89277
89278 2004-09-14  Karl Berry  <karl@gnu.org>
89279
89280         * config/srclist.txt: unsync setenv.c, sigh.
89281
89282 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89283
89284         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89285         Problem reported by Bruno Haible in:
89286         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89287
89288 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89289
89290         * config/srclist.txt: Comment out argp-pvh.c.
89291
89292 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89293
89294         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89295         in case some system header has #define'd it.  Problem reported by
89296         Soeren D. Schulze in
89297         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89298
89299 2004-09-09  Karl Berry  <karl@gnu.org>
89300
89301         * regex.[ch]: delete from the root.  These were supposed to be
89302                 synced with emacs cvs, but this has not happened for about
89303                 a year, and anyway nothing else uses emacs regex.[ch].
89304                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89305                 lib/regex[.ch] is untouched.
89306
89307 2004-09-09  Bruno Haible  <bruno@clisp.org>
89308
89309         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89310
89311 2004-09-09  Bruno Haible  <bruno@clisp.org>
89312
89313         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89314         modifications.
89315         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89316
89317 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89318
89319         * modules/xvasprintf: New file.
89320         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89321
89322 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89323
89324         * lib/xvasprintf.h: New file.
89325         * lib/xvasprintf.c: New file.
89326         * lib/xasprintf.c: New file.
89327
89328 2004-09-08  Bruno Haible  <bruno@clisp.org>
89329
89330         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89331
89332 2004-09-08  Bruno Haible  <bruno@clisp.org>
89333
89334         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89335         length is > INT_MAX.
89336         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89337         more.
89338
89339 2004-09-08  Bruno Haible  <bruno@clisp.org>
89340
89341         * lib/stdint_.h: New file, taken from GNU clisp.
89342
89343 2004-09-08  Bruno Haible  <bruno@clisp.org>
89344             Oskar Liljeblad  <oskar@osk.mine.nu>
89345
89346         * modules/stdint: New file.
89347         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89348
89349 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89350
89351         Import from coreutils.
89352         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89353         strings on unbounded length.  alloca's performance benefits aren't
89354         that important here.
89355         (V_STRDUP): Remove.
89356         (parse_with_separator): New function, with most of the internals
89357         of the old parse_user_spec.  Allow user to omit both user and group,
89358         for compatibility with FreeBSD.
89359         Clone only the user name, not the entire spec.
89360         Do not set *uid, *gid unless entirely successful.
89361         Avoid memory leak in some failing cases.
89362         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89363         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89364         (parse_user_spec): Rewrite to use parse_with_separator.
89365
89366 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89367
89368         * modules/userspec: Don't depend on alloca.
89369
89370 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89371
89372         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89373
89374 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89375
89376         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89377         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89378         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89379
89380 2004-08-16  Simon Josefsson  <jas@extundo.com>
89381
89382         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89383         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89384         Add --dry-run for --import.
89385         Let user provided command line parameters override configure.ac
89386         settings.
89387
89388 2004-08-12  Simon Josefsson  <jas@extundo.com>
89389
89390         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89391         as discussed with Paul Eggert in threads rooted at
89392         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89393         and
89394         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89395         Before, the test was empty, and relied on ELIDE_CODE in source
89396         code.)
89397         (gl_PREREQ_GETOPT): New macro.
89398         (gl_GETOPT): Use them.
89399
89400 2004-08-12  Simon Josefsson  <jas@extundo.com>
89401
89402         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89403         * lib/getopt_.h: Renamed from getopt.h.
89404
89405 2004-08-12  Simon Josefsson  <jas@extundo.com>
89406
89407         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89408         Change default library name from libfoo to libgnu.
89409         Now, if you have a configure.ac that says:
89410                 gl_SOURCE_BASE(gl)
89411                 gl_M4_BASE(gl/m4)
89412                 gl_MODULES(error getopt etcetera)
89413                 gl_INIT
89414         you can import all you need by running:
89415                 ../gnulib/gnulib-tool --import
89416
89417         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89418         (Makefile.am): Rewrite, use logic from argz.
89419         (Include): Use <getopt.h> instead of "getopt.h".
89420
89421 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89422
89423         * modules/argp (Files): Add m4/unlocked-io.m4.
89424         (Depends-on): Add extensions.
89425
89426 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89427
89428         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89429         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89430         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89431         Check for program_invocation_name, program_invocation_short_name,
89432         flockfile, funlockfile, features.h, _getopt_long_only_r.
89433
89434 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89435
89436         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89437         its complicated substitute.
89438         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89439         and program_invocation_name.
89440         (__argp_basename) [!_LIBC]: Remove; the only use was
89441         replaced by its body.
89442         (__argp_short_program_name): Change condition from
89443         !defined __argp_short_program_name to
89444         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89445         to match argp-namefrob.h.
89446         (__argp_failure): Don't assume strerror_r returns char *.
89447         * lib/argp-parse.c (N_): Define unconditionally.
89448         (argp_default_options): Fill out initializers with 0 to avoid
89449         gcc warnings.
89450
89451 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89452
89453         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89454         getopt1.c.
89455
89456 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89457
89458         Merge from coreutils.
89459
89460         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89461
89462         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89463         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89464
89465 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89466
89467         Merge from coreutils.
89468
89469         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89470         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89471         for Reliant Unix 5.43.
89472
89473         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89474         (union fooround): Use uintmax_t, not long int.
89475         The rest is a merge from libc:
89476         [defined _LIBC]: Include <shlib-compat.h>.
89477         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89478
89479         * lib/settime.c (settime): Recode to avoid warning with
89480         Sun Forte C 6U2.
89481
89482         * lib/strverscmp.c: Convert to UTF-8.
89483
89484 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89485
89486         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89487         m4/uintmax_t.m4.
89488
89489 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89490
89491         * modules/xalloc-die: New file.
89492         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89493
89494         * modules/md5 (Files): Add m4/uint32_t.m4.
89495         * modules/sha1: Renamed from modules/sha.
89496         (Files):
89497         Rename lib/sha.h to lib/sha1.h.
89498         Rename lib/sha.c to lib/sha1.c.
89499         Rename m4/sha.m4 to m4/sha1.m4.
89500         (lib_SOURCES): Likewise.
89501         (configure.ac): Rename gl_SHA to gl_SHA1.
89502         (Include): sha.h -> sha1.h.
89503
89504 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89505
89506         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89507         * m4/sha1.m4: Renamed from sha.m4.
89508         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89509
89510 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89511
89512         * lib/obstack.h (obstack_empty_p):
89513         Don't assume that chunk->contents is suitably aligned.
89514         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89515         Likewise. Problem reported by Benno in
89516         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89517
89518         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89519         readable.  This could be improved further but it'd take some work.
89520
89521 2004-08-08  Simon Josefsson  <jas@extundo.com>
89522
89523         * modules/xgethostname (Depends-on): Remove exit and error (not
89524         used).
89525
89526         * modules/getpass-gnu: Add getpass.h.
89527         (Depends-on): Add stdbool.
89528         * modules/getpass: Add getpass.h.
89529
89530 2004-08-08  Simon Josefsson  <jas@extundo.com>
89531
89532         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89533         Check getpass declaration.
89534
89535 2004-08-08  Simon Josefsson  <jas@extundo.com>
89536
89537         * lib/xgethostname.c: Don't include error.h (not used).
89538
89539         * lib/getpass.h: Add.
89540         * lib/getpass.c: Include getpass.h first.
89541
89542 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89543
89544         * lib/xalloc-die.c: New file.
89545         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89546         All uses removed.
89547         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89548         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89549         xalloc-die.c.
89550         (_, N_, xalloc_die): Move to xalloc-die.c.
89551         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89552         so that we needn't mess with xalloc_msg_memory_exhausted.
89553
89554         * lib/sha1.h: Renamed from sha.h.
89555         (SHA1_H): Renamed from _SHA_H.
89556         (sha1_ctx): Renamed from sha_ctx.
89557         (sha1_init_ctx): Renamed from sha_init_ctx.
89558         (sha1_process_block): Renamed from sha_process_block.
89559         (sha1_process_bytes): Renamed from sha_process_bytes.
89560         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89561         (sha1_read_ctx): Renamed from sha_read_ctx.
89562         (sha1_stream): Renamed from sha_stream.
89563         (sha1_buffer): Renamed from sha_buffer.
89564         * lib/sha1.c: Likewise; renamed from sha.c.
89565         Do not include <sys/types.h>.
89566         Include <stddef.h> rather than <stdlib.h>.
89567
89568 2004-08-08  Bruno Haible  <bruno@clisp.org>
89569
89570         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89571         FILESYSTEM_PREFIX_LEN.
89572         * lib/progreloc.c: Likewise.
89573         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89574
89575 2004-08-06  Simon Josefsson  <jas@extundo.com>
89576
89577         * modules/progname (Depends-on): Don't depend on stdbool.
89578
89579 2004-08-06  Simon Josefsson  <jas@extundo.com>
89580
89581         * modules/getsubopt: New file.
89582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89583         getsubopt.
89584
89585 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89586
89587         More merge from coreutils.
89588
89589         * m4/utimens.m4, m4/utimecmp.m4: New files.
89590         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89591         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89592         prereq.m4, sha.m4: Import changes from coreutils.
89593
89594 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89595
89596         More merge from coreutils.
89597         * modules/raise, modules/readtokens0, modules/utimens:
89598         * modules/utimecmp, module/xnanosleep: New files.
89599         * modules/strftime: Add lib/strftime.h.
89600         Change include from <time.h> to "strftime.h".
89601         * modules/yesno: Add lib/yesno.h.
89602         * modules/backupfile: Remove lib/addext.c.
89603         * modules/euidaccess: Add stat-macros.h.
89604         * modules/canonicalize, modules/euidaccess,
89605         modules/filemode, modules/lchown, modules/makepath,
89606         modules/rmdir, modules/stat: Likewise.
89607
89608 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89609
89610         Merge from tar.
89611         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89612         SIZE_MAX is a valid preprocessor constant.
89613         (__argp_basename): Change from "#ifndef _LIBC"
89614         to "#ifndef __argp_short_program_name", so that
89615         we don't compile these functions for tar.
89616
89617         More merges from coreutils.
89618         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89619         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89620         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89621         * lib/addext.c: Remove; no longer needed.
89622         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89623         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89624         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89625         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89626         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89627         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89628         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89629         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89630         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89631         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89632         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89633         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89634         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89635         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89636         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89637         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89638         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89639         Import changes from coreutils.
89640
89641 2004-08-05  Simon Josefsson  <jas@extundo.com>
89642
89643         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89644
89645 2004-08-05  Simon Josefsson  <jas@extundo.com>
89646
89647         * m4/getsubopt.m4: New file.
89648
89649 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89650
89651         Merge from coreutils.
89652
89653         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89654         * m4/getcwd-path-max.m4: New files.
89655
89656         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89657         FILESYSTEM_PREFIX_LEN ->
89658         FILE_SYSTEM_PREFIX_LEN.
89659         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89660         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89661         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89662         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89663
89664         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89665         prerequisite modules now handle the DOS stuff.
89666         Don't check for unistd.h.
89667
89668 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89669
89670         Merge from coreutils.
89671
89672         * lib/.gdb-history: Remove; this doesn't belong here.
89673
89674         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89675         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89676         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89677         * lib/getcwd.c: New files.
89678
89679         * lib/dirname.h: Include <stdbool.h>.
89680         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89681         for consistency with POSIX terminology.  All uses changed.
89682         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89683         (strip_trailing_slashes): Use bool for booleans.
89684         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89685
89686         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89687         sometimes returns a positive errno value even when it succeeds.
89688         (print_errno_message) [!LIBC]: Fall back on strerror if
89689         __strerror_r fails.
89690
89691         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89692         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89693         (longest_relative_suffix): New function.
89694         (path_concat): Use it.  Assume first argument is not NULL.
89695         Port to DOS.  Omit redundant separators.
89696         Report an error instead of returning NULL.
89697         Use mempcpy instead of memcpy.
89698         (xpath_concat): Remove: not declared or used.
89699
89700         * lib/same.h: Include <stdbool.h>
89701         (same_name): Return bool, not int.
89702         * lib/same.c (same_name): Likewise.
89703         (errno): Don't declare; we assume C89 or better now.
89704
89705         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89706         if not already defined.
89707
89708         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89709         * lib/dup-safer.c (errno): Likewise.
89710
89711 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89712
89713         Merge from coreutils.
89714         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89715         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89716         * modules/path-concat: Don't depend on strdup.
89717
89718 2004-08-03  Simon Josefsson  <jas@extundo.com>
89719
89720         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89721         * lib/progname.h: Don't include stdbool.h.
89722
89723 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89724
89725         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89726         * MODULES.html.sh (func_all_modules): Remove fatal.
89727
89728 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89729
89730         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89731
89732 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89733
89734         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89735         working.
89736
89737 2004-08-02  Simon Josefsson  <jas@extundo.com>
89738
89739         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89740         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89741         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89742
89743 2004-08-01  Simon Josefsson  <jas@extundo.com>
89744
89745         * lib/xgetdomainname.c: Include stdlib.h, for free().
89746
89747 2004-07-19  Bruno Haible  <bruno@clisp.org>
89748
89749         * MODULES.html.sh (func_all_modules): Add dummy.
89750
89751 2004-07-16  Simon Josefsson  <jas@extundo.com>
89752
89753         * modules/dummy: New file.
89754
89755 2004-07-16  Simon Josefsson  <jas@extundo.com>
89756
89757         * lib/dummy.c: New file.
89758
89759 2004-07-16  Bruno Haible  <bruno@clisp.org>
89760
89761         * lib/backupfile.h: Add extern "C" for C++.
89762         * lib/closeout.h: Likewise.
89763         * lib/copy-file.h: Likewise.
89764         * lib/findprog.h: Likewise.
89765         * lib/full-write.h: Likewise.
89766         * lib/pathname.h: Likewise.
89767         * lib/progname.h: Likewise.
89768         * lib/stpcpy.h: Likewise.
89769         * lib/stpncpy.h: Likewise.
89770         * lib/strcase.h: Likewise.
89771         * lib/strstr.h: Likewise.
89772         * lib/xalloc.h: Likewise.
89773
89774         * lib/mbswidth.h: Add extern "C" for C++.
89775         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89776
89777 2004-07-13  Robert Millan  <robertmh@gnu.org>
89778
89779         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89780
89781 2004-07-09  Simon Josefsson  <jas@extundo.com>
89782
89783         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89784         failed without this.)
89785
89786 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89787
89788         * modules/chown (Files): Add lib/fchown-stub.c, since
89789         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89790
89791 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89792
89793         * lib/fchown-stub.c: New file.
89794
89795 2004-06-24  Jim Meyering  <jim@meyering.net>
89796
89797         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89798
89799 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89800
89801         * modules/argz: Omit "#include".
89802
89803         * MODULES.html.sh (func_all_modules): Add calloc, to match
89804         2004-06-01 addition of calloc module.
89805
89806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89807
89808         * m4/argz.m4: New file, which is autoupdated from libtool.
89809
89810 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89811
89812         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89813         libtool.
89814
89815 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89816
89817         * config/srclist-update: Don't insist on "USA." before the
89818         close-comment, as libtool omits the period and puts the */ on a
89819         separate line.
89820         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89821         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89822
89823 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89824
89825         * modules/argz: New file.
89826         * MODULES.html.sh (func_all_modules): Add argz.
89827
89828 2004-06-12  Jim Meyering  <jim@meyering.net>
89829         and  Paul Eggert  <eggert@cs.ucla.edu>
89830
89831         * modules/hash (Files): Add lib/xalloc.h.
89832         * modules/pipe (Depends-on): Add wait-process.
89833         * modules/stat (Depends-on): Add xalloc.
89834         * modules/userspec (Files): Add lib/userspec.h.
89835         * modules/xstrto
89836
89837         Upgrade from gettext-0.13.
89838         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89839         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89840         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89841
89842 2004-06-10  Jim Meyering  <jim@meyering.net>
89843
89844         * lib/calloc.c: New file.
89845
89846 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89847
89848         * lib/getdate.y (yylex): Allow space between sign and number.
89849         Problem reported by Dan Jacobson.
89850
89851 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89852
89853         Merge from coreutils CVS.
89854
89855         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89856         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89857         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89858         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89859         xstrtol.m4: Fix copyright date and/or serial number.
89860
89861         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89862         See if we need an fchown replacement.
89863         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89864         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89865         and use the replacement function if we detect either defect.
89866
89867         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89868         gl_UTIMECMP.
89869
89870 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89871         and  Jim Meyering  <jim@meyering.net>
89872
89873         Merge from coreutils CVS.
89874
89875         * lib/stat-macros.h: New file, with contents from file-type.h
89876         and coreutils' system.h.
89877         * lib/file-type.c: Include "stat-macros.h".
89878         * lib/file-type.h (file_type): Move all macro definitions to new file,
89879         stat-macros.h.
89880
89881         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89882         Wrap old code with this conditional.
89883         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89884         function that does not dereference symlinks.
89885         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89886
89887         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89888         dependency problems.
89889         (xreadlink): Accept new arg SIZE, for efficiency.
89890         All decls and uses changed.
89891         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89892
89893         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89894         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89895
89896         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89897         sysexits.h.
89898
89899 2004-06-01  Jim Meyering  <jim@meyering.net>
89900
89901         * m4/calloc.m4: New file.
89902
89903 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89904
89905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89906         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89907         Also, fix a typo in a diagnostic.
89908
89909 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89910
89911         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89912         or AC_FUNC_REALLOC.
89913
89914 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89915
89916         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89917         macros to be defined.
89918         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89919         the allocator returns NULL because the requested size is zero.
89920
89921 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89922
89923         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89924         var.  Add comment explaining why libc still defines it.  This
89925         merges the following patch from glibc:
89926         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89927
89928 2004-05-20  Andreas Schwab  <schwab@suse.de>
89929
89930         * m4/free.m4: Replace free if it not known to work, not the other
89931         way round.
89932
89933 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89934
89935         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89936         present in glibc since revision 1.1 of this file.
89937         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89938         obstack_alignment_mask, obstack_alloc, obstack_base,
89939         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89940         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89941         obstack_grow0, obstack_init, obstack_int_grow,
89942         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89943         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89944         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89945         nonexistent functions.
89946
89947 2004-05-18  Karl Berry  <karl@gnu.org>
89948
89949         * config/srclist.txt: break link for vasnprintf.c.
89950
89951 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89952
89953         Port obstack to the AS/400, where pointers are 16 bytes wide and
89954         you cannot cast an integer to a valid pointer.  This patch is
89955         currently waiting to be integrated into glibc; see
89956         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89957
89958         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89959         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89960         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89961         (struct obstack): temp member is now a union of a pointer and
89962         an integer, instead of an integer.  All integer uses changed.
89963         This does not affect the physical layout of struct obstack,
89964         except on hosts (like the AS/400) where the size or alignment of
89965         void * is greater than that of ptrdiff_t.
89966         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89967         __STDC__)]: Store temporary in pointer member of union, not
89968         integer member.
89969         * lib/obstack.c: Include <stddef.h>, for offsetof.
89970         (struct fooalign): Remove; it doesn't need a name.
89971         (union fooround): Change double to long double, and add void *.
89972         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89973         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89974         not a macro.  Hence the values are always int; so remove all
89975         casts-to-int in uses.
89976
89977 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89978
89979         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89980         we can get this patch merged into glibc.
89981
89982 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89983             Paul Eggert  <eggert@cs.ucla.edu>
89984
89985         * m4/argp: Depend on alloca.
89986
89987 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89988             Paul Eggert  <eggert@cs.ucla.edu>
89989
89990         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89991         freecoding.
89992
89993 2004-05-17  Bruno Haible  <bruno@clisp.org>
89994
89995         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89996         precision that consists of a '.' followed by an empty digit string.
89997         Patch by Tor Lillqvist <tml@iki.fi>.
89998
89999 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90000
90001         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90002         for backward compatibility with older code.  We need our own
90003         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90004         it under some other name, and our alloca.h will define it.
90005
90006 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90007             Derek Price  <derek@ximbiot.com>
90008
90009         * lib/alloca.c: Include <alloca.h>, to get our interface.
90010         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90011         include <alloca.h> first.  Use C89 prototype for alloca; this
90012         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90013         Use #elif for simplicity, since we can assume C89 now.
90014         Don't try to source the system alloca.h since it will not be found
90015         and to prevent recursively including its replacement.
90016         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90017         * lib/regex.c: Likewise.
90018
90019 2004-05-16  Derek Price  <derek@ximbiot.com>
90020             Paul Eggert  <eggert@cs.ucla.edu>
90021
90022         getline cleanup.  This changes the getndelim2 API: both order of
90023         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90024         no delimiter).
90025
90026         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90027         interface does that.
90028         (getline): Always use getdelim, so that we don't have two
90029         copies of this code.
90030         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90031         if available.
90032         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90033         (GETNDELIM2_MAXIMUM): New macro.
90034         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90035         instead of the old practice of delim2==0.  All callers changed.
90036         Return -1 on overflow, instead of returning junk.
90037         Do not set *linesize unless allocation succeeds.
90038         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90039         that we include sys/types.h.
90040         * lib/getnline.h: Likewise.
90041         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90042         (getndelim2): Reorder arguments.
90043         * lib/getnline.c (getnline, getndelim):
90044         Don't discard the NMAX argument.
90045         (getnline): Invoke getndelim, to avoid code duplication.
90046         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90047         of (size_t) -1 by callers of the getnline family.
90048
90049 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90050
90051         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90052         Check for gettimeofday.
90053         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90054         Check for settimeofday, stime.
90055
90056 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90057
90058         * lib/nanosleep.c (suspended): Change its type from int to
90059         sig_atomic_t volatile.
90060         (first_call): Make it private to rpl_nanosleep, and have it
90061         be zero initially as that's a bit faster.
90062         (my_usleep): Round up fractional times instead of truncating them,
90063         as this is the usual meaning for 'sleep'.
90064
90065         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90066         doesn't work.
90067         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90068         (ENOSYS): Define if not defined.
90069         (settime): Fall back on stime if it exists and settimeofday fails.
90070         But don't bother with fallbacks if a method fails with errno == EPERM.
90071
90072 2004-05-11  Jim Meyering  <jim@meyering.net>
90073
90074         Prior to this change, the save_cwd caller required read access to the
90075         current directory on most systems (ones with the fchdir function).
90076
90077         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90078         fails, try write-only, and finally, resort to using xgetcwd.
90079
90080 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90081
90082         * lib/obstack.c, obstack.h: Import changes from libc.
90083
90084 2004-04-28  Bruno Haible  <bruno@clisp.org>
90085
90086         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90087         also implicitly appends .exe to executables.
90088         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90089         accepts Windows pathnames.
90090         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90091         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90092         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90093         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90094         Reported by Derek Robert Price <derek@ximbiot.com>.
90095
90096 2004-04-21  Karl Berry  <karl@gnu.org>
90097
90098         * config/srclist.txt (localcharset.c): break sync.
90099
90100 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90101
90102         * m4/host-os.m4: Add a copyright notice.
90103
90104 2004-04-20  Jim Meyering  <jim@meyering.net>
90105
90106         Change UTILS_ to gl_ in AC_DEFINE'd names.
90107         Change utils_- and jm_-prefixed variables, too.
90108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90109         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90111
90112         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90113         Don't emit trailing blanks.
90114         Also rename jm_-prefixed variables to have gl_ prefix.
90115
90116         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90117         Also rename jm_-prefixed variables to have gl_ prefix.
90118
90119         * m4/jm-macros.m4: Reflect the renamings.
90120         * m4/prereq.m4: Likewise.
90121
90122 2004-04-20  Jim Meyering  <jim@meyering.net>
90123
90124         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90125         memory.
90126
90127 2004-04-20  Jim Meyering  <jim@meyering.net>
90128             Bruno Haible  <bruno@clisp.org>
90129
90130         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90131         memory when realloc fails.
90132
90133 2004-04-19  Jim Meyering  <jim@meyering.net>
90134
90135         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90136         now that readutmp.c may call `free (0)'.
90137
90138 2004-04-19  Bruno Haible  <bruno@clisp.org>
90139
90140         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90141         * m4/inttypes_h.m4: Likewise.
90142         * m4/stdint_h.m4: Likewise.
90143         * m4/intmax_t.m4: Likewise.
90144         * m4/uintmax_t.m4: Likewise.
90145
90146 2004-04-18  Jim Meyering  <jim@meyering.net>
90147
90148         * m4/prereq.m4: Don't forbid jm_ prefix.
90149
90150         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90151         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90152         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90153         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90154         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90155         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90156         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90157         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90158         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90159         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90160         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90161         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90162         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90163         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90164         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90165         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90166         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90167         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90168         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90169
90170 2004-04-18  Jim Meyering  <jim@meyering.net>
90171
90172         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90173         failure, don't leak memory and do call END_UTMP_ENT.
90174
90175 2004-04-16  Jim Meyering  <jim@meyering.net>
90176
90177         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90178         coreutils' stat program.
90179         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90180
90181 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90182
90183         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90184         C89.
90185         (CHAR_BIT): Remove, since we assume C89.
90186         Include <stdint.h> if available, as per current Autoconf CVS advice.
90187
90188 2004-03-31  Jim Meyering  <jim@meyering.net>
90189
90190         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90191         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90192         * m4/xalloc.m4: Likewise.
90193
90194 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90195
90196         Merge from coreutils.
90197
90198         * m4/inttostr.m4: New file.
90199         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90200         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90201         Require gl_CLOCK_TIME.
90202         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90203
90204 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90205
90206         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90207         not bool, to be more consistent with Unix conventions.
90208         Suggested by Bruno Haible.
90209
90210         Merge from coreutils.
90211
90212         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90213         * lib/umaxtostr.c: New files.
90214
90215         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90216         the usual <time.h> dance.
90217         (get_date): Change signature to support fractional time stamps.
90218         All callers changed.
90219         * lib/getdate.y: Include "getdate.h" first, as we can now
90220         assume C89 and don't need to worry about 'const'.
90221         Similarly, include "unlocked-io.h" near start, not in middle.
90222         Include <limits.h>.
90223         (textint.value): Use long int rather than int.
90224         (textint.digits): Use size_t rather than int.
90225         (BILLION, LOG10_BILLION): New constants.
90226         (parser_control): New member rel_ns.  Members day_ordinal,
90227         time_zone, month, day, hour, minutes, rel_year, rel_month,
90228         rel_day, rel_hour, rel_minutes, rel_seconds
90229         are now long int, not int.  Member seconds is now struct timespec,
90230         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90231         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90232         not int.
90233         (%union.intval): Now long int, not int.
90234         New member timespec.
90235         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90236         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90237         (spec): Now is a timespec or an item list.
90238         (timespec, items): New nonterminals.
90239         (time, rel, relunit, number, get_date):
90240         Add support for fractional seconds.
90241         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90242         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90243         (to_hour): First arg is now long int, not int.
90244         (to_year): Returns long int, not int.
90245         Don't treat year -70 like 70.
90246         (tm_diff): Returns long int, not int.
90247         (lookup_word): Use bool instead of int when appropriate.
90248         (yylex): Use size_t for count, not int.
90249         Detect overflow when parsing large integer constants.
90250         Add support for fractions.
90251         (get_date): Make pointers 'const' if possible.
90252         Use more-portable code to detect integer overflow.
90253         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90254         Don't use ctime; it's not reliable if the year has >4 digits.
90255
90256         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90257         This is for compatibility with BSD.
90258
90259         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90260         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90261         From coreutils' system.h.
90262
90263         * lib/userspec.c: Don't include "posixver.h".
90264         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90265         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90266         compatible extension.  Simplify code by removing a boolean int
90267         that was always nonzero if a string was nonnull.
90268
90269 2004-03-30  Jim Meyering  <jim@meyering.net>
90270
90271         Merge from coreutils.
90272
90273         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90274         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90275         on some systems one must include <grp.h> before it.
90276         Reported by Christian Krackowizer.
90277
90278 2004-03-30  Jim Meyering  <jim@meyering.net>
90279
90280         Merge from coreutils.
90281
90282         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90283
90284         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90285         an empty input stream.
90286
90287         * lib/readtokens.c: Include <stdbool.h>.
90288         (readtoken): Use `size_t' rather than int/long.
90289         All callers adjusted.
90290         Use `bool' rather than `int' where appropriate.
90291         Use memset rather than an explicit loop.
90292         Use x2nrealloc rather than xrealloc.
90293         Allow the use of `\0' as a delimiter.
90294         (readtokens): Likewise.
90295         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90296
90297 2004-03-30  Jim Meyering  <jim@meyering.net>
90298
90299         * m4/realloc.m4: Remove file, since now it does no more than
90300         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90301         the `configure.ac' section of module/realloc.
90302         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90303
90304 2004-03-30  Bruno Haible  <bruno@clisp.org>
90305
90306         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90307         nonnull.
90308
90309 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90310
90311         Merge changes to getloadavg.c from coreutils and Emacs.
90312
90313         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90314         Define to an expression, not to the empty string.
90315         Include cloexec.h and xalloc.h.
90316         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90317         Use set_cloexec_flag rather than rolling our own.
90318         * lib/cloexec.c, lib/cloexec.h: New files.
90319
90320 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90321
90322         * m4/cloexec.m4: New file.
90323
90324 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90325
90326         * lib/getopt.h: Sync with libc CVS.
90327
90328 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90329             Bruno Haible  <bruno@clisp.org>
90330
90331         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90332         mbswidth.
90333
90334 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90335             Bruno Haible  <bruno@clisp.org>
90336
90337         * lib/mbswidth.h: Include <wchar.h> only if
90338         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90339         <wchar.h>.
90340         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90341
90342 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90343
90344         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90345         Sync with libc CVS.
90346         * lib/getopt_int.h: New file, also synced from libc.
90347
90348 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90349
90350         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90351         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90352         Bring back getopt.c, getopt.h, getopt1.c.
90353
90354 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90355
90356         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90357         All uses changed.  Check for sa_sigaction member; this fixes
90358         a bug first reported by Jason Andrade in
90359         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90360
90361 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90362
90363         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90364         '#if' expressions.  Unlike the code it replaces, it does not
90365         depend on (defined _SC_PAGESIZE).  However, it does depend on
90366         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90367         first reported by Jason Andrade in
90368         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90369
90370 2004-02-25  Simon Josefsson  <jas@extundo.com>
90371
90372         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90373
90374 2004-02-25  Simon Josefsson  <jas@extundo.com>
90375
90376         * lib/strdup.h: New file.
90377         * lib/strdup.c: Include it.
90378         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90379         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90380
90381 2004-02-23  Karl Berry  <karl@gnu.org>
90382
90383         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90384         (from fencepost.gnu.org:/gd/gnuorg).
90385
90386 2004-02-23  Karl Berry  <karl@gnu.org>
90387
90388         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90389         * config/srclist.txt: add maintain/standards documents.
90390
90391 2004-02-18  Bruno Haible  <bruno@clisp.org>
90392
90393         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90394         Reported by Derek Robert Price <derek@ximbiot.com>.
90395
90396 2004-02-16  Karl Berry  <karl@gnu.org>
90397
90398         * config/mkinstalldirs, install-sh: update from automake.
90399
90400 2004-02-06  Karl Berry  <karl@gnu.org>
90401
90402         * m4/po.m4: update from gettext 0.14.1.
90403
90404 2004-02-06  Karl Berry  <karl@gnu.org>
90405
90406         * lib/config.charset: update from gettext 0.14.1.
90407
90408 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90409
90410         Add comments and code, prompted by suggestions from Bruno Haible
90411         for sh-quote.
90412         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90413         describing the enum quoting_style values.
90414         * lib/quotearg.c (quotearg_alloc): New function.
90415         (quotearg_buffer_restyled): Treat lone { and } as special.
90416         Treat = as special.  Work around bug with older shells
90417         that "see" a '\' that is really the 2nd byte of a multibyte char.
90418         Quote empty string with shell_quoting_style.
90419
90420 2004-02-03  Bruno Haible  <bruno@clisp.org>
90421
90422         * m4/pipe.m4: New file, from GNU gettext.
90423
90424 2004-02-03  Bruno Haible  <bruno@clisp.org>
90425
90426         * lib/pipe.h: New file, from GNU gettext.
90427         * lib/pipe.c: New file, from GNU gettext.
90428
90429 2004-01-27  Bruno Haible  <bruno@clisp.org>
90430
90431         * m4/execute.m4: New file, from GNU gettext.
90432
90433 2004-01-27  Bruno Haible  <bruno@clisp.org>
90434
90435         * lib/execute.h: New file, from GNU gettext.
90436         * lib/execute.c: New file, from GNU gettext.
90437         * lib/w32spawn.h: New file, from GNU gettext.
90438
90439 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90440
90441         Merge from diffutils.
90442
90443         * lib/file-type.c (file_type): Add typed memory objects.
90444         * lib/file-type.h (S_TYPEISTMO): New macro.
90445
90446         * lib/c-stack.h (c_stack_action): Remove argv argument.
90447         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90448         (die): Don't calculate message unless segv_action returns.
90449         (get_stack_location, min_address_from_argv, max_address_from_argv,
90450         volatile stack_base, volatile_stack_size): Remove.
90451         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90452         that every segmentation violation is a stack overflow.  (Ouch!)
90453         See Debian bug 136249 (still outstanding) for more info about why
90454         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90455
90456 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90457
90458         Exit-status fix from coreutils.
90459
90460         Use exit_failure consistently in place of EXIT_FAILURE,
90461         so that program exit statuses are consistent on failure.
90462
90463         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90464         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90465         * lib/argmatch.h: Comment fix to match the above.
90466         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90467         Now a macro referring to exit_failure, instead of a separate
90468         variable.  Include "exitfail.h" to get it.
90469         * lib/xstrtol.h: Include "exitfail.h".
90470         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90471
90472         * lib/long-options.c (parse_long_options): Use prototype
90473         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90474         for clarity.
90475
90476 2004-01-21  Jim Meyering  <jim@meyering.net>
90477
90478         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90479         so as not to conflict with a different-sized __mktime_internal
90480         function in GNU libc.
90481         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90482         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90483
90484 2004-01-20  Karl Berry  <karl@gnu.org>
90485
90486         * config/config.guess: update from config.
90487
90488         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90489
90490 2004-01-20  Bruno Haible  <bruno@clisp.org>
90491
90492         Safer stack allocation.
90493         * lib/setenv.c: Include allocsa.h.
90494         (alloca): Remove fallback definition.
90495         (freea): Remove macro.
90496         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90497         instead of freea.
90498
90499 2004-01-20  Bruno Haible  <bruno@clisp.org>
90500
90501         * m4/eealloc.m4: New file, from GNU gettext.
90502
90503 2004-01-20  Bruno Haible  <bruno@clisp.org>
90504
90505         * m4/allocsa.m4: New file, from GNU gettext.
90506
90507 2004-01-20  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/xallocsa.h: New file, from GNU gettext.
90510         * lib/xallocsa.c: New file, from GNU gettext.
90511
90512 2004-01-20  Bruno Haible  <bruno@clisp.org>
90513
90514         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90515
90516 2004-01-20  Bruno Haible  <bruno@clisp.org>
90517
90518         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90519         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90520         specially.
90521
90522 2004-01-20  Bruno Haible  <bruno@clisp.org>
90523
90524         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90525         patch.
90526
90527 2004-01-20  Bruno Haible  <bruno@clisp.org>
90528
90529         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90530
90531 2004-01-20  Bruno Haible  <bruno@clisp.org>
90532
90533         * lib/eealloc.h: New file.
90534
90535 2004-01-20  Bruno Haible  <bruno@clisp.org>
90536
90537         * lib/binary-io.h: Avoid warnings on Cygwin.
90538
90539 2004-01-20  Bruno Haible  <bruno@clisp.org>
90540
90541         * lib/allocsa.h: New file, from GNU gettext.
90542         * lib/allocsa.c: New file, from GNU gettext.
90543
90544 2004-01-18  Karl Berry  <karl@gnu.org>
90545
90546         * doc/gpl.texi, doc/lgpl.texi: new files.
90547
90548 2004-01-18  Karl Berry  <karl@gnu.org>
90549
90550         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90551         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90552
90553 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90554
90555         Merge from coreutils.
90556
90557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90558         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90559         (gl_DEFAULT_POSIX2_VERSION): Move
90560         the documentation from 'configure' into 'config.hin',
90561         so that 'configure --help' isn't burdened by it and
90562         we don't have to worry about its formatting there.
90563         Reword the documentation so that it's more succinct
90564         and can be run together into a single paragraph.
90565         * m4/same.m4 (gl_SAME): Check for pathconf.
90566
90567 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90568
90569         Merge from coreutils.
90570
90571         * lib/posixver.c: Include posixver.h.
90572
90573         * lib/same.c: Include <stdbool.h>, <limits.h>.
90574         (_POSIX_NAME_MAX): Define if not defined.
90575         (MIN): New macro.
90576         (same_name): If file names are silently truncated, report
90577         that the file names are the same if they are the same after
90578         the silent truncation.
90579
90580         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90581         conversion function.
90582         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90583         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90584         longer needed.
90585
90586 2004-01-15  Jim Meyering  <jim@meyering.net>
90587
90588         Merge from coreutils.
90589
90590         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90591         if no library is required.
90592         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90593         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90594         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90595         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90596         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90597         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90598         value, $ac_cv_search_crypt, if it's "none required".
90599         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90600         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90601         not gl_FUNC_GETLOADAVG.
90602         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90603         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90604
90605 2004-01-15  Jim Meyering  <jim@meyering.net>
90606
90607         Merge from coreutils.
90608
90609         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90610         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90611         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90612
90613         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90614         optional configure-time default.
90615
90616         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90617
90618         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90619
90620 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90621
90622         Merge from coreutils.
90623
90624         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90625         value, $ac_cv_search_nanosleep, if it's "none required".
90626
90627 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90628
90629         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90630         with like-named macro in fnmatch.c.
90631         (EXT): Use an internal constant instead.
90632
90633         Merge fnmatch patches from glibc.
90634         * lib/fnmatch.c (mbsinit): Remove define.
90635         Add libc_hidden_ver (__fnmatch, fnmatch).
90636         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90637         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90638
90639 2004-01-14  Karl Berry  <karl@gnu.org>
90640
90641         * config/install-sh: update from automake.
90642
90643 2004-01-13  Karl Berry  <karl@gnu.org>
90644
90645         * config/install-sh: update from automake.
90646
90647 2004-01-09  Karl Berry  <karl@gnu.org>
90648
90649         * config/install-sh: update from automake.
90650
90651 2004-01-05  Karl Berry  <karl@gnu.org>
90652
90653         * config/config.{sub,guess}: update from config.
90654
90655 2003-12-31  Karl Berry  <karl@gnu.org>
90656
90657         * config/depcomp: update from automake.
90658
90659 2003-12-14  Karl Berry  <karl@gnu.org>
90660
90661         * lib/config.charset: update from gettext-runtime.
90662
90663 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90664
90665         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90666         Bug reported by Alfred M. Szmidt.
90667
90668 2003-12-03  Bruno Haible  <bruno@clisp.org>
90669
90670         * m4/gettext.m4: Upgrade from gettext-0.13.
90671         * m4/po.m4: Upgrade from gettext-0.13.
90672         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90673         * m4/intmax.m4: New file, from gettext-0.13.
90674         * m4/printf-posix.m4: New file, from gettext-0.13.
90675
90676 2003-11-29  Karl Berry  <karl@gnu.org>
90677
90678         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90679
90680 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90681             Bruno Haible  <bruno@clisp.org>
90682
90683         * lib/printf-parse.h: Don't include sys/types.h.
90684         (ARG_NONE): New macro.
90685         (char_directive): Change type of *arg_index fields to size_t.
90686         * lib/printf-parse.c: Don't include sys/types.h.
90687         (SSIZE_MAX): Remove macro.
90688         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90689         Remove unnecessary overflow check.
90690         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90691         fields.
90692
90693 2003-11-25  Bruno Haible  <bruno@clisp.org>
90694
90695         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90696
90697 2003-11-25  Bruno Haible  <bruno@clisp.org>
90698
90699         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90700         gt_TYPE_SSIZE_T.
90701
90702 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90703
90704         * modules/alloca: Remove dependency on xalloc.
90705
90706 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90707
90708         * lib/alloca.c: Remove dependency on xalloc module.
90709         (xalloc_die): Remove.
90710         (memory_full) [!defined emacs]: New macro.
90711         [!defined emacs]: Don't include xalloc.h.
90712         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90713         address arithmetic overflows.  Change datatypes a bit to avoid
90714         unnecessary casts.
90715
90716 2003-11-22  Jim Meyering  <jim@meyering.net>
90717
90718         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90719         s/size/size_t/.
90720
90721 2003-11-21  Karl Berry  <karl@gnu.org>
90722
90723         * config/config.{sub,guess}: update from config.
90724
90725 2003-11-18  Karl Berry  <karl@gnu.org>
90726
90727         * config/config.{sub,guess}: update from config.
90728
90729         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90730
90731 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90732
90733         * README: Mention that S+T cannot overflow if S is the size of
90734         an existing object and T is sufficiently small.
90735
90736 2003-11-17  Jim Meyering  <jim@meyering.net>
90737
90738         On systems without utime and without a utimes function capable of
90739         dealing with a NULL struct utimbuf* argument, this utime replacement
90740         could -- in unusual circumstances -- leak a file descriptor.
90741         * lib/utime.c: Include <unistd.h> and <errno.h>.
90742         (utime_null): Be sure to close `fd' and to preserve errno.
90743         Reported by Geoff Collyer via Arnold Robbins.
90744
90745 2003-11-17  Bruno Haible  <bruno@clisp.org>
90746
90747         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90748         (Depends-on): Add xsize.
90749
90750 2003-11-17  Bruno Haible  <bruno@clisp.org>
90751
90752         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90753
90754 2003-11-17  Bruno Haible  <bruno@clisp.org>
90755
90756         * lib/vasnprintf.c (alloca): Remove fallback definition.
90757         (freea): Remove definition.
90758         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90759         Reported by Paul Eggert.
90760
90761 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90762             Bruno Haible  <bruno@clisp.org>
90763
90764         Protect against address arithmetic overflow.
90765         * lib/printf-args.h: Include stddef.h.
90766         (arguments): Change type of field 'count' to size_t.
90767         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90768         'unsigned int' where appropriate.
90769         * lib/printf-parse.h: Include sys/types.h.
90770         (char_directive): Change type of *arg_index fields to ssize_t.
90771         (char_directives): Change type of fields 'count', max_*_length to
90772         size_t.
90773         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90774         (SSIZE_MAX): Define fallback value.
90775         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90776         instead of 'int' where appropriate. Check a_allocated, d_allocated
90777         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90778         * lib/vasnprintf.c: Include xsize.h.
90779         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90780         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90781         overflow. Avoid wraparound when converting a width or precision from
90782         decimal to binary.
90783
90784 2003-11-16  Bruno Haible  <bruno@clisp.org>
90785
90786         Update from GNU gettext.
90787         * lib/printf-parse.c: Generalize to it can be compiled for wide
90788         strings.
90789         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90790         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90791         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90792         SNPRINTF): New macros.
90793         Don't include <alloca.h> if the file is used inside libintl.
90794         (local_wcslen): New function, for Solaris 2.5.1.
90795         (VASNPRINTF): Use it instead of wcslen.
90796
90797 2003-11-16  Bruno Haible  <bruno@clisp.org>
90798
90799         * lib/xsize.h (xmax): New function.
90800         (xsum, xsum3, xsum4): Declare as "pure" functions.
90801
90802 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90803
90804         * modules/xalloc (Files): Undo latest change, since xalloc.h
90805         no longer needs SIZE_MAX or PTRDIFF_MAX.
90806
90807 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90808
90809         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90810         gl_PTRDIFF_MAX.
90811
90812 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90813
90814         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90815         "return", to pacify some unknown compiler.  Problem reported
90816         by Joerg Schilling.
90817
90818 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90819
90820         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90821         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90822         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90823         heuristic is just as accurate as far as we know, and it removes a
90824         dependency on size_max.m4 and ptrdiff_max.m4.
90825
90826 2003-11-11  Bruno Haible  <bruno@clisp.org>
90827
90828         * modules/xsize (Files): Add m4/size_max.m4.
90829         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90830
90831 2003-11-11  Bruno Haible  <bruno@clisp.org>
90832
90833         * m4/size_max.m4: New file.
90834         * m4/ptrdiff_max.m4: New file.
90835         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90836         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90837         (gl_XALLOC): Invoke it.
90838
90839 2003-11-11  Bruno Haible  <bruno@clisp.org>
90840
90841         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90842         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90843         defined.
90844
90845 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90846
90847         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90848         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90849         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90850         From Bruno Haible.
90851         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90852         not (size_t) -1, since it's defined here.
90853
90854 2003-11-09  Karl Berry  <karl@gnu.org>
90855
90856         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90857
90858 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90859
90860         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90861         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90862         Reject sizes of exactly SIZE_MAX bytes.
90863         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90864         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90865
90866 2003-11-05  Bruno Haible  <bruno@clisp.org>
90867
90868         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90869         SIZE_MAX defined in <limits.h> on Solaris.
90870
90871 2003-11-04  Jim Meyering  <jim@meyering.net>
90872
90873         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90874         variable names, rather than @VAR@.
90875         * modules/poll: Likewise.
90876
90877 2003-11-04  Bruno Haible  <bruno@clisp.org>
90878
90879         * modules/xsize: New file.
90880         * modules/linebreak: Depend on xsize.
90881         * MODULES.html.sh (func_all_modules): Add xsize.
90882
90883 2003-11-04  Bruno Haible  <bruno@clisp.org>
90884
90885         * m4/xsize.m4: New file.
90886
90887 2003-11-04  Bruno Haible  <bruno@clisp.org>
90888
90889         * lib/xsize.h: New file.
90890         * lib/linebreak.c: Include xsize.h.
90891         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90892         argument for overflow.
90893         Suggested by Paul Eggert.
90894
90895 2003-11-03  Karl Berry  <karl@gnu.org>
90896
90897         * config/config.{guess,sub}: update from config.
90898
90899 2003-11-03  Jim Meyering  <jim@meyering.net>
90900
90901         * modules/userspec (lib_SOURCES): Add userspec.h.
90902         (Include): Add "userspec.h".
90903         Improve description.
90904
90905 2003-11-03  Jim Meyering  <jim@meyering.net>
90906
90907         * lib/userspec.c: Include "userspec.h".
90908         * lib/userspec.h: New file.
90909
90910 2003-11-03  Bruno Haible  <bruno@clisp.org>
90911
90912         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90913
90914 2003-11-03  Bruno Haible  <bruno@clisp.org>
90915
90916         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90917         available, to avoid (extremely rare) race condition.
90918         Suggested by Paul Eggert.
90919
90920 2003-11-02  Karl Berry  <karl@gnu.org>
90921
90922         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90923
90924 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90925
90926         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90927         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90928         (read_filesystem_list): Set and use me_type_malloced.
90929         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90930         whatever the type happens to be), for brevity and consistency.
90931         Check for size calculation overflow on Alphas running OSF/1.
90932
90933 2003-10-31  Jim Meyering  <jim@meyering.net>
90934
90935         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90936
90937         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90938
90939 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90940             Bruno Haible  <bruno@clisp.org>
90941
90942         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90943         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90944
90945 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90946
90947         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90948         netbsd*-gnu*.  Suggested by Robert Millan.
90949
90950 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90951
90952         * modules/group-member: Depend on stdbool.
90953
90954 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90955
90956         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90957
90958 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90959
90960         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90961         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90962         after the 'gnu' in these cases.  This fixes some bugs in the
90963         previous change, and is based on suggestions by Robert Millan.
90964
90965 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90966
90967         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90968         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90969         no longer needed.
90970         * lib/quotearg.c (quotearg_n_options): Use it.
90971         * lib/group-member.c: Include <stdbool.h>.
90972         (free_group_info): Arg is now const *; don't free arg.
90973         (get_group_info): Now returns bool and accepts struct group_info *,
90974         rather than returning a malloc'ed struct group_info *.
90975         All uses changed.  Check for overflow in internal size calculation.
90976
90977         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90978         rather than xmalloc/xrealloc.
90979         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90980         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90981         conformance bug: the old code used a pointer after freeing the
90982         storage that it addressed.
90983         * lib/hash.c (hash_initialize): Simplify the code by using
90984         xalloc_oversized rather than doing it by hand.
90985         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90986         the buffer preserved.  Use free and xmalloc instead.
90987         * lib/quotearg.c (quotearg_n_options): Likewise.
90988         Use a simpler test for size overflow.  Don't use xalloc_oversized
90989         because unsigned int might be wider than size_t (!); this suggests
90990         that we should switch from unsigned int to size_t for slot numbers.
90991
90992 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90993
90994         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90995         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90996         NetBSD kernels.  Requested by Richard Stallman.
90997
90998 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90999
91000         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91001         to allocate the returned structure.  Do not allocate a subarray,
91002         as x2nrealloc will do that.
91003         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91004         instead of xnrealloc.
91005         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91006
91007 2003-10-27  Bruno Haible  <bruno@clisp.org>
91008
91009         * lib/stdbool_.h: Better support for BeOS.
91010
91011 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91012
91013         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91014         now uses inline.
91015
91016 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91017
91018         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91019         callers that want to do their own size-overflow checking.  Include
91020         <stdbool.h>, since xalloc_oversized returns bool.
91021         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91022         to use xalloc_oversized.
91023
91024         Add two functions x2realloc, x2nrealloc, for programs that grow
91025         arrays dynamically by doubling their sizes.
91026         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91027         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91028         New functions.
91029
91030         Port to C99 semantics for 'inline' of external functions.
91031         Bug reported by Bruno Haible.
91032         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91033         with the old contents of xnmalloc.
91034         (xnmalloc, xmalloc): Use it.
91035         (xnrealloc_inline): New static inline function,
91036         with the old contents of xnrealloc.
91037         (xnrealloc, xrealloc): Use it.
91038
91039         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91040         that.
91041
91042 2003-10-26  Karl Berry  <karl@gnu.org>
91043
91044         * config/srclist.txt (COPYING.DOC): no longer available from
91045         /gd/gnuorg; don't know where the ultimate source is.
91046
91047 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91048
91049         Fix several address-calculation bugs in the hash modules,
91050         plus some minor code cleanup.
91051
91052         * lib/hash.h: Include <stdbool.h>, for bool.
91053         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91054         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91055         hash_get_n_entries, hash_get_max_bucket_length,
91056         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91057         hash_rehash): Use size_t rather than unsigned.
91058         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91059         hash_get_n_buckets_used, hash_get_n_entries,
91060         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91061         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91062         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91063         Likewise.
91064         (SIZE_MAX): Define if not defined.
91065         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91066         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91067         hash_print):
91068         Use const * when possible.
91069         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91070         (check_tuning): Fix bug: if tuning parameters were very close to
91071         0 or 1, rounding errors could have caused subscript violations.
91072         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91073         (hash_initialize): Add 'fail:' label
91074         to free table and return NULL, and use it to simplify code.
91075         Use calloc rather than clearing the storage ourself.
91076         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91077         buffer size calculations.
91078         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91079         Include <stddef.h>, for size_t.
91080         * lib/hash-pjw.c (hash_pjw): Likewise.
91081         Switch to method described by Bruno Haible.
91082         Include <limits.h>, for CHAR_BIT.
91083         (SIZE_BITS): New macro.
91084
91085 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91086
91087         * m4/getline.m4 (AM_FUNC_GETLINE):
91088         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91089         hosts.  Problem reported by Derek Robert Price in
91090         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91091         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91092         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91093
91094 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91095
91096         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91097         ceiling the allocation at NMAX bytes rather than silently
91098         discarding input bytes before NMAX is reached.  This makes
91099         a difference only if NMAX exceeds SIZE_MAX / 2.
91100
91101         * lib/obstack.c: Merge from glibc.
91102         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91103         Add libc_hidden_def (_obstack_newchunk).
91104         (_obstack_free) [! defined _LIBC]: Remove.
91105         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91106         a clone of the function body.
91107         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91108         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91109
91110         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91111         glibc.
91112         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91113         arg to memcpy.
91114
91115         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91116         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91117         Don't use lvalue casts, as GCC plans to remove support for them
91118         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91119         was also present in the non-GCC version, indicating that this
91120         code had always been buggy and had never been widely used.
91121         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91122         Use the fast variant of each macro, rather than copying the
91123         definiens of the fast variant; that way, we'll be more likely to
91124         catch future bugs in the fast variants.
91125
91126 2003-10-20  Bruno Haible  <bruno@clisp.org>
91127
91128         * modules/wait-process: New file.
91129         * MODULES.html.sh (func_all_modules): Add wait-process.
91130
91131 2003-10-20  Bruno Haible  <bruno@clisp.org>
91132
91133         * m4/wait-process.m4: New file.
91134
91135 2003-10-20  Bruno Haible  <bruno@clisp.org>
91136
91137         * lib/wait-process.h: New file, from GNU gettext.
91138         * lib/wait-process.c: New file, from GNU gettext.
91139
91140 2003-10-19  Jim Meyering  <jim@meyering.net>
91141
91142         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91143         HPUX 10.20.
91144
91145 2003-10-18  Karl Berry  <karl@gnu.org>
91146
91147         * config/config.guess: update from config.
91148
91149 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91150
91151         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91152         (getgroups): First arg is int, not size_t.
91153         Don't let 'free' mangle errno.
91154
91155 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91156
91157         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91158
91159 2003-10-16  Karl Berry  <karl@gnu.org>
91160
91161         * config/config.{guess,sub}: update from config.
91162
91163 2003-10-16  Jim Meyering  <jim@meyering.net>
91164
91165         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91166         memcpy.
91167
91168 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91169
91170         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91171         (SIZE_MAX): Remove.
91172         (new_exclude, add_exclude_file): Initial size no longer needs to
91173         be a power of 2.
91174         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91175         our own address arithmetic overflow checking.
91176
91177         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91178         (fnmatch): Do not alloca more than 2000 wide characters;
91179         instead, use malloc for large buffers.
91180         Check for address arithmetic overflow, and return -1
91181         with errno set to ENOMEM in that case.
91182         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91183         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91184         instead, return -1.  Check for address arithmetic overflow.
91185
91186 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91187
91188         Handle invalid suffixes and overflow independently, so that
91189         callers can treat them independently as needed.  Fix some bugs in
91190         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91191         suffix for a human-readable blocksize.  The major caller-visible
91192         change is the addition of a new
91193         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91194         that both overflow and suffix chars were found.
91195
91196         * lib/human.c (humblock): Don't check separately for invalid suffix
91197         char; that is xstrtoumax's job (now that its bug is fixed).
91198         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91199         INTMAX_MAX]: New macros.
91200         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91201         TYPE_MAXIMUM): New macros.
91202         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91203         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91204         if overflow occurs, as it's what __strtol does and it's more useful
91205         in practice.
91206         (__xstrtol): If __strtol reports some error other than ERANGE,
91207         reflect it to the caller as LONGINT_INVALID.  If it reports
91208         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91209         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91210         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91211         value.
91212         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91213         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91214         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91215         [defined UINTMAX_MAX]: New macros.
91216
91217 2003-10-14  Bruno Haible  <bruno@clisp.org>
91218
91219         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91220
91221 2003-10-14  Bruno Haible  <bruno@clisp.org>
91222
91223         * m4/sig_atomic_t: New file, from GNU gettext.
91224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91225
91226 2003-10-14  Bruno Haible  <bruno@clisp.org>
91227
91228         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91229         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91230         Also use volatile where needed.
91231
91232 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91233
91234         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91235         Change maintainer from Bruno Haible to 'all'.
91236
91237 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91238
91239         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91240
91241 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91242
91243         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91244         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91245         and define in terms of the other primitives.
91246         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91247         (SIZE_MAX): Define if not already defined.
91248         (array_size_overflow): New function.
91249         (xalloc_die): Abort instead of exiting if 'error' returns.
91250         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91251         (xmalloc, xrealloc): Use them.
91252         (xcalloc): Check for address arithmetic overflow.
91253         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91254         a bit faster than strcpy.
91255
91256 2003-10-10  Simon Josefsson  <jas@extundo.com>
91257
91258         * modules/argp (Depends-on): Add restrict and strcase.
91259
91260 2003-10-10  Simon Josefsson  <jas@extundo.com>
91261
91262         * m4/argp.m4: Add AC_C_INLINE.
91263
91264 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91265
91266         Merge getpass from libc, plus a few fixes.
91267
91268         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91269         Include <stdbool.h>.
91270         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91271         __fsetlocking to empty.
91272         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91273         do include <bits/libc-lock.h>.
91274         Do not include <fcntl.h>; not needed.
91275         [_LIBC]: Include <wchar.h>.
91276         (NOTCANCEL_MODE): New macro.
91277         (flockfile, funlockfile) [_LIBC]: New macros.
91278         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91279         [!_LIBC]: New macros.
91280         (call_fclose): New function.
91281         (getpass): Use it.  Save tty stream separately; this simplifies the
91282         code and makes it more reliable if stdin happens to equal stdout.
91283         Invoke __fsetlocking on tty.
91284         Handle thread cancellation if needed.
91285         Namespace cleanup (use __tcgetattr, __getline).
91286         Use bool for Booleans.
91287         [USE_IN_LIBIO]: Handle wide streams.
91288         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91289         stream might go where.
91290
91291         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91292         doesn't have to include <stdio.h> before us.
91293         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91294         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91295         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91296         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91297         if not declared, so that we can use getpass.c code from libc without
91298         rewriting it.
91299         (flockfile, ftrylockfile, funlockfile): New macros.
91300
91301 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91302
91303         * modules/getpass: Depend on stdbool.
91304
91305 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91306
91307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91308
91309 2003-10-07  Karl Berry  <karl@gnu.org>
91310
91311         * config/config.{guess,sub}: update from config.
91312
91313 2003-10-06  Jim Meyering  <jim@meyering.net>
91314             Bruno Haible  <bruno@clisp.org>
91315
91316         This lets translators provide better translations for the
91317         "Written by ..." part of --version output.
91318         * lib/version-etc.h: Include stdarg.h.
91319         (version_etc_copyright): Declare as readonly.
91320         (version_etc): Make this function variadic with a NULL-terminated list
91321         of author name strings.
91322         (version_etc_va): New declaration.
91323         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91324         (version_etc_copyright): Declare as readonly.
91325         (version_etc_va): New function. Provide a different translatable string
91326         for each possible number of authors < 10. Abbreviate when there are 10
91327         authors or more.
91328         (version_etc): Make this function variadic. Call version_etc_va.
91329         Suggestion from Gary V. Vaughan.
91330
91331         * lib/long-options.h (parse_long_options): Change prototype: the
91332         authors string is moved to the end and becomes variadic.
91333         * lib/long-options.c: Include stdarg.h.
91334         (parse_long_options): Make this function variadic, too.
91335         Call version_etc_va, not version_etc.
91336
91337 2003-10-06  Bruno Haible  <bruno@clisp.org>
91338
91339         * modules/version-etc-2: Remove file.
91340         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91341
91342 2003-10-06  Bruno Haible  <bruno@clisp.org>
91343
91344         * modules/fatal-signal: New file.
91345         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91346
91347 2003-10-06  Bruno Haible  <bruno@clisp.org>
91348
91349         * m4/fatal-signal.m4: New file.
91350         * m4/signalblocking.m4: New file, from GNU gettext.
91351
91352 2003-10-06  Bruno Haible  <bruno@clisp.org>
91353
91354         * lib/version-etc-2.h: Remove file.
91355         * lib/version-etc-2.c: Remove file.
91356
91357 2003-10-06  Bruno Haible  <bruno@clisp.org>
91358
91359         * lib/fatal-signal.h: New file, from GNU gettext.
91360         * lib/fatal-signal.c: New file, from GNU gettext.
91361
91362 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91363
91364         * README: Rework advice for preventing empty .o files.
91365         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91366         not <sys/types.h>.
91367
91368 2003-10-04  Karl Berry  <karl@gnu.org>
91369
91370         * lib/argp*: update from libc.
91371
91372 2003-10-04  Karl Berry  <karl@gnu.org>
91373
91374         * config/config.{guess,sub}: update from config.
91375
91376 2003-10-02  Bruno Haible  <bruno@clisp.org>
91377
91378         * modules/lchown (Include): Add lchown.h.
91379         * modules/time_r (Include): Use "..." syntax.
91380         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91381
91382 2003-10-01  Simon Josefsson  <jas@extundo.com>
91383
91384         * MODULES.html.sh (func_all_modules): Move gethostname from section
91385         'based on' to section 'lacking' POSIX:2001.
91386
91387 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91388
91389         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91390         to output mode on the same stream.
91391
91392 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91393
91394         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91395         Fix arg typo in previous patch.
91396
91397 2003-09-28  Jim Meyering  <jim@meyering.net>
91398
91399         * lib/error.c: Correct cpp indentation.
91400
91401 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91402
91403         * modules/free: New file.
91404
91405 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91406
91407         * m4/free.m4: New file.
91408
91409 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91410
91411         * lib/minmax.h (MIN, MAX)
91412         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91413         Omit the special code that used __typeof__, since we worry that
91414         it could be more trouble than it's worth.  See:
91415         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91416         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91417
91418         * lib/free.c: New file.
91419
91420 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91421
91422         Trivial fixes to Makefile.am parts of module listings.
91423         * modules/strstr: Append strstr.h to lib_SOURCES.
91424         * modules/strcase: Likewise, for strcase.h.
91425
91426 2003-09-27  Karl Berry  <karl@gnu.org>
91427
91428         * config/mkinstalldirs: update from automake.
91429
91430 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91431
91432         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91433         (error_tail): Do not loop, reallocating temporary buffer, since
91434         the output cannot contain more wide characters than the input
91435         contains bytes, the size must be big enough already.  This avoids
91436         one potential size overflow calculation.  Check for size overflow
91437         when calculating temporary buffer size.  Free temporary buffer
91438         when done, if it was allocated with malloc; this plugs a memory
91439         leak.  Remove casts from void * to pointers, that are no longer
91440         needed now that we're assuming C89 or better.
91441
91442         Merge error changes from glibc.
91443
91444         * lib/error.c, error.h: Update copyright notice header to match glibc.
91445         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91446         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91447         Disable cancellation while printing error.
91448         * lib/error.h: Prepend __ to parameter names.
91449
91450 2003-09-26  Jim Meyering  <jim@meyering.net>
91451
91452         * lib/error.c (error_tail): Move some declarations
91453         into inner scope where the local variables are used.
91454
91455 2003-09-26  Bruno Haible  <bruno@clisp.org>
91456
91457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91458         stpncpy().
91459         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91460
91461 2003-09-26  Bruno Haible  <bruno@clisp.org>
91462
91463         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91464         (stpncpy): Define as alias for gnu_stpncpy.
91465         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91466
91467 2003-09-25  Simon Josefsson  <jas@extundo.com>
91468
91469         * lib/xgetdomainname.h: New file.
91470         * lib/xgetdomainname.c: New file.
91471
91472 2003-09-25  Simon Josefsson  <jas@extundo.com>
91473             Bruno Haible  <bruno@clisp.org>
91474
91475         * modules/getdomainname: New file.
91476         * modules/xgetdomainname: New file.
91477         * MODULES.html.sh (func_all_modules): Add getdomainname,
91478         xgetdomainname.
91479
91480 2003-09-25  Simon Josefsson  <jas@extundo.com>
91481             Bruno Haible  <bruno@clisp.org>
91482
91483         * m4/getdomainname.m4: New file.
91484
91485 2003-09-25  Simon Josefsson  <jas@extundo.com>
91486             Bruno Haible  <bruno@clisp.org>
91487
91488         * lib/getdomainname.h: New file.
91489         * lib/getdomainname.c: New file.
91490
91491 2003-09-25  Karl Berry  <karl@gnu.org>
91492
91493         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91494
91495 2003-09-25  Karl Berry  <karl@gnu.org>
91496
91497         * config/install-sh: update from automake.
91498
91499 2003-09-25  Bruno Haible  <bruno@clisp.org>
91500
91501         * modules/version-etc-2: New file, from modules/version-etc with
91502         modifications.
91503         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91504
91505 2003-09-25  Bruno Haible  <bruno@clisp.org>
91506
91507         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91508         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91509
91510 2003-09-24  Simon Josefsson  <jas@extundo.com>
91511
91512         * modules/xgethostname: Add xgethostname.h.
91513
91514 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91515
91516         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91517         the buffer associated with the argument.  Bug reported by
91518         Simon Josefsson.
91519
91520 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91521
91522         * README: Document assumptions that 'int' is at least 32 bits
91523         wide, that integer arithmetic is 2's complement without overflow,
91524         that there are no holes in integer values, that adding sizes of
91525         two nonoverlapping objects can't overflow, and that all-bits-zero
91526         yields scalar zero.  Fix spelling and capitalization typos.
91527
91528 2003-09-19  Karl Berry  <karl@gnu.org>
91529
91530         * lib/argp.h: update from libc.
91531
91532 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91533
91534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91535         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91536         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91537
91538 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91539
91540         * gnulib-tool: Use "test -h", not "test -L", for portability
91541         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91542         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91543         (sed_extract_prog): Issue s commands one-by-one, rather than
91544         using \| in one s command.
91545
91546 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91547
91548         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91549         input error, instead of returning NULL the next time we are called
91550         (and therefore losing track of errno).
91551
91552 2003-09-16  Bruno Haible  <bruno@clisp.org>
91553
91554         * gnulib-tool (func_create_testdir): Warn about duplicated
91555         dependencies.
91556
91557 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91558
91559         * modules/argmatch, modules/fatal, modules/obstack,
91560         modules/xalloc, modules/xgethostname: Sort dependencies by
91561         importance, not alphabetically.
91562
91563 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91564
91565         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91566         fails, so that the caller gets the proper errno.
91567
91568         * lib/readutmp.c (read_utmp): Likewise.
91569         Check for fstat error.  Close stream and free storage
91570         when failing.
91571
91572 2003-09-14  Karl Berry  <karl@gnu.org>
91573
91574         * config/srclist.txt (strdup.c): disable for c89 changes.
91575
91576 2003-09-14  Jim Meyering  <jim@meyering.net>
91577
91578         * lib/getloadavg.c: Correct cpp indentation.
91579         * lib/strdup.c: Likewise.
91580         * lib/vasnprintf.c: Likewise.
91581
91582 2003-09-14  Bruno Haible  <bruno@clisp.org>
91583
91584         * modules/fwriteerror: New file.
91585         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91586
91587 2003-09-14  Bruno Haible  <bruno@clisp.org>
91588
91589         * lib/fwriteerror.h: New file.
91590         * lib/fwriteerror.c: New file.
91591
91592 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91593
91594         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91595         modules/xgethostname, modules/xalloc: Depend on exit.
91596
91597 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91598
91599         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91600
91601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91602         and AC_MINIX, too, so that their extensions are available.
91603
91604         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91605         This macro has been superseded by gl_BACKUPFILE.
91606
91607         More patches to assume C89 or better.
91608
91609         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91610
91611         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91612         unconditionally.
91613         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91614         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91615         Include <string.h>, <stdlib.h> unconditionally.
91616         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91617         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91618         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91619         headers or for string.h.
91620         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91621         or strtoul.
91622
91623         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91624         headers.
91625         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91626         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91627         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91628         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91629         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91631         memcpy, memset.
91632         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91633         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91634         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91635         strtol.
91636         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91637         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91639         strtoul.
91640
91641 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91642
91643         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91644         * lib/obstack.c [!defined _LIBC]: Likewise.
91645         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91646         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91647         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91648
91649         More changes to assume C89 or better.
91650
91651         * lib/error.c (error_tail): Assume vprintf.
91652
91653         * lib/argmatch.c (getenv): Remove decl.
91654         * lib/progreloc.c (get_full_program_name): Define via prototype.
91655         * lib/setenv.c (clearenv): Likewise.
91656         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91657         needed.
91658         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91659         (malloc, memcpy): Remove decls.
91660         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91661         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91662         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91663         (memcpy): Remove macro.
91664         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91665         (__P): Remove.  All uses removed.
91666         (PTR): Remove.  All uses changed to void *.
91667         (CHAR_BIT, NULL): Remove.
91668         (spaces, zeros, memset_space, memset_zero)
91669         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91670         Remove.
91671         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91672         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91673         Define with prototype.
91674         Remove now-unnecessary prototype decl.
91675         (extra_args_spec): Assume ANSI C.  All uses changed.
91676         (extra_args_spec_iso): Remove.
91677         (my_strftime, emacs_strftimeu): Define via prototype.
91678         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91679         unconditionally.
91680         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91681         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91682         (strtoul, strtol): Remove decls.
91683         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91684         LONG_MAX): Remove.
91685         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91686         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91687         (LOCALE_PARAM_PROTO): New macro.
91688         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91689         (INTERNAL (strtol), strtol): Define with a prototype.
91690         (PARAMS): Remove.  All uses removed.
91691         * lib/tempname.c: Include <string.h> unconditionally.
91692         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91693         * lib/xgethostname.c (main): Define with a prototype.
91694         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91695         Include <stdlib.h> unconditionally.
91696         (calloc, malloc, realloc, free): Remove decls.
91697         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91698         Include <stdlib.h> unconditionally.  Sort include file names.
91699         (strtod): Remove.
91700         (xstrtod): Define with a prototype.
91701         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91702         (strtol, strtoul): Remove decls.
91703
91704 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91705
91706         More patches to assume C89 or better.
91707         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91708         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91709         string.h, memchr, STDC_HEADERS.
91710
91711 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91714         Include <stdlib.h>, <string.h> unconditionally.
91715         Remove now-unnecessary cast to char *.
91716         * lib/strnlen.c: Include <string.h> unconditionally.
91717         * lib/yesno.c (yesno): Define with a prototype.
91718
91719 2003-09-11  Bruno Haible  <bruno@clisp.org>
91720
91721         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91722
91723 2003-09-10  Jim Meyering  <jim@meyering.net>
91724
91725         * lib/error.c: Correct indentation of cpp directives.
91726
91727 2003-09-10  Bruno Haible  <bruno@clisp.org>
91728
91729         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91730         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91731         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91732         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91733         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91734         <stdlib.h> and <string.h> checks.
91735         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91736         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91737
91738 2003-09-10  Bruno Haible  <bruno@clisp.org>
91739
91740         * lib/strcspn.c: Include <string.h> unconditionally.
91741         * lib/strpbrk.c: Include <string.h> unconditionally.
91742         * lib/strstr.c: Include <string.h> unconditionally.
91743         * lib/unicodeio.c: Include <string.h> unconditionally.
91744         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91745         * lib/unsetenv.c: Likewise.
91746         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91747         * lib/yesno.c: Include <stdlib.h> unconditionally.
91748         (rpmatch): Add prototype.
91749
91750 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91751
91752         More patches to assume C89 or better.
91753         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91754         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91755         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91756         or for string.h.
91757         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91758         stdlib.h.
91759         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91760         C headers.
91761         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91762         string.h.
91763         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91764         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91765         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91766         or for string.h.
91767         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91768         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91769         C headers.
91770         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91771         memcpy.
91772         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91773         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91774         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91775         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91776         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91777         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91778         string.h, free.
91779         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91780         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91781         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91782         C headers, or for string.h.
91783         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91784         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91785         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91786         headers, memory.h, stdlib.h, string.h, strings.h.
91787         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91788         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91789         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91790         strchr.
91791         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91792         headers, memory.h, string.h.
91793         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91794         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91795         free.
91796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91797         headers.
91798         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91799         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91800         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91801         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91802         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91803
91804 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91805
91806         More K&R removal.
91807
91808         * lib/acosl.c (main): Use a prototype.
91809         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91810         tanl.c: Likewise.
91811
91812         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91813
91814         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91815         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91816         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91817         with a prototype.
91818         * lib/getopt.c (const): Remove macro.
91819         Include <string.h> unconditionally.
91820         (my_index): Remove; all uses changed to strchr.
91821         (strlen): Remove decl.
91822         (exchange): Remove forward decl; no longer needed.
91823         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91824         Define with prototype.
91825         * lib/getopt1.c (const): Remove macro.
91826         (getopt_long, getopt_long_only, main): Define with prototype.
91827
91828         * lib/getugroups.c: Include <string.h> unconditionally.
91829
91830         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91831         (getusershell, setusershell, endusershell, readname, main):
91832         Define with prototypes.
91833
91834         * lib/group-member.c: Include group-member.h first.
91835         Include <stdlib.h> unconditionally.
91836
91837         * lib/hard-locale.c: Include hard-locale.h first.
91838         Include <stdlib.h>, <string.h> unconditionally.
91839
91840         * lib/hash.c (free, malloc): Remove decls.
91841         Include <stdlib.h> unconditionally.
91842
91843         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91844         (getenv): Do not declare.
91845
91846         * lib/idcache.c: Include <string.h> unconditionally.
91847
91848         * lib/long-options.c: Include long-options.h first, to test interface.
91849         Include <stdlib.h> unconditionally.
91850
91851         * lib/makepath.c: Include makepath.h first, to test interface.
91852         Include <stdlib.h> and <string.h> unconditionally.
91853
91854         * lib/linebuffer.c: Include <stdlib.h>.
91855         (free): Remove decl.
91856
91857         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91858         stddef.h. rpl_malloc returns void *, not char *.
91859         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91860         prototype.
91861
91862         * lib/md5.h: Include <limits.h> unconditionally.
91863         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91864         (__P): Remove; all uses removed.
91865         * lib/md5.c: Include "md5.h" first.
91866         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91867         md5_buffer, md5_process_bytes, md5_process_block):
91868         Define with prototypes.
91869         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91870         * lib/sha.c: Include "sha.h" first.
91871         Include <stdlib.h>, <string.h> unconditionally.
91872
91873         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91874         * lib/memcmp.c (__ptr_t): Likewise.
91875         * lib/memrchr.c (__ptr_t): Likewise.
91876         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91877         Include <string.h> unconditionally.
91878         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91879         * lib/memchr.c: Include <stdlib.h> unconditionally.
91880         * lib/memchr.c (LONG_MAX): Remove.
91881         * lib/memrchr.c (LONG_MAX): Likewise.
91882         * lib/memchr.c (__memchr): Define via a prototype.
91883         * lib/memrchr.c (__memrchr): Likewise.
91884         * lib/memcmp.c (__P): Remove, and remove all uses.
91885         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91886         Remove forward decls; no longer needed.
91887         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91888         Use types required by C89 in prototype.
91889
91890         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91891         * lib/savedir.c: Likewise.
91892         * lib/mkdir.c (free): Remove decl.
91893         * lib/rmdir.c (rmdir): Define with a prototype.
91894         * lib/savedir.c: Include savedir.h first, to test interface.
91895
91896         * lib/mktime.c (STDC_HEADERS): Remove.
91897         Include <stdlib.h>, <string.h> unconditionally.
91898
91899         * lib/modechange.c: Include <stdlib.h> unconditionally.
91900         (malloc): Remove decl.
91901
91902         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91903         (free): Remove decl.
91904
91905         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91906         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91907         (This type really should be intptr_t, but that's a C99ism.)
91908         (_obstack_memcpy): Remove: all uses changed to memcpy.
91909         Include <string.h> unconditionally.
91910         (struct obstack): Assume __STDC__ for types of members
91911         chunkfun, freefun, extra_arg.
91912         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91913         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91914         obstack_begin, obstack_specify_allocation,
91915         obstack_specify_allocation_with_arg, obstack_chunkfun,
91916         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91917         Remove unprototyped decls and the macros that use them.
91918         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91919         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91920         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91921         (defined __STDC__ && __STDC__)]:
91922         Remove nonprototyped code.
91923         Include <stdlib.h> unconditionally.
91924         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91925         _obstack_allocated_p, _obstack_free, obstack_free,
91926         _obstack_memory_used, print_and_abort):
91927         Define using prototypes.
91928         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91929         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91930         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91931         obstack_next_free, obstack_object_size, obstack_room) [0]:
91932         Remove unused, unprototyped code.
91933
91934         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91935
91936         * lib/physmem.c (physmem_total, physmem_available, main): Define
91937         with prototypes.
91938
91939         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91940         (main): Define with a prototype.
91941
91942         * lib/posixver.c (getenv): Remove decl.
91943
91944         * lib/putenv.c (malloc): Returns void *, not char *.
91945         Include <string.h> unconditionally.
91946         (strchr, memcpy, NULL): Do not define.
91947
91948         * lib/readtokens.c: Include readtokens.h first, to test interface.
91949         Include <stdlib.h>, <string.h> unconditionally.
91950         (init_tokenbuffer): Define with a prototype.
91951
91952         * lib/regex.c (PARAMS): Remove.  All uses removed.
91953         All uses of _RE_ARGS removed, too.
91954         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91955         unconditionally.
91956         (bzero): Assume memset exists.
91957         (memcmp, memcpy, NULL): Remove.
91958         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91959         char, or assignments to local vars of type signed char.
91960         (init_syntax_once, PREFIX(extract_number_and_incr),
91961         PREFIX(print_partial_compiled_pattern),
91962         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91963         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91964         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91965         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91966         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91967         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91968         wcs_compile_range, byte_compile_range, truncate_wchar,
91969         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91970         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91971         count_mbs_length, wcs_re_match_2_internal,
91972         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91973         PREFIX(alt_match_null_string_p),
91974         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91975         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91976         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91977         now-unnecessary declaration, if any.
91978         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91979         regcomp, regexec):
91980         Remove now-unnecessary casts among pointer types.
91981         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91982
91983         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91984         (free): Remove decl.
91985
91986         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91987
91988         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91989         (free): Remove decl.
91990
91991         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91992         * lib/xgetcwd.c: Likewise.
91993
91994         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91995         (free): Remove decl.
91996
91997         * lib/strchrnul.c (strchrnul): Define with a prototype.
91998         Fix bug: c_in was not converted to char before searching.
91999
92000         The following changes are not K&R related:
92001
92002         * lib/group-member.h: Include <sys/types.h>, so that this file is
92003         self-contained.
92004         * lib/makepath.h: Likewise.
92005
92006         * lib/getusershell.c (readname, default_index, line_size, readname):
92007         Use size_t, not int, for sizes.
92008         (readname): If the size overflows, report an error instead of
92009         looping forever.
92010
92011 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92012
92013         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92014         libc.
92015
92016 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92017
92018         * README: New section: portability guidelines.
92019
92020 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92021
92022         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92023         C89 spec.
92024
92025 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92026
92027         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92028
92029 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92030
92031         Assume C89 or better; remove K&R cruft.
92032         A few of these changes were first proposed by Derek Robert Price
92033         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92034
92035         * lib/addext.c: Include <string.h> unconditionally.
92036         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92037         Don't declare getenv or malloc.
92038
92039         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92040         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92041         (NULL): Remove.
92042         (find_stack_direction, alloca): Use prototypes.
92043
92044         * lib/atexit.c (atexit): Define using a prototype.
92045
92046         * lib/basename.c, dirname.c, stripslash.c:
92047         Include <string.h> unconditionally.
92048
92049         * lib/bcopy.c: Include <stddef.h>.
92050         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92051
92052         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92053
92054         * lib/error.h (error, error_at_line, error_print_progname)
92055         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92056         * lib/error.c: Include error.h first, to check interface.
92057         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92058         (VA_START): Remove; all uses changeed to va_start.
92059         (exit, strerror): Remove decls.
92060         (error_print_progname): Prototype uncondionally.
92061         Don't include <errno.h>; no longer needed.
92062         (private_strerror): Remove.
92063         (error_tail): Always define.
92064         (error, error_at_line): Assume C89 or better; always use prototypes.
92065         * lib/fatal.c: Include "fatal.h" first, to test interface.
92066         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92067         (VA_START): Remove; all uses changed to va_start.
92068         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92069         this case.
92070         (exit): Remove decl.
92071         (fatal): Prototype unconditionally.  Assume va_start works.
92072         Abort at end, to pacify gcc.
92073
92074         * lib/euidaccess.c (main): Define with a prototype.
92075
92076         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92077
92078         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92079
92080         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92081         prototypes.
92082         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92083         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92084         (getenv): Remove decl.
92085         (fnmatch): Define using a prototype.
92086         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92087         (FCT): Define using a prototype.
92088
92089         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92090
92091         * lib/gethostname.c: Include <stddef.h>.
92092         (gethostname): Define with prototype.  Length is size_t, not int.
92093
92094 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92095
92096         Assume C89 or better; remove K&R cruft.
92097         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92098         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92099         string.h, getenv, malloc.
92100         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92101         headers.
92102         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92103         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92104         do not check for strerror.
92105         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92106         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92107         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92108         do not check for doprnt or vprintf.
92109         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92110         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92111
92112 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92113
92114         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92115         getversion.c should have been removed then, but was accidentally
92116         preserved.
92117
92118         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92119         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92120
92121 2003-09-08  Karl Berry  <karl@gnu.org>
92122
92123         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92124                 config, forget about prep.
92125
92126         * config/depcomp, missing: update from automake.
92127
92128 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92129
92130         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92131         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92132
92133 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92134
92135         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92136         copy_tm_result.  Bug reported by Simon Josefsson in
92137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92138
92139 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92140
92141         * m4/time_r.m4: New file.
92142         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92143         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92144         is. Check for timegm declaration.
92145         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92146         Do not check for gmtime_r.
92147         Replace mktime if __mktime_internal does not exist and if mktime
92148         hasn't been replaced already.
92149
92150 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92151
92152         * lib/time_r.c, lib/time_r.h: New files.
92153
92154         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92155         __localtime_r.
92156         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92157         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92158
92159         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92160         __gmtime_r.
92161         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92162         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92163         Include <time_r.h>.
92164
92165         * lib/timegm.c: Switch to glibc implementation, with the following
92166         changes:
92167         [defined HAVE_CONFIG_H]: Include <config.h>.
92168         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92169         (__mktime_internal) [!defined _LIBC]: New decl.
92170         (__gmtime_r) [!defined _LIBC]: New macro and function.
92171         (timegm): Use a prototype, since gnulib assumes C89.
92172         Do not bother declaring tmp to be const, as it's not really usefu.
92173         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92174         (timegm): Declare only if HAVE_DECL_TIMEGM.
92175
92176 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92177
92178         * MODULES.html.sh (func_all_modules): Add time_r.
92179         * modules/time_r: New file.
92180         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92181         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92182
92183 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92184
92185         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92186         Bug reported by Lute Kamstra in
92187         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92188
92189         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92190         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92191         course with correspondingly smaller numbers for tomorrow and
92192         yesterday.  From Tadayoshi Funaba.  Originally installed into
92193         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92194         coreutils merge?).
92195
92196 2003-08-31  Simon Josefsson  <jas@extundo.com>
92197
92198         * modules/timegm: New file.
92199         * MODULES.html.sh (func_all_modules): Add timegm.
92200
92201 2003-08-31  Simon Josefsson  <jas@extundo.com>
92202
92203         * m4/timegm.m4: New file.
92204
92205 2003-08-31  Simon Josefsson  <jas@extundo.com>
92206
92207         * lib/timegm.h: New file.
92208         * lib/timegm.c: New file.  Based on
92209         wget-1.8.2/src/http.c:mktime_from_utc.
92210
92211 2003-08-31  Karl Berry  <karl@gnu.org>
92212
92213         * lib/argp.h: update from libc.
92214
92215 2003-08-28  Bruno Haible  <bruno@clisp.org>
92216
92217         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92218         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92219         followed by '#define fnmatch fnmatch_posix' gives an error.
92220
92221 2003-08-28  Bruno Haible  <bruno@clisp.org>
92222
92223         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92224         warning on QNX, which defines O_BINARY to 000000.
92225
92226 2003-08-27  Jim Meyering  <jim@meyering.net>
92227
92228         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92229         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92230         would fail after 32.  Reported by Danny Levinson.  Details here:
92231         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92232
92233 2003-08-24  Bruno Haible  <bruno@clisp.org>
92234
92235         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92236         MSVC7 <stdio.h> is included later.
92237
92238 2003-08-22  Simon Josefsson  <jas@extundo.com>
92239
92240         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92241
92242 2003-08-20  Karl Berry  <karl@gnu.org>
92243
92244         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92245
92246 2003-08-20  Bruno Haible  <bruno@clisp.org>
92247
92248         * modules/progname: New file.
92249         * MODULES.html.sh (func_all_modules): Add progname.
92250
92251 2003-08-20  Bruno Haible  <bruno@clisp.org>
92252
92253         * lib/progname.h: New file, from GNU gettext.
92254         * lib/progname.c: New file, from GNU gettext.
92255         * lib/progreloc.c: New file, from GNU gettext.
92256
92257 2003-08-19  Jim Meyering  <jim@meyering.net>
92258
92259         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92260         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92261
92262 2003-08-19  Bruno Haible  <bruno@clisp.org>
92263
92264         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92265         more.
92266
92267 2003-08-19  Bruno Haible  <bruno@clisp.org>
92268
92269         * lib/xstrdup.c: Assume <string.h> exists.
92270
92271 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92272
92273         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92274         in makefile rules.
92275
92276 2003-08-18  Jim Meyering  <jim@meyering.net>
92277
92278         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92279         * m4/lib-ld.m4: Likewise.
92280
92281 2003-08-18  Jim Meyering  <jim@meyering.net>
92282
92283         * lib/setenv.h: Indent nested cpp directive.
92284         * lib/vasnprintf.c: Remove trailing blanks.
92285
92286 2003-08-17  Simon Josefsson  <jas@extundo.com>
92287
92288         * modules/xstrndup: New file.
92289         * MODULES.html.sh (func_all_modules): Add xstrndup.
92290
92291 2003-08-17  Simon Josefsson  <jas@extundo.com>
92292
92293         * modules/argp: Fix autoconf macro name. Add more dependencies.
92294
92295 2003-08-17  Simon Josefsson  <jas@extundo.com>
92296
92297         * m4/xstrndup.m4: New file.
92298
92299 2003-08-17  Simon Josefsson  <jas@extundo.com>
92300
92301         * m4/argp.m4: New file.
92302
92303 2003-08-17  Simon Josefsson  <jas@extundo.com>
92304             Bruno Haible  <bruno@clisp.org>
92305
92306         * lib/xstrndup.h: New file.
92307         * lib/xstrndup.c: New file.
92308
92309 2003-08-17  Bruno Haible  <bruno@clisp.org>
92310
92311         * modules/strndup (Files, Include): Add lib/strndup.h.
92312
92313 2003-08-17  Bruno Haible  <bruno@clisp.org>
92314
92315         * modules/euidaccess (Files): Add lib/euidaccess.h.
92316
92317 2003-08-17  Bruno Haible  <bruno@clisp.org>
92318
92319         * lib/strndup.h: New file.
92320
92321 2003-08-17  Bruno Haible  <bruno@clisp.org>
92322
92323         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92324         like AC_GNU_SOURCE.
92325         * modules/extensions (configure.ac): Comment out the invocation of
92326         gl_USE_SYSTEM_EXTENSIONS.
92327
92328 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92329
92330         Merges from coreutils, etc.
92331         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92332         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92333         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92334         fixing a typo.
92335         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92336         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92337
92338 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92339
92340         Document merge from coreutils.
92341         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92342         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92343         * modules/utime: Add m4/utimes-null.m4.
92344
92345 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92346
92347         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92348         space, undoing this 2003-08-12 change:
92349         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92350
92351 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92352
92353         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92354         strtoul.c from libc, undoing this 2003-08-12 change:
92355         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92356
92357 2003-08-16  Jim Meyering  <jim@meyering.net>
92358
92359         Merges from coreutils.
92360         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92361         prefix.  Adjust cache variables similarly.  Create 500 rather than
92362         just 300 files, to exercise bug on Darwin6.5, too.
92363         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92364         $missing_dir.
92365         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92366         AM_SYS_POSIX_TERMIOS.
92367         Reported by mkc@mathdogs.com.
92368         Also change use of $am_cv_sys_posix_termios
92369         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92370         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92371         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92372         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92373         in /proc/mounts until it finds one with matching device number.  This
92374         is unnecessary when the FILE argument *is* a mount point.  No stat call
92375         is necessary in that case.  So, disable the statvfs-testing code on
92376         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92377         as RedHat bug# 84846.
92378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92379         to 1MB, so as not to render systems with no stack size limit (e.g.,
92380         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92381         Include <unistd.h>.  On some systems,
92382         it is required for the definition of _SC_PAGESIZE.
92383
92384 2003-08-16  Jim Meyering  <jim@meyering.net>
92385
92386         Merge from coreutils.
92387         * lib/xstrtoimax.c: #else #if -> #elif.
92388         * lib/xstrtoumax.c: Likewise.
92389
92390 2003-08-16  Jim Meyering  <jim@meyering.net>
92391
92392         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92393         * m4/utimes.m4: Removed.
92394         * m4/utimes-null.m4: Renamed from utimes.m4.
92395
92396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92397         to 1MB, so as not to render systems with no stack size limit (e.g.,
92398         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92399         Include <unistd.h>.  On some systems,
92400         it is required for the definition of _SC_PAGESIZE.
92401
92402 2003-08-16  Jim Meyering  <jim@meyering.net>
92403         and Paul Eggert  <eggert@cs.ucla.edu>
92404
92405         Merges from coreutils, etc.
92406
92407         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92408         using the latest version from cvs.  This avoids problems with #line
92409         directives using a vendor (Sun) compiler.
92410         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92411         Don't set GETGROUPS_LIB here; now it's
92412         done via getgroups.m4's wrapper function.
92413         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92414         rather than just in sh-util/configure.in, so that the
92415         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92416         same.
92417         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92418         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92419         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92420         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92421         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92422         Remove code that is now done by the newly-required macros.
92423         Append $(EXEEXT) to DF_PROG.
92424         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92425         Do not invoke or require the following here,
92426         since prereq.m4 or some gnulib .m4 now does this for us:
92427         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92428         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92429         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92430         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92431         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92432         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92433         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92434         AC_FUNC_OBSTACK.
92435         Do not replace the following functions, as this is now the job
92436         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92437         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92438         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92439         atexit getpass, strdup, getpagesize.
92440         Replace 'raise'.
92441         Do not check for the following functions, as this is now the job
92442         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92443         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92444         setregid.
92445         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92446         Check for sys/sysctl.h.
92447         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92448         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92449         of checking for ssize_t ourselves.
92450
92451         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92452         Require every macro that gnulib/modules/* suggests for us.
92453         (jm_PREREQ_ADDEXT): New macro.
92454         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92455         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92456
92457         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92458         (gl_PHYSMEM): Use it.
92459         Also check for `table' function.
92460         Check for new headers and functions.
92461         Add check for sys/sysmp.h.
92462         With suggestions from Kaveh Ghazi.
92463         Ignore headers that are present but cannot be compiled.  This
92464         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92465         C 5.4.
92466
92467 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92468
92469         Document merge from coreutils.
92470         * modules/userspec: Depend on posixver.
92471         * modules/strftime: Depend on tzset.
92472
92473 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92474
92475         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92476         rather than tab, after '#' in shell-script copyright notices.
92477         Suggested by Bruno Haible.
92478
92479 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92480
92481         * config/srclist-update: Use three spaces, rather than tab, after '#'
92482         in shell-script copyright notices.  Suggested by Bruno Haible.
92483         Remove unnecessary parenthesization in regular expression.
92484
92485 2003-08-15  Jim Meyering  <jim@meyering.net>
92486
92487         Merge from coreutils.
92488         * lib/xgethostname.c: Include <stdlib.h>.
92489         (xghostname): Don't exit for anything other than memory-related
92490         failure; just return NULL.
92491         * lib/userspec.c: Include "posixver.h".
92492         (parse_user_spec): Accept `.' as a separator only
92493         in pre-POSIX-200112 mode.
92494         * lib/strtoimax.c: Use #elif rather than #else #if.
92495         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92496         Remove function, now that we can rely on a working tzset function.
92497         [!_LIBC]: Ensure that the required autoconf test has been run.
92498         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92499         Use underlying_strftime for %r.
92500         * lib/sha.c: Merge in some clean-up and optimization changes from
92501         glibc.
92502         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92503         Ensure that it is a multiple of 64.
92504         Rearrange loop exit tests so as to avoid performing an
92505         additional fread after encountering an error or EOF.
92506         * lib/realloc.c: Update copyright date.
92507
92508 2003-08-15  Jim Meyering  <jim@meyering.net>
92509         and Paul Eggert  <eggert@twinsun.com>
92510
92511         Merge from coreutils.
92512         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92513         member but strut utmpx does not.  Needed for AIX 4.3.3.
92514         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92515
92516 2003-08-15  Jim Meyering  <jim@meyering.net>
92517         and Paul Eggert  <eggert@cs.ucla.edu>
92518
92519         Merges from coreutils, etc.
92520         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92521         Require gl_FUNC_TZSET_CLOBBER.
92522         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92523         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92524         members.
92525
92526 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92527
92528         Help the merge from coreutils.
92529         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92530         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92531         * m4/tzset.m4: Use it too.
92532
92533 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92534
92535         * modules/tzset: New file.
92536
92537 2003-08-14  Jim Meyering  <jim@meyering.net>
92538
92539         Merges from coreutils.
92540         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92541         variable names, rather than @FNMATCH_H@.
92542         * modules/alloca: Likewise for $(ALLOCA_H).
92543
92544         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92545         the three copies of the literal target, `fnmatch.h'.
92546         * modules/alloca (alloca.h): Likewise.
92547
92548 2003-08-14  Jim Meyering  <jim@meyering.net>
92549
92550         Merge from coreutils.
92551         * m4/tzset.m4: New file.
92552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92553         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92554         otherwise, AIX 5.1 systems would end up using the latter.
92555         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92556         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92557         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92558         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92559
92560 2003-08-14  Jim Meyering  <jim@meyering.net>
92561
92562         Merge from coreutils.
92563         * lib/obstack.h: Whitespace changes.
92564         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92565         and xcalloc return values.
92566         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92567         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92568         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92569         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92570         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92571         error from mntctl.
92572         Use mntctl's return value to drive the entry-processing loop, since
92573         we can't rely on the value of the vmt_length member in the last
92574         entry.  On some systems doing so could result in exhausting
92575         virtual memory.  Based in part on a patch from Mike Jetzer.
92576
92577 2003-08-14  Jim Meyering  <jim@meyering.net>
92578         and Paul Eggert  <eggert@twinsun.com>
92579
92580         Merges from coreutils, plus other fixes.
92581         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92582         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92583         for credits and details.  Thanks to Kaveh Ghazi for helping
92584         to keep these files in sync.
92585         (ARRAY_SIZE): Define it.
92586         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92587         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92588         (memcasecmp): Don't assume size_t fits in unsigned int.
92589         Remove casts and duplicate code.
92590         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92591         (memcpy): Remove definition.
92592         Merge in some clean-up and optimization changes from glibc.
92593         [BLOCKSIZE]: Move definition to top of file.
92594         Ensure that it is a multiple of 64.
92595         Rearrange loop exit tests so as to avoid performing an
92596         additional fread after encountering an error or EOF.
92597         * lib/md5.h (md5_uintptr): Define.
92598         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92599         return to the initial working directory.  Preserve errno
92600         for caller.
92601         * lib/idcache.c: Include "xalloc.h".
92602         (xmalloc, xrealloc): Remove decls.
92603         (getuser): Remove casts no longer required in C89.
92604         * lib/human.c: Include stdio.h, for sprintf.
92605         * lib/group-member.c: Include "xalloc.h".
92606         (xmalloc, xrealloc): Remove decls.
92607         (get_group_info): Remove casts no longer required in C89.
92608         * lib/getusershell.c (readname): Remove casts no longer required in
92609         C89.
92610         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92611         * lib/getline.c: Whitespace fix, from coreutils.
92612
92613 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92614
92615         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92616         Check for isascii.
92617
92618         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92619         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92620         Undo previous (whitespace-only) change.
92621
92622 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/exclude.c: Include <ctype.h>
92625         (IN_CTYPE_DOMAIN): New macro.
92626         (is_space): New fn.
92627         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92628         and empty lines.
92629
92630         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92631         Undo previous (whitespace-only) change.
92632
92633 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92634
92635         * config/srclist-update: Change update back to the old behavior,
92636         leaving whitespace alone.  Use one 'sed' command rather than a
92637         pipeline.
92638         (fixlicense): Now a variable, not a function.
92639         (remove_trailing_blanks): Remove.
92640         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92641         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92642         Undo previous (whitespace-only) change.
92643
92644 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92645
92646         Merge from coreutils.
92647         * modules/euidaccess: Add lib_SOURCES, include for new
92648         file euidaccess.h
92649
92650 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92651
92652         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92653         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92654         Normalize leading white space and remove trailing white space.
92655
92656         Merge from coreutils
92657         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92658
92659         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92660         0.12.1.  These files are now being upgraded automatically by
92661         ../config/srclist-update.
92662
92663 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92664
92665         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92666         Normalize leading white space and remove trailing white space.
92667         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92668         notice, as per ../config/srclist-update.
92669
92670         Merge from coreutils.
92671         * lib/euidaccess.h: New file.
92672         * lib/euidaccess.c: Include it.
92673         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92674         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92675         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92676
92677 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92678
92679         * config/srclist-update: Add copyright notice.
92680         (remove_id_lines, remove_trailing_blanks): New constants.
92681         (fixfile): Use them to normalize spacing a bit in copied files.
92682         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92683         Normalize leading white space and remove trailing white space.
92684
92685         * config/texinfo.tex: Sync with texinfo.
92686
92687         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92688         strtoul.c from libc, to merge coreutils whitespace changes.
92689
92690         * config/srclist.txt: Get the following m4 files from gettext:
92691         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92692         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92693         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92694         wint_t.m4.
92695
92696 2003-08-12  Karl Berry  <karl@gnu.org>
92697
92698         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92699         been made.
92700
92701 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92702
92703         * modules/gnu-source, m4/gnu-source.m4:
92704         Remove; we're assuming Autoconf 2.54 or later now.
92705         Suggested by Bruno Haible.
92706         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92707
92708 2003-08-11  Bruno Haible  <bruno@clisp.org>
92709
92710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92711
92712 2003-08-11  Bruno Haible  <bruno@clisp.org>
92713
92714         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92715         (vasnprintf): Use it instead of wcslen.
92716
92717 2003-08-11  Bruno Haible  <bruno@clisp.org>
92718
92719         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92720         value to ensure that _Bool promotes to int. Use #define for _Bool when
92721         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92722
92723 2003-08-10  Karl Berry  <karl@gnu.org>
92724
92725         * lib/regex.h: update from libc (whitespace fix).
92726
92727 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92728
92729         Merge some files from coreutils.  These changes were
92730         originally made by Jim Meyering.
92731         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92732         many older Unixes require this.
92733         * lib/alloca.c (alloca): Remove cast to argument of free;
92734         no longer needed in C89.
92735         * lib/alloca_.h, regex.h: Fix white space to match
92736         what GNU indent does.
92737
92738 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92739
92740         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92741         apparently Emacs's Unicode mode got confused before my 2003-08-05
92742         checkin.
92743
92744 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92745
92746         * m4/extensions.m4: New file.
92747         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92748         Require gl_USE_SYSTEM_EXTENSIONS.
92749         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92750         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92751
92752 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92753
92754         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92755         * modules/extensions, modules/gnu-source: New files.
92756         * modules/timespec, modules/unlocked-io: Depend on extensions.
92757
92758 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92759
92760         * modules/restrict: New file.
92761         * MODULES.html.sh (func_all_modules): Add restrict.
92762         * modules/regex: Depend on restrict.
92763
92764 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92765
92766         * m4/restrict.m4: New file.
92767         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92768
92769 2003-08-07  Bruno Haible  <bruno@clisp.org>
92770
92771         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92772         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92773
92774 2003-08-07  Bruno Haible  <bruno@clisp.org>
92775
92776         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92777         makes the module 'getndelim2' compatible with the module 'getline'.
92778
92779 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92780
92781         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92782         byte with "\201" to avoid glitches when editing that source file
92783         with multi-gnome-terminal.
92784
92785 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92786
92787         * lib/bumpalloc.h: Remove.
92788
92789 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92790
92791         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92792         * modules/bumpalloc: Remove.
92793
92794 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92795
92796         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92797         GNU coding style.
92798
92799         Merge from coreutils.
92800         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92801         1. From glibc.
92802         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92803         from Karl Berry, implemented by Jim Meyering.
92804         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92805         from Dmitry V. Levin.
92806         Remove anachronistic cast of xrealloc.
92807         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92808         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92809         type. Otherwise, it wouldn't compile with at least /bin/cc on
92810         ymp-cray-unicos9.0.2.X.
92811         Combine two mostly-identical uses of alloca into one.
92812         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92813
92814 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92815
92816         [From Emacs.]
92817
92818         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92819         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92820         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92821         obsolete NLIST_NAME_UNION.
92822         [__GNU__]: Undef BSD and FSCALE.
92823         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92824
92825 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92826
92827         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92828         an enum type, so that it's guaranteed to promote to int.  See:
92829         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92830
92831 2003-08-03  Karl Berry  <karl@gnu.org>
92832
92833         * config/depcomp: update from automake.
92834
92835 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92836
92837         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92838         (strerror): Don't assume that a printable int fits in 14 bytes.
92839
92840 2003-07-31  Bruno Haible  <bruno@clisp.org>
92841
92842         * modules/getpass-gnu: New file.
92843         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92844
92845 2003-07-31  Bruno Haible  <bruno@clisp.org>
92846
92847         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92848
92849 2003-07-24  Karl Berry  <karl@gnu.org>
92850
92851         * config/missing: update from automake.
92852
92853 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92854             Bruno Haible  <bruno@clisp.org>
92855
92856         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92857         * lib/getline.c (getline, getdelim): Likewise.
92858         Remove _GNU_SOURCE define; now it's defined in config.h through
92859         m4/getline.m4.
92860
92861 2003-07-23  Karl Berry  <karl@gnu.org>
92862
92863         * config/config.sub: update from prep.
92864
92865 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92866
92867         * modules/xalloc (Depends-on): Add exitfail.
92868         * modules/xmemcoll: Likewise.
92869
92870 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92871
92872         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92873         over-parenthesization in macros.
92874
92875         Sync with coreutils.
92876
92877         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92878         required by C99.
92879
92880         Use `exit_failure' for xalloc and xmemcoll instead of their own
92881         private exit-failure variables.
92882         * lib/xalloc.h (xalloc_exit_failure): Remove.
92883         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92884         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92885         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92886         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92887         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92888
92889 2003-07-20  Jim Meyering  <jim@meyering.net>
92890
92891         * modules/closeout (Depends-on): Add exitfail.
92892         Suggestion from Bruno Haible.
92893
92894 2003-07-19  Karl Berry  <karl@gnu.org>
92895
92896         * config/config.sub: update from prep.
92897
92898 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92899
92900         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92901         Remove.
92902         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92903         to test that it can stand by itself.  Include "exitfail.h".
92904         Clients should set exit_failure instead.
92905         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92906
92907 2003-07-18  Bruno Haible  <bruno@clisp.org>
92908
92909         * modules/getndelim2: New file.
92910         * modules/getline: Share files with module getndelim2.
92911         * modules/getnline: Depend on getndelim2 instead of sharing files with
92912         it. Add getnline.c to lib_SOURCES.
92913         * MODULES.html.sh (func_all_modules): Add getndelim2.
92914
92915 2003-07-18  Bruno Haible  <bruno@clisp.org>
92916
92917         * m4/getndelim2.m4: New file.
92918         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92919         invoke gl_PREREQ_GETNDELIM2.
92920         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92921         gl_PREREQ_GETNDELIM2.
92922         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92923         gl_GETNDELIM2.
92924
92925 2003-07-18  Bruno Haible  <bruno@clisp.org>
92926
92927         * lib/getndelim2.h: New file.
92928         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92929         getndelim2.h.
92930         (getndelim2): Make non-static. Change return type to ssize_t.
92931         * lib/getline.h: Change argument names.
92932         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92933         * lib/getnline.c: Include getndelim2.h.
92934
92935 2003-07-18  Andreas Schwab  <schwab@suse.de>
92936
92937         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92938
92939 2003-07-17  Karl Berry  <karl@gnu.org>
92940
92941         * config/config.sub: update from prep.
92942
92943 2003-07-17  Bruno Haible  <bruno@clisp.org>
92944
92945         * modules/getnline: New file.
92946         * modules/getline: Add lib/getndelim2.c to source file list.
92947         * MODULES.html.sh (func_all_modules): Add getnline.
92948
92949 2003-07-17  Bruno Haible  <bruno@clisp.org>
92950
92951         * m4/getnline.m4: New file.
92952
92953 2003-07-17  Bruno Haible  <bruno@clisp.org>
92954
92955         * m4/Makefile.am.in: Remove file.
92956         * m4/Makefile.am: Remove file.
92957         * m4/Makefile.in: Remove file.
92958
92959 2003-07-17  Bruno Haible  <bruno@clisp.org>
92960
92961         * lib/getnline.h: New file.
92962         * lib/getnline.c: New file.
92963         * lib/getndelim2.c: New file, extracted from getline.c.
92964         (getndelim2): Renamed from getdelim2, with added nmax argument.
92965         * lib/getline.c: Include getndelim2.c.
92966         (getdelim2): Moved out to getndelim2.c.
92967         (getline, getdelim): Update.
92968
92969 2003-07-17  Bruno Haible  <bruno@clisp.org>
92970
92971         * lib/Makefile.am: Remove file.
92972         * lib/Makefile.in: Remove file.
92973
92974 2003-07-17  Bruno Haible  <bruno@clisp.org>
92975
92976         * configure.in: Remove file.
92977         * Makefile.in: Remove file.
92978
92979 2003-07-17  Bruno Haible  <bruno@clisp.org>
92980
92981         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92982
92983 2003-07-16  Karl Berry  <karl@gnu.org>
92984
92985         * config/srclist-update: was running fixlicense twice, which caused
92986                 texinfo.tex to be nullified for some reason.  Simplify,
92987                 $gplsrc is no longer needed as far as I can see?
92988
92989 2003-07-16  Jim Meyering  <jim@meyering.net>
92990
92991         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92992
92993 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92994
92995         * config/srclist.txt: Get the following files from gettext-runtime/intl
92996         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92997         ref-del.sin.  From Bruno Haible.
92998         * config/srclist-update (fixfile): Change grep pattern again, since the
92999         previous fix didn't work (there was another trailing $).  Use
93000         '[$]' to escape the $s.
93001
93002 2003-07-15  Karl Berry  <karl@gnu.org>
93003
93004         * lib/vasnprintf.c: update from gettext.
93005
93006 2003-07-15  Karl Berry  <karl@gnu.org>
93007
93008         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93009         gets expanded when surrounded by '$'.
93010
93011 2003-07-15  Jim Meyering  <jim@meyering.net>
93012
93013         * modules/save-cwd: Don't depend on error.  From Derek Price.
93014
93015 2003-07-15  Jim Meyering  <jim@meyering.net>
93016
93017         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93018
93019 2003-07-14  Simon Josefsson  <jas@extundo.com>
93020
93021         * modules/mempcpy: New file.
93022         * MODULES.html.sh (func_all_modules): Add mempcpy.
93023
93024 2003-07-14  Simon Josefsson  <jas@extundo.com>
93025
93026         * m4/mempcpy.m4: New file.
93027
93028 2003-07-14  Simon Josefsson  <jas@extundo.com>
93029
93030         * lib/mempcpy.h: New file.
93031         * lib/mempcpy.c: New file.
93032
93033 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93034
93035         * modules/getdate, modules/posixtm: Depend on mktime.
93036
93037 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93038
93039         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93040         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93041         unicodeio.c, unicodeio.h, unlocked-io.h:
93042         Switch from LGPL to GPL.
93043
93044 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93045
93046         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93047         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93048         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93049         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93050         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93051         updated automatically by ../config/srclist-update.  This changes
93052         their license from LPGL to GPL.
93053
93054 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93055
93056         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93057         assumed to refer to the root of the most recent stable gettext version.
93058         * config/srclistvars.sh: Add defaults for eggert.
93059         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93060         Match "This program" as well as "The program".  This is needed
93061         for gettext.
93062
93063 2003-07-14  Jim Meyering  <jim@meyering.net>
93064
93065         Don't emit diagnostics.  Let callers do that.
93066         * lib/save-cwd.c: Don't include "error.h".
93067         (save_cwd): Don't call error.  Ensure that errno is valid
93068         when returning nonzero.
93069
93070         * lib/save-cwd.h (restore_cwd): Update prototype.
93071         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93072         Simplify.  Don't call error upon failure.  Let callers do that.
93073         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93074         when auditing is enabled.  But don't bother updating the #if.
93075
93076 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93077
93078         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93079         it breaks C++ compilation.
93080         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93081
93082 2003-07-10  Simon Josefsson  <jas@extundo.com>
93083
93084         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93085
93086 2003-07-10  Jim Meyering  <jim@meyering.net>
93087
93088         * m4/clock_time.m4: Remove trailing blank.
93089         * m4/intmax_t.m4: Likewise.
93090
93091 2003-07-10  Jim Meyering  <jim@meyering.net>
93092
93093         * lib/vasnprintf.c: Remove trailing blanks.
93094         Make cpp indentation consistent.
93095
93096 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93097
93098         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93099         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93100         Switch from LGPL to GPL.
93101
93102 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93103
93104         * config/srclist.txt: Sort sublists.  Add
93105         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93106         that differ from gnulib for one reason or another; we'd like this list
93107         to be smaller but for now let's document what we have.
93108
93109 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93110
93111         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93112         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93113         and sweeter "eval x=$x".
93114         * config/srclist.txt: Get lib/argp* from glibc.
93115
93116 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93117
93118         * lib/mktime.c: Fix some boundary cases and remove need for floating
93119         point.
93120
93121         Issue a compile-time diagnostic if time_t is floating point, or if
93122         two's complement arithmetic is not in effect, or if arithmetic
93123         right shift does not propagate the sign.  These assumptions were
93124         all in the original code but they weren't checked.
93125
93126         (TIME_T_MIDPOINT, verify): New macros.
93127         (__isleap): Remove; it has integer overflow problems.
93128         (leapyear): New function, without those problems.
93129         (ydhms_tm_diff): Remove; splitting into two parts.
93130         (ydhms_diff): New function, containing the arithmetic part of
93131         the old ydhms_tm_diff function.  Issue a compile-time
93132         diagnostic if we are not using C99 integer division.
93133         Avoid casts when possible.
93134         (guess_time_tm): New function, containing the checking part of
93135         the old ydhms_tm_diff function.  Return the new value, rather than
93136         the difference between it and the old.  Accept a new argument T
93137         so that *T specifies the old value.  Check for overflow in the result.
93138
93139         (__mktime_internal): Use a time_t offset, not a long int offset.
93140         This undoes the 2003-06-04 change, which is no longer needed now
93141         that we have better overflow checking.
93142         (localtime_offset): Likewise.
93143
93144         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93145         and long are 64-bit but int is only 32-bit.
93146         (ydhms_diff): Use long int to store year1 and yday1.
93147         Issue a compile-time diagnostic if long int is not wide enough.
93148
93149         (__mktime_internal): Use long int to store adjusted year and yday.
93150         Use plain C rather than preprocessor commands, if that doesn't
93151         affect efficiency.
93152         Check for overflow (and try to repair) after each probe
93153         rather than checking only at the very end.  This avoids some bugs
93154         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93155         does not equal GMT offset at maximum time).
93156         Use integer to check for overflow rather than floating point; this
93157         is more portable to non-IEEE hosts, and is a tad faster.
93158         When we detect that we are oscillating between two values,
93159         don't check whether tm_isdst has the requested value, since
93160         we already know the answer.  When tm_isdst has the wrong value,
93161         use a different heuristic to find the right one, based on the
93162         extreme values actually observed in practice in tz2003a,
93163         rather than the (overly optimistic) "previous 3 calendar quarters".
93164
93165         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93166         "T const" to accommodate glibc style.
93167         (check_result): Use less-confusing report format.  "long" -> "long int.
93168         (main): Likewise.
93169         Don't loop if the iteration overflows time_t.
93170         Allow a negative step in the iteration.
93171
93172 2003-07-06  Karl Berry  <karl@gnu.org>
93173
93174         * config/depcomp: update from automake.
93175         * config/config.sub: update from prep.
93176
93177 2003-07-03  Karl Berry  <karl@gnu.org>
93178
93179         * config/config.guess: update from prep.
93180
93181 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93182
93183         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93184         xreadlink.c now includes it unconditionally.
93185
93186 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93187
93188         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93189         having it depend on HAVE_SYS_TYPES_H.
93190
93191 2003-07-01  Bruno Haible  <bruno@clisp.org>
93192
93193         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93194         <sys/types.h> should be sufficient.
93195         Reported by Paul Eggert.
93196
93197 2003-06-26  Karl Berry  <karl@gnu.org>
93198
93199         * config/depcomp: update from automake.
93200
93201 2003-06-26  Bruno Haible  <bruno@clisp.org>
93202
93203         * modules/human: Depend on module stdbool.
93204
93205 2003-06-25  Bruno Haible  <bruno@clisp.org>
93206
93207         * modules/readlink: New file.
93208         * modules/xreadlink: Depend on it.
93209         * MODULES.html.sh (func_all_modules): Add readlink.
93210
93211 2003-06-25  Bruno Haible  <bruno@clisp.org>
93212
93213         * m4/readlink.m4: New file.
93214
93215 2003-06-25  Bruno Haible  <bruno@clisp.org>
93216
93217         * lib/readlink.c: New file.
93218
93219 2003-06-22  Karl Berry  <karl@gnu.org>
93220
93221         * config/srclist.txt: update mkinstalldirs from automake.
93222         * config/mkinstalldirs: update.
93223
93224 2003-06-22  Bruno Haible  <bruno@clisp.org>
93225
93226         Portability to mingw32.
93227         * m4/ssize_t.m4: New file, from GNU gettext.
93228         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93229         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93230
93231 2003-06-22  Bruno Haible  <bruno@clisp.org>
93232
93233         * modules/safe-read: Add m4/ssize_t.m4.
93234         * modules/xreadlink: Add m4/ssize_t.m4.
93235
93236 2003-06-20  Bruno Haible  <bruno@clisp.org>
93237
93238         Assume C89, so PARAMS isn't needed.
93239         * lib/unicodeio.h (PARAMS): Remove.
93240         * lib/unicodeio.c: Don't use PARAMS.
93241
93242 2003-06-18  Karl Berry  <karl@gnu.org>
93243
93244         * config/config.{guess,sub}: update from prep.
93245
93246 2003-06-18  Jim Meyering  <jim@meyering.net>
93247
93248         Merge changes from coreutils.
93249         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93250         Remove explicit declarations of xmalloc and realloc.
93251         Include xalloc.h.
93252         (read_utmp): Remove anachronistic cast of xmalloc.
93253
93254 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93255
93256         Assume C89, so PARAMS isn't needed.
93257         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93258         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93259         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93260         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93261         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93262         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93263         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93264         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93265         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93266         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93267         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93268         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93269         no longer needed. Anyway, config.h should always be included before any
93270         other file.
93271
93272 2003-06-11  Simon Josefsson  <jas@extundo.com>
93273
93274         * modules/sysexits: New file.
93275         * MODULES.html.sh (func_all_modules): Add sysexits.
93276
93277 2003-06-11  Simon Josefsson  <jas@extundo.com>
93278
93279         * lib/sysexit_.h: New file.
93280
93281 2003-06-11  Derek Price  <derek@ximbiot.com>
93282
93283         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93284         necessary.
93285
93286 2003-06-11  Bruno Haible  <bruno@clisp.org>
93287
93288         * m4/sysexits.m4: New file.
93289
93290 2003-06-10  Simon Josefsson  <jas@extundo.com>
93291
93292         * lib/argp.h: New file, from glibc.
93293         * lib/argp-ba.c: New file, from glibc.
93294         * lib/argp-eexst.c: New file, from glibc.
93295         * lib/argp-fmtstream.c: New file, from glibc.
93296         * lib/argp-fmtstream.h: New file, from glibc.
93297         * lib/argp-fs-xinl.c: New file, from glibc.
93298         * lib/argp-help.c: New file, from glibc.
93299         * lib/argp-namefrob.h: New file, from glibc.
93300         * lib/argp-parse.c: New file, from glibc.
93301         * lib/argp-pv.c: New file, from glibc.
93302         * lib/argp-pvh.c: New file, from glibc.
93303         * lib/argp-xinl.c: New file, from glibc.
93304
93305 2003-06-10  Simon Josefsson  <jas@extundo.com>
93306
93307         * modules/strchrnul: New file.
93308
93309 2003-06-10  Simon Josefsson  <jas@extundo.com>
93310
93311         * modules/argp: New file.
93312
93313 2003-06-10  Simon Josefsson  <jas@extundo.com>
93314
93315         * m4/strchrnul.m4: New file.
93316
93317 2003-06-10  Simon Josefsson  <jas@extundo.com>
93318
93319         * lib/strchrnul.h: New file.
93320         * lib/strchrnul.c: New file.
93321
93322 2003-06-10  Bruno Haible  <bruno@clisp.org>
93323
93324         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93325
93326 2003-06-07  Karl Berry  <karl@gnu.org>
93327
93328         * config/config.{guess,sub}: update from prep.
93329
93330 2003-06-07  Jim Meyering  <jim@meyering.net>
93331
93332         * modules/strtod: Use $(...) notation, not @...@ for
93333         AC_REPLACE'd variables.
93334         * modules/localcharset: Likewise.
93335
93336 2003-06-07  Jim Meyering  <jim@meyering.net>
93337
93338         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93339         in place of my name in the copyright comment.
93340         Remove definition and uses of __P.
93341
93342         From coreutils.
93343         * lib/stat.c: Don't declare xmalloc explicitly.
93344         Instead, include "xalloc.h".
93345         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93346         xrealloc, and xcalloc return values.
93347         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93348         Improve comment.
93349         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93350
93351 2003-06-07  Bruno Haible  <bruno@clisp.org>
93352
93353         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93354         avoid AC_CONFIG_LINKS.
93355         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93356         fnmatch.h, to avoid AC_CONFIG_LINKS.
93357         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93358
93359 2003-06-07  Bruno Haible  <bruno@clisp.org>
93360
93361         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93362         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93363         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93364         directory.
93365         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93366         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93367         directory.
93368
93369 2003-06-06  Jim Meyering  <jim@meyering.net>
93370
93371         Merge from coreutils.
93372         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93373         Consolidate declarations and initializations of *_base* locals.
93374
93375         Merge from coreutils.
93376         This avoids a core dump on systems without GNU putenv,
93377         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93378         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93379         (unsetenv): New static function, from GNU libc.
93380         (rpl_putenv): Use it.
93381
93382         * lib/modechange.c: Remove trailing blanks.
93383
93384         Merge from coreutils.
93385         * lib/fsusage.c: Remove declaration of statfs.
93386         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93387
93388         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93389
93390 2003-06-06  Jim Meyering  <jim@meyering.net>
93391
93392         * lib/stdbool_.h: Renamed from stdbool.h.in.
93393
93394 2003-06-06  Jim Meyering  <jim@meyering.net>
93395             Bruno Haible  <bruno@clisp.org>
93396
93397         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93398         Adjust Makefile.am snippet not to redirect directly to target.
93399         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93400
93401 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93402
93403         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93404         mismatch, look in future quarters as well as past.  This fixes a
93405         bug when processing fall-backwards gaps immediately after a long
93406         period of daylight-saving time.
93407
93408         * lib/mktime.c: Assume freestanding C89 or better.
93409         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93410         (__P): Remove; not used.
93411         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93412         (mktime, not_equal_tm, print_tm, check_result,
93413         main): Use prototypes.  Use const * where appropriate.
93414         (main): Fix typo in testing code that uncovered by above changes.
93415         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93416
93417 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93418
93419         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93420         locale.h, localeconv.  This merges changes from coreutils.
93421
93422         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93423         It can be removed after the next Autoconf is released.
93424         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93425         needed.
93426
93427 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93428
93429         * lib/mktime.c: Fix Debian bug 177940
93430         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93431         (localtime_offset): Now long int, not time_t, because we want it
93432         to be guaranteed to be signed.  All uses changed.
93433         (__mktime_internal): If overflow would occur when adding offset,
93434         don't add it.
93435
93436         Merge 'human' changes from coreutils.  Rewrite to support
93437         locale-specific notations like thousands separators.
93438         * lib/human.c: Simplify authorship notice.
93439         Include human.h immediately after config.h.
93440         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93441         <limits.h>: Do not include, since human.h does.
93442         (SIZE_MAX, UINTMAX_MAX): New macros.
93443         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93444         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93445         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93446         (power_letter): Renamed from suffixes.
93447         (generate_suffix_backwards): Remove.
93448         (adjust_value): Now takes int style (because of human.h changes)
93449         and long double value (for greater precision on some platforms).
93450         (group_number): New function.
93451         (human_readable): Use it.  Use integer options, not enum.
93452         Put the options before the sizes in the arg list.
93453         Support all the new options.
93454         The old human_readable function has been removed;
93455         use inttostr.h instead.
93456         (human_readable, default_block_size, humblock):
93457         Use uintmax_t, not int, for block sizes.
93458         (human_readable_inexact, block_size_types): Remove.
93459         (block_size_opts): New constant.
93460         (human_options): Renamed from human_block_size, with new signature
93461         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93462         * lib/human.h: Add copyright and authorship notice.
93463         Include <limits.h> and <stdbool.h> unconditionally.
93464         (PARAMS): Remove.  All uses removed.
93465         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93466         (enum human_inexact_style): Remove tag; now a nameless enum.
93467         (human_floor, human_ceiling, human_round_to_even): Now have
93468         values 2, 0, 1 rather than -1, 1, 0.
93469         (human_group_digits, human_suppress_point_zero, human_autoscale,
93470         human_base_1024, human_SI, human_B): New constants.
93471         (human_readable_inexact, human_block_size): Remove.
93472         (human_readable): Size args are now uintmax_t, not int.
93473         (human_options): New decl.
93474
93475         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93476         unnecessary now that we assume C89 or better.  This change
93477         imported from coreutils.
93478
93479         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93480         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93481         in the 2003-05-30 sync from glibc.
93482
93483         .h files should stand alone, but we shouldn't include <sys/types.h>
93484         if we can get away with just <stddef.h>.
93485
93486         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93487         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93488         rather than <sys/types.h>, as we merely need size_t.
93489         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93490         to get size_t.
93491         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93492         Include <stdio.h>, to get FILE.
93493         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93494         memcasecmp.h has included <stddef.h> and all we need is size_t.
93495         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93496         our interface, instead of including <sys/types.h>
93497
93498 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93499
93500         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93501         now, as glibc mktime is buggy on non-glibc systems.
93502
93503 2003-06-03  Karl Berry  <karl@gnu.org>
93504
93505         * config/config.sub: update from prep.
93506
93507 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93508
93509         [from coreutils]
93510         Fix some minor time-related bugs with POSIX time arguments.
93511         Some valid time stamps were being rejected (notably -1, and
93512         time stamps before 1900 on 64-bit hosts).  And some invalid
93513         time stamps were being accepted, e.g. September 31.
93514
93515         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93516         that we can return (time_t) -1 successfully.
93517         * lib/posixtm.c: Likewise.
93518         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93519         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93520         (t): Remove static var.
93521         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93522         of static var.  All uses changed.
93523         (year): Do not reject years before 1900; they can occur with
93524         64-bit time_t.
93525         (posix_time_parse): Do not check for out-of-range components;
93526         that is now the caller's responsibility, since our checks were
93527         only approximations.
93528         (posixtime): Use mktime to check for out-of-range components,
93529         since it knows them exactly.
93530         If mktime returns (time_t) -1, check whether an error actually occurred
93531         by invoking localtime on -1.
93532         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93533         posixtime failures better.
93534         Improve the test data (in comments only).
93535
93536 2003-06-02  Karl Berry  <karl@gnu.org>
93537
93538         * config/mkinstalldirs (version): new variable.
93539         (--version): new option.
93540         (usage): improve message.
93541
93542 2003-05-30  Karl Berry  <karl@gnu.org>
93543
93544         * lib/mktime.c: update from libc.
93545
93546 2003-05-30  Bruno Haible  <bruno@clisp.org>
93547
93548         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93549         * config/config.rpath: Upgrade to gettext-0.12.1.
93550
93551 2003-05-30  Bruno Haible  <bruno@clisp.org>
93552
93553         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93554         * m4/nls.m4: New file, from gettext-0.12.1.
93555         * m4/po.m4: New file, from gettext-0.12.1.
93556         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93557
93558 2003-05-30  Bruno Haible  <bruno@clisp.org>
93559
93560         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93561         * lib/localcharset.h: Likewise.
93562         * lib/localcharset.c: Likewise.
93563
93564 2003-05-29  Karl Berry  <karl@gnu.org>
93565
93566         * config/config.rpath: update from gettext.
93567
93568 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93569
93570         Assume the headers required for C89 freestanding compilers.
93571         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93572         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93573         * m4/human.m4 (gl_HUMAN): Likewise.
93574         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93575         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93576         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93577         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93578         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93579         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93580
93581 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93582
93583         Assume the headers required for C89 freestanding compilers.
93584         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93585         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93586         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93587         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93588         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93589         define, since <limits.h> is guaranteed to do that.
93590         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93591         * lib/exclude.c: Include <stdbool.h> unconditionally.
93592         * lib/tempname.c: Include <stddef.h> unconditionally.
93593         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93594         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93595         <stddef.h> does that.
93596         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93597         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93598         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93599         needed.
93600         * lib/xstrtol.c: Likewise.
93601         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93602         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93603
93604         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93605         warnings on some platforms.
93606
93607         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93608         arbitrarily.
93609
93610 2003-05-26  Jim Meyering  <jim@meyering.net>
93611
93612         Merge in a change from coreutils:
93613         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93614         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93615         that condition, rather than `-1' which is slightly misleading.
93616         Change the name of the cache variable to have the gl_ prefix.
93617         Prompted by a patch from Richard Dawe for DJGPP.
93618
93619 2003-05-24  Karl Berry  <karl@gnu.org>
93620
93621         * config/config.guess: update from prep.
93622
93623 2003-05-22  Karl Berry  <karl@gnu.org>
93624
93625         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93626
93627 2003-05-20  Karl Berry  <karl@gnu.org>
93628
93629         * config/config.guess: update from prep.
93630
93631 2003-05-18  Karl Berry  <karl@gnu.org>
93632
93633         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93634         might actually be set by the user.
93635
93636         * config/depcomp, install-sh, mdate-sh: update from automake.
93637
93638 2003-05-17  Bruno Haible  <bruno@clisp.org>
93639
93640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93641         invalid expansion for AC_EGREP_CPP.
93642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93643         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93644         Suggested by Akim Demaille <akim@epita.fr> in
93645         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93646
93647 2003-05-12  Jim Meyering  <jim@meyering.net>
93648
93649         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93650         the space-padded-by-default conversion specifiers, %e, %k, %l.
93651
93652 2003-05-12  Bruno Haible  <bruno@clisp.org>
93653
93654         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93655         the string is longer than 4 KB.
93656
93657 2003-05-11  Karl Berry  <karl@gnu.org>
93658
93659         * config/config.{guess,sub}: update from prep.
93660
93661 2003-05-09  Bruno Haible  <bruno@clisp.org>
93662
93663         * modules/error: Add m4/strerror_r.m4 to file list.
93664
93665 2003-05-03  Bruno Haible  <bruno@clisp.org>
93666
93667         Upgrade to Unicode-4.0.
93668         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93669         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93670         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93671         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93672         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93673         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93674         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93675         Change width of U+E0100..U+E01EF from 1 to 0.
93676
93677 2003-04-25  Jim Meyering  <jim@meyering.net>
93678
93679         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93680         of type size_t, not int.
93681
93682 2003-04-25  Bruno Haible  <bruno@clisp.org>
93683
93684         * lib/copy-file.c: Include <stddef.h>, for size_t.
93685
93686 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93687
93688         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93689         code which expansion is under static control.  Patch imported from
93690         Akim Demaille's patch to Bison; see
93691         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93692
93693 2003-04-14  Bruno Haible  <bruno@clisp.org>
93694
93695         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93696
93697 2003-04-11  Jim Meyering  <jim@meyering.net>
93698
93699         Merge changes from Coreutils.
93700
93701         2003-03-22  Jim Meyering  <jim@meyering.net>
93702
93703         * lib/strftime.c (widen): Cast alloca return value to proper type.
93704
93705         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93706
93707         From GNU libc.
93708         * lib/strftime.c (my_strftime): Handle very large width
93709         specifications for numeric values correctly.  Improve checks for
93710         overflow.
93711
93712         2003-01-19  Jim Meyering  <jim@meyering.net>
93713
93714         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93715         definitions.
93716         (nl_get_alt_digit) [! defined my_strftime]: Define.
93717         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93718         _nl_get_alt_digit and _nl_get_walt_digit.
93719
93720         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93721         libc. These changes have no effect outside of _LIBC.
93722
93723 2003-04-10  Bruno Haible  <bruno@clisp.org>
93724
93725         * modules/findprog: New file.
93726         * MODULES.html.sh (func_all_modules): Add it.
93727
93728 2003-04-10  Bruno Haible  <bruno@clisp.org>
93729
93730         * m4/findprog.m4: New file.
93731         * m4/eaccess.m4: New file.
93732
93733 2003-04-10  Bruno Haible  <bruno@clisp.org>
93734
93735         * lib/findprog.h: New file, from GNU gettext.
93736         * lib/findprog.c: New file, from GNU gettext.
93737
93738 2003-04-05  Jim Meyering  <jim@meyering.net>
93739
93740         Merge changes from Coreutils.
93741
93742         * lib/exclude.h (PARAMS): Remove definition and uses.
93743         * lib/exclude.c: Remove uses of `PARAMS'.
93744
93745         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93746         Add test-cases for DOS filenames. Declare program_name.
93747         (main): Set up program_name.  Patch by Rich Dawe.
93748
93749         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93750         error from mntctl.
93751         Use mntctl's return value to drive the entry-processing loop, since
93752         we can't rely on the value of the vmt_length member in the last
93753         entry.  On some systems doing so could result in exhausting
93754         virtual memory.  Based in part on a patch from Mike Jetzer.
93755
93756 2003-04-04  Bruno Haible  <bruno@clisp.org>
93757
93758         * modules/linebreak: New file.
93759         * MODULES.html.sh (func_all_modules): Add it.
93760
93761 2003-04-04  Bruno Haible  <bruno@clisp.org>
93762
93763         * m4/linebreak.m4: New file.
93764
93765 2003-04-04  Bruno Haible  <bruno@clisp.org>
93766
93767         * lib/linebreak.h: New file, from GNU gettext.
93768         * lib/linebreak.c: New file, from GNU gettext with slight
93769         modifications.
93770         * lib/lbrkprop.h: New file, from GNU gettext.
93771
93772 2003-04-03  Bruno Haible  <bruno@clisp.org>
93773
93774         * modules/utf8-ucs4: New file.
93775         * modules/utf16-ucs4: New file.
93776         * modules/ucs4-utf8: New file.
93777         * modules/ucs4-utf16: New file.
93778         * MODULES.html.sh (func_all_modules): Add them.
93779
93780 2003-04-03  Bruno Haible  <bruno@clisp.org>
93781
93782         * m4/utf-ucs4.m4: New file.
93783         * m4/ucs4-utf.m4: New file.
93784
93785 2003-04-03  Bruno Haible  <bruno@clisp.org>
93786
93787         * lib/utf8-ucs4.h: New file, from GNU gettext.
93788         * lib/utf16-ucs4.h: New file, from GNU gettext.
93789         * lib/ucs4-utf8.h: New file, from GNU gettext.
93790         * lib/ucs4-utf16.h: New file, from GNU gettext.
93791
93792 2003-04-02  Bruno Haible  <bruno@clisp.org>
93793
93794         * modules/binary-io: New file.
93795         * MODULES.html.sh (func_all_modules): Add it.
93796
93797 2003-04-02  Bruno Haible  <bruno@clisp.org>
93798
93799         * lib/binary-io.h: New file, from GNU gettext.
93800
93801 2003-04-01  Bruno Haible  <bruno@clisp.org>
93802
93803         * modules/pathname: New file.
93804         * MODULES.html.sh (func_all_modules): Add it.
93805
93806 2003-04-01  Bruno Haible  <bruno@clisp.org>
93807
93808         * lib/pathname.h: New file, from GNU gettext.
93809         * lib/concatpath.c: New file, from GNU gettext.
93810
93811 2003-03-30  Bruno Haible  <bruno@clisp.org>
93812
93813         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93814
93815 2003-03-30  Bruno Haible  <bruno@clisp.org>
93816
93817         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93818         function chown() doesn't exist.
93819
93820 2003-03-28  Bruno Haible  <bruno@clisp.org>
93821
93822         * modules/copy-file: New file.
93823         * MODULES.html.sh (func_all_modules): Add it.
93824
93825 2003-03-28  Bruno Haible  <bruno@clisp.org>
93826
93827         * m4/copy-file.m4: New file.
93828
93829 2003-03-28  Bruno Haible  <bruno@clisp.org>
93830
93831         * lib/copy-file.h: New file, from GNU gettext.
93832         * lib/copy-file.c: New file, from GNU gettext.
93833
93834 2003-03-18  Jim Meyering  <jim@meyering.net>
93835
93836         * lib/quote.c (quote_n): Fix typo in comment.
93837
93838 2003-03-18  Bruno Haible  <bruno@clisp.org>
93839
93840         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93841         checking.
93842         * m4/onceonly_2_57.m4: Likewise.
93843
93844 2003-03-17  Bruno Haible  <bruno@clisp.org>
93845
93846         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93847         (m4_quote): Remove macro.
93848         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93849
93850 2003-03-14  Jim Meyering  <jim@meyering.net>
93851
93852         Merge changes from Coreutils.
93853         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93854         to be const, in order to avoid warnings.
93855         (obstack_room): Likewise.
93856         (obstack_empty_p): Likewise.
93857
93858 2003-03-14  Bruno Haible  <bruno@clisp.org>
93859
93860         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93861         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93862
93863 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93864
93865         Merge changes from Bison.
93866         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93867         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93868         when compiling Bison 1.875's `bitset bset = obstack_alloc
93869         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93870         * lib/hash.c: Include <stdbool.h> unconditionally.
93871
93872 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93873
93874         * m4/onceonly.m4 (m4_quote): New macro.
93875         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93876         Quote AC_FOREACH variable-expansions properly.
93877
93878 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93879
93880         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93881
93882 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93883
93884         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93885         Reported by Bruce Becker; see:
93886         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93887
93888 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93889             Bruno Haible  <bruno@clisp.org>
93890
93891         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93892         Reported by John Hughes, see
93893         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93894
93895 2003-02-20  Bruno Haible  <bruno@clisp.org>
93896
93897         * MODULES.html.sh (func_all_modules): Add poll.
93898
93899 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93900
93901         * modules/poll: New file.
93902
93903 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93904
93905         * lib/poll_.h: New file.
93906         * lib/poll.c: New file.
93907
93908 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93909
93910         * m4/poll.m4: New file.
93911
93912 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93913
93914         * modules/mathl: New file.
93915
93916 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93917
93918         * lib/mathl.h: New file.
93919         * lib/acosl.c: New file.
93920         * lib/asinl.c: New file.
93921         * lib/atanl.c: New file.
93922         * lib/ceill.c: New file.
93923         * lib/cosl.c: New file.
93924         * lib/expl.c: New file.
93925         * lib/floorl.c: New file.
93926         * lib/frexpl.c: New file.
93927         * lib/ldexpl.c: New file.
93928         * lib/logl.c: New file.
93929         * lib/sincosl.c: New file.
93930         * lib/sinl.c: New file.
93931         * lib/sqrtl.c: New file.
93932         * lib/tanl.c: New file.
93933         * lib/trigl.c: New file.
93934         * lib/trigl.h: New file.
93935
93936 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93937
93938         * m4/mathl.m4: New file.
93939
93940 2003-02-18  Bruno Haible  <bruno@clisp.org>
93941
93942         * MODULES.html.sh (func_all_modules): Add mathl.
93943
93944 2003-02-17  Bruno Haible  <bruno@clisp.org>
93945
93946         * modules/mkdtemp: New module.
93947         * MODULES.html.sh (func_all_modules): Add it.
93948
93949 2003-02-17  Bruno Haible  <bruno@clisp.org>
93950
93951         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93952
93953 2003-02-17  Bruno Haible  <bruno@clisp.org>
93954
93955         * lib/mkdtemp.h: New file, from GNU gettext.
93956         * lib/mkdtemp.c: New file, from GNU gettext.
93957
93958 2003-02-02  Jim Meyering  <jim@meyering.net>
93959
93960         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93961         e.g. glibc-2.2.93.
93962
93963 2003-01-31  Bruno Haible  <bruno@clisp.org>
93964
93965         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93966         'rpl_rename'.
93967         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93968         'rpl_strnlen'.
93969         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93970         'rpl_strtod'.
93971         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93972         'rpl_utime'.
93973
93974 2003-01-31  Bruno Haible  <bruno@clisp.org>
93975
93976         * lib/rename.c: #undef rename before defining rpl_rename.
93977         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93978
93979 2003-01-30  Bruno Haible  <bruno@clisp.org>
93980
93981         * modules/vasnprintf, modules/vasprintf: New modules.
93982         * MODULES.html.sh (func_all_modules): Add them.
93983
93984 2003-01-30  Bruno Haible  <bruno@clisp.org>
93985
93986         * m4/signed.m4: New file, from GNU gettext.
93987         * m4/longdouble.m4: New file, from GNU gettext.
93988         * m4/wchar_t.m4: New file, from GNU gettext.
93989         * m4/wint_t.m4: New file, from GNU gettext.
93990         * m4/vasnprintf.m4: New file.
93991         * m4/vasprintf.m4: New file.
93992
93993 2003-01-30  Bruno Haible  <bruno@clisp.org>
93994
93995         * lib/printf-args.h: New file, from GNU gettext.
93996         * lib/printf-args.c: New file, from GNU gettext.
93997         * lib/printf-parse.h: New file, from GNU gettext.
93998         * lib/printf-parse.c: New file, from GNU gettext.
93999         * lib/vasnprintf.h: New file, from GNU gettext.
94000         * lib/vasnprintf.c: New file, from GNU gettext.
94001         * lib/asnprintf.c: New file, from GNU gettext.
94002         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94003         * lib/vasprintf.c: New file, from GNU gettext.
94004         * lib/asprintf.c: New file, from GNU gettext.
94005
94006 2003-01-29  Bruno Haible  <bruno@clisp.org>
94007
94008         * modules/stpncpy: New module.
94009         * MODULES.html.sh (func_all_modules): Add it.
94010
94011 2003-01-29  Bruno Haible  <bruno@clisp.org>
94012
94013         * m4/stpncpy.m4: New file.
94014
94015 2003-01-29  Bruno Haible  <bruno@clisp.org>
94016
94017         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94018         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94019
94020 2003-01-28  Bruno Haible  <bruno@clisp.org>
94021
94022         * modules/c-ctype: New module.
94023         * MODULES.html.sh (func_all_modules): Add it.
94024
94025 2003-01-28  Bruno Haible  <bruno@clisp.org>
94026
94027         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94028         Paul Eggert.
94029         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94030         Paul Eggert.
94031
94032 2003-01-27  Bruno Haible  <bruno@clisp.org>
94033
94034         * modules/xsetenv: New module.
94035         * MODULES.html.sh (func_all_modules): Add it.
94036
94037 2003-01-27  Bruno Haible  <bruno@clisp.org>
94038
94039         * lib/xsetenv.h: New file, from GNU gettext.
94040         * lib/xsetenv.c: New file, from GNU gettext.
94041
94042 2003-01-23  Jim Meyering  <jim@meyering.net>
94043
94044         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94045         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94046
94047 2003-01-23  Bruno Haible  <bruno@clisp.org>
94048
94049         * modules/minmax: New module.
94050         * MODULES.html.sh (func_all_modules): Add it.
94051
94052 2003-01-23  Bruno Haible  <bruno@clisp.org>
94053
94054         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94055         Eggert.
94056
94057 2003-01-22  Bruno Haible  <bruno@clisp.org>
94058
94059         * modules/exit: New module.
94060         * MODULES.html.sh (func_all_modules): Add it.
94061
94062 2003-01-22  Bruno Haible  <bruno@clisp.org>
94063
94064         * lib/exit.h: New file, from GNU gettext.
94065
94066 2003-01-19  Bruno Haible  <bruno@clisp.org>
94067
94068         * gnulib-tool: Recognize option --extract-maintainer.
94069         (func_get_maintainer): New function.
94070         * modules/*: Add Maintainer entry.
94071
94072 2003-01-16  Jim Meyering  <jim@meyering.net>
94073
94074         * m4/regex.m4: The `regex' struct is both input and output.
94075         Initialize it before each use.  Patch by Tim Waugh.
94076
94077 2003-01-16  Bruno Haible  <bruno@clisp.org>
94078
94079         * MODULES.html.sh: Add a table of contents. Add the module name as
94080         leftmost column. Add hyperlinks.
94081
94082 2003-01-15  Bruno Haible  <bruno@clisp.org>
94083
94084         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94085
94086 2003-01-15  Bruno Haible  <bruno@clisp.org>
94087
94088         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94089         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94090         suffix.
94091
94092 2003-01-15  Bruno Haible  <bruno@clisp.org>
94093
94094         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94095
94096 2003-01-15  Bruno Haible  <bruno@clisp.org>
94097
94098         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94099         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94100
94101 2003-01-14  Jim Meyering  <jim@meyering.net>
94102
94103         * lib/same.c (same_name): Tweak a comment.
94104
94105 2003-01-14  Bruno Haible  <bruno@clisp.org>
94106
94107         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94108         when a string comparison is sufficient.
94109
94110 2003-01-14  Bruno Haible  <bruno@clisp.org>
94111
94112         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94113         'unsigned int'.
94114
94115 2003-01-14  Bruno Haible  <bruno@clisp.org>
94116
94117         * lib/hash-pjw.c: Add comment about low quality of this function.
94118
94119 2003-01-13  Bruno Haible  <bruno@clisp.org>
94120
94121         * modules/stpcpy: Distribute lib/stpcpy.h.
94122         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94123
94124 2003-01-13  Bruno Haible  <bruno@clisp.org>
94125
94126         * modules/*: Add a description.
94127         * modules/strpbrk: Fix Makefile.am snippet.
94128         * modules/strtoimax: Fix dependencies.
94129         * modules/strtoumax: Likewise.
94130
94131 2003-01-13  Bruno Haible  <bruno@clisp.org>
94132
94133         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94134         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94135         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94136
94137 2003-01-13  Bruno Haible  <bruno@clisp.org>
94138
94139         * gnulib-tool (func_create_testdir): Store config/* files in the main
94140         directory.
94141         * config.rpath: Move to ...
94142         * config/config.rpath: ... here.
94143         * modules/gettext: Contains config/config.rpath, not config.rpath.
94144         * modules/iconv: Likewise.
94145
94146 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94147
94148         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94149         to avoid collisions with libcurses and libreadline.
94150
94151         * m4/getstr.m4: Remove.
94152         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94153
94154 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94155
94156         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94157         to avoid collisions with libcurses and libreadline.
94158
94159         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94160         * lib/getstr.h, getstr.c: Remove.
94161         * lib/getline.c: Include "getline.h", to check interface.
94162         Move body of old getstr.c here: this defines MIN_CHUNK and
94163         declares getdelim2, which is renamed from getstr.
94164         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94165
94166         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94167         All uses changed.
94168         * lib/linebuffer.h: Likewise.
94169         (readline): Remove backward-compatibility macro.
94170
94171 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94172
94173         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94174         to avoid collisions with libcurses and libreadline.
94175         * getstr: Remove.
94176         * MODULES.html.sh: Remove getstr.
94177         * modules/getline: Depend on unlocked-io, not getstr.
94178
94179 2003-01-12  Jim Meyering  <jim@meyering.net>
94180
94181         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94182
94183 2003-01-10  Bruno Haible  <bruno@clisp.org>
94184
94185         * modules/alloca: Change Makefile.am requirements. Simplify Include
94186         requirements. Add lib/alloca_.h to file list.
94187
94188 2003-01-10  Bruno Haible  <bruno@clisp.org>
94189
94190         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94191
94192 2003-01-10  Bruno Haible  <bruno@clisp.org>
94193
94194         * lib/alloca_.h: New file.
94195         * lib/getdate.y: Unconditionally include alloca.h.
94196         * lib/makepath.c: Likewise.
94197         * lib/setenv.c: Likewise.
94198         * lib/userspec.c: Likewise.
94199
94200 2003-01-09  Karl Berry  <karl@gnu.org>
94201
94202         * MODULES.html.sh: include `dirname $0` in PATH, to find
94203         gnulib-tool.
94204
94205 2003-01-09  Bruno Haible  <bruno@clisp.org>
94206
94207         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94208         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94209
94210 2003-01-09  Bruno Haible  <bruno@clisp.org>
94211
94212         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94213
94214 2003-01-09  Bruno Haible  <bruno@clisp.org>
94215
94216         * lib/stdbool.h.in: New file.
94217
94218 2003-01-09  Bruno Haible  <bruno@clisp.org>
94219
94220         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94221         * MODULES.html.sh: Likewise.
94222
94223 2003-01-08  Jim Meyering  <jim@meyering.net>
94224
94225         * lib/full-write.c: Undefine and define-away `const' after inclusion
94226         of errno.h, not before.  Suggestion from Bruno Haible.
94227
94228 2003-01-08  Bruno Haible  <bruno@clisp.org>
94229
94230         * modules/full-read: Depend on full-write.
94231
94232 2003-01-08  Bruno Haible  <bruno@clisp.org>
94233
94234         * lib/safe-read.c: Include specification header first, to ensure its
94235         selfcontainedness.
94236         * lib/full-write.c: Likewise.
94237
94238 2003-01-07  Jim Meyering  <jim@meyering.net>
94239
94240         * lib/full-write.c: Rework so that it may serve to define full_read,
94241         too.
94242         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94243
94244 2003-01-07  Bruno Haible  <bruno@clisp.org>
94245
94246         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94247         <inttypes.h>.
94248         * lib/xstrtol.h: Likewise.
94249         * lib/xstrtoimax.c: Likewise.
94250         * lib/xstrtoumax.c: Likewise.
94251         * lib/human.h: Likewise.
94252
94253         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94254         on systems that have <inttypes.h> but not <stdint.h>.
94255
94256 2003-01-07  Bruno Haible  <bruno@clisp.org>
94257
94258         * MODULES.html.sh: Add copyright notice.
94259         (missed_files): Omit CVS directory entries.
94260         (func_module): Make it work with sed-3.02.
94261         * MODULES.txt: Remove file.
94262
94263 2003-01-06  Jim Meyering  <jim@meyering.net>
94264
94265         * lib/version-etc.c: Update year in translatable copyright string.
94266
94267 2003-01-03  Karl Berry  <karl@gnu.org>
94268
94269         * config/config.{guess,sub}: update from prep.
94270
94271 2003-01-02  Karl Berry  <karl@gnu.org>
94272
94273         * doc/COPYING.DOC: belatedly updated to 1.2.
94274
94275 2003-01-01  Karl Berry  <karl@gnu.org>
94276
94277         * gnulib-tool (func_verify_module): report module name $module in
94278         error message, not $1.
94279         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94280         be created, only if it doesn't exist.
94281         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94282
94283 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94284
94285         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94286
94287 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94288
94289         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94290         memcmp if strcoll doesn't work.
94291
94292 2002-12-31  Bruno Haible  <bruno@clisp.org>
94293
94294         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94295         nonempty.
94296
94297 2002-12-31  Bruno Haible  <bruno@clisp.org>
94298
94299         * lib/memcoll.c (STRCOLL): New macro.
94300         (memcoll): Use it.
94301
94302 2002-12-31  Bruno Haible  <bruno@clisp.org>
94303
94304         * lib/localcharset.h: New file.
94305         * lib/localcharset.c: Include it.
94306         * lib/unicodeio.c: Likewise.
94307
94308 2002-12-31  Bruno Haible  <bruno@clisp.org>
94309
94310         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94311         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94312
94313 2002-12-31  Bruno Haible  <bruno@clisp.org>
94314
94315         * lib/getline.h: Include <stddef.h>, for size_t.
94316
94317         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94318         * lib/unicodeio.c: Don't include <stddef.h>.
94319
94320 2002-12-31  Bruno Haible  <bruno@clisp.org>
94321
94322         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94323         HAVE_TM_ZONE.
94324
94325 2002-12-24  Karl Berry  <karl@gnu.org>
94326
94327         * config/config.guess: update from prep.
94328
94329 2002-12-24  Bruno Haible  <bruno@clisp.org>
94330
94331         General infrasructure.
94332         * m4/README: Rewritten.
94333         * m4/onceonly.m4: New file.
94334         * m4/onceonly_2_57.m4: New file.
94335
94336         Module atexit.
94337         * m4/atexit.m4: New file.
94338
94339         Module strtod.
94340         * m4/strtod.m4: New file.
94341
94342         Module strtol.
94343         * m4/strtol.m4: New file.
94344
94345         Module strtoul.
94346         * m4/strtoul.m4: New file.
94347
94348         Module memchr.
94349         * m4/memchr.m4: New file.
94350
94351         Module memcmp.
94352         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94353         (jm_FUNC_MEMCMP): Invoke it.
94354
94355         Module memcpy.
94356         * m4/memcpy.m4: New file.
94357
94358         Module memmove.
94359         * m4/memmove.m4: New file.
94360
94361         Module memset.
94362         * m4/memset.m4: New file.
94363
94364         Module strcspn.
94365         * m4/strcspn.m4: New file.
94366
94367         Module strpbrk.
94368         * m4/strpbrk.m4: New file.
94369
94370         Module strstr.
94371         * m4/strstr.m4: New file.
94372
94373         Module strerror.
94374         * m4/strerror.m4: New file.
94375
94376         Module mktime.
94377         * m4/mktime.m4: Renamed from jm-mktime.m4.
94378         (gl_PREREQ_MKTIME): New macro.
94379         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94380
94381         Module malloc.
94382         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94383         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94384         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94385
94386         Module realloc.
94387         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94388         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94389         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94390
94391         Module strftime.
94392         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94393         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94394         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94395         gl_TM_GMTOFF.
94396         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94397
94398         Module xalloc.
94399         * m4/xalloc.m4: New file.
94400
94401         Module alloca.
94402         * m4/alloca.m4: New file.
94403
94404         Module putenv.
94405         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94406         (jm_FUNC_PUTENV): Invoke it.
94407
94408         Module setenv.
94409         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94410         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94411         when invoked twice.
94412         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94413         gt_FUNC_SETENV.
94414
94415         Module memrchr.
94416         * m4/memrchr.m4: New file.
94417
94418         Module stpcpy.
94419         * m4/stpcpy.m4: New file.
94420
94421         Module strcase.
94422         * m4/strcase.m4: New file.
94423
94424         Module strdup.
94425         * m4/strdup.m4: New file.
94426
94427         Module strnlen.
94428         * m4/strnlen.m4: New file.
94429
94430         Module strndup.
94431         * m4/strndup.m4: New file.
94432
94433         Module xstrtod.
94434         * m4/xstrtod.m4: New file.
94435
94436         Module xstrtol.
94437         * m4/xstrtol.m4: New file.
94438
94439         Module getdate.
94440         * m4/getdate.m4: New file.
94441
94442         Module unlocked-io.
94443         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94444         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94445         * m4/jm-glibc-io.m4n: Remove file.
94446
94447         Module long-options.
94448         * m4/long-options.m4: New file.
94449
94450         Module md5.
94451         * m4/md5.m4: New file.
94452
94453         Module sha.
94454         * m4/sha.m4: New file.
94455
94456         Module getstr.
94457         * m4/getstr.m4: New file.
94458
94459         Module getline.
94460         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94461         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94462         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94463         simply getline. Infoke gl_PREREQ_GETLINE.
94464
94465         Module obstack.
94466         * m4/obstack.m4: New file.
94467
94468         Module hash.
94469         * m4/hash.m4: New file.
94470
94471         Module readtokens.
94472         * m4/readtokens.m4: New file.
94473
94474         Module strverscmp.
94475         * m4/strverscmp.m4: New file.
94476
94477         Module stdbool.
94478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94479         OSF/1.
94480
94481         Module strtoll.
94482         * m4/strtoll.m4: New file.
94483
94484         Module strtoull.
94485         * m4/strtoull.m4: New file.
94486
94487         Module strtoimax.
94488         * m4/strtoimax.m4: New file.
94489
94490         Module strtoumax.
94491         * m4/strtoumax.m4: New file.
94492
94493         Module xstrtoimax.
94494         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94495         jm_AC_PREREQ_XSTRTOIMAX.
94496         Moved the strtol prerequisites to strtol.m4.
94497         Moved the strtoll prerequisites to strtoll.m4.
94498         Moved the strtoimax prerequisites to strtoimax.m4.
94499
94500         Module xstrtoumax.
94501         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94502         jm_AC_PREREQ_XSTRTOUMAX.
94503         Moved the strtoul prerequisites to strtoul.m4.
94504         Moved the strtoull prerequisites to strtoull.m4.
94505         Moved the strtoumax prerequisites to strtoumax.m4.
94506
94507         Module chown.
94508         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94509         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94510
94511         Module dup2.
94512         * m4/dup2.m4: New file.
94513
94514         Module ftruncate.
94515         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94516         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94517
94518         Module getgroups.
94519         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94520         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94521
94522         Module gettimeofday.
94523         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94524         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94525         gl_PREREQ_GETTIMEOFDAY.
94526
94527         Module mkdir.
94528         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94529         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94530
94531         Module mkstemp.
94532         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94533         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94534         jm_AC_TYPE_UINTMAX_T.
94535         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94536
94537         Module stat.
94538         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94539         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94540
94541         Module lstat.
94542         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94543         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94544
94545         Module timespec.
94546         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94547         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94548         * m4/st_mtim.m4: Indentation.
94549
94550         Module nanosleep.
94551         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94552         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94553         gl_PREREQ_NANOSLEEP.
94554
94555         Module regex.
94556         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94557         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94558         (gl_REGEX): New macro.
94559
94560         Module rename.
94561         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94562         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94563
94564         Module rmdir.
94565         * m4/rmdir.m4: New file.
94566
94567         Module utime.
94568         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94569         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94570         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94571
94572         Module dirname.
94573         * m4/dirname.m4: New file.
94574
94575         Module getopt.
94576         * m4/getopt.m4: New file.
94577
94578         Module unistd-safer.
94579         * m4/unistd-safer.m4: New file.
94580
94581         Module fnmatch.
94582         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94583         declaration.
94584         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94585         (gl_FUNC_FNMATCH_POSIX): New macro.
94586         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94587         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94588         simply fnmatch.
94589
94590         Module exclude.
94591         * m4/exclude.m4: New file.
94592
94593         Module human.
94594         * m4/human.m4: New file.
94595
94596         Module acl.
94597         * m4/acl.m4: Nop.
94598
94599         Module backupfile.
94600         * m4/backupfile.m4: New file.
94601         * m4/d-ino.m4: Indentation.
94602
94603         Module fsusage.
94604         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94605         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94606         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94607
94608         Module dirfd.
94609         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94610         requirements.
94611
94612         Module euidaccess.
94613         * m4/euidaccess.m4: New file.
94614
94615         Module file-type.
94616         * m4/file-type.m4: New file.
94617
94618         Module fileblocks.
94619         * m4/fileblocks.m4: New file.
94620
94621         Module filemode.
94622         * m4/filemode.m4: New file.
94623
94624         Module isdir.
94625         * m4/isdir.m4: New file.
94626
94627         Module lchown.
94628         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94629         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94630
94631         Module makepath.
94632         * m4/makepath.m4: New file.
94633
94634         Module modechange.
94635         * m4/modechange.m4: New file.
94636
94637         Module mountlist.
94638         * m4/mountlist.m4: New file.
94639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94640         Indentation.
94641
94642         Module path-concat.
94643         * m4/path-concat.m4: New file.
94644
94645         Module pathmax.
94646         * m4/pathmax.m4: New file.
94647
94648         Module same.
94649         * m4/same.m4: New file.
94650
94651         Module save-cwd.
94652         * m4/save-cwd.m4: New file.
94653
94654         Module savedir.
94655         * m4/savedir.m4: New file.
94656
94657         Module xgetcwd.
94658         * m4/xgetcwd.m4: New file.
94659         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94660
94661         Module xreadlink.
94662         * m4/xreadlink.m4: New file.
94663
94664         Module safe-read.
94665         * m4/safe-read.m4: New file.
94666
94667         Module safe-write.
94668         * m4/safe-write.m4: New file.
94669
94670         Module closeout.
94671         * m4/closeout.m4: New file.
94672
94673         Module stdio-safer.
94674         * m4/stdio-safer.m4: New file.
94675
94676         Module getpass.
94677         * m4/getpass.m4: New file.
94678
94679         Module getugroups.
94680         * m4/getugroups.m4: New file.
94681
94682         Module group-member.
94683         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94684         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94685
94686         Module idcache.
94687         * m4/idcache.m4: New file.
94688
94689         Module userspec.
94690         * m4/userspec.m4: New file.
94691
94692         Module gettime.
94693         * m4/clock_time.m4: New file.
94694         * m4/gettime.m4: New file.
94695
94696         Module settime.
94697         * m4/settime.m4: New file.
94698
94699         Module posixtm.
94700         * m4/posixtm.m4: New file.
94701
94702         Module gethostname.
94703         * m4/gethostname.m4: New file.
94704
94705         Module canon-host.
94706         * m4/canon-host.m4: New file.
94707
94708         Module gettext.
94709         * m4/codeset.m4: New file, from gettext-0.11.5.
94710         * m4/gettext.m4: New file, from gettext-0.11.5.
94711         * m4/glibc21.m4: New file, from gettext-0.11.5.
94712         * m4/iconv.m4: New file, from gettext-0.11.5.
94713         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94714         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94715         * m4/inttypes.m4: New file, from gettext-0.11.5.
94716         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94717         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94718         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94719         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94720         * m4/lib-link.m4: New file, from gettext-0.11.5.
94721         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94722         * m4/progtest.m4: New file, from gettext-0.11.5.
94723         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94724         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94725         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94726
94727         Module localcharset.
94728         * m4/localcharset.m4: New file.
94729
94730         Module hard-locale.
94731         * m4/hard-locale.m4: New file.
94732
94733         Module mbswidth.
94734         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94735         onceonly macros.
94736         * m4/mbrtowc.m4: Add comment.
94737
94738         Module memcasecmp.
94739         * m4/memcasecmp.m4: New file.
94740
94741         Module memcoll.
94742         * m4/memcoll.m4: New file.
94743
94744         Module unicodeio.
94745         * m4/unicodeio.m4: New file.
94746
94747         Module rpmatch.
94748         * m4/rpmatch.m4: New file.
94749
94750         Module yesno.
94751         * m4/yesno.m4: New file.
94752
94753         Module exitfail.
94754         * m4/exitfail.m4: New file.
94755
94756         Module c-stack.
94757         * m4/c-stack.m4 (gl_C_STACK): New macro.
94758         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94759
94760         Module error.
94761         * m4/error.m4 (gl_ERROR): New macro.
94762         (jm_PREREQ_ERROR): Use onceonly macros.
94763
94764         Module fatal.
94765         * m4/fatal.m4: New file.
94766
94767         Module getloadavg.
94768         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94769         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94770
94771         Module getpagesize.
94772         * m4/getpagesize.m4: New file.
94773
94774         Module getusershell.
94775         * m4/getusershell.m4: New file.
94776
94777         Module physmem.
94778         * m4/physmem.m4: New file.
94779
94780         Module posixver.
94781         * m4/posixver.m4: New file.
94782
94783         Module quotearg.
94784         * m4/quotearg.m4: New file.
94785
94786         Module quote.
94787         * m4/quote.m4: New file.
94788
94789         Module readutmp.
94790         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94791
94792         Module sig2str.
94793         * m4/sig2str.m4: New file.
94794
94795         Other.
94796         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94797         ulonglong.m4.
94798         * m4/intmax_t.m4: New file.
94799         * m4/d-type.m4: Indentation.
94800         * m4/jm-macros.m4: Update.
94801         * m4/prereq.m4 (jm_PREREQ): Update.
94802         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94803         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94804         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94805         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94806         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94807         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94808         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94809         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94810         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94811         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94812         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94813         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94814         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94815         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94816         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94817         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94818         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94819         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94820         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94821
94822 2002-12-24  Bruno Haible  <bruno@clisp.org>
94823
94824         * MODULES.txt: Update according to m4/ changes.
94825
94826         Module gettext.
94827         * config.rpath: New file, from gettext-0.11.5.
94828
94829         * modules/*: New module descriptions.
94830         * gnulib-tool: New file.
94831         * MODULES.html.sh: New file.
94832
94833 2002-12-21  Karl Berry  <karl@gnu.org>
94834
94835         * doc/fdl.texi: update to version 1.2.
94836
94837 2002-12-19  Karl Berry  <karl@gnu.org>
94838
94839         * config/config.guess: update from prep.
94840
94841 2002-12-18  Bruno Haible  <bruno@clisp.org>
94842
94843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94844         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94845
94846 2002-12-17  Bruno Haible  <bruno@clisp.org>
94847
94848         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94849         stdlib.h, string.h.
94850
94851 2002-12-17  Bruno Haible  <bruno@clisp.org>
94852
94853         * lib/canon-host.c (strdup): Remove unused declaration.
94854
94855         * lib/fsusage.c: Include full_read.h.
94856         (get_fs_usage): Use full_read instead of safe_read.
94857
94858         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94859
94860 2002-12-12  Karl Berry  <karl@gnu.org>
94861
94862         * config/config.guess: update from prep.
94863
94864 2002-12-11  Bruno Haible  <bruno@clisp.org>
94865
94866         * m4/setenv.m4: New file, from gettext-0.11.5.
94867
94868 2002-12-11  Bruno Haible  <bruno@clisp.org>
94869
94870         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94871         not unsetenv().
94872         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94873         modifications:
94874
94875         2002-12-11  Bruno Haible  <bruno@clisp.org>
94876
94877                 * setenv.c (alloca): Fall back to malloc.
94878                 (freea): New macro.
94879                 (setenv): Use freea() to free memory allocated with alloca().
94880
94881         2002-11-13  Bruno Haible  <bruno@clisp.org>
94882
94883                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94884                 function declarations.
94885                 * unsetenv.c (unsetenv): Likewise.
94886
94887         2002-03-04  Bruno Haible  <bruno@clisp.org>
94888
94889                 Portability to AIX 4.3.3.
94890                 * unsetenv.c: New file, extracted from setenv.c.
94891                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94892
94893         2001-12-20  Bruno Haible  <bruno@clisp.org>
94894
94895                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94896                 use malloc instead. For SunOS 4.
94897
94898         2001-12-11  Bruno Haible  <bruno@clisp.org>
94899
94900                 * setenv.c: Declare alloca.
94901                 (compar_fn_t): New typedef.
94902                 (KNOWN_VALUE, STORE_VALUE): Use it.
94903
94904         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94905         setenv.h.
94906
94907 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94908
94909         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94910         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94911         Choose values that are less likely to collide with system fnmatch
94912         options.
94913         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94914         defined (e.g., a pure POSIX system).
94915         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94916         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94917
94918 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94919
94920         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94921         a pain in practice to deal with generated m4 files.  This change
94922         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94923
94924         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94925         and jm-glibc-io.m4, as they are no longer a special case.
94926         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94927         kludge and the auto-generation stuff.  Check only whether the
94928         functions are declared, not whether they exist, since older hosts
94929         that don't declare the functions can't use the optimization anyway.
94930
94931 2002-12-06  Jim Meyering  <jim@meyering.net>
94932
94933         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94934
94935         Merge in changes from libc's misc/error.c, in preparation
94936         for the merge of gnulib's changes back into libc.
94937
94938         * lib/error.c (_): Define only if not already defined.
94939         Move definition to follow all #include directives.
94940         Include unlocked-io.h only if !_LIBC.
94941         [_LIBC]: Include <libio/libioP.h>.
94942         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94943         (fflush): Tweak definition to use INTUSE.
94944         (putc): Define.
94945
94946 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94947
94948         * lib/alloca.c [defined emacs]: Include "lisp.h".
94949         (xalloc_die) [defined emacs]: New macro.
94950         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94951         [! defined emacs]: Include <xalloc.h>.
94952         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94953         (pointer): Typedef to POINTER_TYPE *.
94954         (malloc): Remove decl; we now always use xmalloc.
94955         (alloca): Use old-style definition, since Emacs needs this.
94956         Check for arithmetic overflow when computing combined size.
94957
94958 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94959
94960         Do not generate unlocked-io.h automatically, since it's easier to
94961         maintain it by hand.
94962
94963         * lib/unlocked-io.h: New file, from GNU diffutils,
94964         but with proper copyright notice and attribution.
94965         * lib/gen-uio: Remove.
94966         * lib/Makefile.am: Add copyright notice.
94967         (libfetish_a_SOURCES): Add unlocked-io.h.
94968         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94969         (DISTCLEANFILES, io_functions): Remove macros.
94970         (EXTRA_DIST): Remove gen_uio.
94971         (unlocked-io.h): Remove rule.
94972
94973 2002-12-04  Jim Meyering  <jim@meyering.net>
94974
94975         Reflect the fact that stat.c and lstat.c are no longer generated.
94976         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94977         (DISTCLEANFILES): Likewise.
94978         (EXTRA_DIST): Likewise.
94979         (all_local): Don't depend on stat.c or lstat.c.
94980         (stat.c, lstat.c): Remove rules.
94981         (EXTRA_DIST): Remove xstat.in.
94982
94983         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94984         * lib/stat.c: New file.  Contents mostly from xstat.in.
94985         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94986         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94987
94988         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94989         too.
94990         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94991
94992 2002-12-03  Jim Meyering  <jim@meyering.net>
94993
94994         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94995         but not semantics, to minimize the differences between these two files.
94996         (safe_read): Change comment to mention SAFE_READ_ERROR.
94997
94998         * lib/safe-read.c (IS_EINTR): Define.
94999         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95000
95001 2002-12-02  Jim Meyering  <jim@meyering.net>
95002
95003         * lib/safe-read.c (EINTR): Define.
95004         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95005         (INT_MAX): Provide fallback.
95006         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95007
95008         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95009
95010 2002-12-02  Bruno Haible  <bruno@clisp.org>
95011
95012         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95013         Define, taken from safe-read.c.
95014         (INT_MAX): Provide fallback.
95015         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95016         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95017
95018         * lib/safe-read.c (EINTR): Remove definition.
95019         (safe_read): Don't use EINTR if it is absent.
95020
95021 2002-12-01  Jim Meyering  <jim@meyering.net>
95022
95023         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95024         zero.
95025         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95026
95027 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95028
95029         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95030         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95031         with `if (! (value < limit)) abort ();', for readability.
95032
95033 2002-11-26  Karl Berry  <karl@gnu.org>
95034
95035         * lib/strdup.c: copy from libc again, with jim's ok.
95036         * lib/.cppi-disable: re-add strdup.c
95037
95038 2002-11-25  Karl Berry  <karl@gnu.org>
95039
95040         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95041         instead of "strtol.c".
95042
95043 2002-11-25  Karl Berry  <karl@gnu.org>
95044
95045         * config/install-sh: update from automake for variable quoting, $0 in
95046         error msgs, etc.
95047
95048         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95049         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95050         entry.
95051
95052 2002-11-25  Jim Meyering  <jim@meyering.net>
95053
95054         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95055
95056 2002-11-24  Karl Berry  <karl@gnu.org>
95057
95058         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95059         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95060
95061 2002-11-24  Jim Meyering  <jim@meyering.net>
95062
95063         Update from coreutils:
95064
95065         * lib/mktime.c: Merge in changes from libc.
95066
95067         Avoid a link-time failure on some Linux systems.
95068         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95069         (otherwise).
95070         (__mon_yday): Declare with the STATIC attribute.
95071         (__mktime_internal): Likewise.
95072         Based on a report from Greg Schafer.
95073
95074 2002-11-23  Jim Meyering  <jim@meyering.net>
95075
95076         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95077         Use `unsigned', not `int', as type of index.
95078
95079         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95080
95081         * lib/fsusage.c: Remove unneeded parentheses around operands of
95082         `defined'.
95083
95084 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95085
95086         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95087         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95088         so that we can be included first.
95089         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95090         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95091         No need to include stddef.h or sys/types.h any more.
95092         Surround local include files with "", not "<>".
95093         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95094         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95095         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95096         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95097         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95098         (ISPRINT): Remove; no longer needed now that we assume C89.
95099
95100         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95101         Preserve errno.
95102
95103         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95104         quotearg_char): Use SIZE_MAX rather than
95105         (size_t) -1 when we are talking about "infinity".
95106
95107         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95108
95109 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95110
95111         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95112         hint that one should use `if (! x) abort ();' rather than `assert
95113         (x);', and anyway it's one less thing to worry about configuring.
95114         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95115         hash_rehash, hash_insert): Use abort rather than assert.
95116
95117 2002-11-22  Bruno Haible  <bruno@clisp.org>
95118
95119         * lib/safe-read.h: Assume C89. Add comments.
95120         (safe_read): Change return type to size_t.
95121         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95122         byte counts > SSIZE_MAX correctly.
95123         * lib/safe-write.h: New file.
95124         * lib/safe-write.c: New file.
95125         * lib/full-read.h: New file.
95126         * lib/full-read.c: New file.
95127         * lib/full-write.h: Assume C89. Add comments.
95128         * lib/full-write.c: Include safe-write.h.
95129         (full_write): Rewritten to use safe_write.
95130         Suggested by Jim Meyering and Paul Eggert.
95131
95132 2002-11-21  Jim Meyering  <jim@meyering.net>
95133
95134         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95135
95136         Merge in changes from the coreutils.
95137
95138         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95139         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95140         <stdint.h>.
95141         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95142         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95143         int.  Work more efficiently if X is the same width as uintmax_t.
95144         Do not compare X to -1, to avoid bogus compiler warning.
95145         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95146         Don't assume that f_frsize and f_bsize are the same type.
95147
95148         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95149         warning on FreeBSD.
95150
95151         * lib/makepath.c (make_path): Restore umask *before* creating the final
95152         component.
95153         (make_path): Minor reformatting.
95154
95155         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95156         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95157         HAVE_MALLOC/HAVE_REALLOC.
95158
95159         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95160         dummy ones.  At least on GNU/Linux systems, `auto' means something
95161         else.
95162         From Michael Stone.
95163
95164 2002-11-21  Bruno Haible  <bruno@clisp.org>
95165
95166         Remove case insensitive option matching.
95167         * lib/argmatch.h (argcasematch): Remove declaration.
95168         (ARGCASEMATCH): Remove macro.
95169         (__xargmatch_internal): Remove case_sensitive argument.
95170         (XARGMATCH): Update.
95171         (XARGCASEMATCH): Remove macro.
95172         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95173         case_sensitive argument.
95174         (argcasematch): Remove function.
95175         (__xargmatch_internal): Remove case_sensitive argument.
95176         (main): Use XARGMATCH instead of XARGCASEMATCH.
95177
95178         * lib/xmalloc.c: Change compile-time error message. Add comment about
95179         required autoconf version.
95180
95181 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95182
95183         Merge argmatch cleanups from Bison.  Assume C89.
95184
95185         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95186         Include stdlib.h, for EXIT_FAILURE.
95187         Always include <string.h>, since we assume C89.
95188         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95189         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95190         Include <stddef.h> instead, since it's all we need for size_t.
95191         (PARAMS): Remove.  All uses removed.
95192         (ARRAY_CARDINALITY): Do not bother to #undef.
95193         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95194         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95195         Remove unnecessary parentheses.
95196         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95197         Insert necessary parentheses.
95198         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95199         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95200
95201 2002-11-19  Bruno Haible  <bruno@clisp.org>
95202
95203         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95204         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95205
95206         * lib/mbswidth.h (PARAMS): Remove macro.
95207         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95208         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95209
95210         * lib/gcd.h (PARAMS): Remove macro.
95211         (gcd): Use ANSI C function declarations.
95212         * lib/gcd.c (gcd): Likewise.
95213
95214 2002-11-15  Bruno Haible  <bruno@clisp.org>
95215
95216         * lib/strcspn.c: Include <stddef.h>.
95217         (strcspn): Use ANSI C function declaration. Change return type to
95218         size_t. Use NULL.
95219         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95220         (strpbrk): Use NULL.
95221         * lib/strpbrk.h (PARAMS): Remove macro.
95222         (strpbrk): Use ANSI C function declaration.
95223         * lib/strstr.c: Don't include <sys/types.h>.
95224         * lib/strstr.h (PARAMS): Remove macro.
95225         (strstr): Use ANSI C function declarations.
95226
95227 2002-11-14  Karl Berry  <karl@gnu.org>
95228
95229         * config/mkinstalldirs: `do' on separate line, instead of
95230         `for var; do'.
95231
95232 2002-11-06  Bruno Haible  <bruno@clisp.org>
95233
95234         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95235         * lib/gcd.c (gcd): Likewise.
95236
95237 2002-11-05  Bruno Haible  <bruno@clisp.org>
95238
95239         * lib/gcd.h: New file, from gettext-0.11.5.
95240         * lib/gcd.c: New file, from gettext-0.11.5.
95241
95242 2002-11-05  Bruno Haible  <bruno@clisp.org>
95243
95244         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95245         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95246         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95247         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95248
95249         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95250         <libintl.h>.
95251         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95252         <libintl.h>.
95253
95254         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95255         * lib/human.c: Include gettext.h instead of <libintl.h>.
95256         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95257         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95258         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95259         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95260         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95261         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95262         (textdomain): Remove definition.
95263         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95264
95265         * lib/long-options.c: Remove include of <libintl.h> and definition of
95266         _.
95267         * lib/same.c: Remove include of <libintl.h> and definition of _.
95268
95269 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95270
95271         * lib/config.charset: A few additions for Solaris.
95272
95273 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95274
95275         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95276         * lib/localcharset.c (locale_charset): Declare as extern "C".
95277
95278 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95279
95280         * lib/config.charset: msdos in uk_UA uses CP1125.
95281
95282 2002-11-04  Bruno Haible  <bruno@clisp.org>
95283
95284         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95285         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95286         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95287         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95288         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95289
95290 2002-11-04  Bruno Haible  <bruno@clisp.org>
95291
95292         * lib/localcharset.c (locale_charset): Don't return an empty string.
95293
95294 2002-11-04  Bruno Haible  <bruno@clisp.org>
95295
95296         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95297         aliases.
95298
95299 2002-11-04  Bruno Haible  <bruno@clisp.org>
95300
95301         * lib/config.charset: Update for newest glibc. Add canonical names
95302         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95303
95304 2002-11-04  Bruno Haible  <bruno@clisp.org>
95305
95306         * lib/config.charset: Add support for NetBSD.
95307
95308 2002-11-04  Bruno Haible  <bruno@clisp.org>
95309
95310         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95311
95312 2002-11-01  Bruno Haible  <bruno@clisp.org>
95313
95314         * configure.in: Add AC_CONFIG_AUX_DIR call.
95315         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95316         test/Makefile.
95317         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95318
95319 2002-09-28  Karl Berry  <karl@gnu.org>
95320
95321         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95322         installed automake until the next release, since changes have been
95323         made.
95324
95325 2002-09-25  Karl Berry  <karl@gnu.org>
95326
95327         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95328         * lib/getopt*: copy from libc/posix.
95329         * lib/gettext.h: copy from gettext.
95330         * lib/.cppi-disable: add strdup.c, gettext.h.
95331
95332 2002-09-25  Karl Berry  <karl@gnu.org>
95333
95334         * config/srclist.txt: enable gettext.h check.
95335         * config/config.{guess,sub}: update from prep.
95336         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95337                 from automake 1.6.3.
95338         See srclist*.
95339
95340 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95341
95342         * regex.c (PATFETCH): Remove the translating fetch.
95343         (PATFETCH_RAW): Rename to PATFETCH.
95344         (set_image_of_range): New fun.
95345         (SET_RANGE_TABLE_WORK_AREA): Use it.
95346         (regex_compile): Don't translate the pattern chars so eagerly.
95347         Only do it when inserting an `exactn' bytecode or when handling
95348         a char-range.
95349         (mutually_exclusive_p): Avoid empty statement.
95350
95351 2002-07-06  Jim Meyering  <meyering@lucent.com>
95352
95353         * m4/README: Don't mention Makefile.am.in.
95354         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95355
95356 2002-07-01  Jim Meyering  <meyering@lucent.com>
95357
95358         * lib/c-stack.c: Include sys/time.h.
95359         From Volker Borchert.
95360
95361 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95362
95363         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95364
95365 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95366
95367         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95368         New macro.  Use it uniformly instead of
95369         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95370         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95371         reported by Vin Shelton.
95372
95373 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95374
95375         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95376         Do not assume SA_SIGINFO behavior.
95377         Bug reported by Jim Meyering on NetBSD 1.5.2.
95378
95379 2002-06-22  Jim Meyering  <meyering@lucent.com>
95380
95381         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95382         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95383
95384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95385         now that configure.ac uses AC_GNU_SOURCE.
95386         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95387         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95388
95389         Update to latest tools.  Suggestions from Paul Eggert.
95390         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95391         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95392         * m4/fnmatch.m4: Likewise.
95393         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95394         to AC_HEADER_STDBOOL
95395
95396 2002-06-22  Jim Meyering  <meyering@lucent.com>
95397
95398         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95399         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95400
95401 2002-06-22  Jim Meyering  <meyering@lucent.com>
95402
95403         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95404
95405         * lib/exitfail.c, exitfail.h: Likewise.
95406         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95407
95408         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95409         of fnmatch.h.
95410         (EXTRA_DIST): Add fnmatch_loop.c.
95411         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95412
95413         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95414         * lib/fnmatch.c: Update from diffutils-2.8.2.
95415         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95416         * lib/fnmatch.h: Remove file.
95417
95418 2002-06-21  Jim Meyering  <meyering@lucent.com>
95419
95420         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95421         * m4/mbrtowc.m4: Likewise.
95422
95423         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95424         * m4/mbswidth.m4: Reflect name change:
95425         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95426         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95427
95428         * m4/lib-link.m4: Update from gettext-0.11.2.
95429         * m4/gettext.m4: Likewise.
95430
95431         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95432         From Alfred M. Szmidt.
95433
95434 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95435
95436         * lib/file-type.h: Report an error if neither S_ISREG nor
95437         S_IFREG is defined, instead of using a test specific to glibc
95438         2.2.  This should be safe, since POSIX requires S_ISREG and
95439         Unix Version 7 had S_IFREG.  We don't need to check for
95440         <sys/types.h> since we don't use any symbols that it defines.
95441
95442 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95443
95444         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95445         $@-t, so that each temporary file name is unique and valid in the first
95446         8 characters, for operation under DOS.
95447
95448 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95449
95450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95451
95452 2002-06-15  Jim Meyering  <meyering@lucent.com>
95453
95454         Work even with DJGPP 2.03, which lacks support for symlinks.
95455         From Richard Dawe.
95456         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95457         is defined.
95458         * lib/lchown.c (S_ISLNK): Likewise.
95459
95460 2002-06-15  Jim Meyering  <meyering@lucent.com>
95461
95462         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95463         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95464         have been included before this file.
95465
95466 2002-06-14  Jim Meyering  <meyering@lucent.com>
95467
95468         * lib/file-type.h: Use the version from diffutils-2.8.2.
95469         * lib/file-type.c: Likewise.
95470
95471 2002-06-07  Jim Meyering  <meyering@lucent.com>
95472
95473         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95474         They're needed at least for NetBSD 1.5.2.
95475         ($statxfs_includes): Include those same headers.
95476         ($statxfs_includes): Include sys/vfs.h if available.
95477         ($statxfs_includes): Likewise for sys/statvfs.h.
95478         Check for the following members in both structs statfs and statvfs:
95479         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95480
95481 2002-06-01  Jim Meyering  <meyering@lucent.com>
95482
95483         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95484         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95485
95486 2002-05-28  Jim Meyering  <meyering@lucent.com>
95487
95488         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95489         Reported by Volker Borchert.
95490
95491 2002-05-27  Jim Meyering  <meyering@lucent.com>
95492
95493         Fix a problem seen only on nonconforming systems whereby ls.c's
95494         use of localtime, and then of gettimeofday would cause trouble:
95495         the localtime call used to initialize rpl_gettimeofday's save
95496         mechanism would clobber ls's current local time information so
95497         that in any long listing the first file would always be listed
95498         with date 1970-01-01.  Analysis by Volker Borchert.
95499
95500         * lib/gettimeofday.c (localtime): Undefine.
95501         (rpl_localtime): New function.
95502
95503 2002-05-27  Jim Meyering  <meyering@lucent.com>
95504
95505         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95506         localtime.
95507
95508         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95509         use the replacement function; it wouldn't resolve at link time.
95510         Reported by Volker Borchert.
95511
95512 2002-05-22  Jim Meyering  <meyering@lucent.com>
95513
95514         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95515         file-type.h.
95516         * lib/file-type.h: New file.
95517         * lib/file-type.c (file_type): New file/function.  Extracted from
95518         diffutils.
95519
95520 2002-04-30  Jim Meyering  <meyering@lucent.com>
95521
95522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95523
95524 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95525
95526         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95527
95528 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95529
95530         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95531         Do not check for alloca.h (no longer used) or stdbool.h (was never
95532         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95533
95534 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95535
95536         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95537
95538 2002-04-29  Jim Meyering  <meyering@lucent.com>
95539
95540         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95541         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95542         Use AC_FUNC_STRNLEN here instead.
95543
95544         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95545         With autoconf-2.53a, it's part of AC_PROG_CC.
95546
95547 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95548
95549         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95551
95552 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95553
95554         * lib/sig2str.h, lib/sig2str.c: New files.
95555         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95556
95557 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95558
95559         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95560         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95561         of 127, since 64 is the largest conceivable number for ancient
95562         nonstandard hosts.
95563         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95564
95565 2002-04-28  Jim Meyering  <meyering@lucent.com>
95566
95567         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95568
95569 2002-04-24  Jim Meyering  <meyering@lucent.com>
95570
95571         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95572         (jm_PREREQ): Use it.
95573
95574         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95575         mach/mach.h fcntl.h.
95576         Check for this function: setlocale.
95577
95578 2002-04-24  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/gettext.h: New file, from Gettext.
95581         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95582         (libfetish_a_SOURCES): Add gettext.h.
95583
95584 2002-04-16  Jim Meyering  <meyering@lucent.com>
95585
95586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95587         ut_pid, ut_id, ut_exit.
95588
95589 2002-04-16  Jim Meyering  <meyering@lucent.com>
95590
95591         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95592         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95593         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95594
95595 2002-04-12  Jim Meyering  <meyering@lucent.com>
95596
95597         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95598         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95599         existence of the getmntinfo function.  Needed for Darwin 5.3.
95600
95601         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95602         This is necessary at least on Darwin 5.3.
95603
95604         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95605         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95606         strnlen.o in the library, and that makes some versions of ranlib
95607         object.
95608
95609 2002-04-12  Jim Meyering  <meyering@lucent.com>
95610
95611         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95612
95613 2002-04-09  Jim Meyering  <meyering@lucent.com>
95614
95615         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95616         to be more precise.  Rather than saying we're checking whether the
95617         function `works', say what we're testing.
95618         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95619         Reported by Bruno Haible.
95620
95621 2002-03-10  Jim Meyering  <meyering@lucent.com>
95622
95623         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95624         Suggestion from Santiago Vila.
95625
95626 2002-03-08  Jim Meyering  <meyering@lucent.com>
95627
95628         * lib/rename.c: Mention that this wrapper is needed also on
95629         mips-dec-ultrix4.4 systems.
95630
95631 2002-03-02  Jim Meyering  <meyering@lucent.com>
95632
95633         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95634         not HAVE_CLOCK_SETTIME.
95635
95636 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95637
95638         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95639         Check for clock_settime.
95640
95641 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95642
95643         * lib/nanosleep.h: Rename to....
95644         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95645
95646         * lib/gettime.c: New file.
95647         * lib/settime.c: New file.
95648         * lib/stime.c: Remove.
95649
95650         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95651         timespec.h.  Remove nanosleep.h.
95652
95653 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95654
95655         * m4/acl.m4: New file.
95656         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95657         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95658
95659 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95660
95661         * lib/acl.c, lib/acl.h: New files.
95662         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95663
95664 2002-02-24  Jim Meyering  <meyering@lucent.com>
95665
95666         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95667         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95668         cause trouble.  Reported by Nelson Beebe.
95669
95670 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95671
95672         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95673         compilers that don't know that xalloc_die never returns.
95674
95675 2002-02-20  Jim Meyering  <meyering@lucent.com>
95676
95677         * lib/getdate.c: Regenerate using bison-1.33.
95678
95679 2002-02-17  Jim Meyering  <meyering@lucent.com>
95680
95681         * config/config.guess (main): Don't use `head -1'; it's no longer
95682         portable. Use `sed 1q' instead.
95683
95684 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95685
95686         * m4/codeset.m4: Upgrade to gettext-0.11.
95687         * m4/gettext.m4: Upgrade to gettext-0.11.
95688         * m4/glibc21.m4: Upgrade to gettext-0.11.
95689         * m4/iconv.m4: Upgrade to gettext-0.11.
95690         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95691         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95692         * m4/lib-ld.m4: New file, from gettext-0.11.
95693         * m4/lib-link.m4: New file, from gettext-0.11.
95694         * m4/lib-prefix.m4: New file, from gettext-0.11.
95695         * m4/progtest.m4: Upgrade to gettext-0.11.
95696
95697 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95698
95699         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95700         (jm_PREREQ): Use it.
95701
95702 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95703
95704         * lib/posixver.c, lib/posixver.h: New files.
95705         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95706
95707 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95708             Bruno Haible  <bruno@clisp.org>
95709
95710         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95711         (fwrite_success_callback): New declaration.
95712         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95713         print_unicode_char. Call failure callback instead of error.
95714         (fwrite_success_callback): New function.
95715         (exit_failure_callback): New function.
95716         (fallback_failure_callback): New function.
95717         (print_unicode_char): Call unicode_to_mb.
95718
95719 2002-01-26  Jim Meyering  <meyering@lucent.com>
95720
95721         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95722         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95723
95724 2002-01-26  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95727
95728 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95729
95730         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95731
95732 2002-01-22  Jim Meyering  <meyering@lucent.com>
95733
95734         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95735         Otherwise, some versions of automake would omit the rule that makes
95736         Makefile from Makefile.in.
95737
95738 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95739
95740         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95741         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95742         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95743         (memcoll): Set errno to zero if there is no error.
95744
95745         * lib/quotearg.c (quotearg_buffer_restyled):
95746         Fix bug with quoting buffers containing NUL when backslashing escapes.
95747         This bug was exposed by the other changes in this patch.
95748         (quotearg_n_options): New arg ARGSIZE.
95749         All callers changed.
95750         (quoting_options_from_style): New function.
95751         (quotearg_n_style): Use it.
95752         (quotearg_n_style_mem): New function.
95753
95754         * lib/quotearg.h (quotearg_n_style_mem): New function.
95755
95756 2002-01-19  Jim Meyering  <meyering@lucent.com>
95757
95758         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95759         Remove useless quotes: DF_PROG="df".
95760         * m4/strnlen.m4: New file.
95761
95762 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95763
95764         * lib/backupfile.c (ISDIGIT): Comment fix.
95765         * lib/getdate.y (ISDIGIT): Likewise.
95766         * lib/posixtm.c (ISDIGIT, year): Likewise.
95767         * lib/strverscmp.c (ISDIGIT): Likewise.
95768         * lib/userspec.c (ISDIGIT): Likewise.
95769
95770 2002-01-16  Jim Meyering  <meyering@lucent.com>
95771
95772         * lib/getdate.y: Add three semicolons, each just before a closing
95773         brace. Bison (as of version 1.31) no longer papers over that mistake.
95774
95775 2002-01-05  Jim Meyering  <meyering@lucent.com>
95776
95777         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95778
95779 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95780
95781         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95782         not silently exit merely because the output buffer happens to
95783         have nothing pending.
95784
95785 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95786
95787         See the big note in ../ChangeLog.
95788         * lib/human.c (suffixes): Prefer K to k for 1024.
95789         (generate_suffix_backwards): New function.
95790         (human_readable_inexact): Use it.
95791         * lib/xstrtol.c (__xstrtol): If there is no number but there
95792         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95793         Accept 'K' as well as 'k'.
95794
95795 2001-12-15  Jim Meyering  <meyering@lucent.com>
95796
95797         * lib/regex.h (__restrict_arr): Update from libc.
95798
95799         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95800         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95801         (STREQ): Define.
95802
95803 2001-12-14  Jim Meyering  <meyering@lucent.com>
95804
95805         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95806         Suggestion from Bruno Haible.
95807
95808 2001-12-10  Jim Meyering  <meyering@lucent.com>
95809
95810         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95811         xrealloc, Instead, include "xalloc.h".
95812         (initbuffer): Don't cast xmalloc return value to char*.
95813         (readline): Reword comment.
95814         Don't cast xrealloc return value to char*
95815         Return NULL, not 0.
95816
95817 2001-12-09  Jim Meyering  <meyering@lucent.com>
95818
95819         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95820         about `signed and unsigned type in conditional expression'.
95821         * lib/posixtm.c (posix_time_parse): Likewise.
95822
95823         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95824
95825         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95826         to avoid a pedantic warning.
95827
95828         * lib/getstr.c: Don't include assert.h.
95829         (getstr): Remove warning-evoking assertions.
95830         Return -1 if offset parameter is out of bounds.
95831         Change the type of a local from int to size_t.
95832
95833         * lib/strftime.c (my_strftime_localtime_r): Include this function
95834         definition in the `#if ! HAVE_TM_GMTOFF' block.
95835
95836         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95837         Include xalloc.h instead.
95838
95839 2001-12-02  Jim Meyering  <meyering@lucent.com>
95840
95841         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95842         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95843         included.
95844
95845         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95846         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95847
95848 2001-11-30  Akim Demaille  <akim@epita.fr>
95849
95850         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95851         before being defined.
95852
95853 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95854
95855         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95856         First arg is int, not unsigned.
95857         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95858         (SIZE_MAX, UINT_MAX): New macros.
95859         (quotearg_n_options): Abort if N is negative.
95860         Avoid overflow check on hosts where size_t is 64 bits and int
95861         is 32 bits, as overflow is impossible there.
95862         Fix off-by-one typo that caused unnecessary reallocation.
95863
95864 2001-11-27  Jim Meyering  <meyering@lucent.com>
95865
95866         * lib/tempname.c: Merge with version from libc.
95867         * lib/regex.c: Likewise.
95868
95869         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95870         systems for which STDC_HEADERS is 0, it was not included, resulting in
95871         a warning about an integer-to-pointer conversion problem with getenv.
95872         Reported by Volker Borchert.
95873
95874 2001-11-26  Jim Meyering  <meyering@lucent.com>
95875
95876         * lib/gtod.h: Remove file.
95877         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95878         * lib/gettimeofday.c: Don't include gtod.h.
95879         (GTOD_init): Remove function.
95880         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95881         Suggestion from Volker Borchert.
95882
95883 2001-11-23  Jim Meyering  <meyering@lucent.com>
95884
95885         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95886         it.
95887         * lib/hash.c (struct hash_table): Define it here instead.
95888
95889 2001-11-22  Jim Meyering  <meyering@lucent.com>
95890
95891         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95892
95893 2001-11-20  Jim Meyering  <meyering@lucent.com>
95894
95895         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95896         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95897
95898 2001-11-19  Jim Meyering  <meyering@lucent.com>
95899
95900         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95901         directory.  Use "conftestXXXXXX" as the template.
95902         Suggestion from Paul Eggert.
95903
95904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95905         immediately, so the test doesn't mistakenly hit the max-open-files
95906         limit.
95907
95908 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95909
95910         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95911         (TEMPORARIES): New macro.
95912         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95913         removes an artificial limitation (e.g. HP-UX 10.20, where
95914         TMP_MAX is 17576).
95915
95916 2001-11-18  Jim Meyering  <meyering@lucent.com>
95917
95918         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95919
95920 2001-11-18  Jim Meyering  <meyering@lucent.com>
95921
95922         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95923         on SunOS 4.
95924
95925         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95926         files will be created before anything else.
95927
95928 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95929
95930         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95931         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95932
95933 2001-11-17  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95936         Prompted by a report from Bob Proulx.
95937
95938         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95939         Instead, require UTILS_FUNC_MKSTEMP.
95940
95941 2001-11-17  Jim Meyering  <meyering@lucent.com>
95942
95943         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95944         Now, that's done as part of AC_FUNC_STRTOD.
95945
95946 2001-11-17  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95949         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95950         rather than group writable.  Patch by Juan F. Codagnone.
95951
95952         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95953         xrealloc, Instead, include "xalloc.h".
95954
95955         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95956         Remove explicit declarations of xmalloc, xrealloc,
95957         and xstrdup.  Instead, include "xalloc.h".
95958
95959         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95960         unlocked-io.h.
95961         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95962         Likewise.
95963         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95964
95965         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95966         Reported by Padraig Brady.
95967
95968         * lib/mkstemp.c: #undef mkstemp.
95969         Include config.h.
95970         (rpl_mkstemp): Rename from mkstemp.
95971         Protoize.
95972
95973 2001-11-16  Jim Meyering  <meyering@lucent.com>
95974
95975         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95976         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95977         determine the amount of total physical memory, use pstat_getstatic.
95978         HPUX-11 doesn't define _SC_PHYS_PAGES.
95979         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95980         If sysconf couldn't be used to determine the amount of available
95981         physical memory, use both pstat_getstatic and pstat_getdynamic.
95982         Based on a patch from Bob Proulx.
95983
95984 2001-11-10  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95987         (jm_PREREQ): Use it.
95988
95989 2001-11-09  Jim Meyering  <meyering@lucent.com>
95990
95991         * m4/jm-macros.m4: Require autoconf-2.52f.
95992         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95993         Use these AC_-prefixed names, not the AM_-prefixed ones.
95994
95995         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95996
95997 2001-11-05  Jim Meyering  <meyering@lucent.com>
95998
95999         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96000
96001 2001-11-04  Jim Meyering  <meyering@lucent.com>
96002
96003         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96004         $DEFS.
96005
96006 2001-11-03  Jim Meyering  <meyering@lucent.com>
96007
96008         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96009         of AC_DEFUN.
96010
96011         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96012         know the name of the variable in the macro definition.
96013
96014 2001-11-03  Jim Meyering  <meyering@lucent.com>
96015
96016         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96017         in argmatch_to_argument call.
96018
96019         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96020         argument.
96021
96022         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96023         e.g., a fault due to an attempt to free a NULL pointer.
96024
96025 2001-11-01  Jim Meyering  <meyering@lucent.com>
96026
96027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96028         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96029
96030 2001-11-01  Jim Meyering  <meyering@lucent.com>
96031
96032         * lib/dirfd.c, lib/dirfd.h: New files.
96033         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96034
96035         * lib/hash.c (hash_print) [TESTING]: Clean up.
96036
96037 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96038
96039         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96040         to avoid a warning if -Wall.
96041
96042 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96043
96044         * README: New file
96045         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96046         (per RMS's instructions, this is now the canonical source)
96047         * lgpl/, gpl/: New directories.
96048
96049 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96050
96051         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96052
96053 2001-10-21  Jim Meyering  <meyering@lucent.com>
96054
96055         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96056         this code would end up calling gettext even in packages built
96057         with --disable-nls.
96058         * lib/getopt.c (_): Likewise.
96059         * lib/regex.c (_): Likewise.
96060
96061 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96062
96063         * m4/error.m4 (jm_PREREQ_ERROR):
96064         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96065         AC_FUNC_STRERROR_R does that.
96066         Check for strerror declaration.
96067
96068         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96069         are supposed to have them these days.
96070         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96071         Merge changes from latest Autoconf CVS.
96072         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96073         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96074         POSIX decided to standardize on the int flavor of strerror_r.
96075
96076 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96077
96078         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96079         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96080         Use strerror_r that is only a macro, even if it is not a function.
96081         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96082         (private_strerror): Use prototypes, not old-style function definition.
96083         (print_errno_message): New function.
96084         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96085         char*-flavored one.
96086         (error_tail, error, error_at_line): Use it.
96087
96088 2001-10-11  Jim Meyering  <meyering@lucent.com>
96089
96090         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96091         and quote_n (1, ... to avoid clobbering a buffer.
96092
96093 2001-10-05  Jim Meyering  <meyering@lucent.com>
96094
96095         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96096         hash-pjw.h.
96097         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96098         * lib/hash-pjw.h: New file.
96099
96100 2001-09-30  Jim Meyering  <meyering@lucent.com>
96101
96102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96103         `struct fsstat' has the `f_fstypename' member.
96104         Use that to define FS_TYPE, which is now used to make
96105         the getfsstat link test tighter.
96106
96107 2001-09-30  Jim Meyering  <meyering@lucent.com>
96108
96109         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96110         Include <sys/ucred.h>, for Apple Darwin.
96111         Include sys/mount.h and sys/fs_types.h only if available.
96112         (FS_TYPE): Define.
96113         (read_filesystem_list): Use FS_TYPE.
96114
96115 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96116
96117         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96118         a boolean context.
96119
96120 2001-09-29  Jim Meyering  <meyering@lucent.com>
96121
96122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96123         [one-argument getmntent function]): Include stdio.h before mntent.h.
96124         SunOS 4.1.x needs it for the declaration of `FILE'.
96125         Patch by Volker Borchert.
96126
96127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96128         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96129         sys/fs_types.h, and make the link-test for getfsstat guard #include
96130         directives with appropriate #if HAVE_*_H tests so that we can
96131         detect getfsstat on Apple Darwin1.3.7 systems.
96132         Reported by Nelson Beebe.
96133         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96134
96135 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96136
96137         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96138         #defines strtoimax.  Also treat the other strto* functions
96139         like strtoimax.
96140
96141         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96142         Check for strtoul and strtoumax,
96143         as those declarations are made even in the signed case.
96144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96145         Likewise, for strtol and strtoimax.
96146
96147 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96148
96149         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96150         #defines strtoimax.  Also treat the other strto* functions
96151         like strtoimax.
96152
96153         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96154         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96155         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96156
96157 2001-09-26  Jim Meyering  <meyering@lucent.com>
96158
96159         Most macros in unlocked-io.h had the wrong number of arguments.
96160         * lib/gen-uio: New script.
96161         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96162         * lib/unlocked-io.hin: Remove file.
96163         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96164         rather than trying to embed it here.
96165         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96166         Reported by Padraig Brady.
96167
96168 2001-09-25  Volker Borchert  <bt@teknon.de>
96169
96170         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96171         `result'.
96172
96173 2001-09-24  Jim Meyering  <meyering@lucent.com>
96174
96175         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96176
96177 2001-09-23  Jim Meyering  <meyering@lucent.com>
96178
96179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96180         instead of the mere test for existence of mntent.h.  The latter
96181         would get a false-positive on AIX 3.4 systems.
96182         In the outer getmntent if-block, don't die if neither of the getmntent
96183         tests succeeds.  Instead, just fall through and continue with the
96184         remaining tests.
96185
96186 2001-09-23  Jim Meyering  <meyering@lucent.com>
96187
96188         * lib/mountlist.c: Remove useless parentheses in #if directives.
96189         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96190         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96191
96192 2001-09-22  Jim Meyering  <meyering@lucent.com>
96193
96194         * m4/gettext.m4: New file.  From gettext.
96195         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96196         * m4/progtest.m4: Likewise
96197         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96198         * m4/glibc21.m4: Likewise.
96199
96200         * m4/libintl.m4: Remove.  No longer used.
96201
96202 2001-09-22  Jim Meyering  <meyering@lucent.com>
96203
96204         * lib/localcharset.c: Update from latest gettext.
96205         * lib/config.charset: Likewise.
96206
96207 2001-09-20  Jim Meyering  <meyering@lucent.com>
96208
96209         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96210         strtoimax.
96211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96212         strtoumax.
96213
96214 2001-09-20  Jim Meyering  <meyering@lucent.com>
96215
96216         * lib/xstrtol.c (strtoimax): Guard declaration with
96217         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96218         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96219         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96220         (strtoumax): Likewise, for completeness (it wasn't necessary).
96221
96222 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96223
96224         * lib/strtoimax.c (HAVE_LONG_LONG):
96225         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96226         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96227         to work around bug in IBM C compiler.
96228
96229 2001-09-17  Jim Meyering  <meyering@lucent.com>
96230
96231         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96232         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96233         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96234         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96235         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96236         whenever the right hand side need not be expanded by the shell.
96237
96238 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96241         library.  It's not correct, as some older glibcs are buggy.
96242         fnmatch wasn't fixed until glibc 2.2.
96243
96244         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96245         special shell magic here.
96246
96247 2001-09-16  Jim Meyering  <meyering@lucent.com>
96248
96249         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96250         * m4/jm-macros.m4: Require it.
96251
96252 2001-09-16  Jim Meyering  <meyering@lucent.com>
96253
96254         * lib/mkdir.c: New file.
96255
96256 2001-09-15  Jim Meyering  <meyering@lucent.com>
96257
96258         * m4/jm-macros.m4: Check for help2man.
96259
96260 2001-09-11  Jim Meyering  <meyering@lucent.com>
96261
96262         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96263         The body, by Paul Eggert, was moved here from configure.in.
96264         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96265
96266 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96267
96268         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96269         (jm_PREREQ): Use it.
96270
96271 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96272
96273         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96274         Use ssize_t, not int, to store result of readlink.
96275         Check for ssize_t overflow as well as size_t overflow,
96276         as POSIX says the result of readlink is implementation-defined
96277         when ssize_t overflows.
96278         Remove unnecessary cast to char*.
96279         Use free+malloc instead of realloc, as the storage doesn't need
96280         to be preserved and it's clearer and can be more efficient that way.
96281         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96282         * lib/xreadlink.h (xreadlink): Update prototype.
96283
96284 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96285
96286         * lib/xgetcwd.c: Revert some of the previous change; intead,
96287         fix the HAVE_GETCWD_NULL code to behave more like the
96288         !HAVE_GETCWD_NULL code used to.
96289
96290         Include "xalloc.h".
96291         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96292         invoke xalloc_die.
96293
96294 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96295
96296         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96297         sys/param.h, as pathmax.h includes them.
96298
96299 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96300
96301         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96302         (jm_PREREQ_XGETCWD): New macro.
96303
96304         * m4/getcwd.m4: New file.
96305
96306 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96307
96308         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96309         like the HAVE_GETCWD_NULL code.
96310         Include pathmax.h if not HAVE_GETCWD.
96311         Do not include xalloc.h.
96312         (INITIAL_BUFFER_SIZE): New symbol.
96313         Do not use xmalloc / xrealloc, since the caller is responsible for
96314         handling errors.  Preserve errno around `free' during failure.
96315         Do not overrun buffer when using getwd.
96316
96317 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96318
96319         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96320         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96321         getcwd (NULL, 0).
96322
96323 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96324
96325         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96326         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96327         spotted by Jim Meyering.
96328
96329 2001-09-03  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96332         failure.
96333
96334 2001-09-02  Jim Meyering  <meyering@lucent.com>
96335
96336         * lib/error.c: Update from GNU libc.
96337
96338 2001-09-01  Jim Meyering  <meyering@lucent.com>
96339
96340         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96341         Used by df.
96342
96343 2001-09-01  Jim Meyering  <meyering@lucent.com>
96344
96345         * lib/xreadlink.c: New file.
96346         * lib/xreadlink.h: New file.
96347         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96348         xreadlink.h.
96349
96350         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96351         doesn't conflict with sparc Solaris 7's definition in
96352         /usr/include/sys/int_types.h.
96353
96354         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96355         files.
96356         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96357         and strncasecmp as r-values.  Unixware didn't have declarations.
96358
96359 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96360
96361         * lib/xstrtol.h: Add copyright notice.
96362         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96363         LONGINT_INVALID_SUFFIX_CHAR.
96364
96365 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96366
96367         * lib/xstrtol.c (strtoimax): New decl.
96368
96369 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96370
96371         * lib/xgetcwd.c: Don't include pathmax.h.
96372         Include stdlib.h and unistd.h if available.
96373         Include xalloc.h.
96374         (xmalloc, xstrdup, free): Remove decls.
96375         (xgetcwd): Don't assume sizes fit in unsigned.
96376         Check for overflow when computing sizes.
96377         Simplify reallocation code.
96378
96379 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96380
96381         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96382         a directory's st_size can have an arbitrary value, so the old
96383         usage could waste an arbitrary amount of memory.  All uses
96384         changed.
96385         * lib/savedir.h: Update prototype.
96386
96387 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96388
96389         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96390
96391         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96392         old strtoimax.c.
96393
96394         Also, make the following further changes to make this file's
96395         configuration more similar to that of strtol.c:
96396         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96397         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96398         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96399         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96400         changed to signed values.
96401
96402         And make the following changes as well:
96403         Fix copyright notice, as 1999 was missing.
96404         (verify): New macro.
96405         (strtoimax): Check sizes at compile-time, not run-time.
96406         Prefer strtol to strtoll if both work.
96407         (main): Remove; it was not that useful and was a pain to maintain.
96408
96409         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96410
96411 2001-08-31  Jim Meyering  <meyering@lucent.com>
96412
96413         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96414         Use an initial, malloc'd, buffer of length 128 rather than
96415         a statically allocated one of length 1024.
96416
96417 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96418
96419         Simplify code, partly by assuming autoconf 2.52 semantics.
96420
96421         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96422
96423         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96424         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96425         All uses removed.
96426         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96427         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96428         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96429         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96430         jm_AC_HEADER_INTTYPES_H.
96431         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96432
96433         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96434
96435         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96436         Quote first arg of AC_DEFUN.
96437         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96438         since they are needed to parse the include file even if we need
96439         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96441         but with opposite signedness.
96442
96443 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96444
96445         Merge 'exclude' changes from tar 1.13.22.
96446         This fixes one or two unlikely storage allocation overflow bugs,
96447         but doesn't change user-visible behavior otherwise.
96448
96449 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96450
96451         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96452         (jm_PREREQ_EXCLUDE): New macro.
96453
96454 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96455
96456         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96457         tm to be declared.
96458
96459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96460
96461         * lib/hash.c: Remove '2001' from copyright notice.
96462
96463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96464
96465         * lib/full-write.h: New file.
96466         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96467         * lib/full-write.c: Correct credits, as cccp.c no longer
96468         exists and anyway it was so heavily changed from the old cccp
96469         code as to be unrecognizable.  Include full-write.h.
96470         (full_write): Return size_t, with short writes meaning failure.
96471         All callers changed.  This fixes a bug with large buffers
96472         on 64-bit hosts.
96473         * lib/utime.c: Include full-write.h.
96474
96475 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96476
96477         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96478         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96479         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96480         Include if available.
96481         (<xalloc.h>): Include
96482         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96483         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96484         collide with FNM macros.
96485         (struct patopts): New struct.
96486         (struct exclude): Use it, as exclude patterns now come with options.
96487         (new_exclude): Support above changes.
96488         (new_exclude, add_exclude_file):
96489         Initial size must now be a power of two to simplify overflow checking.
96490         (free_exclude, fnmatch_no_wildcards): New function.
96491         (excluded_filename): No longer requires options arg, as the options
96492         are determined by add_exclude.  Now returns bool, not int.
96493         (excluded_filename, add_exclude):
96494         Add support for the fancy new exclusion options.
96495         (add_exclude, add_exclude_file): Now takes int options arg.
96496         Check for arithmetic overflow when computing sizes.
96497         (add_exclude_file): xrealloc might modify errno, so don't
96498         realloc until after errno might be used.
96499
96500         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96501         New macros.
96502         (free_exclude): New decl.
96503         (add_exclude, add_exclude_file): Now takes int options arg.
96504         (excluded_filename): No longer requires options arg, as the options
96505         are determined by add_exclude.  Now returns bool, not int.
96506
96507 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96508
96509         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96510
96511 2001-08-27  Jim Meyering  <meyering@lucent.com>
96512
96513         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96514
96515         * lib/version-etc.c (N_): Remove definition.
96516         Revert most of last change.
96517         Instead, simply don't mark the `Copyright...' string for translation.
96518         Based on advice from Paul Eggert.
96519
96520         * lib/strtoxmax.c: Tweak comment.
96521
96522 2001-08-26  Jim Meyering  <meyering@lucent.com>
96523
96524         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96525
96526         * m4/xstrtoimax.m4: New file.
96527         * m4/xstrtoumax.m4: Add comments explaining why we
96528         AC_REPLACE_FUNCS(strtol).
96529
96530 2001-08-26  Jim Meyering  <meyering@lucent.com>
96531
96532         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96533         of copyright with `%s' so translators don't get an untranslated
96534         message in 2002.
96535         (COPYRIGHT_YEAR): Define.
96536         (version_etc): Use fprintf rather than fputs.
96537         Suggestion from Ulrich Drepper.
96538
96539         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96540
96541         * lib/strtoll.c: New file, from GNU libc.
96542         * lib/xstrtoimax.c: New file.
96543
96544         * lib/xstrtol.h: Add xstrtoimax.
96545         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96546         * lib/strtoimax.c: New file.  Likewise, but first define
96547         STRTOUXMAX_SIGNED.
96548
96549         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96550         ...
96551         * lib/strtoxmax.c: ... then renamed to this.
96552
96553 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96554
96555         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96556         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96557         (jm_AC_TYPE_INTMAX_T): New macro.
96558         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96559
96560         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96561
96562         * m4/longlong.m4: Renamed from ulonglong.m4.
96563         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96564         * m4/uintmax_t.m4: Removed.
96565
96566 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96567
96568         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96569         Port to Solaris 8, where 'sed' requires a space after the 'r'
96570         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96571         Redirect output to $tmp just once.
96572
96573 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96574
96575         * lib/addext.c (<errno.h>): Include.
96576         (errno): Declare if not defined.
96577         (addext): Work correctly when pathconf returns -1 and leaves
96578         errno alone because there is no limit.  Also, work even if
96579         pathconf returns a value greater than SIZE_MAX.
96580
96581 2001-08-12  Jim Meyering  <meyering@lucent.com>
96582
96583         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96584         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96585         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96586         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96587         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96588         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96589         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96590         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96591         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96592         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96593         utime.m4, utimes.m4, xstrtoumax.m4:
96594         Quote the first argument in each use of AC_DEFUN.
96595
96596 2001-08-12  Jim Meyering  <meyering@lucent.com>
96597
96598         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96599         Simply `return getcwd (NULL, 0);'.
96600         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96601         Use 1300 as initial value for length, not PATH_MAX.
96602
96603         * lib/pathmax.h: Clean up cpp syntax.
96604
96605 2001-08-12  Jim Meyering  <meyering@lucent.com>
96606
96607         * lib/gettimeofday.c: New file.
96608         * lib/gtod.h: New file.
96609         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96610
96611 2001-08-05  Jim Meyering  <meyering@lucent.com>
96612
96613         * m4/jm-macros.m4: Require autoconf-2.52.
96614
96615 2001-08-04  Jim Meyering  <meyering@lucent.com>
96616
96617         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96618         stmt, to get in sync with glibc.
96619
96620 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96621
96622         The following changes are from gettext 0.10.39 as maintained by
96623         Bruno Haible.
96624
96625         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96626         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96627         with inverted sense.  All uses changed.
96628
96629         * lib/mbswidth.c: Don't include <limits.h>.
96630         Include <stdlib.h> and <string.h> unconditionally.
96631         (iswcntrl, mbsinit, ISCNTRL): New macros.
96632         (mbsnwidth): Use K&R style function declarations.
96633         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96634         can optimize it when MB_CUR_MAX == 1.
96635         The width of control characters is zero, not 1.
96636
96637 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96638
96639         The following changes are from gettext 0.10.39 as maintained by
96640         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96641
96642         * m4/codeset.m4: Upgrade to serial AM1.
96643         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96644         all uses changed.  Quote first arg of AC_DEFUN.
96645         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96646
96647         * m4/iconv.m4: Upgrade to serial AM2.
96648         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96649         Add --with-libconv-prefix.
96650         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96651         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96652         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96653         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96654         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96655
96656         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96657         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96658         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96659         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96660         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96661         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96662         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96663         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96664         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96665
96666         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96667         string.h any more.
96668
96669         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96670         not the default value.
96671
96672         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96673         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96674         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96675         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96676         Also check for iswcntrl, used for wcwidth fallback.
96677         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96678         to Autoconf 2.13.
96679
96680 2001-08-03  Jim Meyering  <meyering@lucent.com>
96681
96682         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96683         as it was in the original.  Reported by Paul Eggert.
96684
96685 2001-07-16  Jim Meyering  <meyering@lucent.com>
96686
96687         * m4/gettimeofday.m4: New file.
96688         Prompted by a report from Bernhard Baehr.
96689
96690 2001-07-15  Jim Meyering  <meyering@lucent.com>
96691
96692         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96693         stuff. Now it's in ../Makefile.cfg.
96694
96695 2001-07-15  Jim Meyering  <meyering@lucent.com>
96696
96697         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96698         (BUILT_SOURCES): Add unlocked-io.h.
96699         (io_functions): Define.
96700         (unlocked-io.h): New rule.
96701         (DISTCLEANFILES): Add unlocked-io.h.
96702         (all-local): Depend on unlocked-io.h, to ensure it is created.
96703
96704         * lib/unlocked-io.hin: New file
96705
96706         * lib/regex.c: Update from glibc.
96707
96708 2001-07-05  Jim Meyering  <meyering@lucent.com>
96709
96710         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96711         recommendation.
96712         (libfetish_a_SOURCES): Put all .h files here instead.
96713         Remove a thus-exposed (better checks in automake) duplicate and
96714         two unnecessary .h files.
96715
96716 2001-07-04  Jim Meyering  <meyering@lucent.com>
96717
96718         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96719         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96720         distcheck failure.
96721
96722 2001-07-02  Jim Meyering  <meyering@lucent.com>
96723
96724         The following changes were prompted by suggestions from Bruno Haible.
96725
96726         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96727         is now generated.
96728         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96729         definition of EXTRA_DIST.
96730         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96731         ensure that the generated file is created/updated whenever the list
96732         of $(unlocked_functions) is changed.
96733         (jm-glibc-io.m4): New rule.
96734         (unlocked-io.h): New rule -- currently unused.
96735
96736 2001-06-24  Jim Meyering  <meyering@lucent.com>
96737
96738         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96739         unmatched right bracket, rather than kludging it with an extra,
96740         falsely-matching quote in a comment.  Patch by Akim Demaille.
96741
96742 2001-06-11  Jim Meyering  <meyering@lucent.com>
96743
96744         * lib/regex.c: Update from GNU libc.
96745
96746 2001-05-27  Jim Meyering  <meyering@lucent.com>
96747
96748         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96749         Check for ut_type in struct utmp.
96750
96751 2001-05-27  Jim Meyering  <meyering@lucent.com>
96752
96753         * lib/readutmp.h (UT_TYPE): Define.
96754
96755 2001-05-24  Jim Meyering  <meyering@lucent.com>
96756
96757         * lib/argmatch.c: Include "quote.h".
96758         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96759         quote function.  Reported by Göran Uddeborg.
96760
96761 2001-05-22  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96764         now that we use the package-supplied version unconditionally.
96765         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96766
96767 2001-05-21  Jim Meyering  <meyering@lucent.com>
96768
96769         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96770         shell syntax errors.
96771
96772 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96773
96774         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96775
96776 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96777
96778         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96779         Don't bother to check library strftime, since
96780         we'll be using our own my_strftime function anyway.
96781         Define my_strftime instead of strftime.
96782
96783 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96784
96785         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96786         which is not yet declared.
96787
96788 2001-05-15  Jim Meyering  <meyering@lucent.com>
96789
96790         * m4/regex.m4: Use proper quoting so brackets appear in the test
96791         program.
96792         Reported by, and with help from, Bruno Haible.
96793
96794 2001-05-13  Jim Meyering  <meyering@lucent.com>
96795
96796         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96797         undefined.
96798
96799 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96800
96801         dirname code cleanup.  base_name now behaves more compatibly
96802         with POSIX basename when given file names that have trailing
96803         slashes, and similarly for dir_name.  Add new primitives
96804         base_len and dir_len.  Put the directory-name-related decls
96805         into dirname.h.
96806
96807         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96808         * lib/backupfile.c (base_name): Likewise.
96809         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96810         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96811         * lib/makepath.c (strip_trailing_slashes): Likewise.
96812         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96813         ISSLASH): Likewise.
96814         * lib/rename.c (strip_trailing_slashes): Likewise.
96815         * lib/same.c (base_name): Likewise.
96816         * lib/stripslash.c (ISSLASH): Likewise.
96817
96818         * lib/addext.c: Include <dirname.h> after size_t is defined.
96819         * lib/backupfile.c: Likewise.
96820
96821         * lib/addext.c (addext): Use base_len to trim redundant
96822         trailing slashes instead of doing it ourselves.
96823         But do not trim the last slash if it is not redundant.
96824
96825         * lib/backupfile.c (find_backup_file_name,
96826         max_backup_version): Use base_len instead of rolling it ourselves.
96827         Handle the case of "" and (on DOS) "C:" correctly.
96828
96829         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96830         needed. Include <string.h>, <dirname.h>.
96831         (base_name): Allow file names ending in slashes, other than names
96832         that are all slashes.  In this case, return the basename followed
96833         by the slashes.  This is more general, and can be used in places
96834         where the original base_name purposely had an assertion failure.
96835         (base_len): New function.
96836
96837         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96838         Do not include <assert.h>; no longer needed.
96839         Include xalloc.h.
96840         (memrchr): Remove decl.
96841         (dir_name_r): Remove.
96842         (dir_len): Renamed from dirlen.  All callers changed.
96843         Rewrite in terms of base_name, for simplicity and consistency.
96844         (dir_name): Never return NULL.  All callers changed.
96845         Do not include <stdlib.h> in test program; no longer needed.
96846         return 0; is fine for test program.
96847
96848         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96849         New macros.
96850         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96851
96852         * lib/path-concat.c (path_concat): Use base_len to compute
96853         base length, not strlen; this means we cannot rely on memcpy
96854         to null-terminate.
96855
96856         * lib/same.c (STREQ): Remove.
96857         (same_name): Handle the case where the basename ends in trailing '/'.
96858
96859         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96860         a slash was stripped.  Do not strip the last slash after a
96861         file system prefix.
96862
96863 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96864
96865         * lib/Makefile.am (libfetish_a_SOURCES):
96866         Add strftime.c, since we now compile it on all hosts.
96867
96868         * lib/strftime.c (my_strftime):
96869         Define to nstrftime if emacs, but only if my_strftime is not defined.
96870         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96871         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96872         Add one more extra argument: a nanoseconds value.
96873         All uses changed.
96874         (ns): New macro.
96875         (my_strftime function): Add %N format.
96876         (emacs_strftimeu): Renamed from emacs_strftime,
96877         with extra ut argument.
96878
96879 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96880
96881         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96882
96883 2001-04-21  Jim Meyering  <meyering@lucent.com>
96884
96885         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96886         doesn't interfere.
96887
96888 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96889
96890         * m4/ftruncate.m4: Check for chsize.
96891         Link with ftruncate.o unconditionally if ftruncate is missing.
96892         This was required when cross-compiling to i586-mingw32msvc.
96893
96894 2001-04-08  Jim Meyering  <meyering@lucent.com>
96895
96896         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96897         recomputed; that's necessary when the offset spans a DST transition.
96898         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96899
96900 2001-04-02  Jim Meyering  <meyering@lucent.com>
96901
96902         * lib/regex.h, regex.c: Update from GNU libc.
96903
96904 2001-03-24  Jim Meyering  <meyering@lucent.com>
96905
96906         * m4/jm-macros.m4: Require autoconf-2.49d.
96907
96908 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96909
96910         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96911
96912 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96913
96914         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96915
96916 2001-03-17  Jim Meyering  <meyering@lucent.com>
96917
96918         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96919         now that the version in autoconf is equivalent.
96920         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96921
96922         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96923         Suggestion from Akim Demaille.
96924
96925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96926         (jm_PREREQ_TEMPNAME): New function.
96927
96928 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96929
96930         * lib/tempname.c (uint64_t): Define to uintmax_t if
96931         not defined, and if UINT64_MAX is not defined.
96932         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96933         Reported by John David Anglin.
96934
96935 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96936
96937         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96938         resolve alias if codeset is empty.
96939         * lib/config.charset (BeOS): Use wildcard syntax.
96940
96941 2001-03-13  Jim Meyering  <meyering@lucent.com>
96942
96943         * lib/path-concat.c (path_concat)
96944         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96945         concatenating e.g., `C:' and `foo'.
96946         From Bruno Haible.
96947
96948 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96949
96950         * lib/localcharset.c (locale_charset): Don't use
96951         setlocale(LC_CTYPE,NULL). Don't return NULL.
96952         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96953
96954 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96955
96956         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96957         support for DOS/DJGPP.
96958
96959 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96960
96961         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96962         lacks mkstemp.  Compile our own tempname.c if we compile our own
96963         mkstemp.c, as mkstemp relies on tempname.
96964
96965 2001-03-01  Jim Meyering  <meyering@lucent.com>
96966
96967         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96968         AH_VERBATIM really does output its argument verbatim.
96969
96970 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96971
96972         * lib/Makefile.am (libfetish_a_SOURCES):
96973         Add dup-safer.c, fopen-safer.c.
96974         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96975
96976         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96977         * lib/unistd-safer.h: New files.
96978
96979 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96980
96981         The mkstemp replacement is taken from glibc 2.2.2, with some
96982         portability fixes for use outside glibc, as follows:
96983
96984         * lib/tempname.c (struct_stat64): New macro.
96985         (direxists, __gen_tempname): Use it.
96986         This avoids a portability problem with Solaris 8.
96987
96988         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96989         (<stddef.h>, <stdint.h>, <string.h>):
96990         Include only if STDC_HEADERS || _LIBC.
96991         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96992         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96993         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96994         (__set_errno): Define this macro if <errno.h> doesn't.
96995         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96996         Define these macros if <stdio.h> doesn't.
96997         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96998         Define these macros if <sys/stat.h>
96999         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97000         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97001         __xstat64): Define if not _LIBC.
97002         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97003         (__gen_tempname): Invoke gettimeofday only if
97004         HAVE_GETTIMEOFDAY || _LIBC;
97005         otherwise, fall back on plain "time".
97006         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97007
97008         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97009
97010         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97011
97012 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97013
97014         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97015
97016 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97017
97018         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97019         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97020         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97021         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97022
97023 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97024
97025         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97026         Remove workaround macros for hosts that have mbrtowc but not
97027         mbstate_t, as we now insist on proper declarations for both
97028         before using mbrtowc.
97029
97030 2001-02-17  Jim Meyering  <meyering@lucent.com>
97031
97032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97033         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97034         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97035         UnixWare 7.1.1.
97036
97037         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97038         rather than AC_CACHE_VAL.
97039
97040 2001-02-17  Jim Meyering  <meyering@lucent.com>
97041
97042         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97043         around included file name.
97044
97045         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97046
97047         * lib/strftime.c: Update from GNU libc (the only changes were to
97048         comments).
97049
97050 2001-02-17  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/regex.c: Update from libc.
97053
97054 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97055
97056         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97057         clash.
97058
97059 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97060
97061         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97062         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97063         Reported by Mark Hounschell via Paul Eggert.
97064
97065 2001-02-07  Jim Meyering  <meyering@lucent.com>
97066
97067         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97068
97069 2001-02-05  Jim Meyering  <meyering@lucent.com>
97070
97071         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97072         it includes the patch required for `large file' support with at least
97073         HP-UX's 10.20 /bin/cc.
97074
97075 2001-02-03  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97078         AS_IF, now that it works once again (mysteriously).
97079         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97080
97081 2001-01-30  Jim Meyering  <meyering@lucent.com>
97082
97083         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97084         * m4/chown.m4: Rename conftestchown to conftest.chown.
97085         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97086         s/conftestdir2/conftest.d2/.
97087         * m4/utimes.m4: s/conftestdata/conftest.data/
97088         Inspired by Pavel Roskin's change in autoconf.
97089
97090 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97091
97092         * lib/config.charset: Update for FreeBSD 4.2.
97093
97094 2001-01-27  Jim Meyering  <meyering@lucent.com>
97095
97096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97097         a use of AS_IF.
97098         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97099
97100 2001-01-26  Jim Meyering  <meyering@lucent.com>
97101
97102         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97103         quotearg.c includes it.
97104
97105 2001-01-26  Jim Meyering  <meyering@lucent.com>
97106
97107         * lib/quotearg.c: Include stddef.h.
97108         * lib/quote.c: Include stddef.h.
97109         Reported by Axel Kittenberger.
97110
97111         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97112         line in double quotes so that it evokes a better diagnostic.
97113         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97114         Reported by Axel Kittenberger.
97115
97116 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97117
97118         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97119         as if it was a `charset'.
97120
97121 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97122
97123         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97124         has const.
97125
97126 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97127
97128         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97129         to avoid a warning.  Add back 'const' to inptr.
97130
97131 2001-01-20  Jim Meyering  <meyering@lucent.com>
97132
97133         Be sure that headers are checked before used in code compiled
97134         for the type checks.
97135         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97136         In place of that, invoke jm_CHECK_ALL_TYPES.
97137         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97138         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97139         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97140         The check for ssize_t was mistakenly run before the test for unistd.h.
97141
97142         The configure-time check for stdbool.h was missing.
97143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97144         (jm_PREREQ_HASH): New function.
97145
97146 2001-01-17  Jim Meyering  <meyering@lucent.com>
97147
97148         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97149         for autoconf-2.49c.
97150         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97151
97152 2001-01-16  Jim Meyering  <meyering@lucent.com>
97153
97154         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97155         From Bruno Haible.
97156
97157 2001-01-14  Jim Meyering  <meyering@lucent.com>
97158
97159         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97160         foo and bar.  Create conftestdir/ in the script, not in the C code.
97161         Remove directories in the script, not in the C code.
97162         Remove conftestdir{,2} before trying to create the directory.
97163         Make the entire configure script fail if the mkdir fails.
97164
97165 2001-01-14  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/rename.c: New file.  From Volker Borchert.
97168         Include stdlib.h, string.h or strings.h, and xalloc.h.
97169         Use strip_trailing_slashes rather than open-coding it.
97170
97171 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97172
97173         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97174
97175 2001-01-03  Jim Meyering  <meyering@lucent.com>
97176
97177         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97178         of local `inptr' to avoid warning with some system declarations of
97179         iconv.
97180
97181 2001-01-02  Volker Borchert  <bt@teknon.de>
97182
97183         * m4/rename.m4: New file.
97184         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97185
97186 2001-01-01  Jim Meyering  <meyering@lucent.com>
97187
97188         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97189         even on systems with utmpx.h.  It's necessary for the declaration of
97190         utmp's ut_user member.  Reported by Andreas Jaeger.
97191
97192         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97193         available. They are required for the declarations of getgrgid and
97194         getpwuid resp.
97195         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97196         Reported by Andreas Jaeger.
97197
97198 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97199
97200         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97201         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97202         so `make install' also works in VPATH builds.
97203
97204 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97205
97206         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97207         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97208         can be used in subdirectories.
97209
97210 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97211
97212         * lib/modechange.c: Do not assume that mode_t uses the
97213         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97214         the other-execute bit of FOO even if S_IXOTH != 1.
97215
97216         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97217         WOTH, XOTH, ALLM): New macros.
97218         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97219          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97220         Use them.
97221         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97222         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97223         (mode_compile):
97224         No need to use uintmax_t; unsigned long is long enough.
97225         Don't bother to get suffix since we don't use it.
97226
97227 2000-12-26  Jim Meyering  <meyering@lucent.com>
97228
97229         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97230         better with autoheader.
97231
97232 2000-12-24  Jim Meyering  <meyering@lucent.com>
97233
97234         * lib/hash.c (is_prime): Return explicit boolean values.
97235         (hash_get_first): Return NULL to appease Irix5.6's 89.
97236         Reported by Nelson Beebe.
97237
97238 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97239
97240         * lib/localcharset.c (locale_charset): Add support for Win32.
97241
97242 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97243
97244         * lib/physmem.h, lib/physmem.c: New files.
97245
97246         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97247         (noinst_HEADERS): Add physmem.h.
97248
97249         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97250         't' for compatibility with Solaris 8 sort.
97251
97252 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97253
97254         * lib/config.charset: Add support for BeOS.
97255
97256 2000-12-17  Jim Meyering  <meyering@lucent.com>
97257
97258         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97259         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97260
97261 2000-12-16  Jim Meyering  <meyering@lucent.com>
97262
97263         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97264         N and M) would have treated it like `chown N:N FILE'.
97265
97266         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97267
97268 2000-12-16  Jim Meyering  <meyering@lucent.com>
97269
97270         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97271         SHELLS_FILE to a file name that's useful on djgpp systems.
97272         Include stdlib.h.
97273         (ADDITIONAL_DEFAULT_SHELLS): Define.
97274         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97275         Based mostly on a patch from Prashant TR.
97276
97277 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97278
97279         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97280         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97281         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97282
97283 2000-12-08  Andreas Schwab  <schwab@suse.de>
97284
97285         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97286         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97287
97288 2000-12-07  Jim Meyering  <meyering@lucent.com>
97289
97290         * lib/stripslash.c (ISSLASH): Define.
97291         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97292         `/'.
97293         From Prashant TR.
97294
97295         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97296         (dir_name_r): Declare this function as static.
97297         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97298         manifest itself on a name containing a mix of slashes and
97299         backslashes.
97300         Make this function work with names starting with a DOS-style
97301         drive letter and colon prefix.
97302         (dir_name): Append `.' if necessary.
97303         Based mostly on patches from Prashant TR and Eli Zaretskii.
97304
97305         * lib/dirname.h (dir_name_r): Remove prototype.
97306
97307 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97308
97309         * m4/off_t-format.m4: Remove this file.
97310         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97311
97312 2000-12-06  Jim Meyering  <meyering@lucent.com>
97313
97314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97315         replacement strtoull, we may well need the replacement strtoul, too.
97316         Check for declarations of strtoul and strtoull.
97317         Check for strtol.  Mainly as a cue to cause automake to include
97318         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97319         Check for limits.h -- strtol.c needs it.
97320
97321 2000-12-05  Jim Meyering  <meyering@lucent.com>
97322
97323         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97324
97325 2000-12-04  Jim Meyering  <meyering@lucent.com>
97326
97327         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97328         Also include memory.h, stdlib.h, unistd.h if appropriate.
97329         Reported by Andreas Jaeger (conflicting declaration of malloc).
97330
97331 2000-12-02  Jim Meyering  <meyering@lucent.com>
97332
97333         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97334         * m4/jm-macros.m4 (jm_MACROS): require it.
97335
97336 2000-12-02  Jim Meyering  <meyering@lucent.com>
97337
97338         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97339
97340 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97341
97342         * lib/memrchr.c: Include <config.h> before any system include file.
97343
97344 2000-11-30  Jim Meyering  <meyering@lucent.com>
97345
97346         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97347
97348 2000-11-30  Jim Meyering  <meyering@lucent.com>
97349
97350         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97351
97352 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97353
97354         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97355
97356 2000-11-26  Jim Meyering  <meyering@lucent.com>
97357
97358         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97359
97360 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97361
97362         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97363         size of (size_t) -1; it's not portable.
97364
97365 2000-11-17  Jim Meyering  <meyering@lucent.com>
97366
97367         * lib/strstr.c: Update from GNU libc.
97368
97369 2000-11-17  Akim Demaille  <akim@epita.fr>
97370
97371         * lib/obstack.h: Formatting changes.
97372         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97373         prevent type checking.
97374         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97375         cast the value to (void *): assigning a `foo *' to a `void *'
97376         variable is valid.
97377         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97378
97379 2000-11-16  Jim Meyering  <meyering@lucent.com>
97380
97381         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97382
97383 2000-11-11  Jim Meyering  <meyering@lucent.com>
97384
97385         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97386
97387 2000-11-10  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/obstack.h: Update from GNU libc.
97390         * lib/obstack.c: Likewise.
97391
97392 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97393
97394         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97395
97396 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97397
97398         * lib/getusershell.c (setusershell): Use rewind rather than
97399         fseek/fseeko, to avoid configuration hassles with fseeko.
97400         Don't bother opening SHELLS_FILE if shellstream is NULL;
97401         it's not necessary.
97402
97403 2000-11-05  Jim Meyering  <meyering@lucent.com>
97404
97405         * lib/makepath.h (make_dir): Declare.
97406         * lib/makepath.c (make_dir): Remove `static' attribute.
97407         Tweak a comment.
97408
97409 2000-11-04  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97412
97413 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97414
97415         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97416         last one in a bucket, advance to the next bucket.
97417
97418 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97419
97420         * lib/fnmatch.c: Do not comment out all the code if we are using
97421         the GNU C library, because in some cases we are replacing buggy
97422         code in the GNU C library itself.
97423
97424 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97425
97426         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97427         (regex_compile): Catch bogus \(\1\).
97428
97429 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97430
97431         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97432         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97433         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97434
97435 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97436
97437         * lib/error.h, getline.h, modechange.h:
97438         Remove "2000" from Copyright line, as the file hasn't been
97439         changed this year other than in the copyright notice.
97440
97441         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97442         was changed this year.
97443
97444 2000-10-29  Jim Meyering  <meyering@lucent.com>
97445
97446         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97447         renaming.
97448         * m4/ls-mntd-fs.m4: Likewise
97449
97450 2000-10-29  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/xstat.in: Fix grammar in comment.
97453
97454 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97455
97456         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97457         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97458         doesn't define __restrict_arr.
97459
97460 2000-10-28  Jim Meyering  <meyering@lucent.com>
97461
97462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97463         (jm_PREREQ_MEMCHR): New function.
97464
97465 2000-10-28  Jim Meyering  <meyering@lucent.com>
97466
97467         * lib/memchr.c: Update from libc.
97468         Adjust for portability:
97469         [HAVE_STDLIB_H]: Include stdlib.h.
97470         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97471         Undef __memchr, too.
97472         [!weak_alias]: Define __memchr to memchr.
97473
97474         * lib/regex.c: Update from libc.
97475         * lib/regex.h: Likewise.
97476         * lib/getopt1.c: Likewise.
97477         * lib/memcmp.c: Likewise.
97478
97479         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97480         Avoid using fseek, when possible -- it's broken by design.
97481         Patch by Ulrich Drepper.
97482
97483 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97484
97485         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97486         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97487         Giving in to popular pressure to shut up the compiler with casts.
97488
97489 2000-10-26  Jim Meyering  <meyering@lucent.com>
97490
97491         * lib/strftime.c: Update from libc.
97492
97493 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97494
97495         * regex.c: More `unsigned char' -> `re_char' changes.
97496         Also change several `int' into `re_wchar_t'.
97497         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97498         (PUSH_FAILURE_POINTER): Don't cast any more.
97499         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97500         We want GCC to complain, since this piece of code makes
97501         re_match non-reentrant, which *should* be fixed.
97502         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97503         (EXTEND_BUFFER): Use RETALLOC.
97504         (SET_LIST_BIT): Don't cast.
97505         (re_wchar_t): New type.
97506         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97507         that those two functions will always properly return.
97508         (IMMEDIATE_QUIT_CHECK): Cast to void.
97509         (analyse_first): Use recursion rather than an explicit stack.
97510         (re_compile_fastmap): Can't fail anymore.
97511         (re_search_2): Don't check re_compile_fastmap for failure.
97512         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97513         Now also sets the new value (passed in a new argument).
97514         (re_match_2_internal): Use it.
97515         Also, use a new var `reg' of type size_t when looping through regs
97516         rather than reuse the inappropriate `mcnt'.
97517
97518 2000-10-25  Jim Meyering  <meyering@lucent.com>
97519
97520         * lib/obstack.c: Update from libc.
97521
97522 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97523
97524         * regex.c (regex_compile): Change the way of handling a range from
97525         a char less than 256 to a char not less than 256.
97526
97527 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97528
97529         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97530         NT-Emacs only.
97531         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97532         so that re_search functions only quit when callers expect them to.
97533
97534 2000-10-23  Jim Meyering  <meyering@lucent.com>
97535
97536         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97537         wrong.  That set_locale call must not have any side effects.
97538         From Paul Eggert.
97539
97540 2000-10-22  Jim Meyering  <meyering@lucent.com>
97541
97542         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97543         [CYCLIC]: Remove now-unused definition.
97544
97545         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97546         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97547         Suggestion from Ulrich Drepper.
97548
97549 2000-10-21  Jim Meyering  <meyering@lucent.com>
97550
97551         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97552         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97553         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97554
97555 2000-10-21  Jim Meyering  <meyering@lucent.com>
97556
97557         * lib/dirname.c (memrchr): Declare if necessary.
97558         (dir_name): Remove the restriction that there be no
97559         trailing slashes.  Now, this code skips past them, effectively
97560         ignoring them.
97561         [TEST_DIRNAME] (main): New unit tests.
97562
97563         * lib/memrchr.c: New file from GNU libc.
97564         Undef __memrchr, too.
97565         [!weak_alias]: Define __memrchr to memrchr.
97566         Guard weak_alias use with `#ifdef weak_alias'.
97567
97568 2000-10-21  Jim Meyering  <meyering@lucent.com>
97569
97570         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97571         (dir_name): Use dir_name_r.
97572         * lib/dirname.h (dir_name_r): Declare it.
97573
97574 2000-10-17  Jim Meyering  <meyering@lucent.com>
97575
97576         * lib/quote.h (PARAMS): Define and use.
97577         Reported by Akim Demaille.
97578
97579         * lib/getopt.c: Update from libc.
97580
97581 2000-10-16  Jim Meyering  <meyering@lucent.com>
97582
97583         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97584         setlocale.
97585         From Jan Fedak.
97586
97587 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97588
97589         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97590
97591 2000-09-25  Jim Meyering  <meyering@lucent.com>
97592
97593         * lib/md5.h (rol): Define (from GnuPG).
97594
97595         * lib/sha.c: Give credit (GnuPG) where due.
97596         (M): Use rol rather than open-coding it.
97597         Add a FIXME comment.
97598
97599 2000-09-21  Jim Meyering  <meyering@lucent.com>
97600
97601         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97602         Reported by Michael Stone.
97603
97604 2000-09-20  Jim Meyering  <meyering@lucent.com>
97605
97606         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97607         (noinst_HEADERS): Add sha.h.
97608         Based on code from Scott G. Miller and from GnuPG.
97609
97610 2000-09-18  Jim Meyering  <meyering@lucent.com>
97611
97612         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97613         LIBS. Otherwise, everyone ends up linking with -lelf for some
97614         configurations.
97615         Reported by Mike Stone.
97616
97617 2000-09-15  Jim Meyering  <meyering@lucent.com>
97618
97619         * lib/regex.c: Update from libc.
97620
97621 2000-09-10  Jim Meyering  <meyering@lucent.com>
97622
97623         * lib/getopt.c (_getopt_internal): Update from glibc.
97624
97625 2000-09-09  Jim Meyering  <meyering@lucent.com>
97626
97627         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97628         think it should be used as a general replacement for isascii.
97629         * lib/fnmatch.c: Likewise.
97630         * lib/mbswidth.c: Likewise
97631         * lib/regex.c: Likewise.
97632
97633         Don't use atoi.
97634         * lib/userspec.c: Include sys/param.h and limits.h.
97635         Include xstrtol.h.
97636         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97637         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97638         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97639         UID, GID.  Check range.
97640
97641 2000-09-06  Jim Meyering  <meyering@lucent.com>
97642
97643         * lib/getopt.c (_getopt_internal): Update from glibc.
97644
97645 2000-08-30  Jim Meyering  <meyering@lucent.com>
97646
97647         * lib/strftime.c: Merge in changes from GNU libc.
97648
97649 2000-08-26  Jim Meyering  <meyering@lucent.com>
97650
97651         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97652         * m4/fpending.m4: New file.
97653
97654 2000-08-26  Jim Meyering  <meyering@lucent.com>
97655
97656         * lib/closeout.c: Include "__fpending.h".
97657         (close_stdout_status): Return right away if there's nothing to flush.
97658
97659         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97660         * lib/__fpending.c: New file.
97661         * lib/__fpending.h: New file.
97662
97663 2000-08-20  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97666         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97667         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97668
97669 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97670
97671         Improve fileutils installation on systems where running
97672         programs (like install) can't be unlinked.
97673         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97674         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97675
97676 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97677
97678         Standardize on "memory exhausted" instead of "Memory exhausted"
97679         or "virtual memory exhausted".
97680         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97681         "virtual memory exhausted".
97682         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97683         our own message.
97684         * lib/userspec.c (parse_user_spec): Likewise.
97685         * lib/bumpalloc.h: comment fix
97686         * lib/same.c, userspec.c: Include xalloc.h.
97687
97688         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97689         not char *const and pointing to a constant array.
97690         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97691         (xrealloc): Comment fix.
97692
97693         * lib/userspec.c (parse_user_spec):
97694         Don't translate a message until just before returning,
97695         to avoid unnecessary translation.
97696
97697 2000-08-07  Jim Meyering  <meyering@lucent.com>
97698
97699         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97700         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97701         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97702         getgroups.c, gethostname.c, getopt.h, group-member.c,
97703         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97704         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97705         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97706         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97707         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97708         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97709         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97710         yesno.c: Back out Copyright date changes for each file with no change
97711         this year.  This eases coordination with other programs using the same
97712         source code modules.  From Paul Eggert.
97713
97714 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97715
97716         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97717         not char, for compatibility with glibc 2.1.3 strftime.c.
97718
97719 2000-08-03  Greg McGary  <greg@mcgary.org>
97720
97721         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97722         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97723         (EXTEND_BUFFER): Use them.
97724
97725 2000-08-01  Jim Meyering  <meyering@lucent.com>
97726
97727         * lib/dirname.c (ISSLASH): Define.
97728         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97729         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97730         both `\' and `/' may be use as path separators.
97731         Based on a patch from Prashant TR.
97732
97733 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97734
97735         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97736         slot vector a constant, since it might get modified.
97737
97738 2000-07-31  Jim Meyering  <meyering@lucent.com>
97739
97740         * lib/xmalloc.c: Use `virtual memory exhausted', not
97741         `Memory exhausted'.
97742         * lib/obstack.c (print_and_abort): Likewise.
97743
97744 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97745
97746         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97747         buffer, so that the caller can always quote one small
97748         component of a "memory exhausted" message in slot 0.
97749         From a suggestion by Jim Meyering.
97750
97751 2000-07-30  Jim Meyering  <meyering@lucent.com>
97752
97753         * lib/makepath.c (make_path): Quote the other instance, too.
97754
97755         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97756         (STATIC_BUF_SIZE): Define.
97757         (quotearg_n_options): Use only statically allocated storage when
97758         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97759         than STATIC_BUF_SIZE.
97760
97761 2000-07-29  Jim Meyering  <meyering@lucent.com>
97762
97763         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97764         * lib/dirname.c (dir_name): Likewise.
97765
97766         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97767         `/'.
97768
97769         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97770         (dir_name): Assert that there are no trailing slashes.
97771
97772 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97773
97774         * lib/mbswidth.h (mbswidth): Add a flags argument.
97775         (mbswidth): New declaration.
97776         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97777         * lib/mbswidth.c (mbswidth): Add a flags argument.
97778         (mbsnwidth): New function.
97779
97780 2000-07-24  Jim Meyering  <meyering@lucent.com>
97781
97782         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97783
97784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97785
97786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97787
97788 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97789
97790         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97791         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97792         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97793         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97794         invoke multibyte primitives.
97795
97796 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97797
97798         * lib/quotearg.c:
97799         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97800         so that mbstate_t is always defined.
97801
97802         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97803         be 1 in at least one GCC installation, and this configuration
97804         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97805         performance on hosts that have mbrtowc but have only unibyte
97806         locales, but I assume these hosts are rare.
97807
97808 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97809
97810         * lib/mbswidth.c (_XOPEN_SOURCE):
97811         Don't define; this causes problems on Solaris 7.
97812         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97813
97814 2000-07-23  Jim Meyering  <meyering@lucent.com>
97815
97816         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97817         too: getgrgid, getpwuid, getuid.
97818
97819 2000-07-23  Jim Meyering  <meyering@lucent.com>
97820
97821         * lib/basename.c (base_name): Add an assertion.
97822
97823 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97824
97825         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97826         shadow its mbsinit function.
97827
97828 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97829
97830         * lib/mbswidth.h: New file.
97831         * lib/mbswidth.c: New file.
97832         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97833         (noinst_HEADERS): Add mbswidth.h.
97834
97835 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97836
97837         * lib/config.charset: Add support for FreeBSD. Improve support for
97838         HP-UX and IRIX 6.
97839
97840 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97841
97842         * m4/mbswidth.m4: New file.
97843         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97844
97845 2000-07-15  Jim Meyering  <meyering@lucent.com>
97846
97847         * lib/makepath.c: Include quote.h.
97848         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97849         corresponding argument in a `quote (...)' call.
97850         Give better diagnostics.
97851
97852         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97853         (noinst_HEADERS): Add quote.h.
97854
97855         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97856         from tar's src/misc.c.
97857         * lib/quote.h: New file.  Prototypes for same.
97858
97859 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97860
97861         From a suggestion by Bruno Haible.
97862         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97863         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97864         to decide whether to define the BeOS workaround macro;
97865         this adjusts to the change to AC_MBSTATE_T.
97866
97867 2000-07-14  Jim Meyering  <meyering@lucent.com>
97868
97869         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97870         jm_AC_TYPE_UINTMAX_T.
97871
97872 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97873
97874         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97875
97876         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97877         quotearg_buffer_restyled): Add support for
97878         clocale_quoting_style.  Undo previous change to
97879         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97880         and "{RIGHT QUOTATION MARK}" msgids.
97881
97882 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97883
97884         From a suggestion by Bruno Haible.
97885         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97886         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97887         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97888         and mbstate_t, to a single-part test that simply defines mbstate_t.
97889         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97890         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97891
97892 2000-07-10  Jim Meyering  <meyering@lucent.com>
97893
97894         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97895
97896         * m4/gnu-source.m4: Output to confdefs.h directly.
97897         Suggestion from Akim Demaille.
97898
97899 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97900
97901         The old behavior of quoting `like this' doesn't look good with
97902         newer, ISO-style fonts.  See:
97903         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97904
97905         Instead, quote "like this" by default.  Let the translator
97906         tailor the locale-specific quoting behavior by providing
97907         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97908
97909         * lib/quotearg.c (N_): New macro.
97910         (gettext_default): New function.
97911         (quotearg_buffer_restyled): Use
97912         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97913         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97914
97915 2000-07-09  Jim Meyering  <meyering@lucent.com>
97916
97917         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97918         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97919
97920         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97922
97923 2000-07-09  Jim Meyering  <meyering@lucent.com>
97924
97925         * lib/Most files: Update copyright dates to include 2000.
97926
97927 2000-07-08  Jim Meyering  <meyering@lucent.com>
97928
97929         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97930         if not defined.
97931         (xgethostname): Remove now-unnecessary #ifdef.
97932         Move declaration of `err' into loop where it's used.
97933
97934 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97935         and Bruno Haible  <haible@clisp.cons.org>
97936
97937         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97938         only if the test for an object-type mbstate_t fails.  This
97939         prevents us from mistakenly reporting that mbstate_t is a
97940         system object type after we "#define mbstate_t int" to work
97941         around its lack.
97942
97943 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97944         and Bruno Haible  <haible@clisp.cons.org>
97945
97946         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97947
97948 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97949
97950         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97951         to strerror_r.
97952         Include <ctype.h> for use of isalpha.
97953
97954 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97955
97956         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97957         by allocating a larger buffer. Test the gethostname return value for
97958         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97959         returns an error and ENAMETOOLONG isn't defined.
97960
97961 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97962
97963         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97964         dimension.
97965
97966 2000-07-04  Jim Meyering  <meyering@lucent.com>
97967
97968         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97969         of the deprecated AC_CHECKING.
97970
97971 2000-07-04  Jim Meyering  <meyering@lucent.com>
97972
97973         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97974         Reported by Bruno Haible.
97975
97976 2000-07-04  Jim Meyering  <meyering@lucent.com>
97977
97978         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97979         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97980         lacks mbrtowc.
97981
97982 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97983
97984         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97985         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97986
97987 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97988         and Bruno Haible  <haible@clisp.cons.org>
97989
97990         * lib/quotearg.c (mbrtowc):
97991         Assign to *pwc, and return 1 only if result is nonzero.
97992         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97993
97994 2000-07-03  Jim Meyering  <meyering@lucent.com>
97995
97996         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97997
97998 2000-07-03  Jim Meyering  <meyering@lucent.com>
97999
98000         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98001         This is necessary to get a definition of e.g., UTMP_FILE on
98002         HP-UX 10.20.
98003         From Bob Proulx.
98004
98005 2000-07-02  Jim Meyering  <meyering@lucent.com>
98006
98007         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98008
98009         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98010         AC_LIBOBJ(function_name).
98011         * m4/chown.m4: Likewise.
98012         * m4/fnmatch.m4: Likewise.
98013         * m4/ftruncate.m4: Likewise.
98014         * m4/getgroups.m4: Likewise.
98015         * m4/getline.m4: Likewise.
98016         * m4/group-member.m4: Likewise.
98017         * m4/jm-macros.m4: Likewise.
98018         * m4/lstat.m4: Likewise.
98019         * m4/malloc.m4: Likewise.
98020         * m4/memcmp.m4: Likewise.
98021         * m4/nanosleep.m4: Likewise.
98022         * m4/putenv.m4: Likewise.
98023         * m4/realloc.m4: Likewise.
98024         * m4/regex.m4: Likewise.
98025         * m4/stat.m4: Likewise.
98026         * m4/strftime.m4: Likewise.
98027
98028 2000-07-02  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/quotearg.c (mbstate_t): Don't define here.
98031
98032 2000-07-02  Jim Meyering  <meyering@lucent.com>
98033
98034         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98035
98036 2000-07-01  Jim Meyering  <meyering@lucent.com>
98037
98038         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98039
98040 2000-07-01  Jim Meyering  <meyering@lucent.com>
98041
98042         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98043         problem.
98044
98045 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98046
98047         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98048         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98049
98050 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98051
98052         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98053         per change in ../m4/ls-mntd-fs.m4.
98054         (read_filesystem_list): Ignore symbolic links.
98055
98056 2000-06-29  Jim Meyering  <meyering@lucent.com>
98057
98058         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98059         for declaration of strcmp.
98060
98061         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98062
98063         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98064         Avoid warning by casting result to `char *' to remove `const'.
98065
98066 2000-06-28  Jim Meyering  <meyering@lucent.com>
98067
98068         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98069         included by quotearg.c, for which we perform this test.  From
98070         Bruno Haible.
98071
98072 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98073
98074         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98075         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98076         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98077
98078 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98079
98080         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98081
98082 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98083
98084         savedir now sets errno on failure and invokes xmalloc to get memory.
98085         Fix a couple of other minor bugs while we're at it.
98086
98087         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98088         (NAMLEN): Remove macro.
98089         (malloc, realloc): Remove decls.
98090         (stpcpy): Likewise.
98091         ("xalloc.h"): Include.
98092         (NAME_SIZE_DEFAULT): New macro.
98093         (savedir): Use xmalloc / xrealloc to allocate memory.
98094         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98095         Skip "" directory entries.
98096         Use strlen to calculate directory entry length, since the old method
98097         is rarely used these days and isn't worth supporting.
98098         Don't use a pointer after freeing it.
98099         Check for integer overflow when calculating allocation size.
98100         Use memcpy to copy entries, instead of stpcpy.
98101         Set errno properly when returning NULL.
98102         Check for readdir error.
98103
98104 2000-06-26  Jim Meyering  <meyering@lucent.com>
98105
98106         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98107
98108 2000-06-25  Jim Meyering  <meyering@lucent.com>
98109
98110         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98111         Linux header bug when _XOPEN_SOURCE is defined to 500.
98112
98113 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98114
98115         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98116         deficiency.
98117
98118 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98119
98120         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98121         Include xalloc.h.
98122         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98123
98124 2000-06-24  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98127         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98128         for which strerror does return char*, but which lacks a conveniently
98129         accessible declaration of the function.  If the compile-test says
98130         strerror_r doesn't work, then resort to a `run'-test that works on
98131         BeOS and segfaults on DEC Unix.
98132
98133 2000-06-24  Jim Meyering  <meyering@lucent.com>
98134
98135         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98136
98137 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98138
98139         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98141
98142 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98143
98144         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98145         (mbrtowc, mbstate_t): Define substitutes if
98146         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98147         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98148         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98149
98150 2000-06-23  Jim Meyering  <meyering@lucent.com>
98151
98152         * m4/afs.m4: Add missing AC_MSG_RESULT.
98153         Reported by Bruno Haible.
98154
98155         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98156         Suggestion from Bruno Haible.
98157
98158 2000-06-23  Jim Meyering  <meyering@lucent.com>
98159
98160         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98161
98162 2000-06-21  Jim Meyering  <meyering@lucent.com>
98163
98164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98165
98166 2000-06-21  Jim Meyering  <meyering@lucent.com>
98167
98168         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98169         (noinst_HEADERS): Add getstr.h.
98170
98171         * lib/getline.c (getstr): Move into a separate file.
98172         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98173         the following changes: new parameter, delim2; both delim[12]
98174         parameters have type `int', not `char'.  The latter would lose
98175         with 8-bit delimiters.
98176         * lib/getstr.h: New file.
98177
98178 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98179
98180         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98181         than 1024, return a memory chunk of least possible size, instead
98182         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98183         Use free/xmalloc instead of xrealloc to avoid copying for very long
98184         paths.
98185
98186 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98187
98188         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98189         the empty string.
98190
98191 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98192
98193         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98194         address, not strdup.  Include <stdlib.h> and don't declare free().
98195
98196 2000-06-19  Jim Meyering  <meyering@lucent.com>
98197
98198         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98199
98200 2000-06-18  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98203
98204         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98205         `checking whether...' message to be consistent with that of the
98206         lstat test.
98207
98208 2000-06-18  Jim Meyering  <meyering@lucent.com>
98209
98210         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98211         Besides, these days every porting target provides a mkdir function.
98212
98213         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98214         needed. (this snippet comes from src/system.h).
98215
98216 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98217
98218         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98219
98220 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98221
98222         * lib/human.c (adjust_value): New function.
98223         (human_readable_inexact): Apply rounding style even when
98224         printing approximate values.
98225
98226 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98227
98228         * lib/human.c (human_readable_inexact): Allow an input block
98229         size that is not a multiple of the output block size, and vice versa.
98230         Reported by Piergiorgio Sartor.
98231
98232 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98233
98234         * lib/getdate.y (get_date): Apply relative times after time
98235         zone indicator, not before.  Reported by Todd A. Jacobs.
98236
98237 2000-06-13  Jim Meyering  <meyering@lucent.com>
98238
98239         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98240
98241         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98242
98243 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98244
98245         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98246
98247 2000-06-12  Jim Meyering  <meyering@lucent.com>
98248
98249         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98250         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98251         optional argument.
98252         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98253         the optional argument, `lib'.
98254
98255 2000-06-08  Jim Meyering  <meyering@lucent.com>
98256
98257         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98258
98259 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98260
98261         Rewrite largefile configuration so that we don't need to run
98262         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98263         AC_CANONICAL_HOST in configure.in -- jmm]
98264
98265         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98266         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98267         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98268         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98269         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98270         All uses changed.
98271         Instead of inspecting the output of getconf, try to compile the
98272         test program without and with the macro definition.
98273         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98274         for getconf.  Instead, check for the needed flags by compiling
98275         test programs.
98276
98277 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98278
98279         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98280
98281 2000-06-04  Jim Meyering  <meyering@lucent.com>
98282
98283         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98284         SunOS 4.1.4 for which gid_t is an unsigned type.
98285
98286 2000-06-03  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98289         now that autoconf requires that.
98290
98291         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98292         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98293         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98294
98295 2000-06-03  Jim Meyering  <meyering@lucent.com>
98296
98297         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98298
98299 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98300
98301         * m4/glibc21.m4: New file.
98302         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98303
98304 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98305
98306         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98307         newer, don't install charset.alias.
98308         * lib/config.charset: Change the Linux/glibc rules so they become empty
98309         on glibc-2.1 or newer.
98310
98311 2000-06-02  Jim Meyering  <meyering@lucent.com>
98312
98313         * lib/mountlist.c: Back out last change.  Instead, do this...
98314         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98315         me_dummy member using the same `ignore'-testing code.
98316         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98317         fs_type strings.
98318         From Mark D. Roth.
98319
98320 2000-05-29  Jim Meyering  <meyering@lucent.com>
98321
98322         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98323         mounts with the `ignore' attribute.  Based on a patch from
98324         Mark D. Roth.
98325
98326 2000-05-28  Jim Meyering  <meyering@lucent.com>
98327
98328         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98329         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98330         * m4/stat.m4: Likewise.
98331         * m4/lstat.m4: Likewise.
98332         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98333
98334         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98335         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98336
98337 2000-05-26  Jim Meyering  <meyering@lucent.com>
98338
98339         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98340
98341 2000-05-24  Jim Meyering  <meyering@lucent.com>
98342
98343         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98344         autoconf requires that.
98345         * m4/lib-check.m4: Likewise.
98346         * m4/jm-macros.m4: Likewise.
98347         * m4/strftime.m4: Likewise.
98348
98349         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98350         AC_CHECK_DECLS, now that autoconf requires that.
98351
98352 2000-05-22  Jim Meyering  <meyering@lucent.com>
98353
98354         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98355         * m4/lstat.m4: Likewise.
98356
98357 2000-05-22  Jim Meyering  <meyering@lucent.com>
98358
98359         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98360
98361 2000-05-20  Jim Meyering  <meyering@lucent.com>
98362
98363         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98364         (jm_PREREQ): Use it.
98365
98366 2000-05-18  Jim Meyering  <meyering@lucent.com>
98367
98368         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98369         back, too, since it may have been modified by allocate_entry.
98370         (hash_delete): Rewrite to use neither the assignment operator
98371         nor the comma operator in an if-expression.
98372
98373 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98374
98375         * lib/closeout.c:
98376         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98377         Remove; no longer needed.
98378         "quotearg.h": Add include.
98379         (file_name): Do not bother to explicitly initialize to NULL; it's less
98380         efficient on some hosts.
98381         (close_stdout_status): Remove test as to whether stdout was already
98382         closed; it breaks for the case "echo x | sort >&-".
98383         Quote file name colons.
98384         Do not assume that _("write error") lacks format strings.
98385
98386 2000-05-15  Jim Meyering  <meyering@lucent.com>
98387
98388         * lib/version-etc.c (version_etc_copyright): Update the copyright
98389         string used in all --version output.
98390
98391 2000-05-14  Jim Meyering  <meyering@lucent.com>
98392
98393         * lib/closeout.c (close_stdout_set_file_name): New function.
98394         (close_stdout_status): Use new file-scoped global.
98395         Return right away if fstat says the stdout file descriptor is invalid.
98396         * lib/closeout.h (close_stdout_set_file_name): Declare.
98397
98398 2000-05-10  Jim Meyering  <meyering@lucent.com>
98399
98400         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98401         (close_stdout_set_status): New function.
98402         * lib/closeout.h (close_stdout_set_status): Declare.
98403
98404 2000-05-09  Jim Meyering  <meyering@lucent.com>
98405
98406         * m4/gettext.m4: Rename this...
98407         * m4/libintl.m4: ...to this.
98408
98409 2000-05-08  Jim Meyering  <meyering@lucent.com>
98410
98411         * lib/long-options.c: Don't include closeout.h.
98412         (parse_long_options): Don't call close_stdout for --version.
98413
98414 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98415
98416         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98417         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98418         2.1.3 bug.  This avoids a clash when files like regex.c define
98419         _GNU_SOURCE.
98420
98421 2000-05-06  Jim Meyering  <meyering@lucent.com>
98422
98423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98424         (AC_REPLACE_FUNCS): Add strnlen.
98425
98426         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98427         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98428
98429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98430         AC_SEARCH_LIBS call for nanosleep.
98431         (LIB_NANOSLEEP): Set and AC_SUBST.
98432
98433 2000-05-06  Jim Meyering  <meyering@lucent.com>
98434
98435         * lib/strnlen.c: Undefine __strnlen and strnlen.
98436         [!weak_alias]: Define __strnlen to strnlen.
98437
98438         * lib/atexit.c: New file, from libiberty.
98439
98440 2000-05-06  Jim Meyering  <meyering@lucent.com>
98441
98442         * lib/closeout.c (close_stdout_status): Also check for errors on the
98443         stderr stream.
98444
98445 2000-05-05  Jim Meyering  <meyering@lucent.com>
98446
98447         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98448         AC_SEARCH_LIBS call for clock_gettime.
98449         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98450
98451         * m4/search-libs.m4: Update from autoconf.
98452
98453         su doesn't work on Solaris 2.6.
98454         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98455         <shadow.h>.  Reported by Dragos Harabor.
98456
98457 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98458
98459         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98460         memcpy instead of xmalloc, xrealloc, path_concat.
98461         (locale_charset): Treat empty environment variables as absent.
98462         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98463
98464 2000-05-04  Jim Meyering  <meyering@lucent.com>
98465
98466         * lib/getopt.c: Update from glibc.
98467         * lib/obstack.c: Likewise.
98468         * lib/obstack.h: Likewise.
98469         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98470         file
98471
98472         * lib/regex.h: Likewise.
98473         * lib/strndup.c: Likewise.
98474         * lib/strnlen.c: New file, from glibc.
98475
98476 2000-05-03  Jim Meyering  <meyering@lucent.com>
98477
98478         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98479
98480 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98481
98482         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98483         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98484         compile-time test, rather than inspecting host and OS, to
98485         decide whether to define _LARGEFILE_SOURCE.
98486
98487 2000-05-01  Jim Meyering  <meyering@lucent.com>
98488
98489         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98490
98491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98492         Based on a patch from Bruno Haible.
98493
98494 2000-05-01  Jim Meyering  <meyering@lucent.com>
98495
98496         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98497
98498 2000-04-29  Jim Meyering  <meyering@lucent.com>
98499
98500         * lib/path-concat.c: Declare strdup only if it's not defined.
98501         * lib/canon-host.c: Likewise.
98502
98503 2000-04-28  Jim Meyering  <meyering@lucent.com>
98504
98505         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98506         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98507         is included first, then limits.h is included by locale.h by libintl.h.
98508         From John David Anglin.
98509
98510 2000-04-25  Jim Meyering  <meyering@lucent.com>
98511
98512         * lib/makepath.c (S_IRWXUGO): Define.
98513         (make_path): Always perform explicit chmod if MODE specifies any
98514         of the `special' permission bits.  Prompted by a bug report against
98515         install from Mate Wierdl and Joost van Baal.
98516
98517 2000-04-18  Jim Meyering  <meyering@lucent.com>
98518
98519         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98520         (jm_PREREQ): Use it.
98521
98522 2000-04-18  Jim Meyering  <meyering@lucent.com>
98523
98524         * lib/README: New file.
98525
98526         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98527         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98528
98529 2000-04-17  Jim Meyering  <meyering@lucent.com>
98530
98531         Get it right :-)
98532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98533         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98534         Suggestion from Akim Demaille.
98535
98536 2000-04-17  Jim Meyering  <meyering@lucent.com>
98537
98538         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98539         the definition of it to rpl_strftime also defined-away the system's
98540         declaration.
98541
98542 2000-04-15  Jim Meyering  <meyering@lucent.com>
98543
98544         Use `C' to denote so-called `contiguous' files, the same way
98545         that tar does.
98546         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98547         (ftypelet): Use S_ISCTG.
98548         From Michael Deutschmann.
98549
98550 2000-04-14  Jim Meyering  <meyering@lucent.com>
98551
98552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98553         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98554         clobbered.
98555
98556 2000-04-14  Jim Meyering  <meyering@lucent.com>
98557
98558         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98559
98560 2000-04-13  Jim Meyering  <meyering@lucent.com>
98561
98562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98563         AH_VERBATIM to insert required #ifndef into config.h.in.
98564         Suggestion from Akim Demaille.
98565
98566 2000-04-12  Jim Meyering  <meyering@lucent.com>
98567
98568         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98569         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98570         Christian Krackowizer.
98571
98572         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98573         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98574         (AC_SYS_LARGEFILE): Require.
98575         (AM_C_PROTOTYPES): Require.
98576
98577 2000-04-08  Jim Meyering  <meyering@lucent.com>
98578
98579         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98580         names don't conflict.  Reported by Eli Zaretskii.
98581
98582 2000-04-07  Jim Meyering  <meyering@lucent.com>
98583
98584         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98585         sys/types.h, to work around system header problems on AIX 3.2.5.
98586         From Bruno Haible.
98587
98588 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98589
98590         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98591         bug.  Deal with the different error behavior of Irix iconv.
98592
98593 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98594
98595         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98596         IRIX if the installer said otherwise.
98597
98598 2000-04-05  Jim Meyering  <meyering@lucent.com>
98599
98600         Portability tweaks required for ultrix4.3.
98601         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98602         (jm_CHECK_DECLS): Add getutent to the list of functions.
98603         (_jm_DECL_HEADERS): Add utmpx.h.
98604         From John David Anglin.
98605
98606         * m4/strftime.m4: Back out the 2000-04-02 change.
98607         Instead of that change, simply undefine putenv in the test program.
98608
98609 2000-04-05  Jim Meyering  <meyering@lucent.com>
98610
98611         Portability tweaks required for ultrix4.3.
98612         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98613         getutent.
98614         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98615         * lib/canon-host.c: Declare strdup.
98616         * lib/path-concat.c: Likewise.
98617         From John David Anglin.
98618
98619 2000-04-04  Jim Meyering  <meyering@lucent.com>
98620
98621         Be more DOS 8.3-friendly.
98622         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98623         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98624         * lib/Makefile.am: Reflect renaming.
98625         Reported by Eli Zaretskii.
98626
98627         Use a temporary file name that won't clash with `charset.alias'
98628         in the DOS 8.3 name space.
98629         * lib/Makefile.am (charset_tmp): Define.
98630         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98631         (uninstall-local): Likewise.
98632         Reported by Eli Zaretskii.
98633
98634 2000-04-03  Jim Meyering  <meyering@lucent.com>
98635
98636         * m4/gettext.m4: Fix typo in comment.
98637
98638         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98639         textutils/configure.in).  Suggestion from Paul Eggert.
98640         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98641
98642 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98643
98644         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98645         variable in the shell rather than using putenv, which isn't
98646         portable.  This avoids the configure-time inter-test dependency
98647         on the potentially-renamed putenv function.
98648
98649 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98650
98651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98652         before checking struct stat.st_blksize, so that
98653         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98654
98655 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98656
98657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98658         since strftime.c uses HAVE_STRFTIME to decide whether to use
98659         the underlying strftime.
98660
98661 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98662
98663         * lib/time/strftime.c (my_strftime): Make sure we call the system
98664         strftime, not ourselves, when invoking the underlying strftime.
98665
98666 2000-03-24  Jim Meyering  <meyering@lucent.com>
98667
98668         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98669         (charset_alias): Define.
98670         (install-exec-local): Factor out common code.
98671         (uninstall-local): Split lines longer than 80.
98672         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98673         (SUFFIXES): Define.
98674         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98675         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98676
98677 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98678
98679         * lib/config.charset: Output a line containing "Packages using this
98680         file".
98681         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98682         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98683         ref-del.sed): New rules.
98684
98685 2000-03-17  Jim Meyering  <meyering@lucent.com>
98686
98687         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98688         Otherwise, include <strings.h>
98689
98690 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98691
98692         * lib/unicodeio.c (utf8_wctomb): New function.
98693         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98694         format instead of in UCS-4 with platform dependent endianness.
98695
98696 2000-03-10  Jim Meyering  <meyering@lucent.com>
98697
98698         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98699         From Marco Franzen.
98700
98701 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98702
98703         * lib/savedir.c (savedir): Work even if directory size is
98704         negative; this can happen with some screwy NFS configurations.
98705
98706 2000-03-06  Jim Meyering  <meyering@lucent.com>
98707
98708         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98709         if it's NULL (because we ran out of memory).  From Bruno Haible.
98710
98711 2000-03-05  Jim Meyering  <meyering@lucent.com>
98712
98713         * lib/localcharset.c ("path-concat.h"): Include.
98714         (get_charset_aliases): Use path_concat instead of ANSI string
98715         concatenation.
98716
98717         * lib/unicodeio.h (PARAMS): Define.
98718         Use it to guard prototype.
98719
98720 2000-03-04  Jim Meyering  <meyering@lucent.com>
98721
98722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98723         for lib/localcharset.c.
98724
98725 2000-03-04  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98728         installing into it.
98729         (uninstall-local): Uncomment this rule so `make distcheck' works
98730         once again.
98731
98732         * lib/unicodeio.c (<errno.h>): Include it.
98733         (errno): Declare if not defined.
98734
98735         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98736
98737         * lib/config.charset: New version, incorporating remarks from a linux
98738         i18n mailing list.  From Bruno Haible.
98739
98740 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98741
98742         * m4/codeset.m4: New file.
98743         * m4/iconv.m4: New file.
98744         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98745
98746 2000-03-03  Jim Meyering  <meyering@lucent.com>
98747
98748         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98749
98750 2000-03-02  Jim Meyering  <meyering@lucent.com>
98751
98752         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98753         the messages come out on separate lines.
98754
98755         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98756         rather than jm_CHECK_DECLARATIONS.
98757         * m4/decl.m4: Remove now-unused file.
98758
98759         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98760         geteuid.
98761
98762 2000-03-02  Jim Meyering  <meyering@lucent.com>
98763
98764         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98765
98766 2000-03-01  Jim Meyering  <meyering@lucent.com>
98767
98768         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98769         * lib/unicodeio.c: Likewise.
98770
98771 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98772
98773         * lib/config.charset: New file.
98774         * lib/localcharset.c: New file.
98775         * lib/unicodeio.h, lib/unicodeio.c: New files.
98776         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98777         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98778         (noinst_HEADERS): Add unicodeio.h.
98779         (all-local, install-exec-local, charset.alias): New targets.
98780
98781 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98782
98783         * lib/quotearg.c (ALERT_CHAR): New macro.
98784         (quotearg_buffer_restyled): Use it.
98785
98786 2000-02-27  Jim Meyering  <meyering@lucent.com>
98787
98788         * m4/check-decl.m4: Add getenv to the list.
98789
98790 2000-02-27  Jim Meyering  <meyering@lucent.com>
98791
98792         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98793         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98794
98795         * lib/backupfile.c: Guard inclusion of stdlib.h with
98796         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98797         Declare malloc if needed.
98798
98799         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98800         `#ifndef HAVE_DECL..'
98801         now that autoconf always defines the HAVE_DECL_ symbols.
98802         * lib/human.c: Likewise.
98803         * lib/same.c: Likewise.
98804         * lib/strtoumax.c: Likewise.
98805
98806         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98807         declaration check was not run.
98808         * lib/hash.c: Likewise.
98809         * lib/human.c: Likewise.
98810         * lib/same.c: Likewise.
98811         * lib/strtoumax.c: Likewise.
98812
98813         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98814         `.', then first look up the entire `.'-containing string as a login
98815         name.
98816
98817 2000-02-23  Jim Meyering  <meyering@lucent.com>
98818
98819         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98820         in place of my hack.
98821
98822 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98823
98824         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98825         (textint): New typedef.
98826         (parser_control): Member year changed from int to textint.
98827         All uses changed.
98828         (YYSTYPE): Removed; replaced by %union with int and textint members.
98829         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98830         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98831         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98832         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98833         (date, number, to_year): Use width of number in digits, not its value,
98834         to determine whether it's a 2-digit year, or a 2-digit time.
98835         (yylex): Store number of digits of numeric tokens.
98836         Reported by John Kendall.
98837
98838         (parser_control): Changed from struct parser_control to typedef (for
98839         consistency).  All uses changed.
98840
98841         (tID): Removed; not used.
98842         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98843
98844 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98845
98846         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98847         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98848
98849 2000-02-12  Jim Meyering  <meyering@lucent.com>
98850
98851         * lib/userspec.c (ISDIGIT): Define it.
98852         (isdigit): Remove definition.
98853         (is_number): Use ISDIGIT, not isdigit.
98854         <libintl.h>: Include.
98855         (_ and N_): Define.
98856         (parse_user_spec): Mark translatable strings.
98857
98858 2000-02-10  Jim Meyering  <meyering@lucent.com>
98859
98860         With these changes, nanosleep.[ch] are finally enough like the other
98861         lib/* replacement files to compile on a few more losing systems.
98862
98863         * lib/nanosleep.h: Don't include config.h.
98864         Remove prototype from declaration of nanosleep.
98865         (PARAMS): Remove now-unneeded definition.
98866         * lib/nanosleep.c: #undef nanosleep.
98867         (rpl_nanosleep): Rename from nanosleep.
98868
98869 2000-02-10  Jim Meyering  <meyering@lucent.com>
98870
98871         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98872         gnu_nanosleep to rpl_nanosleep.
98873
98874 2000-02-09  Jim Meyering  <meyering@lucent.com>
98875
98876         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98877         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98878
98879 2000-02-08  Akim Demaille  <akim@epita.fr>
98880
98881         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98882         `[' and `]' and remove uses of `changequote'.
98883         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98884         (AC_SYS_LARGEFILE): Likewise.
98885         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98886         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98887         of changequote.
98888         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98889         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98890         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98891         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98892
98893 2000-02-05  Jim Meyering  <meyering@lucent.com>
98894
98895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98896         Remove explicit use of AC_HEADER_TIME.  It is required by
98897         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98898         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98899         in autoconf whereby the expansion of the latter ended up preceding
98900         the expansion of its prerequisite, AC_HEADER_TIME.
98901         Reported by Volker Borchert.
98902
98903 2000-02-03  Jim Meyering  <meyering@lucent.com>
98904
98905         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98906
98907 2000-02-03  Jim Meyering  <meyering@lucent.com>
98908
98909         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98910         rather than with `#if HAVE_UTMPNAME'.
98911
98912 2000-02-02  Jim Meyering  <meyering@lucent.com>
98913
98914         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98915         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98916         Reported by Eli Zaretskii.
98917
98918 2000-02-01  Jim Meyering  <meyering@lucent.com>
98919
98920         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98921
98922 2000-01-31  Jim Meyering  <meyering@lucent.com>
98923
98924         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98925         functions.  Add the time.h and sys/time.h headers along with the
98926         AC_REQUIRE'ment of AC_HEADER_TIME.
98927
98928 2000-01-31  Jim Meyering  <meyering@lucent.com>
98929
98930         * lib/nanosleep.h (nanosleep): Guard declaration with
98931         `#if ! HAVE_DECL_NANOSLEEP'.
98932         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98933         the declaration in that vendor's sys/timers.h.
98934         Reported by Christian Krackowizer.
98935
98936         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98937         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98938         (ISPRINT): Likewise.
98939         Reported by Tom Tromey.
98940
98941 2000-01-30  Jim Meyering  <meyering@lucent.com>
98942
98943         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98944
98945         * m4/prereq.m4 (utmp_includes): Define.
98946         Check for ut_user and ut_name members in both struct utmpx
98947         and struct utmp.
98948
98949 2000-01-30  Jim Meyering  <meyering@lucent.com>
98950
98951         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98952         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98953         header files where only utmpx.ut_user is declared.
98954
98955         * lib/readutmp.h (UT_USER): Define.
98956
98957 2000-01-29  Jim Meyering  <meyering@lucent.com>
98958
98959         * m4/lib-check.m4: New file containing library-related checks from
98960         fileutils and sh-utils (textutils had none).
98961
98962 2000-01-28  Jim Meyering  <meyering@lucent.com>
98963
98964         * m4/perl.m4: Change format of warning message to look more like that
98965         from the missing script.  Suggestion from François Pinard.
98966
98967 2000-01-25  Jim Meyering  <meyering@lucent.com>
98968
98969         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98970         well as time.h in the compile check.
98971         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98972         Fix typo in cross-compiling case: s/yes/no/.
98973
98974 2000-01-23  Jim Meyering  <meyering@lucent.com>
98975
98976         * m4/jm-macros.m4: Move df-related tests here from
98977         fileutils/configure.in
98978
98979         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98980         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98981
98982         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98983         s/space/ac_fsusage_space/.
98984         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98985
98986         * m4/ftruncate.m4: New file (derived from part of
98987         fileutils/configure.in).
98988         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98989         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98990
98991         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98992         AC_SUBST these here, rather than just in sh-util/configure.in, so
98993         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98994         all the same.
98995         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98996         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98997         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98998         (AC_SUBST(POW_LIBM)): Likewise.
98999         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99000
99001 2000-01-23  Jim Meyering  <meyering@lucent.com>
99002
99003         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99004         obstack.c.
99005
99006 2000-01-22  Jim Meyering  <meyering@lucent.com>
99007
99008         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99009
99010         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99011
99012         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99013         configure.in
99014         (AC_CHECK_HEADERS): Likewise for sh-utils.
99015         (AC_CHECK_HEADERS): Likewise for textutils.
99016         Merge the three lists of headers.
99017
99018         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99019         from fileutils' configure.in.
99020
99021         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99022         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99023         check-decl.m4.
99024
99025         * m4/check-decl.m4: Use #if rather than #ifdef.
99026         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99027         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99028         (_jm_DECL_HEADERS): Define new function.
99029         (jm_CHECK_DECLARATIONS): Require it.
99030
99031 2000-01-22  Jim Meyering  <meyering@lucent.com>
99032
99033         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99034         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99035         Required for some AIX systems.  Reported by Christian Krackowizer.
99036         [TESTING] (main): New function.
99037
99038         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99039         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99040         letters.
99041
99042         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99043         iswprint.
99044
99045         * lib/strverscmp.c (ISDIGIT): Define.
99046         (strverscmp): Use ISDIGIT, not isdigit.
99047
99048 2000-01-19  Jim Meyering  <meyering@lucent.com>
99049
99050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99051         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99052         defines `struct timespec' in <sys/time.h>
99053
99054         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99055         Thanks to Akim for explaining.
99056
99057 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99058
99059         * lib/nanosleep.c (nanosleep):
99060         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99061         POSIX.1 doesn't require SA_INTERRUPT and some systems
99062         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99063         it's been part of POSIX.1 since day 1 (in 1988).
99064
99065 2000-01-17  Jim Meyering  <meyering@lucent.com>
99066
99067         * lib/interlock: Remove unused file.  Reported by François Pinard.
99068
99069 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99070
99071         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99072         alert, backslash, formfeed, and vertical tab unnecessarily in
99073         shell quoting style.
99074
99075 2000-01-16  Jim Meyering  <meyering@lucent.com>
99076
99077         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99078         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99079         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99080         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99081
99082 2000-01-16  Jim Meyering  <meyering@lucent.com>
99083
99084         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99085         because the latter didn't work.
99086
99087 2000-01-15  Jim Meyering  <meyering@lucent.com>
99088
99089         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99090         (AC_REPLACE_FUNCS): Add memcpy and memset.
99091         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99092         Add strpbrk.
99093         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99094
99095 2000-01-12  Jim Meyering  <meyering@lucent.com>
99096
99097         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99098         (jm_PREREQ): Use it.
99099         (jm_PREREQ_READUTMP): New macro.
99100         (jm_PREREQ): Use it.
99101
99102 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99103
99104         Quote multibyte characters correctly.
99105         * m4/c-bs-a.m4: New file.
99106         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99107         (jm_PREREQ): Use it.
99108
99109 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99110
99111         * m4/uintmax_t.m4: Port to autoconf 2.13.
99112
99113 2000-01-08  Jim Meyering  <meyering@ascend.com>
99114
99115         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99116         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99117
99118 2000-01-04  Jim Meyering  <meyering@ascend.com>
99119
99120         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99121         jm_STRUCT_DIRENT_D_TYPE.
99122         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99123         jm_STRUCT_DIRENT_D_INO.
99124         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99125         jm_STRUCT_UTIMBUF.
99126         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99127         renamings.
99128         * m4/utime.m4: Likewise.
99129
99130         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99131         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99132
99133 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99134
99135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99136         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99137
99138 2000-01-02  Jim Meyering  <meyering@ascend.com>
99139
99140         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99141         remember if this is necessary.
99142
99143 1999-12-26  Jim Meyering  <meyering@ascend.com>
99144
99145         * m4/jm-macros.m4: Use it here.
99146         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99147
99148 1999-12-23  Jim Meyering  <meyering@ascend.com>
99149
99150         * m4/jm-macros.m4: Check for clock_gettime (moved from
99151         fileutils/configure.in)
99152         Check for gettimeofday.
99153
99154 1999-12-20  Jim Meyering  <meyering@ascend.com>
99155
99156         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99157         autoconf-2.14a-1999-12-20.
99158
99159 1999-12-19  Jim Meyering  <meyering@ascend.com>
99160
99161         * m4/lstat-slash.m4: New file.
99162         * m4/jm-macros.m4: Use the new macro:
99163         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99164
99165 1999-12-07  Jim Meyering  <meyering@ascend.com>
99166
99167         * m4/perl.m4: Require that File::Compare be available, too.
99168         Too many systems seem to lack it.
99169
99170         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99171         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99172
99173 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99174
99175         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99176         problem with the QNX 4.25 shell, which doesn't propagate exit
99177         status of failed commands inside shell assignments.
99178
99179 1999-11-17  Jim Meyering  <meyering@ascend.com>
99180
99181         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99182
99183 1999-11-07  Jim Meyering  <meyering@ascend.com>
99184
99185         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99186
99187 1999-11-06  Jim Meyering  <meyering@ascend.com>
99188
99189         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99190         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99191
99192 1999-11-05  Jim Meyering  <meyering@ascend.com>
99193
99194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99195         configure.in of textutils, fileutils, and sh-utils into this one
99196         (shared between those packages) file.
99197         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99198         AC_STRUCT_ST_BLKSIZE.
99199
99200 1999-11-03  Jim Meyering  <meyering@ascend.com>
99201
99202         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99203         of AC_CHECK_TYPE checks includes unistd.h.
99204         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99205         Suggestion from Akim Demaille.
99206
99207 1999-10-30  Jim Meyering  <meyering@ascend.com>
99208
99209         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99210         m4-quoted string.
99211         * m4/ls-mntd-fs.m4: Likewise.
99212         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99213         * m4/jm-winsz1.m4: Likewise.
99214
99215         * m4/const.m4: Remove file, since the fix made it into the experimental
99216         version of autoconf.
99217         * m4/mktime.m4: Likewise.
99218
99219         * m4/check-type.m4: Remove file, now that the latest version of
99220         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99221
99222         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99223         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99224         AC_CHECK_TYPE.
99225
99226 1999-10-04  Jim Meyering  <meyering@ascend.com>
99227
99228         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99229
99230 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99231
99232         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99233         2.95.1 bug with HP-UX 10.20.
99234
99235 1999-09-17  Jim Meyering  <meyering@ascend.com>
99236
99237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99238         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99239         due to missing strdup (against sh-utils-2.0).
99240
99241 1999-08-29  Jim Meyering  <meyering@ascend.com>
99242
99243         * m4/jm-macros.m4: Require jm_BISON.
99244         * m4/bison.m4: New file.
99245
99246 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99247
99248         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99249         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99250
99251 1999-08-05  Jim Meyering  <meyering@ascend.com>
99252
99253         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99254         to avoid conflicts with `conftest' on 8+3 filesystems.
99255         Suggestion from Eli Zaretskii.
99256
99257 1999-08-04  Jim Meyering  <meyering@ascend.com>
99258
99259         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99260         fileutils and sh-utils (textutils's getline test was inadequate).
99261         (AM_FUNC_GETLINE): Run this test.
99262         (AC_CHECK_FUNCS): Check for getdelim.
99263         Reported by Bob Proulx.
99264
99265 1999-08-02  Jim Meyering  <meyering@ascend.com>
99266
99267         * m4/jm-macros.m4: Add a comment.
99268
99269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99270
99271         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99272         <inttypes.h> defines strtoumax as a macro (and not as a
99273         function).
99274
99275 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99276
99277         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99278         that we can shift, multiply and divide unsigned long long
99279         values; Ultrix cc can't do it.
99280
99281 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99282
99283         * m4/mktime.m4: New file, which is a preview of what should appear
99284         in the next public autoconf release.
99285
99286 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99287
99288         * m4/lfs.m4: Remove this file.
99289         * m4/largefile.m4: New file.  It contains the old contents of
99290         lfs.m4, except that all names with prefix AC_LFS have been
99291         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99292         compatible with future autoconf versions.  Also, some minor m4
99293         quoting problems have been fixed.
99294
99295 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99296
99297         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99298         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99299         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99300         and simplify the shell code.
99301
99302 1999-08-01  Jim Meyering  <meyering@ascend.com>
99303
99304         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99305         m4.
99306
99307 1999-07-20  Jim Meyering  <meyering@ascend.com>
99308
99309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99310
99311 1999-07-15  Jim Meyering  <meyering@ascend.com>
99312
99313         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99314
99315 1999-05-22  Jim Meyering  <meyering@ascend.com>
99316
99317         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99318
99319 1999-05-20  Jim Meyering  <meyering@ascend.com>
99320
99321         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99322         Add a colon after each `then' in case $4 is empty.
99323
99324 1999-05-16  Jim Meyering  <meyering@ascend.com>
99325
99326         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99327
99328 1999-05-10  Jim Meyering  <meyering@ascend.com>
99329
99330         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99331
99332         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99333         AC_FUNC_MKTIME.
99334
99335 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99336
99337         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99338
99339 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99340
99341         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99342         not CPPFLAGS, so that linking works correctly in IRIX.
99343
99344 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99345
99346         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99347
99348 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99349
99350         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99351         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99352         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99353         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99354         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99355
99356         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99357
99358 1999-04-20  Jim Meyering  <meyering@ascend.com>
99359
99360         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99361         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99362         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99363
99364 1999-04-18  Jim Meyering  <meyering@ascend.com>
99365
99366         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99367         * m4/jm-macros.m4: Use it.
99368
99369 1999-04-06  Jim Meyering  <meyering@ascend.com>
99370
99371         * m4/strftime.m4: Remove test for %f.
99372
99373 1999-03-29  Jim Meyering  <meyering@ascend.com>
99374
99375         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99376         superset of the AC_TYPE_* checks in the textutils, fileutils,
99377         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99378         AC_TYPE_PID_T.
99379
99380 1999-03-28  Jim Meyering  <meyering@ascend.com>
99381
99382         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99383         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99384         replaced e.g., in the *.sh files of the sh-utils.
99385
99386 1999-03-20  Jim Meyering  <meyering@ascend.com>
99387
99388         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99389         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99390         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99391
99392 1999-03-19  Jim Meyering  <meyering@ascend.com>
99393
99394         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99395
99396 1999-03-12  Jim Meyering  <meyering@ascend.com>
99397
99398         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99399
99400 1999-03-07  Jim Meyering  <meyering@ascend.com>
99401
99402         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99403         declared.
99404
99405 1999-02-17  Jim Meyering  <meyering@ascend.com>
99406
99407         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99408         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99409
99410 1999-02-07  Jim Meyering  <meyering@ascend.com>
99411
99412         * m4/group-member.m4: New file -- extracted from sh-utils'
99413         configure.in.
99414
99415         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99416         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99417
99418 1999-02-06  Jim Meyering  <meyering@ascend.com>
99419
99420         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99421         * m4/fnmatch.m4: Likewise.
99422         * m4/getgroups.m4: Likewise.
99423         * m4/lstat.m4: Likewise.
99424         * m4/malloc.m4: Likewise.
99425         * m4/putenv.m4: Likewise.
99426         * m4/realloc.m4: Likewise.
99427         * m4/regex.m4: Likewise.
99428         * m4/stat.m4: Likewise.
99429         * m4/strftime.m4: Likewise.
99430         Suggestion from Alain Magloire.
99431
99432         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99433         * m4/fnmatch.m4: Likewise.
99434         * m4/getgroups.m4: Likewise.
99435         * m4/getline.m4: Likewise.
99436         * m4/lstat.m4: Likewise.
99437         * m4/malloc.m4: Likewise.
99438         * m4/memcmp.m4: Likewise.
99439         * m4/putenv.m4: Likewise.
99440         * m4/realloc.m4: Likewise.
99441         * m4/regex.m4: Likewise.
99442         * m4/stat.m4: Likewise.
99443         * m4/strftime.m4: Likewise.
99444         Suggestion from Alain Magloire.
99445
99446         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99447         an argument.
99448
99449         * m4/regex.m4: Add a run-time Test for proper operation of
99450         re_compile_pattern.
99451
99452 1999-01-31  Jim Meyering  <meyering@ascend.com>
99453
99454         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99455
99456 1999-01-30  Jim Meyering  <meyering@ascend.com>
99457
99458         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99459
99460         * m4/jm-mktime.m4: Make this a wrapper around the official
99461         AM_FUNC_MKTIME rather than my private copy, now that the official one
99462         is up to date.
99463         * m4/mktime.m4: Remove file.
99464
99465         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99466         * m4/uptime.m4: Likewise.
99467         * m4/uintmax_t.m4: Likewise.
99468
99469 1999-01-28  Jim Meyering  <meyering@ascend.com>
99470
99471         * m4/jm-macros.m4: Use jm_AFS.
99472         * m4/afs.m4: New file (from fileutils' configure.in).
99473
99474         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99475         * m4/chown.m4: Likewise.
99476         * m4/d-ino.m4: Likewise.
99477         * m4/d-type.m4: Likewise.
99478         * m4/fnmatch.m4: Likewise.
99479         * m4/getgroups.m4: Likewise.
99480         * m4/gettext.m4: Likewise.
99481         * m4/jm-mktime.m4: Likewise.
99482         * m4/jm-winsz2.m4: Likewise.
99483         * m4/lcmessage.m4: Likewise.
99484         * m4/ls-mntd-fs.m4: Likewise.
99485         * m4/malloc.m4: Likewise.
99486         * m4/memcmp.m4: Likewise.
99487         * m4/putenv.m4: Likewise.
99488         * m4/realloc.m4: Likewise.
99489         * m4/st_mtim.m4: Likewise.
99490         * m4/strftime.m4: Likewise.
99491
99492 1999-01-16  Jim Meyering  <meyering@ascend.com>
99493
99494         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99495         (ARGMATCH_DIE_DECL): Define.
99496
99497 1999-01-12  Jim Meyering  <meyering@ascend.com>
99498
99499         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99500         Reported by Lars Hecking.
99501
99502 1999-01-10  Jim Meyering  <meyering@ascend.com>
99503
99504         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99505         gross kludge.
99506         * m4/inttypes_h.m4: Likewise.
99507         * m4/lstat.m4: Likewise.
99508         * m4/malloc.m4: Likewise.
99509         * m4/readdir.m4: Likewise.
99510         * m4/realloc.m4: Likewise.
99511         * m4/st_dm_mode.m4: Likewise.
99512         * m4/stat.m4: Likewise.
99513         * m4/utimbuf.m4: Likewise.
99514         * m4/utimes.m4: Likewise.
99515
99516         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99517         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99518         comments in config.h.in are meaningful.
99519
99520         * m4/jm-macros.m4: Require autoconf-2.13 here.
99521
99522         * m4/regex.m4: By default, don't use the included regex.c on systems
99523         with glibc 2.  Suggestion from Uli Drepper.
99524
99525 1999-01-02  Jim Meyering  <meyering@ascend.com>
99526
99527         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99528
99529 1998-12-18  Jim Meyering  <meyering@ascend.com>
99530
99531         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99532         Based on a suggestion from Lars Hecking.
99533
99534 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99535
99536         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99537
99538 1998-11-16  Jim Meyering  <meyering@ascend.com>
99539
99540         * m4/lfs.m4: Double-quote the `uname...` expression.
99541
99542 1998-11-14  Jim Meyering  <meyering@ascend.com>
99543
99544         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99545         * m4/stat.m4: Likewise.
99546
99547 1998-11-03  Jim Meyering  <meyering@ascend.com>
99548
99549         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99550         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99551
99552 1998-10-18  Jim Meyering  <meyering@ascend.com>
99553
99554         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99555
99556 1998-10-17  Jim Meyering  <meyering@ascend.com>
99557
99558         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99559         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99560         calls for those previously hard-coded headers.  Instead, take a new
99561         parameter.
99562         (jm_CHECK_DECLARATIONS): Reflect interface change.
99563         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99564         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99565
99566         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99567
99568 1998-10-14  Jim Meyering  <meyering@ascend.com>
99569
99570         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99571         instead of "TZ=America/Vancouver".  From Paul Eggert.
99572
99573 1998-10-11  Jim Meyering  <meyering@ascend.com>
99574
99575         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99576         This adds a test for a recently added compatibility fix for mktime.c.
99577         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99578
99579 1998-09-27  Jim Meyering  <meyering@ascend.com>
99580
99581         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99582
99583         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99584         ../configure.in, including a change from Gordon Matzigkeit to allow
99585         cross-compiling for the Hurd.
99586
99587         * m4/glibc.m4: New file/macro to test for the GNU C Library
99588         versions 1 and 2.  From Gordon Matzigkeit.
99589         Indent.
99590
99591 1998-09-21  Jim Meyering  <meyering@ascend.com>
99592
99593         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99594
99595 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99596
99597         Port nanosecond-resolution times to UnixWare 2.1.2 and
99598         pedantic Solaris 2.6.
99599
99600         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99601         AC_STRUCT_ST_MTIM.
99602         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99603         Generate name of ns member, instead of just 1 or undef.
99604         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99605
99606 1998-08-15  Jim Meyering  <meyering@ascend.com>
99607
99608         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99609         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99610         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99611         instead of jm_TYPE_SSIZE_T.
99612
99613 1998-08-12  Jim Meyering  <meyering@ascend.com>
99614
99615         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99616
99617 1998-08-02  Jim Meyering  <meyering@ascend.com>
99618
99619         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99620         in acconfig.h manually.
99621
99622 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99623
99624         * m4/st_mtim.m4: New file.
99625
99626 1998-07-28  Jim Meyering  <meyering@ascend.com>
99627
99628         * m4/utimes.m4: Undef stat.
99629
99630 1998-07-25  Jim Meyering  <meyering@ascend.com>
99631
99632         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99633         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99634
99635 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99636
99637         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99638         uid and gid actually remain unchanged.
99639
99640 1998-07-07  Jim Meyering  <meyering@ascend.com>
99641
99642         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99643
99644 1998-07-04  Jim Meyering  <meyering@ascend.com>
99645
99646         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99647         to prove that this macro can be used in packages without regex.c.
99648
99649 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99650
99651         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99652         is to be used.
99653
99654 1998-07-03  Jim Meyering  <meyering@ascend.com>
99655
99656         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99657
99658         * m4/gettext.m4: New file -- from gettext-0.10.35.
99659         * m4/lcmessage.m4: Likewise.
99660         * m4/progtest.m4: Likewise.
99661
99662         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99663         * m4/jm-macros.m4: Require the new macro.
99664
99665 1998-06-29  Jim Meyering  <meyering@ascend.com>
99666
99667         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99668         for the definition of NGROUPS (used in a system header included
99669         by sys/mount.h).
99670
99671 1998-06-28  Jim Meyering  <meyering@ascend.com>
99672
99673         * m4/ls-mntd-fs.m4: New file.
99674         * m4/fstypename.m4: New file.
99675
99676         * m4/jm-macros.m4: Require the new macro.
99677         * m4/jm-glibc-io.m4: New file.
99678
99679 1998-05-19  Jim Meyering  <meyering@ascend.com>
99680
99681         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99682         * m4/lchown.m4: New file.
99683
99684         * m4/Makefile.am.in: New file.
99685         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99686
99687 1998-05-14  Jim Meyering  <meyering@ascend.com>
99688
99689         * m4/Makefile.am (EXTRA_DIST): Add them.
99690         * m4/jm-macros.m4: New file.
99691         * m4/utimbuf.m4: New file.
99692
99693 1998-05-12  Jim Meyering  <meyering@ascend.com>
99694
99695         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99696
99697 1998-05-11  Jim Meyering  <meyering@ascend.com>
99698
99699         * m4/isc-posix.m4: New file.
99700
99701 1998-05-10  Jim Meyering  <meyering@ascend.com>
99702
99703         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99704
99705 1998-05-09  Jim Meyering  <meyering@ascend.com>
99706
99707         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99708         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99709         with automake.
99710
99711         * m4/ssize_t.m4: New file.
99712         * m4/mktime.m4: Remove file -- the new automake has this now.
99713
99714 1998-04-26  Jim Meyering  <meyering@ascend.com>
99715
99716         * m4/assert.m4: New file.
99717         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99718
99719 1998-04-05  Jim Meyering  <meyering@ascend.com>
99720
99721         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99722         (jm_PREREQ): Use it here.
99723
99724 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99725
99726         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99727         in acconfig.h.
99728
99729 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99730
99731         * m4/prereq.m4: New file.
99732         * m4/error.m4: New file.
99733         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99734
99735 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99736
99737         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99738         cache-check for the same variable -- that defeated the purpose of
99739         the test; the test program was never run.  This was a problem only
99740         on systems with losing getline functions -- HP-UX 10.20 is one.
99741         Reported by Bjorn Helgaas.
99742
99743 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99744
99745         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99746
99747 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99748
99749         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99750
99751         * m4/const.m4: New file.  Use an initializer in this declaration
99752         typedef int charset[2]; const charset x;
99753         Reported by Bob Glickstein.
99754
99755 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99756
99757         * m4/chown.m4: Fix reversed types on -1 args to chown.
99758         From Kaveh Ghazi.
99759
99760 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99761
99762         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99763         Add lseek and memchr.
99764
99765         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99766         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99767         have a 20-character limit on names.
99768
99769 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99770
99771         * m4/inttypes_h.m4: New file.
99772         * m4/uintmax_t.m4: New file.
99773         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99774
99775
99776         -----
99777
99778         Local Variables:
99779         coding: utf-8
99780         End:
99781
99782         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99783
99784         Copying and distribution of this file, with or without
99785         modification, are permitted provided the copyright notice
99786         and this notice are preserved.